cancel
Showing results for 
Search instead for 
Did you mean: 

Terminate the goods movement for production order when using BAPI to update the goods movement

0 Kudos

Hi All,

I am working on interface to post production posting for production order.

Requirement : For any failed movement, system should not move failed movements to COGI.

I have configured in OPK4 ( Termination for incorrect goods movement ),

But still failed movement are send to COGI.

I heard that this configuration holds good only if we do posting using transaction Like CO11N, but will not work if we post through BAPI.

Please suggest...

Thanks,

Vikram

Accepted Solutions (1)

Accepted Solutions (1)

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Vikram

This is according to the system standard design.

The goods movements from a confirmation posted by a BAPI are posted in update mode, therefore, it is not possible to throw an error message.

The following note provides more details:

1586230 - FAQ: Confirmation by BAPI in production order


Question:

How can I achieve a termination in the case of incorrect goods movements in the BAPI?

Answer:

The goods movements in the BAPI are mainly posted in the update program; as a result, you cannot send a dialog and cause a termination. Note 208477 describes this in more detail.

BR


Caetano

Answers (2)

Answers (2)

former_member184666
Active Contributor
0 Kudos

Hi Vikram,

OPK4 -Terminate incorrect goods movement will work if you are doing confirmation using CO11N/CO15. It will not display error message/terminate through BAPI and mass transactions like COHV, instead failed records will be moved to COGI.

Thanks & Regards,

Ramagiri

former_member214153
Active Participant
0 Kudos

Hi vikram,


First go to OPK4

After that go to iddividual entry general .

than go Error handling /Logs

There your activate all the Four check box and after that try.

Let me know if still u face the problem.

Thanks

Anurudh


Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello


As it is stated on the note refered on my previous reply, goods movements from BAPIs are posted in update mode and this setting is not considered.

BR

Caetano

0 Kudos

Hi Anurudh,

I have the same set up, as mentioned by you, but does work for BAPI. It does work for CO11N.

Thanks,

Vikram

0 Kudos

Hello,

Yes i agree.. System is behaving in the same way.

Is there a way if we want to terminate goods movements when using BAPI,

Thanks,

Vikram

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Vikram

There is no way to do that on the standard, as it is stated on the already refered note.

You can add your own checks on BAdI workorder_goodsmvt, in order to prevent the errors.

BR


Caetano