Skip to Content

Validation for bill- to - party based on sold- to party in va01

Hi All,

Am new to ABAP

User Exit or BAdI to validate ship-to-part based on sold-to-party in VA01.

When we enter sold-to-party and other mandatory fields and press enter bill-to-party gets filled after i select particular party, Now we change the bill-to-party to some values which is not there  in KNVP table and press enter then alsoorder is getting created.Need to do validation for this.

Required Field exits , screen exits,userexits.

I came to know that we can code in

Program 'SAPMV45A' -> include 'MV45ai0a' -> include 'MV45ai0a_auftraggeber_pruefen'.

Going inside this 'perform' statement and at the end of the standard code using 'implicit enhancement' we can code.

is this right?

Can you also help on giving Codes to this scenario.

Please reply ASAP its urgent.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 18, 2013 at 10:42 AM

    Hello Satish ,

    Use USER EXIT MV45AFZZ

    > FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

    find Internal Table xvbpa there containing all Partner Details ( Sold-to-party , ship-to-party , bill-to-party , payer etc ) related to a Sale Document ( Sale Order ) and Code accordingly.



    Add comment
    10|10000 characters needed characters exceeded

  • Feb 19, 2014 at 05:47 AM

    Hi All,

    I am inform you all that I have created a document for this partner functions validations under the link below,

    http://scn.sap.com/docs/DOC-52249

    Please check 😊 Thanks for all your support 😊

    Thanks and Regards,

    Satish

    Add comment
    10|10000 characters needed characters exceeded