cancel
Showing results for 
Search instead for 
Did you mean: 

invoice split: MY REQ IS I HAVE TO SPLIT INVOICE IF SHIP TO PARTY DIFFEREN

Former Member
0 Kudos

Dear All

My requirement is I have to combine different deliveries (and delivery can be created with reference of different sales order ) in one invoice, combination criteria ,ship to party, bill to party ,payment term ,incoterm should be the same ,Bold marked condition is full feel by Routine 7 But ship to party is not full feel.

If different ship to party are there then invoice should be split and different invoice will create according to different ship to party. If same ship to party then one invoice.

Please go in Tcode: VOFM- DATA TRANSFER - BILLING DOCUMENT

Check routine : 7 Inv.Split (Rec/Div)

Check the code which is given by SAP :

DATA: BEGIN OF ZUK,

MODUL(3) VALUE '001',

VTWEG LIKE VBAK-VTWEG,

SPART LIKE VBAK-SPART,

ABTNR LIKE LIPS-ABTNR,

EMPST LIKE LIPS-EMPST,

END OF ZUK.

ZUK-SPART = VBAK-SPART.

ZUK-VTWEG = VBAK-VTWEG.

ZUK-ABTNR = LIPS-ABTNR.

ZUK-EMPST = LIPS-EMPST.

VBRK-ZUKRI = ZUK.

ENDFORM.

Now I am modifying this code:

DATA: BEGIN OF ZUK,

MODUL(3) VALUE '001',

VTWEG LIKE VBAK-VTWEG,

SPART LIKE VBAK-SPART,

ABTNR LIKE LIPS-ABTNR,

EMPST LIKE LIPS-EMPST,

KUNNR LIKE LIKP-KUNNR ( This KUNNR (ship to party) is from LIKP table ,with the help of this code I think ,in the creation of invoice (VF01 Tcode) ,it will check ship to party and if he found different ship to party then invoice will split. Please help me on this)

END OF ZUK.

ZUK-SPART = VBAK-SPART.

ZUK-VTWEG = VBAK-VTWEG.

ZUK-ABTNR = LIPS-ABTNR.

ZUK-EMPST = LIPS-EMPST.

ZUK-KUNNR = LIKP-KUNNR

VBRK-ZUKRI = ZUK.

ENDFORM.

Can anybody tell me this will help me to split invoice .

Or I have to use USER EXIT ? and how

Thanks and Regards

Bhushan Kolte

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Yes your code will help in splitting the invoice. Actually the value mentioned in VBRK-ZUKRI will be used for splitting of invoice.

You dont need to go for user exits.

Hope this helps. Reward points if helpful.

Thanks

Balaji

Former Member
0 Kudos

Hi,

You do not have to go for user exit, the data transfer routine should help. I this this code is fair enough to split based on the ship to party.

Regards,

Murali

Former Member
0 Kudos

thanks alot i will ask my abaper to add this code in this routine