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

error while debugging BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
3,032

hi all,

i have few doubts:

1)

well i am using 'BAPI_MATERIAL_SAVEDATA' to transfer the data from one user defined table to material master table, i want to know am i using the correct function module

2)

secondly when i am debugging the 'BAPI_MATERIAL_SAVEDATA' function module i am getting the following error

'No description transferred'

i am passing the following value:

in headdata:

material = 18

indsector = m

matltype = ROH or DIEN

in clientdata:

material group = 001

base_uom = 003

base_uom_iso = kg

in cliendatax

material group = X

base_uom = X

base_uom_iso = X

also i want to know what happens if we dont pass value in clientdatax

9 REPLIES 9
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,792

Hello,

Answers to all your questions are hidden in the Parameter documentation. Make a habit of reading the SAP documentation(if available) before using the FM/BAPI.

Suhas

Read only

Former Member
0 Likes
1,792

hi suhas

i have read all the documentation, if you know where the error is kindly let me know it

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,792

Hello,

I'm sure you've missed something while reading the documentation of the BAPI parameters. Otherwise you would know why it is important to pass data in the CLIENTDATAX structure.

Anyway in the SDN forums spoon feeding is discouraged & is considered ROE violation.

BR,

Suhas

Read only

Former Member
0 Likes
1,792

hi suhas,

my question is not related to only clientdatax, there are two more question above if you know kindly let me know it

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,792

Hello,

1. well i am using 'BAPI_MATERIAL_SAVEDATA' to transfer the data from one user defined table to material master table, i want to know am i using the correct function module

FM documentation states: "Create and Change Material Master Data"

Conclusion:

You're using the correct BAPI.

2. in headdata:

material = 18

indsector = m

matltype = ROH or DIEN

Documentation for HEADDATA states: "At least one view must be selected. BASIC_VIEW (always necessary when creating material master data)"

Conclusion:

You didn't pass BASIC_VIEW = 'X' in the HEADDATA. So you've an idea where to start.

Also from the BAPI documentation: "When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language."

Conclusion:

You need to pass value in the table MATERIALDESCRIPTION.

That's why i had mentioned earlier every answer is there in the documentation.

BR,

Suhas

Read only

Former Member
0 Likes
1,792

thank you shiva kumar and suhas,

Read only

Former Member
0 Likes
1,792

Hi

material = 18

indsector = m

Check if the data above are correct, i.e material code has to have the leading zero:

material = 000000000000000018

The indsector code should upper case so M

Max

Read only

0 Likes
1,792

hi Max,

i have tried that also but the error still continue

Edited by: nik1234 on Nov 15, 2010 12:02 PM

Read only

Former Member
0 Likes
1,792

Hi,

Please find answers for your queries:

1) You are using the correct BAPI to create materials.

2) If i see the error, you are not passing the Material description...Use the BAPI structures "MATERIALDESCRIPTION" and pass the material description, language

3) Material should be passed in SAP acceptable format(18 chars), Make sure you check at least one view in the header structure(BASIC_VIEW) and rest all looks good.

Also note if there any mandatory fields that need to be passed, if so try to use the same data and create a material in MM01, if this suffices, then the BAPI should also work.

Hope this helps

Regards

Shiva