ABAP Select data from SAP table /SAPAPO/SOURCES_EXTEND 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/SOURCES_EXTEND 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/SOURCES_EXTEND. 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/SOURCES_EXTEND 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/SOURCES_EXTEND TYPE STANDARD TABLE OF /SAPAPO/SOURCES_EXTEND, WA_/SAPAPO/SOURCES_EXTEND TYPE /SAPAPO/SOURCES_EXTEND, 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/SOURCES_EXTEND> TYPE /SAPAPO/SOURCES_EXTEND. *Process all fields in table header/work area as string values PERFORM process_as_string_field_values CHANGING wa_/SAPAPO/SOURCES_EXTEND. SELECT * *restrict ABAP select to first 10 rows UP TO 10 ROWS FROM /SAPAPO/SOURCES_EXTEND INTO TABLE IT_/SAPAPO/SOURCES_EXTEND. *Select data and declare internal table using in-line method @DATA *SELECT * * FROM /SAPAPO/SOURCES_EXTEND * INTO TABLE @DATA(IT_/SAPAPO/SOURCES_EXTEND2). *--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/SOURCES_EXTEND INDEX 1 INTO DATA(WA_/SAPAPO/SOURCES_EXTEND2). *Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL LOOP AT IT_/SAPAPO/SOURCES_EXTEND ASSIGNING </SAPAPO/SOURCES_EXTEND>.*To update a field value using a field symbol simply change the value via the field symbol pointer
</SAPAPO/SOURCES_EXTEND>-TRPID = 1.
</SAPAPO/SOURCES_EXTEND>-LOCFR = 1.
</SAPAPO/SOURCES_EXTEND>-LOCTO = 1.
</SAPAPO/SOURCES_EXTEND>-TRNAME = 1.
</SAPAPO/SOURCES_EXTEND>-NAME = 1.
ENDLOOP. LOOP AT IT_/SAPAPO/SOURCES_EXTEND INTO WA_/SAPAPO/SOURCES_EXTEND. *Write horizonal line to screen report. WRITE:/ sy-uline. *Write selected data to screen/report before conversion. WRITE:/ sy-vline, WA_/SAPAPO/SOURCES_EXTEND-MATID, sy-vline,
WA_/SAPAPO/SOURCES_EXTEND-MATGRPTYP, sy-vline,
WA_/SAPAPO/SOURCES_EXTEND-MATGRPVAL, sy-vline,
WA_/SAPAPO/SOURCES_EXTEND-VALFR, sy-vline,
WA_/SAPAPO/SOURCES_EXTEND-VALTO, sy-vline,
WA_/SAPAPO/SOURCES_EXTEND-VALFR_CTP, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SAPAPO/SOURCES_EXTEND 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/SOURCES_EXTEND 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/SOURCES_EXTEND INTO WA_/SAPAPO/SOURCES_EXTEND. *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 TSTRG, internal->external for field TGRPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TGRPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TGRPRT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRG, internal->external for field TGIPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TGIPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TGIPRT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field MANF_DURA CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-MANF_DURA IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-MANF_DURA.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field TDD_LT_PULL CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TDD_LT_PULL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TDD_LT_PULL.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field TDD_LT_PUSH CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TDD_LT_PUSH IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TDD_LT_PUSH.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field TSS_LT_PULL CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TSS_LT_PULL IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TSS_LT_PULL.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field TSS_LT_PUSH CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TSS_LT_PUSH IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TSS_LT_PUSH.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field DURAT CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-DURAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-DURAT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field STOPDURAT CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-STOPDURAT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-STOPDURAT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field TUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit SNPTR, internal->external for field TPRID CALL FUNCTION 'CONVERSION_EXIT_SNPTR_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TPRID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TPRID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSZID, internal->external for field TSZID CALL FUNCTION 'CONVERSION_EXIT_TSZID_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-TSZID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-TSZID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field CUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-CUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-CUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRN, internal->external for field COMM_DURA CALL FUNCTION 'CONVERSION_EXIT_TSTRN_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-COMM_DURA IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-COMM_DURA.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field DPL_WGT_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-DPL_WGT_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-DPL_WGT_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field DPL_VOL_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-DPL_VOL_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-DPL_VOL_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field DPL_LWH_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-DPL_LWH_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-DPL_LWH_UOM.
WRITE:/ 'New Value:', ld_input.
*Conversion exit VRSIO, internal->external for field VERSID CALL FUNCTION 'CONVERSION_EXIT_VRSIO_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-VERSID IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-VERSID.
WRITE:/ 'New Value:', ld_input.
*Conversion exit CUNIT, internal->external for field QTAUNIT CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-QTAUNIT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-QTAUNIT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRG, internal->external for field PLIFZ CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-PLIFZ IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-PLIFZ.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRG, internal->external for field GRPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-GRPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-GRPRT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit TSTRG, internal->external for field GIPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-GIPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-GIPRT.
WRITE:/ 'New Value:', ld_input.
*Conversion exit ALPHA, internal->external for field SPEC_STOCK_LOGSY CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING input = WA_/SAPAPO/SOURCES_EXTEND-SPEC_STOCK_LOGSY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SAPAPO/SOURCES_EXTEND-SPEC_STOCK_LOGSY.
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/SOURCES_EXTEND_STR,
TRPID TYPE STRING,
LOCFR TYPE STRING,
LOCTO TYPE STRING,
TRNAME TYPE STRING,
NAME TYPE STRING,
MATID TYPE STRING,
MATGRPTYP TYPE STRING,
MATGRPVAL TYPE STRING,
VALFR TYPE STRING,
VALTO TYPE STRING,
VALFR_CTP TYPE STRING,
VALTO_CTP TYPE STRING,
PLANID TYPE STRING,
AMATID TYPE STRING,
BZQID TYPE STRING,
PPEGUID TYPE STRING,
SCOID TYPE STRING,
SUBCO TYPE STRING,
CONSI TYPE STRING,
BPRFID TYPE STRING,
TRPTYPE TYPE STRING,
BESKZ TYPE STRING,
PFLAG TYPE STRING,
ESTKZ TYPE STRING,
MINLS TYPE STRING,
MAXLS TYPE STRING,
PCOST TYPE STRING,
PCOSTID TYPE STRING,
SPRKZ TYPE STRING,
SPRKZ_CTRL TYPE STRING,
SPRIO TYPE STRING,
TGRFLG TYPE STRING,
TGRPRT TYPE STRING,
PROC_CAT TYPE STRING,
SRCFCS_R TYPE STRING,
DSFLG TYPE STRING,
DPRIO TYPE STRING,
RTOFLG TYPE STRING,
PDISC TYPE STRING,
PPMRNDPR TYPE STRING,
PREQ_COVER_TYPE TYPE STRING,
TGIPRT TYPE STRING,
SLSNR TYPE STRING,
BZQ_INT TYPE STRING,
PROCESSING_METH TYPE STRING,
PLN_HRZN TYPE STRING,
CTP_HRZN TYPE STRING,
FDR_HRZN TYPE STRING,
FOH_HRZN TYPE STRING,
MANF_DURA TYPE STRING,
TDD_CMP_LT_TRG TYPE STRING,
TDD_LT_PULL TYPE STRING,
TDD_LT_PUSH TYPE STRING,
TSS_LT_PULL TYPE STRING,
TSS_LT_PUSH TYPE STRING,
SSD_PRF_ID_I TYPE STRING,
SYNC_CAL_GR TYPE STRING,
DYN_FREEZE_HOR TYPE STRING,
ORDTYP_UNSPROD TYPE STRING,
TRMID TYPE STRING,
TTYPE TYPE STRING,
AGGTPLFLG TYPE STRING,
DTLTPLFLG TYPE STRING,
TRCAL TYPE STRING,
DURAT TYPE STRING,
STOPDURAT TYPE STRING,
DIST TYPE STRING,
TCOST TYPE STRING,
TUNIT TYPE STRING,
TCOSTID TYPE STRING,
TTYPECOST TYPE STRING,
RESUID TYPE STRING,
TPRID TYPE STRING,
TTYPEDISC TYPE STRING,
DURRNDPR TYPE STRING,
TREQ_COVER_TYPE TYPE STRING,
PREC TYPE STRING,
NSTKIT TYPE STRING,
VTPRID TYPE STRING,
VTOSIDDEF TYPE STRING,
VTOSID TYPE STRING,
LOADSEL TYPE STRING,
ORDTOL TYPE STRING,
PIHOR TYPE STRING,
SIZEDEC TYPE STRING,
SIZETH TYPE STRING,
TRPMID TYPE STRING,
NOTALLOWFLG TYPE STRING,
TSZID TYPE STRING,
CONSU TYPE STRING,
CUNIT TYPE STRING,
STFAC TYPE STRING,
TRTEXT TYPE STRING,
PLANNER TYPE STRING,
OPCAL TYPE STRING,
SHPCAL TYPE STRING,
RECCAL TYPE STRING,
COMM_DURA TYPE STRING,
CORR_FPER TYPE STRING,
PROMO_RND TYPE STRING,
SSD_PRF_ID_H TYPE STRING,
DPL_WGT_LIM TYPE STRING,
DPL_WGT_UOM TYPE STRING,
DPL_VOL_LIM TYPE STRING,
DPL_VOL_UOM TYPE STRING,
DPL_LWH_LIM TYPE STRING,
DPL_LWH_UOM TYPE STRING,
QTAID TYPE STRING,
QTDIR TYPE STRING,
VERSID TYPE STRING,
QTREQ TYPE STRING,
QTSPLT TYPE STRING,
QUOTA TYPE STRING,
QTALLQTY TYPE STRING,
QTBASQTY TYPE STRING,
QTAUNIT TYPE STRING,
HEUID TYPE STRING,
TOTCOST TYPE STRING,
PLIFZ TYPE STRING,
GRPRT TYPE STRING,
GIPRT TYPE STRING,
SATID TYPE STRING,
CQU_SAR TYPE STRING,
TDSRC TYPE STRING,
EBELN TYPE STRING,
EBELP TYPE STRING,
R_REQ_DATE TYPE STRING,
WARNING TYPE STRING,
SOS_QTA TYPE STRING,
QTQTZ TYPE STRING,
BZQ_ACTIVE TYPE STRING,
QTA_VALFR TYPE STRING,
QTA_VALTO TYPE STRING,
IND TYPE STRING,
APOMS TYPE STRING,
L_DEL_DATE TYPE STRING,
USE_PLIFZ TYPE STRING,
WHATBOM TYPE STRING,
SPEC_STOCK_LOGSY TYPE STRING,
SP_STK_IND TYPE STRING,
SPEC_STOCK TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SAPAPO/SOURCES_EXTEND_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/SOURCES_EXTEND_STR-TRPID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-LOCFR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-LOCTO sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TRNAME sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-NAME sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-MATID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-MATGRPTYP sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-MATGRPVAL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VALFR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VALTO sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VALFR_CTP sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VALTO_CTP sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PLANID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-AMATID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-BZQID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PPEGUID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SCOID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SUBCO sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-CONSI sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-BPRFID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TRPTYPE sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-BESKZ sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PFLAG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-ESTKZ sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-MINLS sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-MAXLS sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PCOST sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PCOSTID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SPRKZ sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SPRKZ_CTRL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SPRIO sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TGRFLG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TGRPRT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PROC_CAT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SRCFCS_R sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DSFLG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DPRIO sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-RTOFLG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PDISC sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PPMRNDPR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PREQ_COVER_TYPE sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TGIPRT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SLSNR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-BZQ_INT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PROCESSING_METH sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PLN_HRZN sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-CTP_HRZN sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-FDR_HRZN sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-FOH_HRZN sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-MANF_DURA sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TDD_CMP_LT_TRG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TDD_LT_PULL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TDD_LT_PUSH sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TSS_LT_PULL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TSS_LT_PUSH sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SSD_PRF_ID_I sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SYNC_CAL_GR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DYN_FREEZE_HOR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-ORDTYP_UNSPROD sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TRMID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TTYPE sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-AGGTPLFLG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DTLTPLFLG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TRCAL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DURAT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-STOPDURAT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DIST sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TCOST sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TUNIT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TCOSTID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TTYPECOST sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-RESUID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TPRID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TTYPEDISC sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DURRNDPR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TREQ_COVER_TYPE sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PREC sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-NSTKIT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VTPRID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VTOSIDDEF sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VTOSID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-LOADSEL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-ORDTOL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PIHOR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SIZEDEC sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SIZETH sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TRPMID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-NOTALLOWFLG sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TSZID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-CONSU sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-CUNIT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-STFAC sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TRTEXT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PLANNER sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-OPCAL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SHPCAL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-RECCAL sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-COMM_DURA sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-CORR_FPER sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PROMO_RND sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SSD_PRF_ID_H sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DPL_WGT_LIM sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DPL_WGT_UOM sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DPL_VOL_LIM sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DPL_VOL_UOM sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DPL_LWH_LIM sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-DPL_LWH_UOM sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTAID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTDIR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-VERSID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTREQ sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTSPLT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QUOTA sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTALLQTY sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTBASQTY sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTAUNIT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-HEUID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TOTCOST sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-PLIFZ sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-GRPRT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-GIPRT sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SATID sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-CQU_SAR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-TDSRC sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-EBELN sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-EBELP sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-R_REQ_DATE sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-WARNING sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SOS_QTA sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTQTZ sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-BZQ_ACTIVE sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTA_VALFR sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-QTA_VALTO sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-IND sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-APOMS sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-L_DEL_DATE sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-USE_PLIFZ sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-WHATBOM sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SPEC_STOCK_LOGSY sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SP_STK_IND sy-vline
WA_/SAPAPO/SOURCES_EXTEND_STR-SPEC_STOCK sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.