‎2010 Nov 15 10:14 AM
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
‎2010 Nov 15 10:24 AM
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
‎2010 Nov 15 10:37 AM
hi suhas
i have read all the documentation, if you know where the error is kindly let me know it
‎2010 Nov 15 10:47 AM
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
‎2010 Nov 15 10:50 AM
hi suhas,
my question is not related to only clientdatax, there are two more question above if you know kindly let me know it
‎2010 Nov 15 11:05 AM
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
‎2010 Nov 15 11:36 AM
‎2010 Nov 15 10:54 AM
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
‎2010 Nov 15 10:59 AM
hi Max,
i have tried that also but the error still continue
Edited by: nik1234 on Nov 15, 2010 12:02 PM
‎2010 Nov 15 11:05 AM
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