SAP ISM_BAPI_MATERIAL_RT_PREPARE Function Module for Create and Change Material Master Data (Retail)









ISM_BAPI_MATERIAL_RT_PREPARE is a standard ism bapi material rt prepare SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create and Change Material Master Data (Retail) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ism bapi material rt prepare FM, simply by entering the name ISM_BAPI_MATERIAL_RT_PREPARE into the relevant SAP transaction such as SE37 or SE38.

Function Group: JPMM11
Program Name: SAPLJPMM11
Main Program: SAPLJPMM11
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISM_BAPI_MATERIAL_RT_PREPARE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISM_BAPI_MATERIAL_RT_PREPARE'"Create and Change Material Master Data (Retail)
EXPORTING
PATTERN_ARTICLE = "
* PATTERN_WERKS = "Plant
* PATTERN_VKORG = "Sales Organization
* PATTERN_VTWEG = "Distribution Channel
* IN_MARA = "General material data
* IN_JPTMARA = "Media-Specific Cross-Organization Material Data
* NEW_SINGLE_MATERIAL = "
* NEW_VARIANTS_TAB = "
MAKT_STRU = "
* XADD_SEGMENTS = "Checkbox Field
* IN_NEW_WERKS = "Plant
* IN_NEW_VKORG = "Sales Organization
* IN_NEW_VTWEG = "Distribution Channel
* XCOPY_SEGMENTS = "Checkbox Field

IMPORTING
HEADDATA = "Header segment with control information

TABLES
* IN_MVKE_TAB = "
* CLIENTDATA = "Client-specific material data
* CLIENTDATAX = "Information on Update for CLIENTDATA
* CLIENTEXT = "Customer-defined client-specific material data
* CLIENTEXTX = "Information on update for CLIENTEXT
* ADDNLCLIENTDATA = "Additional client-specific material data
* ADDNLCLIENTDATAX = "Information on update for ADDNLCLIENTDATA
* MATERIALDESCRIPTION = "Material Descriptions
* PLANTDATA = "Plant-specific material data
* PLANTDATAX = "Information on Update for PLANTDATA
* PLANTEXT = "Customer-defined plant-specific material data
* IN_MARC_TAB = "
* PLANTEXTX = "Information on update for PLANTEXT
* FORECASTPARAMETERS = "Forecast Parameters
* FORECASTPARAMETERSX = "Information on Update for FORECASTDATA
* FORECASTVALUES = "Forecast Values
* TOTALCONSUMPTION = "Total consumption
* UNPLNDCONSUMPTION = "Unplanned consumption
* PLANNINGDATA = "Planning data
* PLANNINGDATAX = "Information on Update for PLANNINGDATA
* STORAGELOCATIONDATA = "Storage-location-specific material data
* STORAGELOCATIONDATAX = "Information on Update for STORAGELOCATIONDATA
* IN_MBEW_TAB = "Material Valuation
* STORAGELOCATIONEXT = "Customer-defined storage-location-specific material data
* STORAGELOCATIONEXTX = "Information on update for STORAGELOCATIONEXT
* UNITSOFMEASURE = "Units of Measure
* UNITSOFMEASUREX = "Information on Update for UNITSOFMEASURE
* UNITOFMEASURETEXTS = "Texts specific to the unit of measure
* INTERNATIONALARTNOS = "International Article Numbers (EANs)
* VENDOREAN = "Vendor-Specific EANs
* LAYOUTMODULEASSGMT = "Assignment of layout modules to materials
* LAYOUTMODULEASSGMTX = "Information on update for LAYOUTMODULEASSGMT
* TAXCLASSIFICATIONS = "Tax classifications
* IN_MARD_TAB = "Storage Location Data For Material
* VALUATIONDATA = "Valuation data
* VALUATIONDATAX = "Information on Update for VALUATIONDATA
* VALUATIONEXT = "Customer-defined valuation data
* VALUATIONEXTX = "Information on update for VALUATIONEXT
* WAREHOUSENUMBERDATA = "Warehouse-number-specific material data
* WAREHOUSENUMBERDATAX = "Information on Update for WAREHOUSEDATA
* WAREHOUSENUMBEREXT = "Customer-defined warehouse-number-specific material data
* WAREHOUSENUMBEREXTX = "Information on update for WAREHOUSENUMBEREXT
* STORAGETYPEDATA = "Storage-type-specific material data
* STORAGETYPEDATAX = "Information on Update for STORAGETYPEDATA
* IN_MLGN_TAB = "Material Data For Each Warehouse Number
* STORAGETYPEEXT = "Customer-defined storage-type-specific material data
* STORAGETYPEEXTX = "Information on update for STORAGETYPEEXT
* SALESDATA = "Sales Data
* SALESDATAX = "Information on Update for SALESDATA
* SALESEXT = "Customer-defined sales data
* SALESEXTX = "Information on update for SALESEXT
* POSDATA = "POS Data
* POSDATAX = "Information on update for POSDATA
* POSEXT = "Customer-defined POS data
* POSEXTX = "Information on update for POSEXT
* IN_MLGT_TAB = "Material Data For Each Storage Type
* MATERIALLONGTEXT = "Long Texts
* PLANTKEYS = "List of other plants
* STORAGELOCATIONKEYS = "List of other storage locations
* DISTRCHAINKEYS = "List of other distribution chains
* WAREHOUSENOKEYS = "List of other warehouse numbers
* STORAGETYPEKEYS = "List of other storage types
* VALUATIONTYPEKEYS = "List of other valuation types
* IN_NEW_WERK_TAB = "Plants/Subsidiaries
* IN_NEW_VBER_TAB = "Org. Unit: Distribution Channels per Sales Organization
* VARIANTSKEYS = "List of variants for configurable material
* CHARACTERISTICVALUE = "Characteristic value assignment data
* CHARACTERISTICVALUEX = "Information on update for CHARACTERISTICVALUE
.



