ABAP Select data from SAP table BAPI10001MATLOCO 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 BAPI10001MATLOCO 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 BAPI10001MATLOCO. 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 BAPI10001MATLOCO 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_BAPI10001MATLOCO TYPE STANDARD TABLE OF BAPI10001MATLOCO,
      WA_BAPI10001MATLOCO TYPE BAPI10001MATLOCO,
      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: <BAPI10001MATLOCO> TYPE BAPI10001MATLOCO.

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

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

*Select data and declare internal table using in-line method @DATA
*SELECT *
*  FROM BAPI10001MATLOCO
*  INTO TABLE @DATA(IT_BAPI10001MATLOCO2).
*--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_BAPI10001MATLOCO INDEX 1 INTO DATA(WA_BAPI10001MATLOCO2).


*Demonstrate how to loop at an internal table and update values using a FIELD-SYMBOL
LOOP AT IT_BAPI10001MATLOCO ASSIGNING <BAPI10001MATLOCO>.
*To update a field value using a field symbol simply change the value via the field symbol pointer
<BAPI10001MATLOCO>-LOCATION_PRODUCT_ID = 1.
<BAPI10001MATLOCO>-PRODUCT = 1.
<BAPI10001MATLOCO>-PRODUCT_INT = 1.
<BAPI10001MATLOCO>-LOCATION = 1.
<BAPI10001MATLOCO>-LOCATION_INT = 1.
ENDLOOP.

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

*Write selected data to screen/report before conversion.
  WRITE:/ sy-vline,   WA_BAPI10001MATLOCO-LOCTYPE, sy-vline,
