ABAP Select data from SAP table /LIME/COLL_W2IM 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 /LIME/COLL_W2IM 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 /LIME/COLL_W2IM. 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 /LIME/COLL_W2IM 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_/LIME/COLL_W2IM TYPE STANDARD TABLE OF /LIME/COLL_W2IM,
      WA_/LIME/COLL_W2IM TYPE /LIME/COLL_W2IM,
      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: </LIME/COLL_W2IM> TYPE /LIME/COLL_W2IM.

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

SELECT *
*restrict ABAP select to first 10 rows
 UP TO 10 ROWS      
  FROM /LIME/COLL_W2IM
  INTO TABLE IT_/LIME/COLL_W2IM.

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM /LIME/COLL_W2IM
*  INTO TABLE @DATA(IT_/LIME/COLL_W2IM2).
*--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_/LIME/COLL_W2IM INDEX 1 INTO DATA(WA_/LIME/COLL_W2IM2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/LIME/COLL_W2IM ASSIGNING </LIME/COLL_W2IM>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</LIME/COLL_W2IM>-MANDT = 1.
</LIME/COLL_W2IM>-GUID_COLL = 1.
</LIME/COLL_W2IM>-GUID_DISPATCH = 1.
</LIME/COLL_W2IM>-DISPATCH_TIME = 1.
</LIME/COLL_W2IM>-GUID_PN = 1.
ENDLOOP.

LOOP AT IT_/LIME/COLL_W2IM INTO WA_/LIME/COLL_W2IM.
*Write horizonal line to screen report.
  WRITE:/ sy-uline.

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/LIME/COLL_W2IM-EXT_DOC, sy-vline,
WA_/LIME/COLL_W2IM-PROCESS_TYPE, sy-vline,
WA_/LIME/COLL_W2IM-ID, sy-vline,
WA_/LIME/COLL_W2IM-ID_PARENT, sy-vline,
WA_/LIME/COLL_W2IM-ID_GROUP, sy-vline,
WA_/LIME/COLL_W2IM-DIRECTION, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/LIME/COLL_W2IM 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_/LIME/COLL_W2IM 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_/LIME/COLL_W2IM INTO WA_/LIME/COLL_W2IM. *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 PARTNER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-PARTNER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-PARTNER.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit MATN1, internal->external for field MATNR CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-MATNR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-MATNR.
WRITE:/ 'New Value:', ld_input.

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

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

*Conversion exit ABPSN, internal->external for field WBS_STOCK CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-WBS_STOCK IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-WBS_STOCK.
WRITE:/ 'New Value:', ld_input.

*Conversion exit MDLPD, internal->external for field MATID CALL FUNCTION 'CONVERSION_EXIT_MDLPD_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-MATID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-MATID.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit HUID, internal->external for field HUIDENT CALL FUNCTION 'CONVERSION_EXIT_HUID_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-HUIDENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-HUIDENT.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

*Conversion exit ABPSN, internal->external for field WBS_ELEMENT CALL FUNCTION 'CONVERSION_EXIT_ABPSN_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-WBS_ELEMENT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-WBS_ELEMENT.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit FMCIS, internal->external for field CMMT_ITEM CALL FUNCTION 'CONVERSION_EXIT_FMCIS_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-CMMT_ITEM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-CMMT_ITEM.
WRITE:/ 'New Value:', ld_input.

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

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

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

*Conversion exit ALPH0, internal->external for field TANUM CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-TANUM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-TANUM.
WRITE:/ 'New Value:', ld_input.

*Conversion exit ALPH0, internal->external for field TAPOS CALL FUNCTION 'CONVERSION_EXIT_ALPH0_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-TAPOS IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-TAPOS.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit CUNIT, internal->external for field ERPBASEUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/LIME/COLL_W2IM-ERPBASEUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/LIME/COLL_W2IM-ERPBASEUNIT.
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_/LIME/COLL_W2IM_STR,
MANDT TYPE STRING,
GUID_COLL TYPE STRING,
GUID_DISPATCH TYPE STRING,
DISPATCH_TIME TYPE STRING,
GUID_PN TYPE STRING,
EXT_DOC TYPE STRING,
PROCESS_TYPE TYPE STRING,
ID TYPE STRING,
ID_PARENT TYPE STRING,
ID_GROUP TYPE STRING,
DIRECTION TYPE STRING,
REVERSE_MODE TYPE STRING,
ISSUE_ALL TYPE STRING,
TIMESTAMP TYPE STRING,
TIMESTAMP_END TYPE STRING,
NOTE TYPE STRING,
REASON TYPE STRING,
EXT_VALUE TYPE STRING,
EXT_VALUE_CURR TYPE STRING,
VSI TYPE STRING,
IC_DESCRIP TYPE STRING,
EEW_DUMMY TYPE STRING,
ACTION_TYPE TYPE STRING,
TARGET TYPE STRING,
IDX_LOC TYPE STRING,
GUID_LOC TYPE STRING,
WERKS TYPE STRING,
LGORT TYPE STRING,
GLN TYPE STRING,
DUNS4 TYPE STRING,
LOCID TYPE STRING,
APO_LOCNO TYPE STRING,
PARTNER TYPE STRING,
PARTNER_ROLE TYPE STRING,
MOTID TYPE STRING,
MOTSCODE TYPE STRING,
LGNUM TYPE STRING,
LGTYP TYPE STRING,
LGPLA TYPE STRING,
RSRC TYPE STRING,
TU_NUM TYPE STRING,
LGNUM_VIEW TYPE STRING,
IDX_STOCK TYPE STRING,
GUID_STOCK TYPE STRING,
MATNR TYPE STRING,
CHARG TYPE STRING,
OWNER TYPE STRING,
OWNER_ROLE TYPE STRING,
GTIN TYPE STRING,
GTIN_VARIANT TYPE STRING,
CAT TYPE STRING,
STOCK_USAGE TYPE STRING,
SALES_ORD_STOCK TYPE STRING,
S_ORD_ITEM_STOCK TYPE STRING,
WBS_STOCK TYPE STRING,
VRSIOID TYPE STRING,
PRDID TYPE STRING,
APO_MATNR TYPE STRING,
LGNUM_STOCK TYPE STRING,
MATID TYPE STRING,
BATCHID TYPE STRING,
STOCK_DOCCAT TYPE STRING,
STOCK_DOCNO TYPE STRING,
STOCK_ITMNO TYPE STRING,
DOCCAT TYPE STRING,
ENTITLED TYPE STRING,
ENTITLED_ROLE TYPE STRING,
STOCK_CNT TYPE STRING,
IDX_HU TYPE STRING,
GUID_HU TYPE STRING,
SSCC TYPE STRING,
LGNUM_HU TYPE STRING,
HUIDENT TYPE STRING,
VHI TYPE STRING,
QUAN TYPE STRING,
QUAN_PREV TYPE STRING,
PREV_IND TYPE STRING,
UNIT TYPE STRING,
STOCKUNIT TYPE STRING,
NOCALC TYPE STRING,
SERIALUNIT TYPE STRING,
VALUATIONUNIT TYPE STRING,
PO_NUMBER TYPE STRING,
PO_ITEM TYPE STRING,
PO_COMPLETE TYPE STRING,
ORDER_NUMBER TYPE STRING,
ORDER_ITEM TYPE STRING,
ORDER_COMPLETE TYPE STRING,
DELIVERY TYPE STRING,
DELIVERY_ITEM TYPE STRING,
DELIV_COMPLETE TYPE STRING,
MAT_DOC TYPE STRING,
MAT_DOC_YEAR TYPE STRING,
MAT_DOC_ITEM TYPE STRING,
RESERV_NO TYPE STRING,
RES_ITEM TYPE STRING,
RES_TYPE TYPE STRING,
RES_COMPLETE TYPE STRING,
TOP_LEVEL TYPE STRING,
GUID_COLL_GROUP TYPE STRING,
COSTCENTER TYPE STRING,
ORDERID TYPE STRING,
ORDER_ITNO TYPE STRING,
WBS_ELEMENT TYPE STRING,
NETWORK TYPE STRING,
SALES_ORD TYPE STRING,
SCHED_LINE TYPE STRING,
S_ORD_ITEM TYPE STRING,
ACTIVITY TYPE STRING,
CMMT_ITEM TYPE STRING,
ASSETMAINNO TYPE STRING,
ASSETSUBNO TYPE STRING,
FUNDS_CTR TYPE STRING,
GEBER TYPE STRING,
FUNC_AREA TYPE STRING,
ACTTYPE TYPE STRING,
GRANT_NBR TYPE STRING,
BADI_DUMMY TYPE STRING,
REF_DOC_ID TYPE STRING,
REF_DOC_TYPE TYPE STRING,
GMCAT TYPE STRING,
TANUM TYPE STRING,
TAPOS TYPE STRING,
GUID_COLL_SERI TYPE STRING,
VAS_GUID TYPE STRING,
ERPCWUNIT TYPE STRING,
ERPBASEUNIT TYPE STRING,
XCWERP TYPE STRING,END OF T_EKKO_STR. DATA: WA_/LIME/COLL_W2IM_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_/LIME/COLL_W2IM_STR-MANDT sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_COLL sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_DISPATCH sy-vline
WA_/LIME/COLL_W2IM_STR-DISPATCH_TIME sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_PN sy-vline
WA_/LIME/COLL_W2IM_STR-EXT_DOC sy-vline
WA_/LIME/COLL_W2IM_STR-PROCESS_TYPE sy-vline
WA_/LIME/COLL_W2IM_STR-ID sy-vline
WA_/LIME/COLL_W2IM_STR-ID_PARENT sy-vline
WA_/LIME/COLL_W2IM_STR-ID_GROUP sy-vline
WA_/LIME/COLL_W2IM_STR-DIRECTION sy-vline
WA_/LIME/COLL_W2IM_STR-REVERSE_MODE sy-vline
WA_/LIME/COLL_W2IM_STR-ISSUE_ALL sy-vline
WA_/LIME/COLL_W2IM_STR-TIMESTAMP sy-vline
WA_/LIME/COLL_W2IM_STR-TIMESTAMP_END sy-vline
WA_/LIME/COLL_W2IM_STR-NOTE sy-vline
WA_/LIME/COLL_W2IM_STR-REASON sy-vline
WA_/LIME/COLL_W2IM_STR-EXT_VALUE sy-vline
WA_/LIME/COLL_W2IM_STR-EXT_VALUE_CURR sy-vline
WA_/LIME/COLL_W2IM_STR-VSI sy-vline
WA_/LIME/COLL_W2IM_STR-IC_DESCRIP sy-vline
WA_/LIME/COLL_W2IM_STR-EEW_DUMMY sy-vline
WA_/LIME/COLL_W2IM_STR-ACTION_TYPE sy-vline
WA_/LIME/COLL_W2IM_STR-TARGET sy-vline
WA_/LIME/COLL_W2IM_STR-IDX_LOC sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_LOC sy-vline
WA_/LIME/COLL_W2IM_STR-WERKS sy-vline
WA_/LIME/COLL_W2IM_STR-LGORT sy-vline
WA_/LIME/COLL_W2IM_STR-GLN sy-vline
WA_/LIME/COLL_W2IM_STR-DUNS4 sy-vline
WA_/LIME/COLL_W2IM_STR-LOCID sy-vline
WA_/LIME/COLL_W2IM_STR-APO_LOCNO sy-vline
WA_/LIME/COLL_W2IM_STR-PARTNER sy-vline
WA_/LIME/COLL_W2IM_STR-PARTNER_ROLE sy-vline
WA_/LIME/COLL_W2IM_STR-MOTID sy-vline
WA_/LIME/COLL_W2IM_STR-MOTSCODE sy-vline
WA_/LIME/COLL_W2IM_STR-LGNUM sy-vline
WA_/LIME/COLL_W2IM_STR-LGTYP sy-vline
WA_/LIME/COLL_W2IM_STR-LGPLA sy-vline
WA_/LIME/COLL_W2IM_STR-RSRC sy-vline
WA_/LIME/COLL_W2IM_STR-TU_NUM sy-vline
WA_/LIME/COLL_W2IM_STR-LGNUM_VIEW sy-vline
WA_/LIME/COLL_W2IM_STR-IDX_STOCK sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_STOCK sy-vline
WA_/LIME/COLL_W2IM_STR-MATNR sy-vline
WA_/LIME/COLL_W2IM_STR-CHARG sy-vline
WA_/LIME/COLL_W2IM_STR-OWNER sy-vline
WA_/LIME/COLL_W2IM_STR-OWNER_ROLE sy-vline
WA_/LIME/COLL_W2IM_STR-GTIN sy-vline
WA_/LIME/COLL_W2IM_STR-GTIN_VARIANT sy-vline
WA_/LIME/COLL_W2IM_STR-CAT sy-vline
WA_/LIME/COLL_W2IM_STR-STOCK_USAGE sy-vline
WA_/LIME/COLL_W2IM_STR-SALES_ORD_STOCK sy-vline
WA_/LIME/COLL_W2IM_STR-S_ORD_ITEM_STOCK sy-vline
WA_/LIME/COLL_W2IM_STR-WBS_STOCK sy-vline
WA_/LIME/COLL_W2IM_STR-VRSIOID sy-vline
WA_/LIME/COLL_W2IM_STR-PRDID sy-vline
WA_/LIME/COLL_W2IM_STR-APO_MATNR sy-vline
WA_/LIME/COLL_W2IM_STR-LGNUM_STOCK sy-vline
WA_/LIME/COLL_W2IM_STR-MATID sy-vline
WA_/LIME/COLL_W2IM_STR-BATCHID sy-vline
WA_/LIME/COLL_W2IM_STR-STOCK_DOCCAT sy-vline
WA_/LIME/COLL_W2IM_STR-STOCK_DOCNO sy-vline
WA_/LIME/COLL_W2IM_STR-STOCK_ITMNO sy-vline
WA_/LIME/COLL_W2IM_STR-DOCCAT sy-vline
WA_/LIME/COLL_W2IM_STR-ENTITLED sy-vline
WA_/LIME/COLL_W2IM_STR-ENTITLED_ROLE sy-vline
WA_/LIME/COLL_W2IM_STR-STOCK_CNT sy-vline
WA_/LIME/COLL_W2IM_STR-IDX_HU sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_HU sy-vline
WA_/LIME/COLL_W2IM_STR-SSCC sy-vline
WA_/LIME/COLL_W2IM_STR-LGNUM_HU sy-vline
WA_/LIME/COLL_W2IM_STR-HUIDENT sy-vline
WA_/LIME/COLL_W2IM_STR-VHI sy-vline
WA_/LIME/COLL_W2IM_STR-QUAN sy-vline
WA_/LIME/COLL_W2IM_STR-QUAN_PREV sy-vline
WA_/LIME/COLL_W2IM_STR-PREV_IND sy-vline
WA_/LIME/COLL_W2IM_STR-UNIT sy-vline
WA_/LIME/COLL_W2IM_STR-STOCKUNIT sy-vline
WA_/LIME/COLL_W2IM_STR-NOCALC sy-vline
WA_/LIME/COLL_W2IM_STR-SERIALUNIT sy-vline
WA_/LIME/COLL_W2IM_STR-VALUATIONUNIT sy-vline
WA_/LIME/COLL_W2IM_STR-PO_NUMBER sy-vline
WA_/LIME/COLL_W2IM_STR-PO_ITEM sy-vline
WA_/LIME/COLL_W2IM_STR-PO_COMPLETE sy-vline
WA_/LIME/COLL_W2IM_STR-ORDER_NUMBER sy-vline
WA_/LIME/COLL_W2IM_STR-ORDER_ITEM sy-vline
WA_/LIME/COLL_W2IM_STR-ORDER_COMPLETE sy-vline
WA_/LIME/COLL_W2IM_STR-DELIVERY sy-vline
WA_/LIME/COLL_W2IM_STR-DELIVERY_ITEM sy-vline
WA_/LIME/COLL_W2IM_STR-DELIV_COMPLETE sy-vline
WA_/LIME/COLL_W2IM_STR-MAT_DOC sy-vline
WA_/LIME/COLL_W2IM_STR-MAT_DOC_YEAR sy-vline
WA_/LIME/COLL_W2IM_STR-MAT_DOC_ITEM sy-vline
WA_/LIME/COLL_W2IM_STR-RESERV_NO sy-vline
WA_/LIME/COLL_W2IM_STR-RES_ITEM sy-vline
WA_/LIME/COLL_W2IM_STR-RES_TYPE sy-vline
WA_/LIME/COLL_W2IM_STR-RES_COMPLETE sy-vline
WA_/LIME/COLL_W2IM_STR-TOP_LEVEL sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_COLL_GROUP sy-vline
WA_/LIME/COLL_W2IM_STR-COSTCENTER sy-vline
WA_/LIME/COLL_W2IM_STR-ORDERID sy-vline
WA_/LIME/COLL_W2IM_STR-ORDER_ITNO sy-vline
WA_/LIME/COLL_W2IM_STR-WBS_ELEMENT sy-vline
WA_/LIME/COLL_W2IM_STR-NETWORK sy-vline
WA_/LIME/COLL_W2IM_STR-SALES_ORD sy-vline
WA_/LIME/COLL_W2IM_STR-SCHED_LINE sy-vline
WA_/LIME/COLL_W2IM_STR-S_ORD_ITEM sy-vline
WA_/LIME/COLL_W2IM_STR-ACTIVITY sy-vline
WA_/LIME/COLL_W2IM_STR-CMMT_ITEM sy-vline
WA_/LIME/COLL_W2IM_STR-ASSETMAINNO sy-vline
WA_/LIME/COLL_W2IM_STR-ASSETSUBNO sy-vline
WA_/LIME/COLL_W2IM_STR-FUNDS_CTR sy-vline
WA_/LIME/COLL_W2IM_STR-GEBER sy-vline
WA_/LIME/COLL_W2IM_STR-FUNC_AREA sy-vline
WA_/LIME/COLL_W2IM_STR-ACTTYPE sy-vline
WA_/LIME/COLL_W2IM_STR-GRANT_NBR sy-vline
WA_/LIME/COLL_W2IM_STR-BADI_DUMMY sy-vline
WA_/LIME/COLL_W2IM_STR-REF_DOC_ID sy-vline
WA_/LIME/COLL_W2IM_STR-REF_DOC_TYPE sy-vline
WA_/LIME/COLL_W2IM_STR-GMCAT sy-vline
WA_/LIME/COLL_W2IM_STR-TANUM sy-vline
WA_/LIME/COLL_W2IM_STR-TAPOS sy-vline
WA_/LIME/COLL_W2IM_STR-GUID_COLL_SERI sy-vline
WA_/LIME/COLL_W2IM_STR-VAS_GUID sy-vline
WA_/LIME/COLL_W2IM_STR-ERPCWUNIT sy-vline
WA_/LIME/COLL_W2IM_STR-ERPBASEUNIT sy-vline
WA_/LIME/COLL_W2IM_STR-XCWERP sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.