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

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

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

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


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_/SCMB/MDL_LOCPROD_DATA ASSIGNING </SCMB/MDL_LOCPROD_DATA>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
</SCMB/MDL_LOCPROD_DATA>-MATLOCID = 1.
</SCMB/MDL_LOCPROD_DATA>-BESKZ = 1.
</SCMB/MDL_LOCPROD_DATA>-MAABC = 1.
</SCMB/MDL_LOCPROD_DATA>-SALESPRICE = 1.
</SCMB/MDL_LOCPROD_DATA>-SCOST = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_/SCMB/MDL_LOCPROD_DATA-PLANNER_PUR, sy-vline,
WA_/SCMB/MDL_LOCPROD_DATA-CONSREFMATID, sy-vline,
WA_/SCMB/MDL_LOCPROD_DATA-CONSREFLOCID, sy-vline,
WA_/SCMB/MDL_LOCPROD_DATA-CONSREFFAC, sy-vline,
WA_/SCMB/MDL_LOCPROD_DATA-CONSREFVALTO, sy-vline,
WA_/SCMB/MDL_LOCPROD_DATA-RPSTATUS, sy-vline.
ENDLOOP. *Add any further fields from structure WA_/SCMB/MDL_LOCPROD_DATA 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_/SCMB/MDL_LOCPROD_DATA 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_/SCMB/MDL_LOCPROD_DATA INTO WA_/SCMB/MDL_LOCPROD_DATA. *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 SHLF_LFE_REQ_MIN CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-SHLF_LFE_REQ_MIN IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-SHLF_LFE_REQ_MIN.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field SHLF_LFE_REQ_MAX CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-SHLF_LFE_REQ_MAX IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-SHLF_LFE_REQ_MAX.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field MATURITY_DUR CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-MATURITY_DUR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-MATURITY_DUR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field SHELF_LIFE_DUR CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-SHELF_LIFE_DUR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-SHELF_LIFE_DUR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field PURTIME CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-PURTIME IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-PURTIME.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field GRPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-GRPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-GRPRT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field GIPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-GIPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-GIPRT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field PIPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-PIPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-PIPRT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field TLPRT CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-TLPRT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-TLPRT.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field SVTTY CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-SVTTY IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-SVTTY.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field TARGET_DUR CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-TARGET_DUR IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-TARGET_DUR.
WRITE:/ 'New Value:', ld_input.

*Conversion exit TSTRG, internal->external for field RELTIME CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-RELTIME IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-RELTIME.
WRITE:/ 'New Value:', ld_input.

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

