Skip to Content
avatar image
Former Member

Number range split for Quotation based on Distribution Channel

Hi Folks,

I have a requirement to use different number range if distribution channel in quotation is "Export". For rest other quotations with any distribution channel internal number range should be picked up.

Quotation transaction type ZQ01 will change the internal number range based on the distribution channel.

Internal number range 15 is currently assigned to ZQ01.

System should select the other number range (may be number range 16) if the distribution channel is “Export”.

I found below two option. Please suggest which one is simpler and has no impact in future.

Kindly suggest if any changes or improvement is required in below logic.

Logic 1:

FM: CRM_ORDERADM_H_OBJECTID_DET_OW

Need to put logic inside the Function module. If the Distribution channel is 12 (Domestic), System should pick the number from Internal number range assignment i.e 15.

If the distribution channel is 13 (Export), system should be able to select the other number range i.e 16 and assigned to transaction while saving the document.

Add an enhancement to the FM NUMBER_GET_NEXT and change the parameter NR_RANGE_NR

Logic 2:

In BADI ORDER_SAVE in method CHECK_BEFORE_SAVE check the criteria (Distribution channel is Export) and if so fill in object_id with next number from appropriate number range you chose (NUMBER_GET_NEXT function module).

Regards,

Nikhil

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 01, 2017 at 12:37 AM

    Hi Nikhil,

    Did you find solution to the requirement?

    Is using different transaction types with different number ranges an option?

    Best regards,

    Maggie

    Add comment
    10|10000 characters needed characters exceeded