WA_BAPI10001MATLOCO-PLANNER_PPS, sy-vline,
WA_BAPI10001MATLOCO-PLANNER_SNP, sy-vline,
WA_BAPI10001MATLOCO-PLANNER_DEMAND, sy-vline,
WA_BAPI10001MATLOCO-PLANNER_TRANS, sy-vline,
WA_BAPI10001MATLOCO-PROD_MEMO_FLG, sy-vline.
ENDLOOP. *Add any further fields from structure WA_BAPI10001MATLOCO 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_BAPI10001MATLOCO 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_BAPI10001MATLOCO INTO WA_BAPI10001MATLOCO. *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 MATN1, internal->external for field PRODUCT_INT CALL FUNCTION 'CONVERSION_EXIT_MATN1_OUTPUT' EXPORTING input = WA_BAPI10001MATLOCO-PRODUCT_INT IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BAPI10001MATLOCO-PRODUCT_INT.
WRITE:/ 'New Value:', ld_input.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*Conversion exit CUNIT, internal->external for field ATP_DISPLAY_UOM CALL FUNCTION 'CONVERSION_EXIT_CUNIT_OUTPUT' EXPORTING input = WA_BAPI10001MATLOCO-ATP_DISPLAY_UOM IMPORTING output = ld_input.
WRITE:/ 'Org Value:', WA_BAPI10001MATLOCO-ATP_DISPLAY_UOM.
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_BAPI10001MATLOCO_STR,
LOCATION_PRODUCT_ID TYPE STRING,
PRODUCT TYPE STRING,
PRODUCT_INT TYPE STRING,
LOCATION TYPE STRING,
LOCATION_INT TYPE STRING,
LOCTYPE TYPE STRING,
PLANNER_PPS TYPE STRING,
PLANNER_SNP TYPE STRING,
PLANNER_DEMAND TYPE STRING,
PLANNER_TRANS TYPE STRING,
PROD_MEMO_FLG TYPE STRING,
ATP_GROUP TYPE STRING,
ATP_CHMOD TYPE STRING,
WHERE_BOM_FLG TYPE STRING,
VALIDITY_AREA_FLG TYPE STRING,
CONS_HANDL_CAP TYPE STRING,
HANDL_CAP_UOM TYPE STRING,
HANDL_CAP_UOM_ISO TYPE STRING,
CONS_STOR_CAP TYPE STRING,
CONS_STOR_UOM TYPE STRING,
CONS_STOR_UOM_ISO TYPE STRING,
CUSTOMER_PRODUCT_NUMBER TYPE STRING,
CHK_HORIZONT TYPE STRING,
CALENDAR_INDICATOR TYPE STRING,
LSZ_PROFILE TYPE STRING,
LSZ_PROFILE_TEXT TYPE STRING,
FIXED_LSZ TYPE STRING,
MIN_LSZ TYPE STRING,
MAX_LSZ TYPE STRING,
ROUNDING_VALUE TYPE STRING,
ASSEMBLY_SCRAP TYPE STRING,
ROUNDING_PROFILE TYPE STRING,
SAVETY_TIME TYPE STRING,
LSZ_CALCULATION TYPE STRING,
LSZ_RANGE_FLG TYPE STRING,
DEM_PROFILE TYPE STRING,
DEM_PROFILE_TEXT TYPE STRING,
DEM_HORIZON_1 TYPE STRING,
DEM_HORIZON_2 TYPE STRING,
DEM_FCT_HORIZON TYPE STRING,
DEM_PULL_HORIZON TYPE STRING,
SUP_PROFILE TYPE STRING,
SUP_PROFILE_TEXT TYPE STRING,
SUP_HORIZON_1 TYPE STRING,
SUP_HORIZON_2 TYPE STRING,
SUP_PROD_HORIZON TYPE STRING,
SUP_STKTRAN_HORIZON TYPE STRING,
SUP_PUSH_HORIZON TYPE STRING,
DEP_PROFILE TYPE STRING,
DEP_PROFILE_TEXT TYPE STRING,
DEP_FAIRSHARE TYPE STRING,
DEP_DISTRIBUTION TYPE STRING,
PP_REQ_PROFILE TYPE STRING,
PP_REQ_PROFILE_TEXT TYPE STRING,
CONSUMPTION_MODE TYPE STRING,
BACKWARD_CONSUMP_PERIOD TYPE STRING,
FORWARD_CONSUMP_PERIOD TYPE STRING,
PLANNING_STRATEGY TYPE STRING,
DEP_REQUIREMENT_IND TYPE STRING,
SUBASSEMBLY_FLG TYPE STRING,
GR_PROC_TIME TYPE STRING,
GI_PROC_TIME TYPE STRING,
PL_DELIV_TIME TYPE STRING,
SAFETY_STOCK TYPE STRING,
RRP_PLANNING_TYPE TYPE STRING,
PURCHASE_PLANNER TYPE STRING,
PROCUREMENT_TYPE TYPE STRING,
SERVICE_LEVEL TYPE STRING,
LOT_SIZE_UOM TYPE STRING,
LOT_SIZE_UOM_ISO TYPE STRING,
VMI_PROMOTION_LEAD_TIME TYPE STRING,
STORAGE_COST TYPE STRING,
VMI_PURCH_GRP TYPE STRING,
ATTRIBUTE101 TYPE STRING,
ATTRIBUTE102 TYPE STRING,
ATTRIBUTE103 TYPE STRING,
ATTRIBUTE104 TYPE STRING,
ATTRIBUTE105 TYPE STRING,
LOCDEP_SEQ_ALLOC_PROC TYPE STRING,
LOCDEP_ALLOC_PROC TYPE STRING,
ATP_UOM TYPE STRING,
ATP_UOM_ISO TYPE STRING,
PRODUCT_PRIO TYPE STRING,
FIX_PROD_OUT_PLANPERIOD TYPE STRING,
FIX_TRANS_OUT_PLANPERIOD TYPE STRING,
REQ_DISTRIBUTION TYPE STRING,
PEGGING_PAST_MAX TYPE STRING,
PEGGING_PAST_ALERT TYPE STRING,
PEGGING_FUTURE_MAX TYPE STRING,
LIMIT_UNDERDELIVERY TYPE STRING,
LIMIT_OVERDELIVERY TYPE STRING,
USE_WHOLE_QUANTITY TYPE STRING,
USE_WHOLE_STOCK TYPE STRING,
EXPLDATE_FINDER TYPE STRING,
PROCUREMENT_COSTS TYPE STRING,
OPENING_PERIOD TYPE STRING,
RELEASE_PERIOD TYPE STRING,
PERIOD_PATTERN_ID TYPE STRING,
PLANNING_TIME_FENCE TYPE STRING,
PLANNING_DATE_UTC TYPE STRING,
PLANNING_TIME_UTC TYPE STRING,
HEURISTIC_PACKAGE_ID TYPE STRING,
HEURISTIC_ID TYPE STRING,
PART_OF_PACKAGE TYPE STRING,
PEGGING_FUTURE_ALERT TYPE STRING,
REORDER_POINT TYPE STRING,
REORDER_DURATION TYPE STRING,
TARGET_DAYS_SUPPLY TYPE STRING,
REORDER_METHOD TYPE STRING,
MSDP_SB_METHOD TYPE STRING,
MAX_STORAGE_CAPACITY TYPE STRING,
PEGGING_STRATEGY TYPE STRING,
PENALTY_COSTS TYPE STRING,
EXT_REF_PRODUCT_NUMBER TYPE STRING,
SUP_HORIZON TYPE STRING,
SNP_COST_METHOD_EXTERN TYPE STRING,
TARGET_STOCK_LEVEL_METHOD TYPE STRING,
HANDL_CAP_OUT TYPE STRING,
HANDL_CAP_OUT_UOM TYPE STRING,
HANDL_CAP_OUT_UOM_ISO TYPE STRING,
LOADING_GROUP TYPE STRING,
CONF_PROPAGATION TYPE STRING,
CONF_COMPONENTS TYPE STRING,
CONF_DURATION TYPE STRING,
CONF_GMSYNC_FLG TYPE STRING,
CONFIGURABLE_PRODUCT_FLG TYPE STRING,
PERVR TYPE STRING,
PER_AMOUNT TYPE STRING,
TSTRID TYPE STRING,
REQ_COVER_TYPE TYPE STRING,
REQ_COVER_FLAG TYPE STRING,
NDCOSTWE TYPE STRING,
NDCOSTWA TYPE STRING,
DTQKY TYPE STRING,
ATP_NEW_INP_HORIZON TYPE STRING,
GET_ALERTS TYPE STRING,
PP_DS_HORIZON TYPE STRING,
CT_HORIZON TYPE STRING,
ND_AVER_STOR_DUR TYPE STRING,
ND_MEAN_PRD_PER_WEEK TYPE STRING,
EXEC_CHECK_PROF_ID TYPE STRING,
CONS_GROUP TYPE STRING,
PEG_ALERT_FLG TYPE STRING,
PEG_CONCURRENT_FLG TYPE STRING,
PEG_SPLIT_LOT_TIME TYPE STRING,
SAFETY_STOCK_PUSH_HORIZON TYPE STRING,
PRD_VERS_ACTIVE_FLG TYPE STRING,
PRD_VERS_PLAN_HEAD_FLG TYPE STRING,
ADJUSTMENT_HORIZON TYPE STRING,
ATP_DISPLAY_UOM TYPE STRING,
ATP_DISPLAY_UOM_ISO TYPE STRING,
PROCUREMENT_COSTS2 TYPE STRING,END OF T_EKKO_STR. DATA: WA_BAPI10001MATLOCO_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_BAPI10001MATLOCO_STR-LOCATION_PRODUCT_ID sy-vline
WA_BAPI10001MATLOCO_STR-PRODUCT sy-vline
WA_BAPI10001MATLOCO_STR-PRODUCT_INT sy-vline
WA_BAPI10001MATLOCO_STR-LOCATION sy-vline
WA_BAPI10001MATLOCO_STR-LOCATION_INT sy-vline
WA_BAPI10001MATLOCO_STR-LOCTYPE sy-vline
WA_BAPI10001MATLOCO_STR-PLANNER_PPS sy-vline
WA_BAPI10001MATLOCO_STR-PLANNER_SNP sy-vline
WA_BAPI10001MATLOCO_STR-PLANNER_DEMAND sy-vline
WA_BAPI10001MATLOCO_STR-PLANNER_TRANS sy-vline
WA_BAPI10001MATLOCO_STR-PROD_MEMO_FLG sy-vline
WA_BAPI10001MATLOCO_STR-ATP_GROUP sy-vline
WA_BAPI10001MATLOCO_STR-ATP_CHMOD sy-vline
WA_BAPI10001MATLOCO_STR-WHERE_BOM_FLG sy-vline
WA_BAPI10001MATLOCO_STR-VALIDITY_AREA_FLG sy-vline
WA_BAPI10001MATLOCO_STR-CONS_HANDL_CAP sy-vline
WA_BAPI10001MATLOCO_STR-HANDL_CAP_UOM sy-vline
WA_BAPI10001MATLOCO_STR-HANDL_CAP_UOM_ISO sy-vline
WA_BAPI10001MATLOCO_STR-CONS_STOR_CAP sy-vline
WA_BAPI10001MATLOCO_STR-CONS_STOR_UOM sy-vline
WA_BAPI10001MATLOCO_STR-CONS_STOR_UOM_ISO sy-vline
WA_BAPI10001MATLOCO_STR-CUSTOMER_PRODUCT_NUMBER sy-vline
WA_BAPI10001MATLOCO_STR-CHK_HORIZONT sy-vline
WA_BAPI10001MATLOCO_STR-CALENDAR_INDICATOR sy-vline
WA_BAPI10001MATLOCO_STR-LSZ_PROFILE sy-vline
WA_BAPI10001MATLOCO_STR-LSZ_PROFILE_TEXT sy-vline
WA_BAPI10001MATLOCO_STR-FIXED_LSZ sy-vline
WA_BAPI10001MATLOCO_STR-MIN_LSZ sy-vline
WA_BAPI10001MATLOCO_STR-MAX_LSZ sy-vline
WA_BAPI10001MATLOCO_STR-ROUNDING_VALUE sy-vline
WA_BAPI10001MATLOCO_STR-ASSEMBLY_SCRAP sy-vline
WA_BAPI10001MATLOCO_STR-ROUNDING_PROFILE sy-vline
WA_BAPI10001MATLOCO_STR-SAVETY_TIME sy-vline
WA_BAPI10001MATLOCO_STR-LSZ_CALCULATION sy-vline
WA_BAPI10001MATLOCO_STR-LSZ_RANGE_FLG sy-vline
WA_BAPI10001MATLOCO_STR-DEM_PROFILE sy-vline
WA_BAPI10001MATLOCO_STR-DEM_PROFILE_TEXT sy-vline
WA_BAPI10001MATLOCO_STR-DEM_HORIZON_1 sy-vline
WA_BAPI10001MATLOCO_STR-DEM_HORIZON_2 sy-vline
WA_BAPI10001MATLOCO_STR-DEM_FCT_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-DEM_PULL_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-SUP_PROFILE sy-vline
WA_BAPI10001MATLOCO_STR-SUP_PROFILE_TEXT sy-vline
WA_BAPI10001MATLOCO_STR-SUP_HORIZON_1 sy-vline
WA_BAPI10001MATLOCO_STR-SUP_HORIZON_2 sy-vline
WA_BAPI10001MATLOCO_STR-SUP_PROD_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-SUP_STKTRAN_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-SUP_PUSH_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-DEP_PROFILE sy-vline
WA_BAPI10001MATLOCO_STR-DEP_PROFILE_TEXT sy-vline
WA_BAPI10001MATLOCO_STR-DEP_FAIRSHARE sy-vline
WA_BAPI10001MATLOCO_STR-DEP_DISTRIBUTION sy-vline
WA_BAPI10001MATLOCO_STR-PP_REQ_PROFILE sy-vline
WA_BAPI10001MATLOCO_STR-PP_REQ_PROFILE_TEXT sy-vline
WA_BAPI10001MATLOCO_STR-CONSUMPTION_MODE sy-vline
WA_BAPI10001MATLOCO_STR-BACKWARD_CONSUMP_PERIOD sy-vline
WA_BAPI10001MATLOCO_STR-FORWARD_CONSUMP_PERIOD sy-vline
WA_BAPI10001MATLOCO_STR-PLANNING_STRATEGY sy-vline
WA_BAPI10001MATLOCO_STR-DEP_REQUIREMENT_IND sy-vline
WA_BAPI10001MATLOCO_STR-SUBASSEMBLY_FLG sy-vline
WA_BAPI10001MATLOCO_STR-GR_PROC_TIME sy-vline
WA_BAPI10001MATLOCO_STR-GI_PROC_TIME sy-vline
WA_BAPI10001MATLOCO_STR-PL_DELIV_TIME sy-vline
WA_BAPI10001MATLOCO_STR-SAFETY_STOCK sy-vline
WA_BAPI10001MATLOCO_STR-RRP_PLANNING_TYPE sy-vline
WA_BAPI10001MATLOCO_STR-PURCHASE_PLANNER sy-vline
WA_BAPI10001MATLOCO_STR-PROCUREMENT_TYPE sy-vline
WA_BAPI10001MATLOCO_STR-SERVICE_LEVEL sy-vline
WA_BAPI10001MATLOCO_STR-LOT_SIZE_UOM sy-vline
WA_BAPI10001MATLOCO_STR-LOT_SIZE_UOM_ISO sy-vline
WA_BAPI10001MATLOCO_STR-VMI_PROMOTION_LEAD_TIME sy-vline
WA_BAPI10001MATLOCO_STR-STORAGE_COST sy-vline
WA_BAPI10001MATLOCO_STR-VMI_PURCH_GRP sy-vline
WA_BAPI10001MATLOCO_STR-ATTRIBUTE101 sy-vline
WA_BAPI10001MATLOCO_STR-ATTRIBUTE102 sy-vline
WA_BAPI10001MATLOCO_STR-ATTRIBUTE103 sy-vline
WA_BAPI10001MATLOCO_STR-ATTRIBUTE104 sy-vline
WA_BAPI10001MATLOCO_STR-ATTRIBUTE105 sy-vline
WA_BAPI10001MATLOCO_STR-LOCDEP_SEQ_ALLOC_PROC sy-vline
WA_BAPI10001MATLOCO_STR-LOCDEP_ALLOC_PROC sy-vline
WA_BAPI10001MATLOCO_STR-ATP_UOM sy-vline
WA_BAPI10001MATLOCO_STR-ATP_UOM_ISO sy-vline
WA_BAPI10001MATLOCO_STR-PRODUCT_PRIO sy-vline
WA_BAPI10001MATLOCO_STR-FIX_PROD_OUT_PLANPERIOD sy-vline
WA_BAPI10001MATLOCO_STR-FIX_TRANS_OUT_PLANPERIOD sy-vline
WA_BAPI10001MATLOCO_STR-REQ_DISTRIBUTION sy-vline
WA_BAPI10001MATLOCO_STR-PEGGING_PAST_MAX sy-vline
WA_BAPI10001MATLOCO_STR-PEGGING_PAST_ALERT sy-vline
WA_BAPI10001MATLOCO_STR-PEGGING_FUTURE_MAX sy-vline
WA_BAPI10001MATLOCO_STR-LIMIT_UNDERDELIVERY sy-vline
WA_BAPI10001MATLOCO_STR-LIMIT_OVERDELIVERY sy-vline
WA_BAPI10001MATLOCO_STR-USE_WHOLE_QUANTITY sy-vline
WA_BAPI10001MATLOCO_STR-USE_WHOLE_STOCK sy-vline
WA_BAPI10001MATLOCO_STR-EXPLDATE_FINDER sy-vline
WA_BAPI10001MATLOCO_STR-PROCUREMENT_COSTS sy-vline
WA_BAPI10001MATLOCO_STR-OPENING_PERIOD sy-vline
WA_BAPI10001MATLOCO_STR-RELEASE_PERIOD sy-vline
WA_BAPI10001MATLOCO_STR-PERIOD_PATTERN_ID sy-vline
WA_BAPI10001MATLOCO_STR-PLANNING_TIME_FENCE sy-vline
WA_BAPI10001MATLOCO_STR-PLANNING_DATE_UTC sy-vline
WA_BAPI10001MATLOCO_STR-PLANNING_TIME_UTC sy-vline
WA_BAPI10001MATLOCO_STR-HEURISTIC_PACKAGE_ID sy-vline
WA_BAPI10001MATLOCO_STR-HEURISTIC_ID sy-vline
WA_BAPI10001MATLOCO_STR-PART_OF_PACKAGE sy-vline
WA_BAPI10001MATLOCO_STR-PEGGING_FUTURE_ALERT sy-vline
WA_BAPI10001MATLOCO_STR-REORDER_POINT sy-vline
WA_BAPI10001MATLOCO_STR-REORDER_DURATION sy-vline
WA_BAPI10001MATLOCO_STR-TARGET_DAYS_SUPPLY sy-vline
WA_BAPI10001MATLOCO_STR-REORDER_METHOD sy-vline
WA_BAPI10001MATLOCO_STR-MSDP_SB_METHOD sy-vline
WA_BAPI10001MATLOCO_STR-MAX_STORAGE_CAPACITY sy-vline
WA_BAPI10001MATLOCO_STR-PEGGING_STRATEGY sy-vline
WA_BAPI10001MATLOCO_STR-PENALTY_COSTS sy-vline
WA_BAPI10001MATLOCO_STR-EXT_REF_PRODUCT_NUMBER sy-vline
WA_BAPI10001MATLOCO_STR-SUP_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-SNP_COST_METHOD_EXTERN sy-vline
WA_BAPI10001MATLOCO_STR-TARGET_STOCK_LEVEL_METHOD sy-vline
WA_BAPI10001MATLOCO_STR-HANDL_CAP_OUT sy-vline
WA_BAPI10001MATLOCO_STR-HANDL_CAP_OUT_UOM sy-vline
WA_BAPI10001MATLOCO_STR-HANDL_CAP_OUT_UOM_ISO sy-vline
WA_BAPI10001MATLOCO_STR-LOADING_GROUP sy-vline
WA_BAPI10001MATLOCO_STR-CONF_PROPAGATION sy-vline
WA_BAPI10001MATLOCO_STR-CONF_COMPONENTS sy-vline
WA_BAPI10001MATLOCO_STR-CONF_DURATION sy-vline
WA_BAPI10001MATLOCO_STR-CONF_GMSYNC_FLG sy-vline
WA_BAPI10001MATLOCO_STR-CONFIGURABLE_PRODUCT_FLG sy-vline
WA_BAPI10001MATLOCO_STR-PERVR sy-vline
WA_BAPI10001MATLOCO_STR-PER_AMOUNT sy-vline
WA_BAPI10001MATLOCO_STR-TSTRID sy-vline
WA_BAPI10001MATLOCO_STR-REQ_COVER_TYPE sy-vline
WA_BAPI10001MATLOCO_STR-REQ_COVER_FLAG sy-vline
WA_BAPI10001MATLOCO_STR-NDCOSTWE sy-vline
WA_BAPI10001MATLOCO_STR-NDCOSTWA sy-vline
WA_BAPI10001MATLOCO_STR-DTQKY sy-vline
WA_BAPI10001MATLOCO_STR-ATP_NEW_INP_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-GET_ALERTS sy-vline
WA_BAPI10001MATLOCO_STR-PP_DS_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-CT_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-ND_AVER_STOR_DUR sy-vline
WA_BAPI10001MATLOCO_STR-ND_MEAN_PRD_PER_WEEK sy-vline
WA_BAPI10001MATLOCO_STR-EXEC_CHECK_PROF_ID sy-vline
WA_BAPI10001MATLOCO_STR-CONS_GROUP sy-vline
WA_BAPI10001MATLOCO_STR-PEG_ALERT_FLG sy-vline
WA_BAPI10001MATLOCO_STR-PEG_CONCURRENT_FLG sy-vline
WA_BAPI10001MATLOCO_STR-PEG_SPLIT_LOT_TIME sy-vline
WA_BAPI10001MATLOCO_STR-SAFETY_STOCK_PUSH_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-PRD_VERS_ACTIVE_FLG sy-vline
WA_BAPI10001MATLOCO_STR-PRD_VERS_PLAN_HEAD_FLG sy-vline
WA_BAPI10001MATLOCO_STR-ADJUSTMENT_HORIZON sy-vline
WA_BAPI10001MATLOCO_STR-ATP_DISPLAY_UOM sy-vline
WA_BAPI10001MATLOCO_STR-ATP_DISPLAY_UOM_ISO sy-vline
WA_BAPI10001MATLOCO_STR-PROCUREMENT_COSTS2 sy-vline INTO ld_text SEPARATED BY SPACE. *Add any further fields from structure WA_EKKO_STR you want to CONCATENATE... ENDLOOP. ENDFORM.