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

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/SAPAPO/LOC_LOCOUT_STR ASSIGNING </SAPAPO/LOC_LOCOUT_STR>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</SAPAPO/LOC_LOCOUT_STR>-EXT_LOCNO = 1.
</SAPAPO/LOC_LOCOUT_STR>-LOCTYPE = 1.
</SAPAPO/LOC_LOCOUT_STR>-LOGQS = 1.
</SAPAPO/LOC_LOCOUT_STR>-LOCID = 1.
</SAPAPO/LOC_LOCOUT_STR>-LOCNO = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/SAPAPO/LOC_LOCOUT_STR-GLN, sy-vline,
WA_/SAPAPO/LOC_LOCOUT_STR-DUNS4, sy-vline,
WA_/SAPAPO/LOC_LOCOUT_STR-UNLOCODE, sy-vline,
WA_/SAPAPO/LOC_LOCOUT_STR-IATACODE, sy-vline,
WA_/SAPAPO/LOC_LOCOUT_STR-TZONE, sy-vline,
WA_/SAPAPO/LOC_LOCOUT_STR-LVORM, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SAPAPO/LOC_LOCOUT_STR 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_/SAPAPO/LOC_LOCOUT_STR 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_/SAPAPO/LOC_LOCOUT_STR INTO WA_/SAPAPO/LOC_LOCOUT_STR. *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 ADRNUMMER CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SAPAPO/LOC_LOCOUT_STR-ADRNUMMER IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/LOC_LOCOUT_STR-ADRNUMMER.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTPS, internal->external for field GEO_VALIDITY_END CALL FUNCTION 'CONVERSION_EXIT_TSTPS_OUTPUT' EXPORTING input = WA_/SAPAPO/LOC_LOCOUT_STR-GEO_VALIDITY_END IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/LOC_LOCOUT_STR-GEO_VALIDITY_END.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