IMPORTING Parameters details for ISM_BAPI_MATERIAL_RT_PREPARE

PATTERN_ARTICLE -

Data type: MARA-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

PATTERN_WERKS - Plant

Data type: WERKS_D
Optional: Yes
Call by Reference: Yes

PATTERN_VKORG - Sales Organization

Data type: VKORG
Optional: Yes
Call by Reference: Yes

PATTERN_VTWEG - Distribution Channel

Data type: VTWEG
Optional: Yes
Call by Reference: Yes

IN_MARA - General material data

Data type: MARA
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_JPTMARA - Media-Specific Cross-Organization Material Data

Data type: JPTMARA
Optional: Yes
Call by Reference: No ( called with pass by value option)

NEW_SINGLE_MATERIAL -

Data type: MARA-MATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

NEW_VARIANTS_TAB -

Data type: JMM_VARIANTS_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAKT_STRU -

Data type: MAKT
Optional: No
Call by Reference: Yes

XADD_SEGMENTS - Checkbox Field

Data type: XFELD
Optional: Yes
Call by Reference: Yes

IN_NEW_WERKS - Plant

Data type: WERKS_D
Optional: Yes
Call by Reference: Yes

IN_NEW_VKORG - Sales Organization

Data type: VKORG
Optional: Yes
Call by Reference: Yes

IN_NEW_VTWEG - Distribution Channel

Data type: VTWEG
Optional: Yes
Call by Reference: Yes

XCOPY_SEGMENTS - Checkbox Field

Data type: XFELD
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISM_BAPI_MATERIAL_RT_PREPARE

HEADDATA - Header segment with control information

Data type: BAPIE1MATHEAD
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISM_BAPI_MATERIAL_RT_PREPARE

IN_MVKE_TAB -

Data type: MVKE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENTDATA - Client-specific material data

Data type: BAPIE1MARART
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENTDATAX - Information on Update for CLIENTDATA

Data type: BAPIE1MARARTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENTEXT - Customer-defined client-specific material data

