Skip to Content
avatar image
Former Member

how to make delivery plant fixed for va01 transaction in abap

hi.

My req is to make delivery plant to a fixed plant code for example 'KO01'. in va02 transaction.

regards

Rohit

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jun 22, 2010 at 06:07 AM

    Hi,

    Use the form routines in user exit "MV45AFZZ".

    If you want to change the plant while you open the order in VA02, use the form-routine "USEREXIT_READ_DOCUMENT". If you want to change the site only when you save the order use the form-routines "USEREXIT_SAVE_DOCUMENT_PREPARE" or "USEREXIT_MOVE_FIELD_TO_VBAP". In all these cases modify the structure field XVBAP-WERKS.

    Regards

    Vinod

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 22, 2010 at 01:24 PM

    Write your code in the above said user exits. These user exits gets called before the screen is displayed when you run the transaction. By this way, you can give some default values to the screen fields.

    please ask any questions if u have.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 22, 2010 at 01:59 PM

    The delivering plant value is copied from the customer master or the material master by default, then copied to the sales order line items as they are entered. If you want to perform plant determination via exit code, then use USEREXIT_SOURCE_DETERMINATION in MV45AFZB, not the exits mentioned by the other posters, and specify the plant value for the line items as they are created.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 06:57 AM

    thnks

    Add comment
    10|10000 characters needed characters exceeded