on 03-26-2008 12:50 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.