Data type: BAPIE1MARAEXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENTEXTX - Information on update for CLIENTEXT

Data type: BAPIE1MARAEXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDNLCLIENTDATA - Additional client-specific material data

Data type: BAPIE1MAW1RT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDNLCLIENTDATAX - Information on update for ADDNLCLIENTDATA

Data type: BAPIE1MAW1RTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATERIALDESCRIPTION - Material Descriptions

Data type: BAPIE1MAKTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANTDATA - Plant-specific material data

Data type: BAPIE1MARCRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANTDATAX - Information on Update for PLANTDATA

Data type: BAPIE1MARCRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANTEXT - Customer-defined plant-specific material data

Data type: BAPIE1MARCEXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_MARC_TAB -

Data type: MARC
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANTEXTX - Information on update for PLANTEXT

Data type: BAPIE1MARCEXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORECASTPARAMETERS - Forecast Parameters

Data type: BAPIE1MPOPRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORECASTPARAMETERSX - Information on Update for FORECASTDATA

Data type: BAPIE1MPOPRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORECASTVALUES - Forecast Values

Data type: BAPIE1MPRWRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TOTALCONSUMPTION - Total consumption

Data type: BAPIE1MVEGRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

UNPLNDCONSUMPTION - Unplanned consumption

Data type: BAPIE1MVEURT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANNINGDATA - Planning data

Data type: BAPIE1MPGDRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANNINGDATAX - Information on Update for PLANNINGDATA

Data type: BAPIE1MPGDRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGELOCATIONDATA - Storage-location-specific material data

Data type: BAPIE1MARDRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGELOCATIONDATAX - Information on Update for STORAGELOCATIONDATA

Data type: BAPIE1MARDRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_MBEW_TAB - Material Valuation

Data type: MBEW
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGELOCATIONEXT - Customer-defined storage-location-specific material data

Data type: BAPIE1MARDEXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGELOCATIONEXTX - Information on update for STORAGELOCATIONEXT

Data type: BAPIE1MARDEXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

UNITSOFMEASURE - Units of Measure

Data type: BAPIE1MARMRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

UNITSOFMEASUREX - Information on Update for UNITSOFMEASURE

Data type: BAPIE1MARMRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

UNITOFMEASURETEXTS - Texts specific to the unit of measure

Data type: BAPIE1MAMTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

INTERNATIONALARTNOS - International Article Numbers (EANs)

Data type: BAPIE1MEANRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

VENDOREAN - Vendor-Specific EANs

Data type: BAPIE1MLEART
Optional: Yes
Call by Reference: No ( called with pass by value option)

LAYOUTMODULEASSGMT - Assignment of layout modules to materials

Data type: BAPIE1MALGRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

LAYOUTMODULEASSGMTX - Information on update for LAYOUTMODULEASSGMT

Data type: BAPIE1MALGRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

TAXCLASSIFICATIONS - Tax classifications

Data type: BAPIE1MLANRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_MARD_TAB - Storage Location Data For Material

Data type: MARD
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUATIONDATA - Valuation data

Data type: BAPIE1MBEWRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUATIONDATAX - Information on Update for VALUATIONDATA

Data type: BAPIE1MBEWRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUATIONEXT - Customer-defined valuation data

Data type: BAPIE1MBEWEXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALUATIONEXTX - Information on update for VALUATIONEXT

Data type: BAPIE1MBEWEXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAREHOUSENUMBERDATA - Warehouse-number-specific material data

Data type: BAPIE1MLGNRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAREHOUSENUMBERDATAX - Information on Update for WAREHOUSEDATA

Data type: BAPIE1MLGNRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAREHOUSENUMBEREXT - Customer-defined warehouse-number-specific material data

Data type: BAPIE1MLGNEXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAREHOUSENUMBEREXTX - Information on update for WAREHOUSENUMBEREXT

Data type: BAPIE1MLGNEXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGETYPEDATA - Storage-type-specific material data

Data type: BAPIE1MLGTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGETYPEDATAX - Information on Update for STORAGETYPEDATA

