ABAP Select data from SAP table FAGL_BW_LOG_ITEM into internal table

Get Example source ABAP code based on a different SAP table
  

Below is a number of ABAP code snippets to demonstrate how to select data from SAP FAGL_BW_LOG_ITEM table and store it within an internal table, including using the newer @DATA inline declaration methods. It also shows you various ways to process this data using ABAP work area, inline declaration or field symbols including executing all the relevant CONVERSION_EXIT routines specific to FAGL_BW_LOG_ITEM. See here for more generic Select statement tips.

Sometimes data within SAP is stored within the database table in a different format to what it is displayed to the user. These input/output conversation FM routines are what translates the data between the two formats.

There is also a full declaration of the FAGL_BW_LOG_ITEM table where each field has a char/string type for you to simply copy and paste. This allows you to use processing that is only available to these field types such as the CONCATENATE statement.

DATA: IT_FAGL_BW_LOG_ITEM TYPE STANDARD TABLE OF FAGL_BW_LOG_ITEM,
      WA_FAGL_BW_LOG_ITEM TYPE FAGL_BW_LOG_ITEM,
      GD_STR TYPE STRING.

DATA: lo_typedescr type REF TO cl_abap_typedescr.
DATA: lv_fieldname type fieldname.

FIELD-SYMBOLS: <FIELD> TYPE any.
FIELD-SYMBOLS: <FAGL_BW_LOG_ITEM> TYPE FAGL_BW_LOG_ITEM.

*Process all fields in table header/work area as string values
  PERFORM process_as_string_field_values CHANGING wa_FAGL_BW_LOG_ITEM.

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM FAGL_BW_LOG_ITEM
  INTO TABLE IT_FAGL_BW_LOG_ITEM.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM FAGL_BW_LOG_ITEM
*  INTO TABLE @DATA(IT_FAGL_BW_LOG_ITEM2).
*--Further methods of using ABAP code to  select data from SAP database tables

