Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VA01 Requirement

Former Member
0 Likes
541

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

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
501

First look at User Exits In Sales Document Processing for PAI form like USEREXIT_SAVE_DOCUMENT_PREPARE.

Regards,

Raymond

Read only

former_member184675
Active Participant
0 Likes
501

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

Read only

Former Member
0 Likes
501

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