‎2013 Jul 03 1:45 PM
Dear All Gurus,
My client wnats to automate Material Creation(MM01) process without any manual intervention. I wish to use BAPI_MATERIAL_SAVEDATA but there you need to pass the Material Number. But Material Number is created automatically in the system and how do I pass the material without knowing the number.
Is there any other FM/BAPI that we can use for this?
‎2013 Jul 03 4:48 PM
Hi,
you need to use the function NUMBER_GET_NEXT.
Try to create manually a material and set a break point on this function .. you will see the parameters.
(or create a SQL trace, you will show the table SNRO)
regards
Fred
‎2013 Jul 03 4:48 PM
Hi,
you need to use the function NUMBER_GET_NEXT.
Try to create manually a material and set a break point on this function .. you will see the parameters.
(or create a SQL trace, you will show the table SNRO)
regards
Fred
‎2013 Jul 03 5:05 PM
Hi Tharu Fdo,
Check the below link
http://wiki.sdn.sap.com/wiki/display/PLM/Material+Master+BAPIs
http://scn.sap.com/thread/417241
use this BAPI_STANDARDMATERIAL_CREATE
Regards,
Gurunath
‎2013 Jul 04 7:48 AM
‎2013 Jul 04 8:34 AM
You did not read the documentation of the first parameter HEADDATA before posting
o MATERIAL Only external number assignment is supported for the material number (MATERIAL). If you want the material number to be assigned internally, the method BAPI_MATERIAL_GETINTNUMBER must first be called. This method determines an internal number for the material to be created. You must enter this internal number in field HEADDATA-MATERIAL.
Regards,
Raymond