Skip to Content
avatar image
Former Member

Change order type based on sold to party

Hi all,

Is there any user exit to change the order type based on Sold to party.

Eg: if any user select some sold to party during sales order creation then using sold to party the order type is changed.

Any suggestions welcome.


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jul 15, 2008 at 05:42 AM

    Dear Navdeep

    Try with User Exit V45A0002 through which you can default the sold to party in sale order


    G. Lakshmipathi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 15, 2008 at 05:47 AM

    Hi Navadeep,

    Please try with these

    The program MV45AFZB


    This user exit can be used to carry out additional checks (e.g. for

    completion) in the document header. The system could, for example,

    check whether certain shipping conditions are allowed for a

    particular customer group.

    The program MV45AFZZ


    This user exit can be used to modify the attributes of the screen


    To do this, the screen fields are allocated to so-called

    modification groups 1 - 4 and can be edited together during a

    modification in ABAP. If a field has no field name, it cannot be

    allocated to a group.

    The usage of the field groups (modification group 1-4) is as


    - Modification group 1: Automatic modification with transaction


    - Modification group 2: It contains 'LOO' for step loop fields

    - Modification group 3: For modifications which depend on check

    tables or on other fixed information

    - Modification group 4: is not used

    The FORM routine is called up for every field of a screen. If you require changes to be made, you must make them in this user exit.

    This FORM routine is called up by the module FELDAUSWAHL.

    See the Screen Painter manual for further information on structuring

    the interface.


    Use this user exit to fill user-specific statistics update tables.

    The user exit is called up by the FORM routine BELEG-SICHERN before

    the COMMIT command.


    If a standard field is changed, the field r185d-dataloss is set to

    X. The system queries this indicator at the beginning of the safety

    routine. This is why this indicator must also be set during the

    maintenance of user-specific tables that are also to be saved.


    Use this user exit to make certain changes or checks immediately

    before saving a document. It is the last possibility for changing or

    checking a document before posting.

    The user exit is carried out at the beginning of the FORM routine


    I hope it will help you,



    Add comment
    10|10000 characters needed characters exceeded

  • Jul 15, 2008 at 05:51 AM

    In my opinion this not possible from Sold to party to change the Sales doc type.

    As in VA01, u start with giving either by Sales Order Type and Sales area or Only sales doc type.

    In only providing sales doc type in VA01, in that case, when Sold to party is provided, sales doc type takes the sales area from there.

    So, if you want to achieve your requirment in other way around then your sold to party should have fixed sales area. Assign desired sales doc type to those sales area in tcode OVAZ. And use accordingingly Your Sold to part can be distingush on the bases of Distribution channel or Division as per you requirment.

    If helpful, please reward.

    Take care. JP.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 15, 2008 at 06:15 AM

    Hi Navdeep,

    You can try exploring the option of maintain Alternate sales Document type in VOV8.

    So once you have entered sold to party, you can then decide to manually select the alternate sales document type whatever is needed.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Navdeep,

      One Technical Solution:

      create a screen ZVA01, with the customer as input.

      in the PAI of the screen, based on the SP, go to Z-table where you maintain diff order types per Sold to Party.

      using CALL TRANSACTION syntax default the VA01 screen with the order type from the Z-table.

      I hope this helps.