on 06-13-2013 7:46 AM
HI All,
I got one requirement, While creating sales order i want warning message if gross weight more than 20,000 Kg because truck can load only 20,000kg,
So how we can get that warning message, Kindly suggest which user exit or function module or program,
Message was edited by: G Lakshmipathi
Please use the subject effectively
Is the business process such that they wont be consolidating multiple sale orders to one delivery ? If that is the case, your requirement would not solve the issue. Ideally, you should validate in delivery for which, you can try with USEREXIT_MOVE_FIELD_TO_LIKP in program MV50AFZ1.
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Lakshmipathi,
Customer need warning message only in VA01 or VA02 tcode, So that they will get idea that maximum gross weight has increased for that particular order...May be i am thinking to make some table based on shipping condition ,gross weight,Ship to party ..I am not sure how it will work.,
Hi PM
Use userexit USEREXIT_MOVE_FIELD_TO_VBAP in programe MV45AFZZ if you need message when you enter material in sale order it will check field VBAP-BRGEW. Ask your abaper to write a code for the same.
If you need to check gross weight of all the item in sale order than use User Exit - USEREXIT_SAVE_DOCUMENT .
Regards
Manjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
P M,
The code can be written in userexit USEREXIT_SAVE_DOCUMENT_PREPARE, in program MV45AFZZ
This userexit can be used to check things, just before the document is saved.
Note: Please check the field name and the table name for this field.
Total weight, at sales order header level, in VA03 - field name is BTGEW, I donot see this field in VBAK!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi PM,
So, you want to check the gross weight.. See, you will be loading the truck basically after delivery. But, you want this function at sales order.
Questions to you before you implement any exit.
1. what if you have different ship-to-parties
2. what if few line items are not confirmed or its confirmed but in different dates
3. what if you have deliveried few items and not done for others.
Why i am asking these questions is, its not correct to control this at order level.
Anyway, find the sales order user exit for which you can apply the logic. However, please discuss above points with your client before do any changes in system and also do the complete test.
in the program MV45AFZZ
Regards, Sai Krishna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear,
I am not good at User Exists level but If you explain your requirement to ABAPer ,he can populate a warning Message in Sales Order level based on your requirement .
Thanks,
Dead Man
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
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.