Monday, June 27, 2011

Create a Collective Billing Spiltting rule in SAP SD

Billing
SAP Billing represents the final processing stage for a business transaction in Sales and Distribution. Information on billing is available at every stage of order processing and delivery processing.


4.6x
VTFL - Check copy control rules
Target Source
e.g. Select F2 - Invoice LF Delivery
Click Item
e.g. Double click on Tan - Standard Item
Check Data VBRK/VBRP - Copy rule number in use e.g. 900
VOFM - Creating a splitting rule
Click Data Transafer -> Billing documents
Copy the standard 1 - Inv.split (sample) to a e.g. 900 series number range
A new splitting rule 900 will be created, follows by a program FV60C900.
In program FV60C900, SAP has a standard internal table called ZUK where you can define fields that must be compared and be equal before a billing may be combined. However, total characters allowed is 40 will be store on the billing header table VBRK.
e.g. Program FV60C900
DATA: BEGIN OF ZUK,
MODUL(3) VALUE '900',
BUPLA LIKE VBRK-BUPLA, "Business place
LIFNR LIKE LFA1-LIFNR, "Consignor (Vendor Consignment)
MWSKZ LIKE VBRP-MWSKZ, "Tax code
END OF ZUK.
ZUK-BUPLA = VBRK-BUPLA.
ZUK-LIFNR = LFA1-LIFNR.
ZUK-MWSKZ = VBRP-MWSKZ.

No comments:

Post a Comment