Skip to Content
avatar image
Former Member

Validation on Sales Order (VA01)

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 24, 2017 at 09:40 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 25, 2017 at 02:29 PM

    Hi All,

    Please advice, if anyone has any suggestions! Thanks!

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25, 2017 at 02:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded