2009 Apr 06 2:11 PM
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.
hii amresh
comment this part may be it will help it out for u
STORAGELOCATIONDATA = bapi_mard1
STORAGELOCATIONDATAX = bapi_mardx
bye
2009 Apr 07 8:44 AM
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
2009 Apr 07 10:45 AM
try by commenting the following in your bapi:
STORAGELOCATIONDATA = bapi_mard1
STORAGELOCATIONDATAX = bapi_mardx
thnx
Rohit
2010 Oct 14 7:05 AM
Hi Venkat,
I am facing same problem can u tell me how did you solve this problem.
Thanks
Amresh
2010 Oct 14 7:40 AM
hii amresh
comment this part may be it will help it out for u
STORAGELOCATIONDATA = bapi_mard1
STORAGELOCATIONDATAX = bapi_mardx
bye
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |