Skip to Content
-2

How to know Lastely created material No. in Database.

Jul 04, 2017 at 11:03 AM

58

avatar image
Former Member

I have a scenario, where in selection screen I am just passing Count like 1 or 2 or 3 etc.

So, when I pass 1, one material is created likewise if I give 2, two materials will be created. Here I want to know after giving 2 in selection screen and two materials is created and again if I pass 3 the counter should take from last created material no. After using Bapi_Material_Savedata with bapi_Transaction_Commit. Can I know how this can be done.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Kiran K Jul 04, 2017 at 12:21 PM
0

Chetan,

Did you check the number range Object MATERIALNR for Material master Creation in SNRO ?

K.Kiran,

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

I checked SNRO, it shows the "From No." and "To No." in intervals tab.

But my question is different like when I give 1 in selection screen the BAPI will create a new material No.like "000000000000000XXXX". Again if I provide 2 in selection screen the BAPI should create a material No. other than previously created No. I wanted to know the last created material No.

0

Chetan,

FM NUMBER_GET_NEXT will get you the current series of the Number Range.

Btw,why you want to know the last created Material No ?

K.Kiran.

0