cancel
Showing results for 
Search instead for 
Did you mean: 

Credit Release status has to revert while creating sales order in VA01

former_member216611
Participant
0 Kudos

Hi Experts,

While creating sales order I want to set status Credit status as 'Not Performed'.

By Clicking save button it is moving to 'Approved' status and Now I want to revert it to "Not Performed" status.

I am trying to change filed value VBUK-CMGST and XVBUK-CMGST in MV45AFZZ to 'A' but it is again changing to 'B' in module FCODE_SICH.

is there any way to revert this status using any FM or Exit. Please suggest in creation mode.

Thanks,

Krishna

Accepted Solutions (0)

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor

Instead of directly changing in user exit, why don't you try to change any critical field based on which the status will automatically gets changed.

former_member216611
Participant
0 Kudos

Hi Lakshmipathi,

Thank you very much for your reply.

CMGST is the critical filed and based on this filed only credit status is displaying in sales order. Now I want to change this before order saving . Please correct me if my understanding is wrong about critical filed.

based on some condition in routine RVKMP901 I am using below line of code to stop credit check

move charx to bypass-dynamic_limit. and my requirement working fine .

But the problem is user trying to save an incomplete order with out my condition( Custom Logic ) so by that time credit check is triggering and now he is keeping the condition ( Custom Logic ) and trying to save that order again.

So here already credit status is completed and now I want to revert it back so trying to clear the field CMGST .

Thanks & Regards,

Krishna

sez41
Active Contributor
0 Kudos

lakshmipathi.ganesan is right with his advice.

Also, if you insist on going with user exit, this is not the right one - The programs starting with LVKMPFZ* which need to be activated in customizing are the correct ones to go.