Application Development and Automation 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: 
Read only

material creation through bapi_material_savedata extra views creating

Former Member
0 Likes
786

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
Read only

Former Member
0 Likes
686

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

Read only

RahulKeshav
Active Contributor
0 Likes
686

try by commenting the following in your bapi:

STORAGELOCATIONDATA = bapi_mard1

STORAGELOCATIONDATAX = bapi_mardx

thnx

Rohit

Read only

Former Member
0 Likes
686

Hi Venkat,

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

Thanks

Amresh

Read only

0 Likes
686

hii amresh

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

STORAGELOCATIONDATA = bapi_mard1

STORAGELOCATIONDATAX = bapi_mardx

bye