Skip to Content
0

Validation on Sales Order (VA01)

Jan 24, 2017 at 08:50 PM

85

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Techie SAP Jan 24, 2017 at 09:40 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Techie SAP Jan 25, 2017 at 02:29 PM
0

Hi All,

Please advice, if anyone has any suggestions! Thanks!

Share
10 |10000 characters needed characters left characters exceeded
Ryan Crosby Jan 25, 2017 at 02:55 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded