Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

material creation through bapi_material_savedata extra views creating

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

hi,

use degguer to trace out the data which u r passing. analyse in which structures the data is passing

hope it will sovle u r problem

~linganna

former_member187457
Active Contributor
0 Kudos

try by commenting the following in your bapi:

STORAGELOCATIONDATA = bapi_mard1

STORAGELOCATIONDATAX = bapi_mardx

thnx

Rohit

Former Member
0 Kudos

Hi Venkat,

I am facing same problem can u tell me how did you solve this problem.

Thanks

Amresh

0 Kudos

hii amresh

comment this part may be it will help it out for u

STORAGELOCATIONDATA = bapi_mard1

STORAGELOCATIONDATAX = bapi_mardx

bye