*Conversion exit TSTRG, internal->external for field THRUPUT_TIME CALL FUNCTION 'CONVERSION_EXIT_TSTRG_OUTPUT' EXPORTING input = WA_/SCMB/MDL_LOCPROD_DATA-THRUPUT_TIME IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_/SCMB/MDL_LOCPROD_DATA-THRUPUT_TIME.
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_/SCMB/MDL_LOCPROD_DATA_STR,
MATLOCID TYPE STRING,
BESKZ TYPE STRING,
MAABC TYPE STRING,
SALESPRICE TYPE STRING,
SCOST TYPE STRING,
PLANNER_PUR TYPE STRING,
CONSREFMATID TYPE STRING,
CONSREFLOCID TYPE STRING,
CONSREFFAC TYPE STRING,
CONSREFVALTO TYPE STRING,
RPSTATUS TYPE STRING,
MAXSTOCK TYPE STRING,
SAFTY TYPE STRING,
MINSTOCK TYPE STRING,
MEASGRBUY TYPE STRING,
SHELF_LIFE_LOC TYPE STRING,
SHLF_LFE_REQ_MIN TYPE STRING,
SHLF_LFE_REQ_MAX TYPE STRING,
MATURITY_DUR TYPE STRING,
SHELF_LIFE_DUR TYPE STRING,
TDFIELDS TYPE STRING,
PURTIME TYPE STRING,
GRPRT TYPE STRING,
GIPRT TYPE STRING,
LADGR TYPE STRING,
PIPRT TYPE STRING,
TLPRT TYPE STRING,
PRO_ORD TYPE STRING,
PRO_LTP TYPE STRING,
PLANNER_VMI TYPE STRING,
PLANNER_SMI TYPE STRING,
OS_LIMIT TYPE STRING,
DEADPILE TYPE STRING,
MSDP_SB_METHOD TYPE STRING,
LGRAD TYPE STRING,
SVTTY TYPE STRING,
TARGET_DUR TYPE STRING,
SHIPH TYPE STRING,
PKZSHIPH TYPE STRING,
LVORM TYPE STRING,
SERNFLG TYPE STRING,
ACT_STATUS TYPE STRING,
SHIPPING TYPE STRING,
ARRIVAL TYPE STRING,
HUGRP TYPE STRING,
MAXCOVER TYPE STRING,
MAXCOVERUP TYPE STRING,
MIXTP TYPE STRING,
USETP TYPE STRING,
PROM_PREDL TYPE STRING,
VMIKOSCH TYPE STRING,
VMIKOSCH_GRP TYPE STRING,
BWSCL TYPE STRING,
SELLCLASS TYPE STRING,
TARGETSTOCK TYPE STRING,
REORD TYPE STRING,
RELTIME TYPE STRING,
SEASON TYPE STRING,
LISTINGSTATUS TYPE STRING,
PROFCST TYPE STRING,
PROREPL TYPE STRING,
PROEXCP TYPE STRING,
PROCL TYPE STRING,
LEADTIMESHIFT TYPE STRING,
STOCKMULTIPLE TYPE STRING,
COSTPROF TYPE STRING,
NDCOSTWE TYPE STRING,
NDCOSTWA TYPE STRING,
CCIND TYPE STRING,
AT101 TYPE STRING,
AT102 TYPE STRING,
AT103 TYPE STRING,
AT104 TYPE STRING,
AT105 TYPE STRING,
COSID TYPE STRING,
FCHOROP TYPE STRING,
FCOUTDAY TYPE STRING,
FCOUTWEEK TYPE STRING,
PROSL TYPE STRING,
MINTROC TYPE STRING,
MAXTROC TYPE STRING,
TEMPRPBLOCK TYPE STRING,
PROFCFRQ TYPE STRING,
INITBUY TYPE STRING,
SCOST_PER_DAY TYPE STRING,
MAT_PRTMANAGE TYPE STRING,
PROCALIB TYPE STRING,
BALGR TYPE STRING,
PROPREALLOC TYPE STRING,
SUBSTLOCK TYPE STRING,
OFCHOR TYPE STRING,
PROOFFRQ TYPE STRING,
LSUOM TYPE STRING,
BSTFE TYPE STRING,
BSTRF TYPE STRING,
BSTMI TYPE STRING,
BSTMA TYPE STRING,
RDPRF TYPE STRING,
SL_LSZ_EXACT TYPE STRING,
SL_LSZ_FIXED TYPE STRING,
SL_LSZ_PERI TYPE STRING,
SL_LSZ_REORD TYPE STRING,
UNETO TYPE STRING,
UEETO TYPE STRING,
PROC_COST TYPE STRING,
ADDSFTSTK TYPE STRING,
SCOST_PRCNT TYPE STRING,
PPSAFTYSTK TYPE STRING,
PPSAFTYSTK_V TYPE STRING,
SAFTY_V TYPE STRING,
SFT_OVERRIDE TYPE STRING,
THRUPUT_TIME TYPE STRING,
TPOP TYPE STRING,
MAXSTOR_QTY TYPE STRING,
REPSAFTY TYPE STRING,
REPSAFTY_V TYPE STRING,
MAXSTOCK_V TYPE STRING,
REORD_V TYPE STRING,
TOL_PROF TYPE STRING,
REL_PROF TYPE STRING,
SAFTYC_MIN TYPE STRING,
SAFTYC_MAX TYPE STRING,
KDMATID TYPE STRING,
DPLCHRPRF_ID TYPE STRING,
CRITICAL_COMP TYPE STRING,
AGGR_CTM_PLNG TYPE STRING,
AGGR_FCST_CONS TYPE STRING,
PLIFZ TYPE STRING,END OF T_EKKO_STR. DATA: WA_/SCMB/MDL_LOCPROD_DATA_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_/SCMB/MDL_LOCPROD_DATA_STR-MATLOCID sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-BESKZ sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAABC sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SALESPRICE sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SCOST sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PLANNER_PUR sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-CONSREFMATID sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-CONSREFLOCID sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-CONSREFFAC sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-CONSREFVALTO sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-RPSTATUS sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAXSTOCK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SAFTY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MINSTOCK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MEASGRBUY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SHELF_LIFE_LOC sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SHLF_LFE_REQ_MIN sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SHLF_LFE_REQ_MAX sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MATURITY_DUR sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SHELF_LIFE_DUR sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-TDFIELDS sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PURTIME sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-GRPRT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-GIPRT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-LADGR sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PIPRT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-TLPRT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PRO_ORD sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PRO_LTP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PLANNER_VMI sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PLANNER_SMI sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-OS_LIMIT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-DEADPILE sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MSDP_SB_METHOD sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-LGRAD sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SVTTY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-TARGET_DUR sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SHIPH sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PKZSHIPH sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-LVORM sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SERNFLG sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-ACT_STATUS sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SHIPPING sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-ARRIVAL sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-HUGRP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAXCOVER sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAXCOVERUP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MIXTP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-USETP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROM_PREDL sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-VMIKOSCH sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-VMIKOSCH_GRP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-BWSCL sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SELLCLASS sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-TARGETSTOCK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-REORD sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-RELTIME sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SEASON sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-LISTINGSTATUS sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROFCST sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROREPL sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROEXCP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROCL sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-LEADTIMESHIFT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-STOCKMULTIPLE sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-COSTPROF sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-NDCOSTWE sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-NDCOSTWA sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-CCIND sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-AT101 sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-AT102 sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-AT103 sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-AT104 sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-AT105 sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-COSID sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-FCHOROP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-FCOUTDAY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-FCOUTWEEK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROSL sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MINTROC sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAXTROC sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-TEMPRPBLOCK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROFCFRQ sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-INITBUY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SCOST_PER_DAY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAT_PRTMANAGE sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROCALIB sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-BALGR sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROPREALLOC sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SUBSTLOCK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-OFCHOR sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROOFFRQ sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-LSUOM sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-BSTFE sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-BSTRF sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-BSTMI sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-BSTMA sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-RDPRF sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SL_LSZ_EXACT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SL_LSZ_FIXED sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SL_LSZ_PERI sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SL_LSZ_REORD sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-UNETO sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-UEETO sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PROC_COST sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-ADDSFTSTK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SCOST_PRCNT sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PPSAFTYSTK sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PPSAFTYSTK_V sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SAFTY_V sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SFT_OVERRIDE sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-THRUPUT_TIME sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-TPOP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAXSTOR_QTY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-REPSAFTY sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-REPSAFTY_V sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-MAXSTOCK_V sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-REORD_V sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-TOL_PROF sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-REL_PROF sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SAFTYC_MIN sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-SAFTYC_MAX sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-KDMATID sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-DPLCHRPRF_ID sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-CRITICAL_COMP sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-AGGR_CTM_PLNG sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-AGGR_FCST_CONS sy-vline
WA_/SCMB/MDL_LOCPROD_DATA_STR-PLIFZ sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.