Data type: BAPIE1MLGTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_MLGN_TAB - Material Data For Each Warehouse Number

Data type: MLGN
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGETYPEEXT - Customer-defined storage-type-specific material data

Data type: BAPIE1MLGTEXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGETYPEEXTX - Information on update for STORAGETYPEEXT

Data type: BAPIE1MLGTEXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

SALESDATA - Sales Data

Data type: BAPIE1MVKERT
Optional: Yes
Call by Reference: No ( called with pass by value option)

SALESDATAX - Information on Update for SALESDATA

Data type: BAPIE1MVKERTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

SALESEXT - Customer-defined sales data

Data type: BAPIE1MVKEEXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

SALESEXTX - Information on update for SALESEXT

Data type: BAPIE1MVKEEXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

POSDATA - POS Data

Data type: BAPIE1WLK2RT
Optional: Yes
Call by Reference: No ( called with pass by value option)

POSDATAX - Information on update for POSDATA

Data type: BAPIE1WLK2RTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

POSEXT - Customer-defined POS data

Data type: BAPIE1WLK2EXTRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

POSEXTX - Information on update for POSEXT

Data type: BAPIE1WLK2EXTRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_MLGT_TAB - Material Data For Each Storage Type

Data type: MLGT
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATERIALLONGTEXT - Long Texts

Data type: BAPIE1MLTXRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANTKEYS - List of other plants

Data type: BAPIE1WRKKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

STORAGELOCATIONKEYS - List of other storage locations

Data type: BAPIE1LGOKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISTRCHAINKEYS - List of other distribution chains

Data type: BAPIE1VTLKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

WAREHOUSENOKEYS - List of other warehouse numbers

Data type: BAPIE1LGNKEY
Optional: Yes
Call by Reference: Yes

STORAGETYPEKEYS - List of other storage types

Data type: BAPIE1LGTKEY
Optional: Yes
Call by Reference: Yes

VALUATIONTYPEKEYS - List of other valuation types

Data type: BAPIE1BWAKEY
Optional: Yes
Call by Reference: Yes

IN_NEW_WERK_TAB - Plants/Subsidiaries

Data type: T001W
Optional: Yes
Call by Reference: Yes

IN_NEW_VBER_TAB - Org. Unit: Distribution Channels per Sales Organization

Data type: TVKOV
Optional: Yes
Call by Reference: Yes

VARIANTSKEYS - List of variants for configurable material

Data type: BAPIE1VARKEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHARACTERISTICVALUE - Characteristic value assignment data

Data type: BAPIE1AUSPRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHARACTERISTICVALUEX - Information on update for CHARACTERISTICVALUE

