cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order should get block if XYZ payment terms is used

Former Member
0 Kudos

Dear Expert,

The requirement is like,

If user add payment term XYZ manually in salse order then that sales order should get block for review purpose.

Note:

if user add that payment term in sales order client want that order should block no matter what reason , here client not concern about credit limit and any outstanding from customer side ,

Thanks in advance

hanumant

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

It is possible to block the order whenever someone manually changes the payment term information in Sales orders via credit management. Payment terms is considered as a critical field in SAP in credit management. If you are looking for blocking orders whenever a payment term is changed and if you have credit management active, you can achieve this by activating the check for "Critical Fields".

If you want to only perform the blocking for a particular payment term, you may ask your ABAP person to code the credit check for User1, User2 or User3 option available.

Thanks

Kapil Sharma

Former Member
0 Kudos

What do you mean by blocking the order ? Is it Blocking Delivery / Billing ? If Yes & to be done through ABAP, you can use the userexit MV45AFZZ, form-routine " USEREXIT_MOVE_FIELD_TO_VBAK". Using ABAP Code to update the Values (which is not blank) in structure fields VBAK-LIFSK (Delivery Block) & VBAK-FAKSK (Billing Block).

Former Member
0 Kudos

Hi,

You need to block orders with payment terms XYZ, or only when user changes from ABC to XYZ??

If first one is your requirment, you can do with userexit - USEREXIT_SAVE_DOCUMENT, and you need to create status profile for sales document type and assign to order type, in status profile put status AUTO - automatically approved, LOCK - when XYZ is payments terms it wil not and not create delivery & REJC- Rejected, when approver dont want to approve he can reject.

In sales order userexit you need write logic when paytemnt terms is XYZ then put status as LOCK.

New repor need to create to approve LOCKed orders so that user execute and approves or rejects.

If only user change to XYZ, then you need to write logic in prepare userexit, but it will be tricy, need to store values in tempapory memory, ceck with abaper,

Former Member
0 Kudos

Firstly you can use the Basis consultant that the field terms of payment should be in gray mode (Display), so that no one can change the field.

Or Try to use below mention user exit,

USEREXIT_SAVE_DOCUMENT, USEREXIT_SAVE_DOCUMENT_PREPARE

Suhas

Former Member
0 Kudos

Hi,

Please check with your ABAPer.They have to assign the billing block when the change is recorded against terms of payment.This can be tracked in "CDHDR" and "CDPOS" tables.

Regards,

Krishna.