cancel
Showing results for 
Search instead for 
Did you mean: 

no. ranges plant specific

Former Member

Hi Gurus

the number ranges for creation of orders should be plant specific. i.e, for different plants in slaes order different no. ranges should be defined.

can any one help me in solving this issue.

regards

pavan

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

I have small query, You can solve your issue with our friends above suggestions. But my question is

Sales order contains two items.

for one material one plant eg; Z001

second material different plant Z002 ( due to non avilability or some other reason)

How system will define number range for a sales order.

Regards,

Chandra

Former Member
0 Kudos

SELECT SINGLE * FROM ZNUMR WHERE

WERKS = VBAP-WERKS ..... here WERKS will be filled by the plant mentioned in the first line item.

Regards,

GSL.

Former Member
0 Kudos

Hi,

Thanks GSL

Regards,

Chandra

Former Member
0 Kudos

The plant code (WERKS) of the list item will decide the number range and not the first one. Verify if you want.

0 Kudos

Hi Pavan,

Create a Z table with the fields you need for selection of Number ranges.

With help of your Technical consulatnat you can write code to pick the number range logic.

Use SAP Standard User Exit: MV45AFZZ

FORM USEREXIT_NUMBER_RANGE

  • This userexit can be used to determine the numberranges for *

  • the internal document number. *

TABLES :ZNUMR.

SELECT SINGLE * FROM ZNUMR WHERE

WERKS = VBAP-WERKS AND

AUART = VBAK-AUART.

IF SY-SUBRC = 0 AND ZNUMR-NUMKI NE SPACE.

MOVE ZNUMR-NUMKI TO US_RANGE_INTERN.

ELSE.

MESSAGE E002(ZMES) WITH VBAP-WERKS VBAK-AUART.

ENDIF.

Hope this resolves your issue.

Regards,

Dnyandeo H. Ainarkar

Former Member
0 Kudos

There is no option but to use the user exit. As plant is at item level and the user may enter different plants for different line items you need to be careful. Inform the user that the system will always pick up the plant from the first line item only. If you dont have this scenario i.e. all the line items in the order will have same plant then there is no issue.

In MV45AFZZ exit FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.

Regards,

GSL.

Lakshmipathi
Active Contributor
0 Kudos

Dear pavan

You can try with User exits in the program MV45AFZZ - USEREXIT_NUMBER_RANGE

thanks

G. Lakshmipathi

Former Member
0 Kudos

Use the FORM USEREXIT_NUMBER_RANGE of MV45AFZZ include program and create a Z-table to store the plant specific number range. Though the actual number range will be in the SNRO (no range object RV_BELEG ie the standard one).

Former Member
0 Kudos

Hi,

It can be done.

Create a ztable with parameters like plant, company code and relevant datas along with Number range.

regards,

vimal

Former Member
0 Kudos

Hello,

There is no standard SAP way to achieve this, you need to think of an Enhancement. check for some user exits for orders.

Prase