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 Master Upload using BAPI

Former Member
0 Likes
707

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

3 REPLIES 3
Read only

Former Member
0 Likes
545

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

Read only

0 Likes
545

dear sir ,

i m taken the values are old material number ........i changing only material number .............

Read only

Former Member
0 Likes
545

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.