cancel
Showing results for 
Search instead for 
Did you mean: 

​Sales Order line item Object status (User Status) change based on line item discount

Jagadish_ac
Explorer
0 Kudos

Sales Order line item Object status change based on line item discount

I have the following requirement:

Sales Order line item Object status (User Status) should set “approval required” if the line Item discount is more than 50%

I am trying to check before sales order save that is in MV45AFZZ-FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

I have tried Function modules 'STATUS_UPDATE' IN UPDATE TASK, 'I_CHANGE_STATUS' but status is not getting updated in JEST table.

Function module is not throwing any exception the sy-subrc is zero. I have used Commit work and wait also.

I have tried with 'STATUS_CHANGE_INTERN' and 'STATUS_CHANGE_EXTERN' this 2 FM is throwing as status is not system status.

Is there any particular Function module to update this status?

ChithraN
Explorer
0 Kudos

@jagadish.ac2 : Did you find answer to this problem ?

We have STATUS_CHANGE_EXTERN , But I want to trigger output determination while changing the status . Is there a way ?

Accepted Solutions (0)

Answers (0)