cancel
Showing results for 
Search instead for 
Did you mean: 

error msg when confirmation is done before complete gr for process order is done

Former Member
0 Kudos

Dear All,

how can we create error msg when process order confirmation is done before complete gr for process order is done.

eg: if i have 1000kg as process order qty we need to do 101 for all the 1000 kg first the confirmation have to be done, system should not allow the confirmation for the order to happen. Can we do this through configuration or any development work req..???

Reagards,

Joseph

Accepted Solutions (1)

Accepted Solutions (1)

former_member208398
Active Contributor
0 Kudos

Hi Joseph,

I think an implementation of the BAdI  WORKORDER_CONFIRM can do the trick. You can implement your custom check in AT_SAVE method to generate the message. Seek help from your technical person, go through the documentation and check if this suits your requirement.

Best Regards,

Rajen

Former Member
0 Kudos

Thank you for your reply....

Answers (1)

Answers (1)

svs_sap
Active Contributor
0 Kudos

Hi Joseph,

There are multiple options to do this

Solution 1. You can use status profile options

Solution: Create a status profile and assign it to order type. Set the status in such a way, if user status is set to GRN then only allow CNF transaction to trigger or else not by choosing some status initial.

User status for the order appears as shown below

See below option and result, this solution is acceptable if your user is okay with using & manually setting user status, to the orders.

Create user status in transaction BS02 ( you can find many threads on how to create, search in the forum for more details)

One i created is shown below

If status is initial then forbidden the confirmation

If status is GRN then allow confirmation

You can assign this status profile in CORN configuration for order type

Solution 2: You can use enhancement used while saving confirmation of process order in which you can take ABAP help to write code to check status of the process order and if GRN is not complete then do not allow to save confirmation.

CONFPI05    Process order conf.: Cust. spec. enhancements when saving

I don't feel this can be set with BS22 transaction which is meant for system status maintenance.

Best regards,

Sharat