ABAP Select data from SAP table ICCINTCOELIMC 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 ICCINTCOELIMC 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 ICCINTCOELIMC. 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 ICCINTCOELIMC 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_ICCINTCOELIMC TYPE STANDARD TABLE OF ICCINTCOELIMC, WA_ICCINTCOELIMC TYPE ICCINTCOELIMC, 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: <ICCINTCOELIMC> TYPE ICCINTCOELIMC. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_ICCINTCOELIMC. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM ICCINTCOELIMC INTO TABLE IT_ICCINTCOELIMC. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM ICCINTCOELIMC * INTO TABLE @DATA(IT_ICCINTCOELIMC2). *--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_ICCINTCOELIMC INDEX 1 INTO DATA(WA_ICCINTCOELIMC2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_ICCINTCOELIMC ASSIGNING <ICCINTCOELIMC>.*To update a field value using a field symbol simply change the value via the field symbol pointer
<ICCINTCOELIMC>-MANDT = 1.
<ICCINTCOELIMC>-CONSOLIDATIONLEDGER = 1.
<ICCINTCOELIMC>-CONSOLIDATIONDIMENSION = 1.
<ICCINTCOELIMC>-FISCALYEAR = 1.
<ICCINTCOELIMC>-CONSOLIDATIONDOCUMENTNUMBER = 1.
ENDLOOP. LOOP AT IT_ICCINTCOELIMC INTO WA_ICCINTCOELIMC. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_ICCINTCOELIMC-CONSOLIDATIONPOSTINGITEM, sy-vline,
WA_ICCINTCOELIMC-GLRECORDTYPE, sy-vline,
WA_ICCINTCOELIMC-CONSOLIDATIONVERSION, sy-vline,
WA_ICCINTCOELIMC-TRANSACTIONCURRENCY, sy-vline,
WA_ICCINTCOELIMC-LOCALCURRENCY, sy-vline,
WA_ICCINTCOELIMC-GROUPCURRENCY, sy-vline.
ENDLOOP. *Add any further fields from structure WA_ICCINTCOELIMC 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_ICCINTCOELIMC 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_ICCINTCOELIMC INTO WA_ICCINTCOELIMC. *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 ALPHA, internal->external for field CONSOLIDATIONLEDGER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONLEDGER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONLEDGER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field FISCALYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-FISCALYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-FISCALYEAR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CONSOLIDATIONDOCUMENTNUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONDOCUMENTNUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONDOCUMENTNUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CONSOLIDATIONVERSION CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONVERSION IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONVERSION.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field BASEUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-BASEUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-BASEUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field COMPANY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-COMPANY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-COMPANY.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AFIMC, internal->external for field CONSOLIDATIONUNIT1 CALL FUNCTION 'CONVERSION_EXIT_AFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONUNIT1 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONUNIT1.
WRITE:/ 'New Value:', ld_input.
*Conversion exit BFIMC, internal->external for field FINANCIALSTATEMENTITEM CALL FUNCTION 'CONVERSION_EXIT_BFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-FINANCIALSTATEMENTITEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-FINANCIALSTATEMENTITEM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AFIMC, internal->external for field CONSOLIDATIONUNIT2 CALL FUNCTION 'CONVERSION_EXIT_AFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONUNIT2 IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONUNIT2.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AFIMC, internal->external for field CONSOLIDATIONUNIT CALL FUNCTION 'CONVERSION_EXIT_AFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AFIMC, internal->external for field PARTNERCONSOLIDATIONUNIT CALL FUNCTION 'CONVERSION_EXIT_AFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-PARTNERCONSOLIDATIONUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-PARTNERCONSOLIDATIONUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AFIMC, internal->external for field CONSOLIDATIONGROUP CALL FUNCTION 'CONVERSION_EXIT_AFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONGROUP IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONGROUP.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field CONSOLIDATIONACQUISITIONYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONACQUISITIONYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONACQUISITIONYEAR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit AFIMC, internal->external for field INVESTEECONSOLIDATIONUNIT CALL FUNCTION 'CONVERSION_EXIT_AFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-INVESTEECONSOLIDATIONUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-INVESTEECONSOLIDATIONUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REFCONSOLIDATIONDOCUMENTNUMBER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-REFCONSOLIDATIONDOCUMENTNUMBER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-REFCONSOLIDATIONDOCUMENTNUMBER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field REFERENCEFISCALYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-REFERENCEFISCALYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-REFERENCEFISCALYEAR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REVERSEDOCUMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-REVERSEDOCUMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-REVERSEDOCUMENT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field REVERSEDDOCUMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-REVERSEDDOCUMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-REVERSEDDOCUMENT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field INVESTMENTACTIVITY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-INVESTMENTACTIVITY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-INVESTMENTACTIVITY.
WRITE:/ 'New Value:', ld_input.
*Conversion exit GJAHR, internal->external for field CONSOLIDATIONDOCREVERSALYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONDOCREVERSALYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONDOCREVERSALYEAR.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field LOGICALSYSTEM CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-LOGICALSYSTEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-LOGICALSYSTEM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field GLACCOUNT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-GLACCOUNT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-GLACCOUNT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field COSTCENTER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-COSTCENTER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-COSTCENTER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PROFITCENTER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-PROFITCENTER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-PROFITCENTER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field SEGMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-SEGMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-SEGMENT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PARTNERCOSTCENTER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-PARTNERCOSTCENTER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-PARTNERCOSTCENTER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PARTNERPROFITCENTER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-PARTNERPROFITCENTER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-PARTNERPROFITCENTER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PARTNERCOMPANY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-PARTNERCOMPANY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-PARTNERCOMPANY.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field PARTNERSEGMENT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-PARTNERSEGMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-PARTNERSEGMENT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field ORDERID CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-ORDERID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-ORDERID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field CUSTOMER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CUSTOMER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CUSTOMER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field SUPPLIER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-SUPPLIER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-SUPPLIER.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field MATERIAL CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-MATERIAL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-MATERIAL.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ABPSP, internal->external for field WBSELEMENTINTERNALID CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-WBSELEMENTINTERNALID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-WBSELEMENTINTERNALID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ABPSN, internal->external for field WBSELEMENT CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-WBSELEMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-WBSELEMENT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ABPSN, internal->external for field PROJECT CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-PROJECT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-PROJECT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit MATN1, internal->external for field SOLDPRODUCT CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-SOLDPRODUCT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-SOLDPRODUCT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field BILLTOPARTY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-BILLTOPARTY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-BILLTOPARTY.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field SHIPTOPARTY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-SHIPTOPARTY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-SHIPTOPARTY.
WRITE:/ 'New Value:', ld_input.
*Conversion exit BFIMC, internal->external for field CONSOLIDATIONREPORTINGITEM CALL FUNCTION 'CONVERSION_EXIT_BFIMC_OUTPUT' EXPORTING input = WA_ICCINTCOELIMC-CONSOLIDATIONREPORTINGITEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_ICCINTCOELIMC-CONSOLIDATIONREPORTINGITEM.
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_ICCINTCOELIMC_STR,
MANDT TYPE STRING,
CONSOLIDATIONLEDGER TYPE STRING,
CONSOLIDATIONDIMENSION TYPE STRING,
FISCALYEAR TYPE STRING,
CONSOLIDATIONDOCUMENTNUMBER TYPE STRING,
CONSOLIDATIONPOSTINGITEM TYPE STRING,
GLRECORDTYPE TYPE STRING,
CONSOLIDATIONVERSION TYPE STRING,
TRANSACTIONCURRENCY TYPE STRING,
LOCALCURRENCY TYPE STRING,
GROUPCURRENCY TYPE STRING,
BASEUNIT TYPE STRING,
FISCALPERIOD TYPE STRING,
CONSOLIDATIONDOCUMENTTYPE TYPE STRING,
DEBITCREDITCODE TYPE STRING,
COMPANY TYPE STRING,
CONSOLIDATIONUNIT1 TYPE STRING,
CONSOLIDATIONCHARTOFACCOUNTS TYPE STRING,
FINANCIALSTATEMENTITEM TYPE STRING,
CONSOLIDATIONUNIT2 TYPE STRING,
CONSOLIDATIONUNITPAIR TYPE STRING,
CONSOLIDATIONUNIT TYPE STRING,
PARTNERCONSOLIDATIONUNIT TYPE STRING,
CONSOLIDATIONGROUP TYPE STRING,
COMPANYCODE TYPE STRING,
SUBITEMCATEGORY TYPE STRING,
SUBITEM TYPE STRING,
POSTINGLEVEL TYPE STRING,
CONSOLIDATIONAPPORTIONMENT TYPE STRING,
CURRENCYCONVERSIONSDIFFTYPE TYPE STRING,
CONSOLIDATIONACQUISITIONYEAR TYPE STRING,
CONSOLIDATIONACQUISITIONPERIOD TYPE STRING,
INVESTEECONSOLIDATIONUNIT TYPE STRING,
RECNCLNAMTINCNSLDTNGRPCRCY TYPE STRING,
PARTRECNCLNAMTINCNSLDTNGRPCRCY TYPE STRING,
AMOUNTINGROUPCURRENCY TYPE STRING,
PARTNERAMTINCNSLDTNGRPCRCY TYPE STRING,
AMOUNTINLOCALCURRENCY TYPE STRING,
PARTNERAMTINCNSLDTNLOCALCRCY TYPE STRING,
AMOUNTINTRANSACTIONCURRENCY TYPE STRING,
PARTNERAMTINCNSLDTNTRANSCRCY TYPE STRING,
QUANTITYINBASEUNIT TYPE STRING,
DOCUMENTITEMTEXT TYPE STRING,
CONSOLIDATIONPOSTGITEMAUTOFLAG TYPE STRING,
BUSINESSTRANSACTIONTYPE TYPE STRING,
POSTINGDATE TYPE STRING,
CURRENCYTRANSLATIONDATE TYPE STRING,
REFCONSOLIDATIONDOCUMENTNUMBER TYPE STRING,
REFERENCEFISCALYEAR TYPE STRING,
REFCONSOLIDATIONPOSTINGITEM TYPE STRING,
REFCONSOLIDATIONDOCUMENTTYPE TYPE STRING,
REFBUSINESSTRANSACTIONTYPE TYPE STRING,
CREATIONDATE TYPE STRING,
CREATIONTIME TYPE STRING,
USERID TYPE STRING,
REVERSEDOCUMENT TYPE STRING,
REVERSEDDOCUMENT TYPE STRING,
INVESTMENTACTIVITYTYPE TYPE STRING,
INVESTMENTACTIVITY TYPE STRING,
CONSOLIDATIONDOCREVERSALYEAR TYPE STRING,
REFERENCEDOCUMENTTYPE TYPE STRING,
REFERENCEDOCUMENTCONTEXT TYPE STRING,
LOGICALSYSTEM TYPE STRING,
CHARTOFACCOUNTS TYPE STRING,
GLACCOUNT TYPE STRING,
ASSIGNMENTREFERENCE TYPE STRING,
COSTCENTER TYPE STRING,
PROFITCENTER TYPE STRING,
FUNCTIONALAREA TYPE STRING,
BUSINESSAREA TYPE STRING,
CONTROLLINGAREA TYPE STRING,
SEGMENT TYPE STRING,
PARTNERCOSTCENTER TYPE STRING,
PARTNERPROFITCENTER TYPE STRING,
PARTNERFUNCTIONALAREA TYPE STRING,
PARTNERBUSINESSAREA TYPE STRING,
PARTNERCOMPANY TYPE STRING,
PARTNERSEGMENT TYPE STRING,
ORDERID TYPE STRING,
CUSTOMER TYPE STRING,
SUPPLIER TYPE STRING,
MATERIAL TYPE STRING,
PLANT TYPE STRING,
FINANCIALTRANSACTIONTYPE TYPE STRING,
WBSELEMENTINTERNALID TYPE STRING,
WBSELEMENT TYPE STRING,
PROJECT TYPE STRING,
BILLINGDOCUMENTTYPE TYPE STRING,
SALESORGANIZATION TYPE STRING,
DISTRIBUTIONCHANNEL TYPE STRING,
ORGANIZATIONDIVISION TYPE STRING,
MATERIALGROUP TYPE STRING,
SOLDPRODUCT TYPE STRING,
SOLDPRODUCTGROUP TYPE STRING,
CUSTOMERGROUP TYPE STRING,
CUSTOMERSUPPLIERCOUNTRY TYPE STRING,
CUSTOMERSUPPLIERINDUSTRY TYPE STRING,
SALESDISTRICT TYPE STRING,
BILLTOPARTY TYPE STRING,
SHIPTOPARTY TYPE STRING,
CONSOLIDATIONRECORDNUMBER TYPE STRING,
CONSOLIDATIONREPORTINGITEM TYPE STRING,
CNSLDTNINTCORECNCLNTHLDAMT TYPE STRING,END OF T_EKKO_STR. DATA: WA_ICCINTCOELIMC_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_ICCINTCOELIMC_STR-MANDT sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONLEDGER sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONDIMENSION sy-vline
WA_ICCINTCOELIMC_STR-FISCALYEAR sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONDOCUMENTNUMBER sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONPOSTINGITEM sy-vline
WA_ICCINTCOELIMC_STR-GLRECORDTYPE sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONVERSION sy-vline
WA_ICCINTCOELIMC_STR-TRANSACTIONCURRENCY sy-vline
WA_ICCINTCOELIMC_STR-LOCALCURRENCY sy-vline
WA_ICCINTCOELIMC_STR-GROUPCURRENCY sy-vline
WA_ICCINTCOELIMC_STR-BASEUNIT sy-vline
WA_ICCINTCOELIMC_STR-FISCALPERIOD sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONDOCUMENTTYPE sy-vline
WA_ICCINTCOELIMC_STR-DEBITCREDITCODE sy-vline
WA_ICCINTCOELIMC_STR-COMPANY sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONUNIT1 sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONCHARTOFACCOUNTS sy-vline
WA_ICCINTCOELIMC_STR-FINANCIALSTATEMENTITEM sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONUNIT2 sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONUNITPAIR sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONUNIT sy-vline
WA_ICCINTCOELIMC_STR-PARTNERCONSOLIDATIONUNIT sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONGROUP sy-vline
WA_ICCINTCOELIMC_STR-COMPANYCODE sy-vline
WA_ICCINTCOELIMC_STR-SUBITEMCATEGORY sy-vline
WA_ICCINTCOELIMC_STR-SUBITEM sy-vline
WA_ICCINTCOELIMC_STR-POSTINGLEVEL sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONAPPORTIONMENT sy-vline
WA_ICCINTCOELIMC_STR-CURRENCYCONVERSIONSDIFFTYPE sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONACQUISITIONYEAR sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONACQUISITIONPERIOD sy-vline
WA_ICCINTCOELIMC_STR-INVESTEECONSOLIDATIONUNIT sy-vline
WA_ICCINTCOELIMC_STR-RECNCLNAMTINCNSLDTNGRPCRCY sy-vline
WA_ICCINTCOELIMC_STR-PARTRECNCLNAMTINCNSLDTNGRPCRCY sy-vline
WA_ICCINTCOELIMC_STR-AMOUNTINGROUPCURRENCY sy-vline
WA_ICCINTCOELIMC_STR-PARTNERAMTINCNSLDTNGRPCRCY sy-vline
WA_ICCINTCOELIMC_STR-AMOUNTINLOCALCURRENCY sy-vline
WA_ICCINTCOELIMC_STR-PARTNERAMTINCNSLDTNLOCALCRCY sy-vline
WA_ICCINTCOELIMC_STR-AMOUNTINTRANSACTIONCURRENCY sy-vline
WA_ICCINTCOELIMC_STR-PARTNERAMTINCNSLDTNTRANSCRCY sy-vline
WA_ICCINTCOELIMC_STR-QUANTITYINBASEUNIT sy-vline
WA_ICCINTCOELIMC_STR-DOCUMENTITEMTEXT sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONPOSTGITEMAUTOFLAG sy-vline
WA_ICCINTCOELIMC_STR-BUSINESSTRANSACTIONTYPE sy-vline
WA_ICCINTCOELIMC_STR-POSTINGDATE sy-vline
WA_ICCINTCOELIMC_STR-CURRENCYTRANSLATIONDATE sy-vline
WA_ICCINTCOELIMC_STR-REFCONSOLIDATIONDOCUMENTNUMBER sy-vline
WA_ICCINTCOELIMC_STR-REFERENCEFISCALYEAR sy-vline
WA_ICCINTCOELIMC_STR-REFCONSOLIDATIONPOSTINGITEM sy-vline
WA_ICCINTCOELIMC_STR-REFCONSOLIDATIONDOCUMENTTYPE sy-vline
WA_ICCINTCOELIMC_STR-REFBUSINESSTRANSACTIONTYPE sy-vline
WA_ICCINTCOELIMC_STR-CREATIONDATE sy-vline
WA_ICCINTCOELIMC_STR-CREATIONTIME sy-vline
WA_ICCINTCOELIMC_STR-USERID sy-vline
WA_ICCINTCOELIMC_STR-REVERSEDOCUMENT sy-vline
WA_ICCINTCOELIMC_STR-REVERSEDDOCUMENT sy-vline
WA_ICCINTCOELIMC_STR-INVESTMENTACTIVITYTYPE sy-vline
WA_ICCINTCOELIMC_STR-INVESTMENTACTIVITY sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONDOCREVERSALYEAR sy-vline
WA_ICCINTCOELIMC_STR-REFERENCEDOCUMENTTYPE sy-vline
WA_ICCINTCOELIMC_STR-REFERENCEDOCUMENTCONTEXT sy-vline
WA_ICCINTCOELIMC_STR-LOGICALSYSTEM sy-vline
WA_ICCINTCOELIMC_STR-CHARTOFACCOUNTS sy-vline
WA_ICCINTCOELIMC_STR-GLACCOUNT sy-vline
WA_ICCINTCOELIMC_STR-ASSIGNMENTREFERENCE sy-vline
WA_ICCINTCOELIMC_STR-COSTCENTER sy-vline
WA_ICCINTCOELIMC_STR-PROFITCENTER sy-vline
WA_ICCINTCOELIMC_STR-FUNCTIONALAREA sy-vline
WA_ICCINTCOELIMC_STR-BUSINESSAREA sy-vline
WA_ICCINTCOELIMC_STR-CONTROLLINGAREA sy-vline
WA_ICCINTCOELIMC_STR-SEGMENT sy-vline
WA_ICCINTCOELIMC_STR-PARTNERCOSTCENTER sy-vline
WA_ICCINTCOELIMC_STR-PARTNERPROFITCENTER sy-vline
WA_ICCINTCOELIMC_STR-PARTNERFUNCTIONALAREA sy-vline
WA_ICCINTCOELIMC_STR-PARTNERBUSINESSAREA sy-vline
WA_ICCINTCOELIMC_STR-PARTNERCOMPANY sy-vline
WA_ICCINTCOELIMC_STR-PARTNERSEGMENT sy-vline
WA_ICCINTCOELIMC_STR-ORDERID sy-vline
WA_ICCINTCOELIMC_STR-CUSTOMER sy-vline
WA_ICCINTCOELIMC_STR-SUPPLIER sy-vline
WA_ICCINTCOELIMC_STR-MATERIAL sy-vline
WA_ICCINTCOELIMC_STR-PLANT sy-vline
WA_ICCINTCOELIMC_STR-FINANCIALTRANSACTIONTYPE sy-vline
WA_ICCINTCOELIMC_STR-WBSELEMENTINTERNALID sy-vline
WA_ICCINTCOELIMC_STR-WBSELEMENT sy-vline
WA_ICCINTCOELIMC_STR-PROJECT sy-vline
WA_ICCINTCOELIMC_STR-BILLINGDOCUMENTTYPE sy-vline
WA_ICCINTCOELIMC_STR-SALESORGANIZATION sy-vline
WA_ICCINTCOELIMC_STR-DISTRIBUTIONCHANNEL sy-vline
WA_ICCINTCOELIMC_STR-ORGANIZATIONDIVISION sy-vline
WA_ICCINTCOELIMC_STR-MATERIALGROUP sy-vline
WA_ICCINTCOELIMC_STR-SOLDPRODUCT sy-vline
WA_ICCINTCOELIMC_STR-SOLDPRODUCTGROUP sy-vline
WA_ICCINTCOELIMC_STR-CUSTOMERGROUP sy-vline
WA_ICCINTCOELIMC_STR-CUSTOMERSUPPLIERCOUNTRY sy-vline
WA_ICCINTCOELIMC_STR-CUSTOMERSUPPLIERINDUSTRY sy-vline
WA_ICCINTCOELIMC_STR-SALESDISTRICT sy-vline
WA_ICCINTCOELIMC_STR-BILLTOPARTY sy-vline
WA_ICCINTCOELIMC_STR-SHIPTOPARTY sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONRECORDNUMBER sy-vline
WA_ICCINTCOELIMC_STR-CONSOLIDATIONREPORTINGITEM sy-vline
WA_ICCINTCOELIMC_STR-CNSLDTNINTCORECNCLNTHLDAMT sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.