*You can also declare the header/work area using the in-line DATA declaration method
READ TABLE IT_FAGL_BW_LOG_ITEM INDEX 1 INTO DATA(WA_FAGL_BW_LOG_ITEM2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_FAGL_BW_LOG_ITEM ASSIGNING <FAGL_BW_LOG_ITEM>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<FAGL_BW_LOG_ITEM>-MANDT = 1.
<FAGL_BW_LOG_ITEM>-DATASOURCE = 1.
<FAGL_BW_LOG_ITEM>-REQUNR = 1.
<FAGL_BW_LOG_ITEM>-LOGTIMESTAMP = 1.
<FAGL_BW_LOG_ITEM>-RECNR = 1.
ENDLOOP.

LOOP AT IT_FAGL_BW_LOG_ITEM INTO WA_FAGL_BW_LOG_ITEM.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_FAGL_BW_LOG_ITEM-BUKRS, sy-vline,
WA_FAGL_BW_LOG_ITEM-GJAHR, sy-vline,
WA_FAGL_BW_LOG_ITEM-BELNR, sy-vline,
WA_FAGL_BW_LOG_ITEM-BUZEI, sy-vline,
WA_FAGL_BW_LOG_ITEM-RLDNR, sy-vline,
WA_FAGL_BW_LOG_ITEM-LDGRP, sy-vline.
ENDLOOP. *Add any further fields from structure WA_FAGL_BW_LOG_ITEM you want to display... WRITE:/ sy-uline. * Aternatively use generic code to Write field values (and NAME) to screen report DO. ASSIGN COMPONENT sy-index OF STRUCTURE wa_FAGL_BW_LOG_ITEM TO <field>. IF sy-subrc <> 0. EXIT. ENDIF. WRITE:/ 'Field Value', <field>, sy-vline. gd_str = <field> . lo_typedescr ?= CL_ABAP_DATADESCR=>DESCRIBE_BY_DATA( <field> ). lv_fieldname = lo_typedescr->GET_RELATIVE_NAME( ). WRITE:/ 'Field Name', lv_fieldname. ENDDO. *Redo loop but convert all fields from internal to out value LOOP AT IT_FAGL_BW_LOG_ITEM INTO WA_FAGL_BW_LOG_ITEM. *Write horizonal line to screen report. WRITE:/ sy-uline. *Convert all fields to display/output versions using conversion routines PERFORM convert_all_field_values CHANGING wa_EKKO. ENDLOOP. *&---------------------------------------------------------------------* *& Form convert_all_field_values *&---------------------------------------------------------------------* FORM convert_all_field_values CHANGING p_EKKO LIKE wa_EKKO. DATA: ld_input(1000) TYPE c, ld_output(1000) TYPE C.

*Conversion exit GJAHR, internal->external for field GJAHR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-GJAHR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-GJAHR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field BELNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-BELNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-BELNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field RLDNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-RLDNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-RLDNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field DOCNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DOCNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DOCNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit PERI7, internal->external for field FISCPER CALL FUNCTION 'CONVERSION_EXIT_PERI7_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-FISCPER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-FISCPER.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field AUGBL CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-AUGBL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-AUGBL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field HKONT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-HKONT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-HKONT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field KOSTL CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-KOSTL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-KOSTL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field PRCTR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-PRCTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-PRCTR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field SEGMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-SEGMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-SEGMENT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field WRBTR CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-WRBTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-WRBTR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC132, internal->external for field DMSHB CALL FUNCTION 'CONVERSION_EXIT_AC132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMSHB IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMSHB.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMBTR CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMBTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMBTR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMBE2 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMBE2 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMBE2.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMBE3 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMBE3 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMBE3.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMHAB CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMHAB IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMHAB.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMHA2 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMHA2 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMHA2.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMHA3 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMHA3 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMHA3.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMSOL CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMSOL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMSOL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMSO2 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMSO2 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMSO2.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field DMSO3 CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMSO3 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMSO3.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC132, internal->external for field DMSH2 CALL FUNCTION 'CONVERSION_EXIT_AC132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMSH2 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMSH2.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC132, internal->external for field DMSH3 CALL FUNCTION 'CONVERSION_EXIT_AC132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DMSH3 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DMSH3.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field WRHAB CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-WRHAB IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-WRHAB.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field WRSOL CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-WRSOL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-WRSOL.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field RACCT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-RACCT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-RACCT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field RCNTR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-RCNTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-RCNTR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field RPRCTR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-RPRCTR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-RPRCTR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit CUNIT, internal->external for field QUANUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-QUANUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-QUANUNIT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC172, internal->external for field BALANCE CALL FUNCTION 'CONVERSION_EXIT_AC172_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-BALANCE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-BALANCE.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC172, internal->external for field DEBIT CALL FUNCTION 'CONVERSION_EXIT_AC172_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-DEBIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-DEBIT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC172, internal->external for field CREDIT CALL FUNCTION 'CONVERSION_EXIT_AC172_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-CREDIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-CREDIT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC172, internal->external for field TURNOVER CALL FUNCTION 'CONVERSION_EXIT_AC172_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-TURNOVER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-TURNOVER.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field LIFNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-LIFNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-LIFNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPHA, internal->external for field KUNNR CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-KUNNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-KUNNR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field HWBAS CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-HWBAS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-HWBAS.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AC152, internal->external for field FWBAS CALL FUNCTION 'CONVERSION_EXIT_AC152_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-FWBAS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-FWBAS.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field HWSTE CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-HWSTE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-HWSTE.
WRITE:/ 'New Value:', ld_input.

*Conversion exit AU132, internal->external for field FWSTE CALL FUNCTION 'CONVERSION_EXIT_AU132_OUTPUT' EXPORTING input = WA_FAGL_BW_LOG_ITEM-FWSTE IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_FAGL_BW_LOG_ITEM-FWSTE.
WRITE:/ 'New Value:', ld_input.
ENDFORM. *&---------------------------------------------------------------------* *& Form process_as_string_field_values *&---------------------------------------------------------------------* FORM process_as_string_field_values CHANGING p_EKKO LIKE wa_EKKO. TYPES: BEGIN OF T_FAGL_BW_LOG_ITEM_STR,
MANDT TYPE STRING,
DATASOURCE TYPE STRING,
REQUNR TYPE STRING,
LOGTIMESTAMP TYPE STRING,
RECNR TYPE STRING,
BUKRS TYPE STRING,
GJAHR TYPE STRING,
BELNR TYPE STRING,
BUZEI TYPE STRING,
RLDNR TYPE STRING,
LDGRP TYPE STRING,
DOCNR TYPE STRING,
DOCLN TYPE STRING,
MONAT TYPE STRING,
FISCPER TYPE STRING,
AUGBL TYPE STRING,
AUGDT TYPE STRING,
BLART TYPE STRING,
BLDAT TYPE STRING,
BSCHL TYPE STRING,
BSTAT TYPE STRING,
BUDAT TYPE STRING,
HKONT TYPE STRING,
KOSTL TYPE STRING,
PRCTR TYPE STRING,
SEGMENT TYPE STRING,
GSBER TYPE STRING,
SHKZG TYPE STRING,
WAERS TYPE STRING,
WRBTR TYPE STRING,
CURT2 TYPE STRING,
CURT3 TYPE STRING,
DMSHB TYPE STRING,
HWAER TYPE STRING,
DMBTR TYPE STRING,
DMBE2 TYPE STRING,
HWAE2 TYPE STRING,
DMBE3 TYPE STRING,
HWAE3 TYPE STRING,
DMHAB TYPE STRING,
DMHA2 TYPE STRING,
DMHA3 TYPE STRING,
DMSOL TYPE STRING,
DMSO2 TYPE STRING,
DMSO3 TYPE STRING,
DMSH2 TYPE STRING,
DMSH3 TYPE STRING,
WRHAB TYPE STRING,
WRSOL TYPE STRING,
RBUKRS TYPE STRING,
RACCT TYPE STRING,
RCNTR TYPE STRING,
RPRCTR TYPE STRING,
QUANUNIT TYPE STRING,
VALUETYPE TYPE STRING,
CURTYPE TYPE STRING,
FISCVAR TYPE STRING,
CHARTACCTS TYPE STRING,
UPMOD TYPE STRING,
VALUTYP TYPE STRING,
CURRUNIT TYPE STRING,
BALANCE TYPE STRING,
DEBIT TYPE STRING,
CREDIT TYPE STRING,
TURNOVER TYPE STRING,
QUANTITY TYPE STRING,
LIFNR TYPE STRING,
KUNNR TYPE STRING,
MLDWAER TYPE STRING,
HWBAS TYPE STRING,
FWBAS TYPE STRING,
HWSTE TYPE STRING,
FWSTE TYPE STRING,END OF T_EKKO_STR. DATA: WA_FAGL_BW_LOG_ITEM_STR type T_EKKO_STR. DATA: ld_text TYPE string. LOOP AT IT_EKKO INTO WA_EKKO. MOVE-CORRESPONDING wa_EKKO TO WA_EKKO_STR. CONCATENATE: sy-vline
WA_FAGL_BW_LOG_ITEM_STR-MANDT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DATASOURCE sy-vline
WA_FAGL_BW_LOG_ITEM_STR-REQUNR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-LOGTIMESTAMP sy-vline
WA_FAGL_BW_LOG_ITEM_STR-RECNR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BUKRS sy-vline
WA_FAGL_BW_LOG_ITEM_STR-GJAHR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BELNR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BUZEI sy-vline
WA_FAGL_BW_LOG_ITEM_STR-RLDNR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-LDGRP sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DOCNR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DOCLN sy-vline
WA_FAGL_BW_LOG_ITEM_STR-MONAT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-FISCPER sy-vline
WA_FAGL_BW_LOG_ITEM_STR-AUGBL sy-vline
WA_FAGL_BW_LOG_ITEM_STR-AUGDT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BLART sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BLDAT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BSCHL sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BSTAT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BUDAT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-HKONT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-KOSTL sy-vline
WA_FAGL_BW_LOG_ITEM_STR-PRCTR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-SEGMENT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-GSBER sy-vline
WA_FAGL_BW_LOG_ITEM_STR-SHKZG sy-vline
WA_FAGL_BW_LOG_ITEM_STR-WAERS sy-vline
WA_FAGL_BW_LOG_ITEM_STR-WRBTR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-CURT2 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-CURT3 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMSHB sy-vline
WA_FAGL_BW_LOG_ITEM_STR-HWAER sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMBTR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMBE2 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-HWAE2 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMBE3 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-HWAE3 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMHAB sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMHA2 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMHA3 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMSOL sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMSO2 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMSO3 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMSH2 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DMSH3 sy-vline
WA_FAGL_BW_LOG_ITEM_STR-WRHAB sy-vline
WA_FAGL_BW_LOG_ITEM_STR-WRSOL sy-vline
WA_FAGL_BW_LOG_ITEM_STR-RBUKRS sy-vline
WA_FAGL_BW_LOG_ITEM_STR-RACCT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-RCNTR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-RPRCTR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-QUANUNIT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-VALUETYPE sy-vline
WA_FAGL_BW_LOG_ITEM_STR-CURTYPE sy-vline
WA_FAGL_BW_LOG_ITEM_STR-FISCVAR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-CHARTACCTS sy-vline
WA_FAGL_BW_LOG_ITEM_STR-UPMOD sy-vline
WA_FAGL_BW_LOG_ITEM_STR-VALUTYP sy-vline
WA_FAGL_BW_LOG_ITEM_STR-CURRUNIT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-BALANCE sy-vline
WA_FAGL_BW_LOG_ITEM_STR-DEBIT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-CREDIT sy-vline
WA_FAGL_BW_LOG_ITEM_STR-TURNOVER sy-vline
WA_FAGL_BW_LOG_ITEM_STR-QUANTITY sy-vline
WA_FAGL_BW_LOG_ITEM_STR-LIFNR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-KUNNR sy-vline
WA_FAGL_BW_LOG_ITEM_STR-MLDWAER sy-vline
WA_FAGL_BW_LOG_ITEM_STR-HWBAS sy-vline
WA_FAGL_BW_LOG_ITEM_STR-FWBAS sy-vline
WA_FAGL_BW_LOG_ITEM_STR-HWSTE sy-vline
WA_FAGL_BW_LOG_ITEM_STR-FWSTE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.