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

SCRAP Posting using BAPI_GOODSMVT_CREATE

Former Member
0 Likes
1,399

Hi,

In Co11n the user will enter SCRAP quantity along with Yield qauntity.

While saving Scrap should save with Good Receipt number(MSEG-MBLNR) and material code = SCRAP apart from Yield quantity.

In badi WORKORDER_GOODSMVT, I used BAPI_GOODSMVT_CREATE to create GRN for SCRAP.

But system giving error 'Already Goods Movement has been created'. Because already its creating GRN for Yield.

Is it possible to use the same BAPI again for Scrap posting also?Then how?

So how can i create GR number for Scrap?

Please help me regarding this...

thanks In advance..

KAN.Murthy

2 REPLIES 2
Read only

Former Member
0 Likes
858

Hi,

You can use BAPI_GOODSMVT_CREATE to post scrap mat doc. You need to pass correct movgement type for the same. Goto migo or MB1C/B do an F4 on moveent types for scraps.

Check what you current transaction is doing. Is the doc posted and commited before coming to your BADI?

Check with a PP/MM consultant whether it is possible through config (SPRO)?

check the BAPI documentation, you cannot provide movement type along with reservation number. There are mamy such limitations to this BAPI.

Let me know if you need more help along with the code extract.

Thanks,

Vivekanand

Read only

0 Likes
858

Hi

Thanks for reply.

Actually I need to get Mat doc. number only using BAPI_GOODSMVT_CREATE.

But system not allowing Commit work command.

User wants to enter SCRAP Quantity at last, i.e., before saving.

So it should save with Mat. Doc.number.(Movement Type is 931).

How can we create two Mat.doc.numbers?

Regards..

Murthy