Hallo,
We’re facing an issue about invoice splitting. Customer requirements is: according to some item
characteristic a Sales Order with two items when invoiced must determine au tomatically two different billing documents of different type and different number ranges (Order-related Billing documents).
Example:
Sales Order Z1 with two
items: MAT1 and MAT2. Sales Order is related to Billing Type Z1
Item with MAT1 -->
billing type Z1 / number range 2200020020
Item with MAT2 -->
billing type Z2 / number range 3300020020
We are trying to reach this goal in the following way:
- implementation of exit
USEREXIT_FILL_VBRK_VBRP (RV60AFZC) : if vbrp-matnr = MAT2 then VBRK-FKART = Z2.
- implementation of a new
split routine in copy control.
- implementation of exit USEREXIT_NUMBER_RANGE_INV_DATE
(RV60AFZC): select from TVFK with VBRK-FKART = Z2 and retrieve TVFK-NUMKI
What do you think about this solution? Have you ever faced this issue?
Many thanks in advance,
Marco Sette