on 02-06-2015 4:46 AM
Dear team,
How to set-up default order reason in sales order for certain customer.
For example. If customer AZ1 placing order then he will have order reason "Stock level too high" as default.
Customer GCX2 --- default order reason " Guaranttee Order", etc.
Kindly help how to make it happen.
Thanks for your valuable advise in advance.
Rgds,
Edi Sim
Hello Edi Sim,
You can design custom table as suggested by BOJJA SIVASANKAR REDDY.
And if you want to set default reason code with field enable/disable you can use the FORM USEREXIT_FIELD_MODIFICATION or else USEREXIT_MOVE_FIELD_TO_VBAK with below the sample code.
if sy-subrc isINITIAL.
vbak-augru = 'V01'. "the codes are from custom table
endif.
Please let me know if you need further help.
Regards,
Vadamalai A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Edi
You can use user exit MV45AFZZ.
Put the logic based on customer code for default Order Reason.
Regards
Hitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Edi,
This is an interesting requirement!
Please explain the business reason behind having fixed order reasons per customer and in each and every sales order?
Does this mean, any type of order - sales, returns, credit etc. etc. there should be the order reason which is fixed per customer?
TW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can try to create a parameter ID for th field and assign it to your user.
See if helps http://scn.sap.com/thread/1634998
Regards,
JM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
normally order reason required in return, credit , debit memo.
First clear which order types , customers you need to fix the order reason
based on that create Ztable , for order type +customer+order reason
after Maintain ZTABLE , write logic , in INCLUDE : MV45AFZZ
USEREXIT:
USEREXIT_MOVE_FIELD_TO_VBAK .
Hi
use below logic
first ztable creare like below
after maintain this table
Write logic in USEREXIT_MOVE_FIELD_TO_VBAK
TABLES: ZORDER_REASON.
DATA: WAUGRU TYPE AUGRU.
SELECT SINGLE AUGRU FROM ZORDER_REASON INTO WAUGRU
WHERE auart = VBAK-AUART
AND KUNNR = vbak-KUNNR.
IF SY-SUBRC EQ 0.
VBAK-AUGRU = WAUGRU.
ENDIF.
i think it is satisfy your requirement
Regards
bojja
Try with MV45AFZZ
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.