‎2007 Dec 06 5:47 AM
Dear sir ,
im doing Material master program using BAPI. i m using ' BAPI_MATERIAL_SAVEDATA this function module .
i need to view this screen
initial screen
organaisational level
basic view-1
basic view-2
Sales org-2
Sales and general plant
Purchasing
Mrp1
mrp2
mrp3
mrp4
workscschelding
storage1
Accounting view1
Costing 1
costing2
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = bapi_head
clientdata = bapi_mara1
clientdatax = bapi_marax
plantdata = bapi_marc1
plantdatax = bapi_marcx
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
storagelocationdata = bapi_mard1
storagelocationdatax = bapi_mardx
valuationdata = bapi_mbew1
valuationdatax = bapi_mbewx
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
salesdata = bapi_mvke1
salesdatax = bapi_mvkex
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
return = bapi_return
TABLES
materialdescription = int_makt
UNITSOFMEASURE = bapi_marm
UNITSOFMEASUREX = bapi_marmx
INTERNATIONALARTNOS =
MATERIALLONGTEXT = BAPI_MLTX
taxclassifications = bapi_mlan
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
this is the my function module..
finally i got the error msg
the error msg is
Proft Center 1000/17100 does not exits
how can rectify the error ..
with regards
Meena
‎2007 Dec 06 5:52 AM
Hello ,
Can you ask the functional to check the cutsomizing about the profit centre ? Also if possible with your data , try to do it via MM02 and check the error.
Regards
Saket Sharma
‎2007 Dec 06 5:56 AM
dear sir ,
i m taken the values are old material number ........i changing only material number .............
‎2007 Dec 06 7:19 PM
if u want see the all views, then
set 'X' to all views of bapi_head structure.
bapi_head-BASIC_VIEW = 'X'
bapi_head-SALES_VIEW = 'X'
bapi_head-PURCHASE_VIEW = 'X'
bapi_head-MRP_VIEW = 'X'.
bapi_head-FORECAST_VIEW = 'X'
"
"""
"""
bapi_head-ACCOUNT_VIEW = 'X'
bapi_head-COST_VIEW = 'X'.
2. profit center 1000 does not exist for acc. no. 17100.
u need do some configuration, it is better to check with fun. guys.