ABAP Select data from SAP table CCOSREVREASSITM 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 CCOSREVREASSITM 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 CCOSREVREASSITM. 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 CCOSREVREASSITM 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_CCOSREVREASSITM TYPE STANDARD TABLE OF CCOSREVREASSITM,
      WA_CCOSREVREASSITM TYPE CCOSREVREASSITM,
      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: <CCOSREVREASSITM> TYPE CCOSREVREASSITM.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM CCOSREVREASSITM
*  INTO TABLE @DATA(IT_CCOSREVREASSITM2).
*--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_CCOSREVREASSITM INDEX 1 INTO DATA(WA_CCOSREVREASSITM2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_CCOSREVREASSITM ASSIGNING <CCOSREVREASSITM>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<CCOSREVREASSITM>-MANDT = 1.
<CCOSREVREASSITM>-FISCALYEAR = 1.
<CCOSREVREASSITM>-REFERENCEDOCUMENT = 1.
<CCOSREVREASSITM>-CONTROLLINGAREA = 1.
<CCOSREVREASSITM>-COMPANYCODE = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_CCOSREVREASSITM-LEDGERGLLINEITEM, sy-vline,
WA_CCOSREVREASSITM-REFERENCEDOCUMENTITEM, sy-vline,
WA_CCOSREVREASSITM-FISCALYEARFOREDIT, sy-vline,
WA_CCOSREVREASSITM-REFERENCEDOCUMENTFOREDIT, sy-vline,
WA_CCOSREVREASSITM-CONTROLLINGAREAFOREDIT, sy-vline,
WA_CCOSREVREASSITM-COMPANYCODEFOREDIT, sy-vline.
ENDLOOP. *Add any further fields from structure WA_CCOSREVREASSITM 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_CCOSREVREASSITM 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_CCOSREVREASSITM INTO WA_CCOSREVREASSITM. *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 FISCALYEAR CALL FUNCTION 'CONVERSION_EXIT_GJAHR_OUTPUT' EXPORTING input = WA_CCOSREVREASSITM-FISCALYEAR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CCOSREVREASSITM-FISCALYEAR.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

*Conversion exit ABPSP, internal->external for field PARTNERWBSELEMENTINTERNALID CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' EXPORTING input = WA_CCOSREVREASSITM-PARTNERWBSELEMENTINTERNALID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CCOSREVREASSITM-PARTNERWBSELEMENTINTERNALID.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit NUMCV, internal->external for field PARTNERPROJECTNETWORKACTIVITY CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_CCOSREVREASSITM-PARTNERPROJECTNETWORKACTIVITY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CCOSREVREASSITM-PARTNERPROJECTNETWORKACTIVITY.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit NUMCV, internal->external for field RELATEDNETWORKACTIVITY CALL FUNCTION 'CONVERSION_EXIT_NUMCV_OUTPUT' EXPORTING input = WA_CCOSREVREASSITM-RELATEDNETWORKACTIVITY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CCOSREVREASSITM-RELATEDNETWORKACTIVITY.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit ALPHA, internal->external for field REALESTATECONTRACT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_CCOSREVREASSITM-REALESTATECONTRACT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_CCOSREVREASSITM-REALESTATECONTRACT.
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_CCOSREVREASSITM_STR,
MANDT TYPE STRING,
FISCALYEAR TYPE STRING,
REFERENCEDOCUMENT TYPE STRING,
CONTROLLINGAREA TYPE STRING,
COMPANYCODE TYPE STRING,
LEDGERGLLINEITEM TYPE STRING,
REFERENCEDOCUMENTITEM TYPE STRING,
FISCALYEARFOREDIT TYPE STRING,
REFERENCEDOCUMENTFOREDIT TYPE STRING,
CONTROLLINGAREAFOREDIT TYPE STRING,
COMPANYCODEFOREDIT TYPE STRING,
COMPANYCODENAME TYPE STRING,
LEDGERGLLINEITEMFOREDIT TYPE STRING,
REFERENCEDOCUMENTITEMFOREDIT TYPE STRING,
DOCUMENTITEMTEXT TYPE STRING,
GLACCOUNT TYPE STRING,
GLACCOUNTNAME TYPE STRING,
ACCOUNTASSIGNMENT TYPE STRING,
ACCOUNTASSIGNMENTTYPE TYPE STRING,
ACCOUNTASSIGNMENTTYPEDESC TYPE STRING,
PARTNERACCOUNTASSIGNMENT TYPE STRING,
PARTNERACCOUNTASSIGNMENTTYPE TYPE STRING,
PARTACCOUNTASSIGNMENTTYPEDESC TYPE STRING,
COSTCTRACTIVITYTYPE TYPE STRING,
COSTCTRACTIVITYTYPENAME TYPE STRING,
PARTNERCOSTCENTER TYPE STRING,
PARTNERCOSTCENTERNAME TYPE STRING,
PARTNERCOSTCTRACTIVITYTYPE TYPE STRING,
PARTNERCOSTCTRACTIVITYTYPENAME TYPE STRING,
ORIGINCOSTCENTER TYPE STRING,
COSTCENTERNAME TYPE STRING,
PARTNERWBSELEMENT TYPE STRING,
PARTNERWBSELEMENTINTERNALID TYPE STRING,
WBSDESCRIPTION TYPE STRING,
WBSELEMENT TYPE STRING,
WBSELEMENTINTERNALID TYPE STRING,
PARTNERWBSELEMENTDESCRIPTION TYPE STRING,
PARTNERSERVICEDOCUMENTTYPE TYPE STRING,
PARTNERSERVICEDOCUMENT TYPE STRING,
PARTNERSERVICEDOCUMENTITEM TYPE STRING,
SERVICEDOCUMENTTYPE TYPE STRING,
SERVICEDOCUMENT TYPE STRING,
SERVICEDOCUMENTITEM TYPE STRING,
PARTNERPROJECTNETWORK TYPE STRING,
PARTNERPROJECTNETWORKACTIVITY TYPE STRING,
PROJECTNETWORK TYPE STRING,
RELATEDNETWORKACTIVITY TYPE STRING,
PARTNERORDER TYPE STRING,
ORDERID TYPE STRING,
PARTNERORDEROPERATION TYPE STRING,
ORDEROPERATION TYPE STRING,
PARTNERCOSTOBJECT TYPE STRING,
COSTOBJECT TYPE STRING,
PARTNERSALESDOCUMENT TYPE STRING,
PARTNERSALESDOCUMENTITEM TYPE STRING,
SALESDOCUMENT TYPE STRING,
SALESDOCUMENTITEM TYPE STRING,
PERSONNELNUMBER TYPE STRING,
PARTNERBUSINESSPROCESS TYPE STRING,
BUSINESSPROCESS TYPE STRING,
JOINTVENTURECOSTRECOVERYCODE TYPE STRING,
SENDERCOSTRECOVERYCODE TYPE STRING,
FUND TYPE STRING,
FUNCTIONALAREA TYPE STRING,
GRANTID TYPE STRING,
BUDGETPERIOD TYPE STRING,
PARTNERFUND TYPE STRING,
PARTNERFUNCTIONALAREA TYPE STRING,
PARTNERGRANT TYPE STRING,
PARTNERBUDGETPERIOD TYPE STRING,
FUNDNAME TYPE STRING,
RECEIVERPOSTEDFUNDNAME TYPE STRING,
GRANTNAME TYPE STRING,
RECEIVERPOSTEDGRANTNAME TYPE STRING,
BUDGETPERIODNAME TYPE STRING,
RECEIVERPOSTEDBUDGETPERIODNAME TYPE STRING,
FUNCTIONALAREANAME TYPE STRING,
PARTNERFUNCTIONALAREANAME TYPE STRING,
SENDERCOMPANYCODE TYPE STRING,
SOURCECOMPANYCODENAME TYPE STRING,
COSTREVENUEREASSIGNMENTACTION TYPE STRING,
STATUS TYPE STRING,
RCVRACCTGINDCODE TYPE STRING,
ACCOUNTINGINDICATORNAME TYPE STRING,
BILLABLECONTROL TYPE STRING,
BILLABLECONTROLNAME TYPE STRING,
BASEUNIT TYPE STRING,
UNITOFMEASURENAME TYPE STRING,
QUANTITY TYPE STRING,
TRANSACTIONCURRENCY TYPE STRING,
AMOUNTINTRANSACTIONCURRENCY TYPE STRING,
COMPANYCODECURRENCY TYPE STRING,
AMOUNTINCOMPANYCODECURRENCY TYPE STRING,
GLOBALCURRENCY TYPE STRING,
AMOUNTINGLOBALCURRENCY TYPE STRING,
FREEDEFINEDCURRENCY1 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY1 TYPE STRING,
FREEDEFINEDCURRENCY2 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY2 TYPE STRING,
FREEDEFINEDCURRENCY3 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY3 TYPE STRING,
FREEDEFINEDCURRENCY4 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY4 TYPE STRING,
FREEDEFINEDCURRENCY5 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY5 TYPE STRING,
FREEDEFINEDCURRENCY6 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY6 TYPE STRING,
FREEDEFINEDCURRENCY7 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY7 TYPE STRING,
FREEDEFINEDCURRENCY8 TYPE STRING,
AMOUNTINFREEDEFINEDCURRENCY8 TYPE STRING,
FUNCTIONALCURRENCY TYPE STRING,
AMOUNTINFUNCTIONALCURRENCY TYPE STRING,
CHARTOFACCOUNTS TYPE STRING,
POSTINGDATE TYPE STRING,
CONTROLLINGBUSTRANSACTYPE TYPE STRING,
PARTNERPROFITABILITYSEGMENT TYPE STRING,
PROFITABILITYSEGMENT TYPE STRING,
PARTPROFITABILITYSGMTISASSGD TYPE STRING,
PROFITABILITYSEGMENTISASSIGNED TYPE STRING,
OPERATINGCONCERN TYPE STRING,
RECEIVERRECOMPANYCODE TYPE STRING,
REPARTNERBUSINESSENTITY TYPE STRING,
REALESTATEPARTNERBUILDING TYPE STRING,
REALESTATEPARTNERPROPERTY TYPE STRING,
REPARTNERRENTALOBJECT TYPE STRING,
REALESTATEPARTNERCONTRACT TYPE STRING,
REPARTNERSERVICECHARGEKEY TYPE STRING,
REPARTNERSETTLEMENTUNITID TYPE STRING,
PARTNERSETTLEMENTREFERENCEDATE TYPE STRING,
SENDERRECOMPANYCODE TYPE STRING,
REBUSINESSENTITY TYPE STRING,
REALESTATEBUILDING TYPE STRING,
REALESTATEPROPERTY TYPE STRING,
RERENTALOBJECT TYPE STRING,
REALESTATECONTRACT TYPE STRING,
RESERVICECHARGEKEY TYPE STRING,
RESETTLEMENTUNITID TYPE STRING,
SETTLEMENTREFERENCEDATE TYPE STRING,END OF T_EKKO_STR. DATA: WA_CCOSREVREASSITM_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_CCOSREVREASSITM_STR-MANDT sy-vline
WA_CCOSREVREASSITM_STR-FISCALYEAR sy-vline
WA_CCOSREVREASSITM_STR-REFERENCEDOCUMENT sy-vline
WA_CCOSREVREASSITM_STR-CONTROLLINGAREA sy-vline
WA_CCOSREVREASSITM_STR-COMPANYCODE sy-vline
WA_CCOSREVREASSITM_STR-LEDGERGLLINEITEM sy-vline
WA_CCOSREVREASSITM_STR-REFERENCEDOCUMENTITEM sy-vline
WA_CCOSREVREASSITM_STR-FISCALYEARFOREDIT sy-vline
WA_CCOSREVREASSITM_STR-REFERENCEDOCUMENTFOREDIT sy-vline
WA_CCOSREVREASSITM_STR-CONTROLLINGAREAFOREDIT sy-vline
WA_CCOSREVREASSITM_STR-COMPANYCODEFOREDIT sy-vline
WA_CCOSREVREASSITM_STR-COMPANYCODENAME sy-vline
WA_CCOSREVREASSITM_STR-LEDGERGLLINEITEMFOREDIT sy-vline
WA_CCOSREVREASSITM_STR-REFERENCEDOCUMENTITEMFOREDIT sy-vline
WA_CCOSREVREASSITM_STR-DOCUMENTITEMTEXT sy-vline
WA_CCOSREVREASSITM_STR-GLACCOUNT sy-vline
WA_CCOSREVREASSITM_STR-GLACCOUNTNAME sy-vline
WA_CCOSREVREASSITM_STR-ACCOUNTASSIGNMENT sy-vline
WA_CCOSREVREASSITM_STR-ACCOUNTASSIGNMENTTYPE sy-vline
WA_CCOSREVREASSITM_STR-ACCOUNTASSIGNMENTTYPEDESC sy-vline
WA_CCOSREVREASSITM_STR-PARTNERACCOUNTASSIGNMENT sy-vline
WA_CCOSREVREASSITM_STR-PARTNERACCOUNTASSIGNMENTTYPE sy-vline
WA_CCOSREVREASSITM_STR-PARTACCOUNTASSIGNMENTTYPEDESC sy-vline
WA_CCOSREVREASSITM_STR-COSTCTRACTIVITYTYPE sy-vline
WA_CCOSREVREASSITM_STR-COSTCTRACTIVITYTYPENAME sy-vline
WA_CCOSREVREASSITM_STR-PARTNERCOSTCENTER sy-vline
WA_CCOSREVREASSITM_STR-PARTNERCOSTCENTERNAME sy-vline
WA_CCOSREVREASSITM_STR-PARTNERCOSTCTRACTIVITYTYPE sy-vline
WA_CCOSREVREASSITM_STR-PARTNERCOSTCTRACTIVITYTYPENAME sy-vline
WA_CCOSREVREASSITM_STR-ORIGINCOSTCENTER sy-vline
WA_CCOSREVREASSITM_STR-COSTCENTERNAME sy-vline
WA_CCOSREVREASSITM_STR-PARTNERWBSELEMENT sy-vline
WA_CCOSREVREASSITM_STR-PARTNERWBSELEMENTINTERNALID sy-vline
WA_CCOSREVREASSITM_STR-WBSDESCRIPTION sy-vline
WA_CCOSREVREASSITM_STR-WBSELEMENT sy-vline
WA_CCOSREVREASSITM_STR-WBSELEMENTINTERNALID sy-vline
WA_CCOSREVREASSITM_STR-PARTNERWBSELEMENTDESCRIPTION sy-vline
WA_CCOSREVREASSITM_STR-PARTNERSERVICEDOCUMENTTYPE sy-vline
WA_CCOSREVREASSITM_STR-PARTNERSERVICEDOCUMENT sy-vline
WA_CCOSREVREASSITM_STR-PARTNERSERVICEDOCUMENTITEM sy-vline
WA_CCOSREVREASSITM_STR-SERVICEDOCUMENTTYPE sy-vline
WA_CCOSREVREASSITM_STR-SERVICEDOCUMENT sy-vline
WA_CCOSREVREASSITM_STR-SERVICEDOCUMENTITEM sy-vline
WA_CCOSREVREASSITM_STR-PARTNERPROJECTNETWORK sy-vline
WA_CCOSREVREASSITM_STR-PARTNERPROJECTNETWORKACTIVITY sy-vline
WA_CCOSREVREASSITM_STR-PROJECTNETWORK sy-vline
WA_CCOSREVREASSITM_STR-RELATEDNETWORKACTIVITY sy-vline
WA_CCOSREVREASSITM_STR-PARTNERORDER sy-vline
WA_CCOSREVREASSITM_STR-ORDERID sy-vline
WA_CCOSREVREASSITM_STR-PARTNERORDEROPERATION sy-vline
WA_CCOSREVREASSITM_STR-ORDEROPERATION sy-vline
WA_CCOSREVREASSITM_STR-PARTNERCOSTOBJECT sy-vline
WA_CCOSREVREASSITM_STR-COSTOBJECT sy-vline
WA_CCOSREVREASSITM_STR-PARTNERSALESDOCUMENT sy-vline
WA_CCOSREVREASSITM_STR-PARTNERSALESDOCUMENTITEM sy-vline
WA_CCOSREVREASSITM_STR-SALESDOCUMENT sy-vline
WA_CCOSREVREASSITM_STR-SALESDOCUMENTITEM sy-vline
WA_CCOSREVREASSITM_STR-PERSONNELNUMBER sy-vline
WA_CCOSREVREASSITM_STR-PARTNERBUSINESSPROCESS sy-vline
WA_CCOSREVREASSITM_STR-BUSINESSPROCESS sy-vline
WA_CCOSREVREASSITM_STR-JOINTVENTURECOSTRECOVERYCODE sy-vline
WA_CCOSREVREASSITM_STR-SENDERCOSTRECOVERYCODE sy-vline
WA_CCOSREVREASSITM_STR-FUND sy-vline
WA_CCOSREVREASSITM_STR-FUNCTIONALAREA sy-vline
WA_CCOSREVREASSITM_STR-GRANTID sy-vline
WA_CCOSREVREASSITM_STR-BUDGETPERIOD sy-vline
WA_CCOSREVREASSITM_STR-PARTNERFUND sy-vline
WA_CCOSREVREASSITM_STR-PARTNERFUNCTIONALAREA sy-vline
WA_CCOSREVREASSITM_STR-PARTNERGRANT sy-vline
WA_CCOSREVREASSITM_STR-PARTNERBUDGETPERIOD sy-vline
WA_CCOSREVREASSITM_STR-FUNDNAME sy-vline
WA_CCOSREVREASSITM_STR-RECEIVERPOSTEDFUNDNAME sy-vline
WA_CCOSREVREASSITM_STR-GRANTNAME sy-vline
WA_CCOSREVREASSITM_STR-RECEIVERPOSTEDGRANTNAME sy-vline
WA_CCOSREVREASSITM_STR-BUDGETPERIODNAME sy-vline
WA_CCOSREVREASSITM_STR-RECEIVERPOSTEDBUDGETPERIODNAME sy-vline
WA_CCOSREVREASSITM_STR-FUNCTIONALAREANAME sy-vline
WA_CCOSREVREASSITM_STR-PARTNERFUNCTIONALAREANAME sy-vline
WA_CCOSREVREASSITM_STR-SENDERCOMPANYCODE sy-vline
WA_CCOSREVREASSITM_STR-SOURCECOMPANYCODENAME sy-vline
WA_CCOSREVREASSITM_STR-COSTREVENUEREASSIGNMENTACTION sy-vline
WA_CCOSREVREASSITM_STR-STATUS sy-vline
WA_CCOSREVREASSITM_STR-RCVRACCTGINDCODE sy-vline
WA_CCOSREVREASSITM_STR-ACCOUNTINGINDICATORNAME sy-vline
WA_CCOSREVREASSITM_STR-BILLABLECONTROL sy-vline
WA_CCOSREVREASSITM_STR-BILLABLECONTROLNAME sy-vline
WA_CCOSREVREASSITM_STR-BASEUNIT sy-vline
WA_CCOSREVREASSITM_STR-UNITOFMEASURENAME sy-vline
WA_CCOSREVREASSITM_STR-QUANTITY sy-vline
WA_CCOSREVREASSITM_STR-TRANSACTIONCURRENCY sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINTRANSACTIONCURRENCY sy-vline
WA_CCOSREVREASSITM_STR-COMPANYCODECURRENCY sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINCOMPANYCODECURRENCY sy-vline
WA_CCOSREVREASSITM_STR-GLOBALCURRENCY sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINGLOBALCURRENCY sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY1 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY1 sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY2 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY2 sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY3 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY3 sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY4 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY4 sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY5 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY5 sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY6 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY6 sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY7 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY7 sy-vline
WA_CCOSREVREASSITM_STR-FREEDEFINEDCURRENCY8 sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFREEDEFINEDCURRENCY8 sy-vline
WA_CCOSREVREASSITM_STR-FUNCTIONALCURRENCY sy-vline
WA_CCOSREVREASSITM_STR-AMOUNTINFUNCTIONALCURRENCY sy-vline
WA_CCOSREVREASSITM_STR-CHARTOFACCOUNTS sy-vline
WA_CCOSREVREASSITM_STR-POSTINGDATE sy-vline
WA_CCOSREVREASSITM_STR-CONTROLLINGBUSTRANSACTYPE sy-vline
WA_CCOSREVREASSITM_STR-PARTNERPROFITABILITYSEGMENT sy-vline
WA_CCOSREVREASSITM_STR-PROFITABILITYSEGMENT sy-vline
WA_CCOSREVREASSITM_STR-PARTPROFITABILITYSGMTISASSGD sy-vline
WA_CCOSREVREASSITM_STR-PROFITABILITYSEGMENTISASSIGNED sy-vline
WA_CCOSREVREASSITM_STR-OPERATINGCONCERN sy-vline
WA_CCOSREVREASSITM_STR-RECEIVERRECOMPANYCODE sy-vline
WA_CCOSREVREASSITM_STR-REPARTNERBUSINESSENTITY sy-vline
WA_CCOSREVREASSITM_STR-REALESTATEPARTNERBUILDING sy-vline
WA_CCOSREVREASSITM_STR-REALESTATEPARTNERPROPERTY sy-vline
WA_CCOSREVREASSITM_STR-REPARTNERRENTALOBJECT sy-vline
WA_CCOSREVREASSITM_STR-REALESTATEPARTNERCONTRACT sy-vline
WA_CCOSREVREASSITM_STR-REPARTNERSERVICECHARGEKEY sy-vline
WA_CCOSREVREASSITM_STR-REPARTNERSETTLEMENTUNITID sy-vline
WA_CCOSREVREASSITM_STR-PARTNERSETTLEMENTREFERENCEDATE sy-vline
WA_CCOSREVREASSITM_STR-SENDERRECOMPANYCODE sy-vline
WA_CCOSREVREASSITM_STR-REBUSINESSENTITY sy-vline
WA_CCOSREVREASSITM_STR-REALESTATEBUILDING sy-vline
WA_CCOSREVREASSITM_STR-REALESTATEPROPERTY sy-vline
WA_CCOSREVREASSITM_STR-RERENTALOBJECT sy-vline
WA_CCOSREVREASSITM_STR-REALESTATECONTRACT sy-vline
WA_CCOSREVREASSITM_STR-RESERVICECHARGEKEY sy-vline
WA_CCOSREVREASSITM_STR-RESETTLEMENTUNITID sy-vline
WA_CCOSREVREASSITM_STR-SETTLEMENTREFERENCEDATE sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.