*Conversion exit TSTRN, internal->external for field DURAT CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/LOC_LOCOUT_STR-DURAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/LOC_LOCOUT_STR-DURAT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRN, internal->external for field OPTIME CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/LOC_LOCOUT_STR-OPTIME IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/LOC_LOCOUT_STR-OPTIME.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit TSTLC, internal->external for field CREATEUTC CALL FUNCTION 'CONVERSION_EXIT_TSTLC_OUTPUT' EXPORTING input = WA_/SAPAPO/LOC_LOCOUT_STR-CREATEUTC IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/LOC_LOCOUT_STR-CREATEUTC.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTLC, internal->external for field CHANGEUTC CALL FUNCTION 'CONVERSION_EXIT_TSTLC_OUTPUT' EXPORTING input = WA_/SAPAPO/LOC_LOCOUT_STR-CHANGEUTC IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/LOC_LOCOUT_STR-CHANGEUTC.
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_/SAPAPO/LOC_LOCOUT_STR_STR,
EXT_LOCNO TYPE STRING,
LOCTYPE TYPE STRING,
LOGQS TYPE STRING,
LOCID TYPE STRING,
LOCNO TYPE STRING,
GLN TYPE STRING,
DUNS4 TYPE STRING,
UNLOCODE TYPE STRING,
IATACODE TYPE STRING,
TZONE TYPE STRING,
LVORM TYPE STRING,
ADRNUMMER TYPE STRING,
SUBLOC TYPE STRING,
OSTA_FLAG TYPE STRING,
LOC_XBLCK TYPE STRING,
ARCH_INPROCESS TYPE STRING,
XPOS TYPE STRING,
YPOS TYPE STRING,
PRECISID TYPE STRING,
SRCID TYPE STRING,
ZPOS TYPE STRING,
GEO_VALIDITY_END TYPE STRING,
PPCAL TYPE STRING,
SDCAL TYPE STRING,
SHCAL TYPE STRING,
STCAL TYPE STRING,
RCCAL TYPE STRING,
PARTNER_NR TYPE STRING,
PARTNER_DSCR TYPE STRING,
EDI_PARTNER TYPE STRING,
PARTNER TYPE STRING,
PARTNER_GUID TYPE STRING,
SPERM TYPE STRING,
HANDL TYPE STRING,
HANDL_OUT TYPE STRING,
TIME_RES TYPE STRING,
TIME_RES_OUT TYPE STRING,
STORE TYPE STRING,
TPRES_INB TYPE STRING,
TPRES_OUT TYPE STRING,
RESFLAG TYPE STRING,
PRREG TYPE STRING,
LPRIO TYPE STRING,
LOCPRIO TYPE STRING,
STOCG TYPE STRING,
ATDDM TYPE STRING,
ATDSP TYPE STRING,
PUSH_FLG TYPE STRING,
STOCK_FLG TYPE STRING,
CONSOL_FLG TYPE STRING,
COMP_FLG TYPE STRING,
TRPCR_TIME TYPE STRING,
TRPCR_TIME_UNIT TYPE STRING,
COM_TIME TYPE STRING,
COM_TIME_UNIT TYPE STRING,
SETUPKEY TYPE STRING,
SCACD TYPE STRING,
CONT_MV TYPE STRING,
DURAT TYPE STRING,
PERF_PCT TYPE STRING,
FVISIT TYPE STRING,
LVISIT TYPE STRING,
KOSCH TYPE STRING,
ATTLO01 TYPE STRING,
ATTLO02 TYPE STRING,
ATTLO03 TYPE STRING,
ATTLO04 TYPE STRING,
ATTLO05 TYPE STRING,
SUBCON_PLANT TYPE STRING,
SUBCON_SUPPLIER TYPE STRING,
PRCIND TYPE STRING,
OPTIME TYPE STRING,
PROMUP TYPE STRING,
PROMDOWN TYPE STRING,
COSTMULTUPPROM TYPE STRING,
COSTMULTDOWNPROM TYPE STRING,
NIELSEN TYPE STRING,
STORCAPA TYPE STRING,
STORCAPA_UNIT TYPE STRING,
CREATEUSER TYPE STRING,
CREATEUTC TYPE STRING,
CHANGEUSER TYPE STRING,
CHANGEUTC TYPE STRING,
XCOORD_DEGREE TYPE STRING,
XCOORD_MINUTES TYPE STRING,
XCOORD_SECONDS TYPE STRING,
YCOORD_DEGREE TYPE STRING,
YCOORD_MINUTES TYPE STRING,
YCOORD_SECONDS TYPE STRING,
ZCOORD_METER TYPE STRING,
XCOORD_SIGN TYPE STRING,
YCOORD_SIGN TYPE STRING,
ZCOORD_SIGN TYPE STRING,
HANDL_NAME TYPE STRING,
TPRES_NAME_INB TYPE STRING,
TPRES_NAME_OUT TYPE STRING,
HANDL_NAME_INBOUND TYPE STRING,
HANDL_NAME_OUTBOUND TYPE STRING,
HANDL_NAME_TIME TYPE STRING,
HANDL_NAME_TIME_OUT TYPE STRING,
STORE_NAME TYPE STRING,
RADIO1 TYPE STRING,
RADIO2 TYPE STRING,
RADIO3 TYPE STRING,
FURTHER_RES TYPE STRING,
TRANSPORTZONE TYPE STRING,
TP_DESCR40 TYPE STRING,
CREATEDATE TYPE STRING,
CHANGEDATE TYPE STRING,
DECONS TYPE STRING,
PROTS TYPE STRING,
PROBASE TYPE STRING,
PROOQO TYPE STRING,
PROBEXC TYPE STRING,
PROSUIRESP TYPE STRING,
TEMPRPBLOCK TYPE STRING,
PROBICONS TYPE STRING,
TEMPRPDATFROM TYPE STRING,
TEMPRPDATTO TYPE STRING,
TEMPRPFROM TYPE STRING,
TEMPRPTO TYPE STRING,
DPCAL TYPE STRING,
CAPPARM TYPE STRING,
CAPPARM_RCV TYPE STRING,
LGRAD TYPE STRING,
BNTYP TYPE STRING,
DISTR TYPE STRING,
TRAILER_HANDLING TYPE STRING,
LOCLOADPROFILE TYPE STRING,
ATTEQUIPROFILE TYPE STRING,
SHIPPER_SEC_STS TYPE STRING,
SHIPPER_CODE TYPE STRING,
SHIPPER_VALIDITY TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SAPAPO/LOC_LOCOUT_STR_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_/SAPAPO/LOC_LOCOUT_STR_STR-EXT_LOCNO sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LOCTYPE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LOGQS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LOCID sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LOCNO sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-GLN sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-DUNS4 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-UNLOCODE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-IATACODE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TZONE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LVORM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ADRNUMMER sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SUBLOC sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-OSTA_FLAG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LOC_XBLCK sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ARCH_INPROCESS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-XPOS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-YPOS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PRECISID sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SRCID sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ZPOS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-GEO_VALIDITY_END sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PPCAL sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SDCAL sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SHCAL sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-STCAL sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-RCCAL sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PARTNER_NR sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PARTNER_DSCR sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-EDI_PARTNER sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PARTNER sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PARTNER_GUID sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SPERM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-HANDL sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-HANDL_OUT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TIME_RES sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TIME_RES_OUT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-STORE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TPRES_INB sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TPRES_OUT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-RESFLAG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PRREG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LPRIO sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LOCPRIO sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-STOCG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATDDM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATDSP sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PUSH_FLG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-STOCK_FLG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CONSOL_FLG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-COMP_FLG sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TRPCR_TIME sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TRPCR_TIME_UNIT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-COM_TIME sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-COM_TIME_UNIT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SETUPKEY sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SCACD sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CONT_MV sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-DURAT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PERF_PCT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-FVISIT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LVISIT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-KOSCH sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATTLO01 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATTLO02 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATTLO03 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATTLO04 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATTLO05 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SUBCON_PLANT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SUBCON_SUPPLIER sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PRCIND sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-OPTIME sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROMUP sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROMDOWN sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-COSTMULTUPPROM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-COSTMULTDOWNPROM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-NIELSEN sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-STORCAPA sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-STORCAPA_UNIT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CREATEUSER sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CREATEUTC sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CHANGEUSER sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CHANGEUTC sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-XCOORD_DEGREE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-XCOORD_MINUTES sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-XCOORD_SECONDS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-YCOORD_DEGREE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-YCOORD_MINUTES sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-YCOORD_SECONDS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ZCOORD_METER sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-XCOORD_SIGN sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-YCOORD_SIGN sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ZCOORD_SIGN sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-HANDL_NAME sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TPRES_NAME_INB sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TPRES_NAME_OUT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-HANDL_NAME_INBOUND sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-HANDL_NAME_OUTBOUND sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-HANDL_NAME_TIME sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-HANDL_NAME_TIME_OUT sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-STORE_NAME sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-RADIO1 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-RADIO2 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-RADIO3 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-FURTHER_RES sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TRANSPORTZONE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TP_DESCR40 sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CREATEDATE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CHANGEDATE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-DECONS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROTS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROBASE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROOQO sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROBEXC sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROSUIRESP sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TEMPRPBLOCK sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-PROBICONS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TEMPRPDATFROM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TEMPRPDATTO sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TEMPRPFROM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TEMPRPTO sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-DPCAL sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CAPPARM sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-CAPPARM_RCV sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LGRAD sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-BNTYP sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-DISTR sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-TRAILER_HANDLING sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-LOCLOADPROFILE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-ATTEQUIPROFILE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SHIPPER_SEC_STS sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SHIPPER_CODE sy-vline
WA_/SAPAPO/LOC_LOCOUT_STR_STR-SHIPPER_VALIDITY sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.