Thursday, April 9, 2009

Create a Collective Billing Spiltting rule


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.

1 comment:

  1. Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. Medical Billing Services

    ReplyDelete