cancel
Showing results for 
Search instead for 
Did you mean: 

Change order type based on sold to party

Former Member
0 Kudos

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.

Regards,

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks all for suggestions,

When we try to create the new sales order using tcode VA01 then firstly it asks for Sales doc type and then on next screen it asks for Sold to party.

So after assigning Sold to party is it possible to change the Sales doc type in transaction va01.

Any suggestion welcome,

Regards,

jpfriends079
Active Contributor
0 Kudos

If you want to manually alter sales doc afterwards that then there can be chance.

As in HEADER in SALES tab, Sales doc type field is display mode. If you can change that into changeable mode.

If helpful. Kindly reward.

Take care. JP.

Former Member
0 Kudos

We create a Sales Order VA01.

It asks for Sales Doc type. You give it.

Immediately the Sales Areas assigned to this Sales Doc is activated. Or in other words, this Sales Doc can be used for Sold-to-parties in the assigned Sales Area only.

Then you give the Sold-to-Party. The System checks whether the Sold-to-party is in the Sales Area assigned to the Sales Document. If its ok, you can proceed giving the other details. If not, you give another Sold-to-party, and so on.

Hence if you want to change the Sales Doc, the chain gets disconnected. You can go back and select another Sales Doc, without saving. But the moment you select another Sales doc, the Sales areas assigned to this sales doc is activated and again you have to enter the Sold-to-party.

I hope this would have cleared your doubt.

Award points, if answer is found suitable.

Former Member
0 Kudos

Thanks for valuable suggestions,

So it means if some creates the Sales order with one type and later on they want to change the sales doc type then it's not possible.

They have to create new one.

Regards,

Former Member
0 Kudos

Hi Navdeep,

Your requirement is very much possible.

Try the earlier solution / suggestion given by me in this same thread.

Lakshmipathi
Active Contributor
0 Kudos

Dear Navdeep

Yes it is possible to change provided you have maintained the alternate sale order type in IMG.

Go to VOV8, select your order type OR and maintain the alternate sale document type in [Alt Sales doc type1] Now while creating sale order, you can change the same.

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi Basavaraj / Lakshmipathi

,

I tried with Following transaction but not able to found the solution, if you tell me steps then it is helpful to me .

Any suggestion welcome,

Regards,

Edited by: Navdeep singh on Jul 15, 2008 2:12 PM

Former Member
0 Kudos

Thanks for your suggestions,

I tried with transaction V0V8, but I don't want to use alternate order type, but instead of that i want to fetch the order type from some Ztable based on sold to party number.

Regards,

Former Member
0 Kudos

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.

Rgds,

Raghu.

jpfriends079
Active Contributor
0 Kudos

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.

former_member204513
Active Contributor
0 Kudos

Hi Navadeep,

Please try with these

The program MV45AFZB

USEREXIT_CHECK_VBAK

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

USEREXIT_FIELD_MODIFICATION

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

fields.

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

follows:

- Modification group 1: Automatic modification with transaction

MFAW

- 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.

USEREXIT_SAVE_DOCUMENT

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.

Note

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.

USEREXIT_SAVE_DOCUMENT_PREPARE

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

BELEG_SICHERN.

I hope it will help you,

Regards,

Murali.

Lakshmipathi
Active Contributor
0 Kudos

Dear Navdeep

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

thanks

G. Lakshmipathi