Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

material creation through bapi_material_savedata extra views creating

Hi All,

I am Creating/Extending Material through bapi_material_save data

for the views Basic data 1,Basic data 2,Sales: Sales org. data 1,Sales: Sales org. data 2,Sales: General/Plant Data,Sales Text,Purchasing,MRP1,MRP2,MRP3,Accounting 1,Accounting 2

passing the below views only passing for bapi.

bapi_head-material = material number.

bapi_head-ind_sector = 'M'.

bapi_head-matl_type = 'ZHAW'.

bapi_head-basic_view = 'X'.

bapi_head-sales_view = 'X'.

bapi_head-purchase_view = 'X'.

bapi_head-mrp_view = 'X'.

bapi_head-account_view = 'X'.

*--- BAPI to create material

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = bapi_head

clientdata = bapi_mara1

CLIENTDATAX = bapi_marax

plantdata = bapi_marc1

PLANTDATAX = bapi_marcx

STORAGELOCATIONDATA = bapi_mard1

STORAGELOCATIONDATAX = bapi_mardx

VALUATIONDATA = bapi_mbew1

VALUATIONDATAX = bapi_mbewx

salesdata = bapi_mvke1

salesdatax = bapi_mvkex

IMPORTING

return = bapi_return

TABLES

materialdescription = it_makt

taxclassifications = it_tax.

material creating extra views Plant Stock, Storage Location Stock views are creating.

how to eliminate these views.

Thanks,

Venkat.

Former Member
Not what you were looking for? View more on this topic or Ask a question