Data type: BAPIE1AUSPRTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISM_BAPI_MATERIAL_RT_PREPARE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_headdata  TYPE BAPIE1MATHEAD, "   
lt_in_mvke_tab  TYPE STANDARD TABLE OF MVKE, "   
lv_pattern_article  TYPE MARA-MATNR, "   
lt_clientdata  TYPE STANDARD TABLE OF BAPIE1MARART, "   
lv_pattern_werks  TYPE WERKS_D, "   
lt_clientdatax  TYPE STANDARD TABLE OF BAPIE1MARARTX, "   
lv_pattern_vkorg  TYPE VKORG, "   
lt_clientext  TYPE STANDARD TABLE OF BAPIE1MARAEXTRT, "   
lv_pattern_vtweg  TYPE VTWEG, "   
lv_in_mara  TYPE MARA, "   
lt_clientextx  TYPE STANDARD TABLE OF BAPIE1MARAEXTRTX, "   
lv_in_jptmara  TYPE JPTMARA, "   
lt_addnlclientdata  TYPE STANDARD TABLE OF BAPIE1MAW1RT, "   
lt_addnlclientdatax  TYPE STANDARD TABLE OF BAPIE1MAW1RTX, "   
lt_materialdescription  TYPE STANDARD TABLE OF BAPIE1MAKTRT, "   
lt_plantdata  TYPE STANDARD TABLE OF BAPIE1MARCRT, "   
lt_plantdatax  TYPE STANDARD TABLE OF BAPIE1MARCRTX, "   
lt_plantext  TYPE STANDARD TABLE OF BAPIE1MARCEXTRT, "   
lt_in_marc_tab  TYPE STANDARD TABLE OF MARC, "   
lv_new_single_material  TYPE MARA-MATNR, "   
lt_plantextx  TYPE STANDARD TABLE OF BAPIE1MARCEXTRTX, "   
lt_forecastparameters  TYPE STANDARD TABLE OF BAPIE1MPOPRT, "   
lt_forecastparametersx  TYPE STANDARD TABLE OF BAPIE1MPOPRTX, "   
lt_forecastvalues  TYPE STANDARD TABLE OF BAPIE1MPRWRT, "   
lt_totalconsumption  TYPE STANDARD TABLE OF BAPIE1MVEGRT, "   
lt_unplndconsumption  TYPE STANDARD TABLE OF BAPIE1MVEURT, "   
lt_planningdata  TYPE STANDARD TABLE OF BAPIE1MPGDRT, "   
lt_planningdatax  TYPE STANDARD TABLE OF BAPIE1MPGDRTX, "   
lt_storagelocationdata  TYPE STANDARD TABLE OF BAPIE1MARDRT, "   
lt_storagelocationdatax  TYPE STANDARD TABLE OF BAPIE1MARDRTX, "   
lt_in_mbew_tab  TYPE STANDARD TABLE OF MBEW, "   
lv_new_variants_tab  TYPE JMM_VARIANTS_TAB, "   
lt_storagelocationext  TYPE STANDARD TABLE OF BAPIE1MARDEXTRT, "   
lt_storagelocationextx  TYPE STANDARD TABLE OF BAPIE1MARDEXTRTX, "   
lt_unitsofmeasure  TYPE STANDARD TABLE OF BAPIE1MARMRT, "   
lt_unitsofmeasurex  TYPE STANDARD TABLE OF BAPIE1MARMRTX, "   
lt_unitofmeasuretexts  TYPE STANDARD TABLE OF BAPIE1MAMTRT, "   
lt_internationalartnos  TYPE STANDARD TABLE OF BAPIE1MEANRT, "   
lt_vendorean  TYPE STANDARD TABLE OF BAPIE1MLEART, "   
lt_layoutmoduleassgmt  TYPE STANDARD TABLE OF BAPIE1MALGRT, "   
lt_layoutmoduleassgmtx  TYPE STANDARD TABLE OF BAPIE1MALGRTX, "   
lt_taxclassifications  TYPE STANDARD TABLE OF BAPIE1MLANRT, "   
lv_makt_stru  TYPE MAKT, "   
lt_in_mard_tab  TYPE STANDARD TABLE OF MARD, "   
lt_valuationdata  TYPE STANDARD TABLE OF BAPIE1MBEWRT, "   
lt_valuationdatax  TYPE STANDARD TABLE OF BAPIE1MBEWRTX, "   
lt_valuationext  TYPE STANDARD TABLE OF BAPIE1MBEWEXTRT, "   
lt_valuationextx  TYPE STANDARD TABLE OF BAPIE1MBEWEXTRTX, "   
lt_warehousenumberdata  TYPE STANDARD TABLE OF BAPIE1MLGNRT, "   
lt_warehousenumberdatax  TYPE STANDARD TABLE OF BAPIE1MLGNRTX, "   
lt_warehousenumberext  TYPE STANDARD TABLE OF BAPIE1MLGNEXTRT, "   
lt_warehousenumberextx  TYPE STANDARD TABLE OF BAPIE1MLGNEXTRTX, "   
lt_storagetypedata  TYPE STANDARD TABLE OF BAPIE1MLGTRT, "   
lt_storagetypedatax  TYPE STANDARD TABLE OF BAPIE1MLGTRTX, "   
lt_in_mlgn_tab  TYPE STANDARD TABLE OF MLGN, "   
lv_xadd_segments  TYPE XFELD, "   
lt_storagetypeext  TYPE STANDARD TABLE OF BAPIE1MLGTEXTRT, "   
lt_storagetypeextx  TYPE STANDARD TABLE OF BAPIE1MLGTEXTRTX, "   
lt_salesdata  TYPE STANDARD TABLE OF BAPIE1MVKERT, "   
lt_salesdatax  TYPE STANDARD TABLE OF BAPIE1MVKERTX, "   
lt_salesext  TYPE STANDARD TABLE OF BAPIE1MVKEEXTRT, "   
lt_salesextx  TYPE STANDARD TABLE OF BAPIE1MVKEEXTRTX, "   
lt_posdata  TYPE STANDARD TABLE OF BAPIE1WLK2RT, "   
lt_posdatax  TYPE STANDARD TABLE OF BAPIE1WLK2RTX, "   
lt_posext  TYPE STANDARD TABLE OF BAPIE1WLK2EXTRT, "   
lt_posextx  TYPE STANDARD TABLE OF BAPIE1WLK2EXTRTX, "   
lt_in_mlgt_tab  TYPE STANDARD TABLE OF MLGT, "   
lv_in_new_werks  TYPE WERKS_D, "   
lt_materiallongtext  TYPE STANDARD TABLE OF BAPIE1MLTXRT, "   
lt_plantkeys  TYPE STANDARD TABLE OF BAPIE1WRKKEY, "   
lt_storagelocationkeys  TYPE STANDARD TABLE OF BAPIE1LGOKEY, "   
lt_distrchainkeys  TYPE STANDARD TABLE OF BAPIE1VTLKEY, "   
lt_warehousenokeys  TYPE STANDARD TABLE OF BAPIE1LGNKEY, "   
lt_storagetypekeys  TYPE STANDARD TABLE OF BAPIE1LGTKEY, "   
lt_valuationtypekeys  TYPE STANDARD TABLE OF BAPIE1BWAKEY, "   
lt_in_new_werk_tab  TYPE STANDARD TABLE OF T001W, "   
lt_in_new_vber_tab  TYPE STANDARD TABLE OF TVKOV, "   
lv_in_new_vkorg  TYPE VKORG, "   
lt_variantskeys  TYPE STANDARD TABLE OF BAPIE1VARKEY, "   
lv_in_new_vtweg  TYPE VTWEG, "   
lt_characteristicvalue  TYPE STANDARD TABLE OF BAPIE1AUSPRT, "   
lv_xcopy_segments  TYPE XFELD, "   
lt_characteristicvaluex  TYPE STANDARD TABLE OF BAPIE1AUSPRTX. "   

  CALL FUNCTION 'ISM_BAPI_MATERIAL_RT_PREPARE'  "Create and Change Material Master Data (Retail)
    EXPORTING
         PATTERN_ARTICLE = lv_pattern_article
         PATTERN_WERKS = lv_pattern_werks
         PATTERN_VKORG = lv_pattern_vkorg
         PATTERN_VTWEG = lv_pattern_vtweg
         IN_MARA = lv_in_mara
         IN_JPTMARA = lv_in_jptmara
         NEW_SINGLE_MATERIAL = lv_new_single_material
         NEW_VARIANTS_TAB = lv_new_variants_tab
         MAKT_STRU = lv_makt_stru
         XADD_SEGMENTS = lv_xadd_segments
         IN_NEW_WERKS = lv_in_new_werks
         IN_NEW_VKORG = lv_in_new_vkorg
         IN_NEW_VTWEG = lv_in_new_vtweg
         XCOPY_SEGMENTS = lv_xcopy_segments
    IMPORTING
         HEADDATA = lv_headdata
    TABLES
         IN_MVKE_TAB = lt_in_mvke_tab
         CLIENTDATA = lt_clientdata
         CLIENTDATAX = lt_clientdatax
         CLIENTEXT = lt_clientext
         CLIENTEXTX = lt_clientextx
         ADDNLCLIENTDATA = lt_addnlclientdata
         ADDNLCLIENTDATAX = lt_addnlclientdatax
         MATERIALDESCRIPTION = lt_materialdescription
         PLANTDATA = lt_plantdata
         PLANTDATAX = lt_plantdatax
         PLANTEXT = lt_plantext
         IN_MARC_TAB = lt_in_marc_tab
         PLANTEXTX = lt_plantextx
         FORECASTPARAMETERS = lt_forecastparameters
         FORECASTPARAMETERSX = lt_forecastparametersx
         FORECASTVALUES = lt_forecastvalues
         TOTALCONSUMPTION = lt_totalconsumption
         UNPLNDCONSUMPTION = lt_unplndconsumption
         PLANNINGDATA = lt_planningdata
         PLANNINGDATAX = lt_planningdatax
         STORAGELOCATIONDATA = lt_storagelocationdata
         STORAGELOCATIONDATAX = lt_storagelocationdatax
         IN_MBEW_TAB = lt_in_mbew_tab
         STORAGELOCATIONEXT = lt_storagelocationext
         STORAGELOCATIONEXTX = lt_storagelocationextx
         UNITSOFMEASURE = lt_unitsofmeasure
         UNITSOFMEASUREX = lt_unitsofmeasurex
         UNITOFMEASURETEXTS = lt_unitofmeasuretexts
         INTERNATIONALARTNOS = lt_internationalartnos
         VENDOREAN = lt_vendorean
         LAYOUTMODULEASSGMT = lt_layoutmoduleassgmt
         LAYOUTMODULEASSGMTX = lt_layoutmoduleassgmtx
         TAXCLASSIFICATIONS = lt_taxclassifications
         IN_MARD_TAB = lt_in_mard_tab
         VALUATIONDATA = lt_valuationdata
         VALUATIONDATAX = lt_valuationdatax
         VALUATIONEXT = lt_valuationext
         VALUATIONEXTX = lt_valuationextx
         WAREHOUSENUMBERDATA = lt_warehousenumberdata
         WAREHOUSENUMBERDATAX = lt_warehousenumberdatax
         WAREHOUSENUMBEREXT = lt_warehousenumberext
         WAREHOUSENUMBEREXTX = lt_warehousenumberextx
         STORAGETYPEDATA = lt_storagetypedata
         STORAGETYPEDATAX = lt_storagetypedatax
         IN_MLGN_TAB = lt_in_mlgn_tab
         STORAGETYPEEXT = lt_storagetypeext
         STORAGETYPEEXTX = lt_storagetypeextx
         SALESDATA = lt_salesdata
         SALESDATAX = lt_salesdatax
         SALESEXT = lt_salesext
         SALESEXTX = lt_salesextx
         POSDATA = lt_posdata
         POSDATAX = lt_posdatax
         POSEXT = lt_posext
         POSEXTX = lt_posextx
         IN_MLGT_TAB = lt_in_mlgt_tab
         MATERIALLONGTEXT = lt_materiallongtext
         PLANTKEYS = lt_plantkeys
         STORAGELOCATIONKEYS = lt_storagelocationkeys
         DISTRCHAINKEYS = lt_distrchainkeys
         WAREHOUSENOKEYS = lt_warehousenokeys
         STORAGETYPEKEYS = lt_storagetypekeys
         VALUATIONTYPEKEYS = lt_valuationtypekeys
         IN_NEW_WERK_TAB = lt_in_new_werk_tab
         IN_NEW_VBER_TAB = lt_in_new_vber_tab
         VARIANTSKEYS = lt_variantskeys
         CHARACTERISTICVALUE = lt_characteristicvalue
         CHARACTERISTICVALUEX = lt_characteristicvaluex
. " ISM_BAPI_MATERIAL_RT_PREPARE




ABAP code using 7.40 inline data declarations to call FM ISM_BAPI_MATERIAL_RT_PREPARE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_pattern_article).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_new_single_material).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!