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

BAPI for MM01

tharu
Contributor
0 Likes
1,280

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?

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
914

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

4 REPLIES 4
Read only

FredericGirod
Active Contributor
0 Likes
915

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

Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
914

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

Read only

p291102
Active Contributor
0 Likes
914

use this bapi - BAPI_INCOMINGINVOICE_CREATE

Read only

RaymondGiuseppi
Active Contributor
0 Likes
914

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