2013 Mar 04 11:21 AM
Hi,
I have the following ABAP Requirement.
While creating the Sales Order, after the Header details are entered, i should check for a Z table and populate the corresponding Material Number and Plant from the Z table as the first Line Item. The Ship-to of Sales Order is checked against the Z table.
I tried using the userexit_move_field_to_vbap, but it is not triggering at all when i press Enter, after giving the Header details.
I am confused where to put my code. Please share your ideas to me.
Thanks.
KK
Hi,
I have the following ABAP Requirement.
While creating the Sales Order, after the Header details are entered, i should check for a Z table and populate the corresponding Material Number and Plant from the Z table as the first Line Item. The Ship-to of Sales Order is checked against the Z table.
I tried using the userexit_move_field_to_vbap, but it is not triggering at all when i press Enter, after giving the Header details.
I am confused where to put my code. Please share your ideas to me.
Thanks.
KK
2013 Mar 04 12:18 PM
First look at User Exits In Sales Document Processing for PAI form like USEREXIT_SAVE_DOCUMENT_PREPARE.
Regards,
Raymond
2013 Mar 04 12:38 PM
Hi,
That user exit won't be accessed until you manually enter some items.
What you could use is userexit_move_field_to_vbak and try to populate the internal table x_vbap (i think ) with some items.
I don't think this is the best approach though. SAP does alot of checks for each time when you insert them manually , like ATP. You might find yourself in conflict with those checks .
Why don't you ask one of the sales consultants to look into the Dynamic Product Proposal functionality. It might be the solution you're looking for instead of using Z* tables and user exits.
-
Andrei
2013 Mar 04 1:34 PM
Hello KK,
If I understand correct then you have 2 main requirements -
1. populate first line item of the sales order based on custom table, once user input header data and press ENTER - for this none of the user exits will help you lots instead you can use any of the Enhancement point/spot (Explicit or Implicit) available during PBO of the item level screen
2. checking the header data based on custom table - this can be achieve using the user exit userexit_move_field_to_vbak. The checking can also be possible at end (before saving the Sales Order) by using the user exit userexit_save_document_prepare.
Thanks & Regards,
Ashok
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |