Application Development 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: 

Validation on Sales Order (VA01)

Former Member
0 Kudos
1,923

Hi,

I have situation where, i have to issue error in VA01 ( Sales Order) when the Billing dates are in the past. There are some other condition as well.

To do this, i was using USEREXIT_SAVE_DOCUMENT_PREPARE as implicit enhancement. Under this, i was check the values of XVBKD ( part of VBKD table) for validation.

This Structure XVBKD is filled up in VA02 but does not have values in VA01 ( Fields like FPLNR etc) Also, although line item has multiple lines, this structure (XVBKD) in VA01 always shows posnr as 00000.

Please advice, how should i validate the billing plan fields in header & line item while creating the order.


Regards

3 REPLIES 3

Former Member
0 Kudos
216

Quick update: I looked at USEREXIT_CHECK_VBKD ans still the same results.. Structure XVBKD is not filled in there as well in VA01..

Former Member
0 Kudos
216

Hi All,

Please advice, if anyone has any suggestions! Thanks!

Ryan-Crosby
Active Contributor
0 Kudos
216

Hi,

When running in create mode for VA01 you should get some values for XVBKD at some point but maybe not the first time the user exit executes. As for XVBKD with line item 000000 only - the system handles business data this way by condensing all items into the header unless some piece of data is different at the item level. Then you will get items only for the items that do not match the header - if you look at the VBKD you will see that it is a table that stores both header and item data unlike most others where header and items will be two separate tables.

Regards,

Ryan Crosby