cancel
Showing results for 
Search instead for 
Did you mean: 

issue with order type and plant

Former Member
0 Kudos

Dear Expert

Is it possible to restrict plant on base of order type. means we know that we can restrict plant on sale area base by removing assignment between thewm. but it is possible on base of order type.

example - i have two order type 1 xx 2 yy

plant is zzzz

sales area is aaaa ,ss,ww

now what actually i want

when user use order type xx then plant zzzz can show him in order with the same sale area which maintain above.

but when user use order type yy then plant zzzz can be show him in order create even still area is same.

I hope it is enough to understand to you my requirement. we know we can stop plant by remove assignment between plant and sales area.

please help me .

THANKS

VISHAL

Accepted Solutions (1)

Accepted Solutions (1)

former_member211462
Active Participant
0 Kudos

Hi Vishal

If you know the customers which will be getting orders thru order type xx and yy you can go directly give the plant in the customer master data or else if you have the record of which materials will be used for those order types likewise you can give the plant in the material master . But you cant restrict a document type with respect to a particular plant . A development can you be helpful for you . I have restricted document types with the excisable materials and non - excisable materials . So you can also try that out.

regards

JNM

Answers (1)

Answers (1)

former_member209761
Active Contributor
0 Kudos

Dear Vishal SAP1,

when user use order type xx then plant zzzz can show him in order with the same sale area which maintain above.

but when user use order type yy then plant zzzz can be show him in order create even still area is same.

Whats the difference between above two lines?

Not Able to make it out.

Do you mean, if sales order type is xx, plant zzzz should come in sales order.

And if the sales order type is yy, plant zzzz should not come in sales order.

Is it so?

Thanks & Regards,

Hegal K Charles

Former Member
0 Kudos

yes sir

former_member209761
Active Contributor
0 Kudos

Dear Vishal SAP1,

As you might know plant comes in sales order from CMIR/CMaster/Mmaster.

It has no link to sales order type.

However, For your requirement, do not maintain the plant in CMIR/CMR and MMR.

So obviously system will not bring the delivering plant automatically to the sales order.

Now you have to find an exit in VA01 with the help of your abaper and write a code to check VBAK-AUART.

If VBAK-AUART=XX, input the fields for plant in VBAK and VBAP with ZZZZ.

If VBAK-AUART=YY or say NOT EQUAL TO XX, then do not execute the above code.so system will not fill the value of plant.

Hope you got a better picture now.

Thanks & Regards,

Hegal K Charles

Former Member
0 Kudos

DEAR ALL

THANK YOU SO MUCH TO SUPPORT ME .ISSUE IS SOLVE NOW .