You are on page 1of 16

Item Category with ZMBP

Maintain Item category group – ‘Item Category Group’ - NORM


Billing document: YFAZ
Sales Order Document Type
Copy control between Billing Type and Sales Order Type.

F2 billing type use for milestone and invoice closing billing type

Routine 901 is copy from ‘020’ and change to skip the error regarding to billing rule and Block of item.
Include RV60B901

FORM BEDINGUNG_PRUEFEN_901.
*{ INSERT DEVK913534 1

**********Added By Vaibhav Bhadane**********31.03.2017


**********Reference of Routine 020**********

data: da_avbpak like vbpavb.

sy-subrc = 0.
CHECK : analyze_mode IS INITIAL.
* Billing rule 4 or 5, down payment
IF NOT fplt-fareg CA '45'.
* PERFORM vbfs_hinzufuegen USING vbap-posnr '217' space space space.
sy-subrc = 4.
EXIT.
ENDIF.
* The creation of a down payment request is not possible for one-time
* customers (CPD).
READ TABLE avbpak INTO da_avbpak with key parvw = 'RG'.
IF da_avbpak-xcpdk NE space.
PERFORM vbfs_hinzufuegen USING '000000' '306' space space space.
sy-subrc = 4.
EXIT.
ENDIF.
* Billing block (item)
IF vbap-faksp NE space.
SELECT SINGLE * FROM tvfsp WHERE faksp = vbap-faksp
AND fkart = tvfk-fkart.
IF sy-subrc = 0.
PERFORM vbfs_hinzufuegen USING vbap-posnr '015' space
space space.
sy-subrc = 4.
EXIT.
ENDIF.
sy-subrc = 0.
ENDIF.

* Billing block
IF fplt-faksp NE space AND NOT vbrp-fplnr IS INITIAL.
SELECT SINGLE * FROM tvfsp WHERE faksp = fplt-faksp
AND fkart = tvfk-fkart.
IF sy-subrc = 0.
* PERFORM vbfs_hinzufuegen USING vbap-posnr '136' fplt-
afdat "Commented by Mahadeo 02.04.2017
* space space.
sy-subrc = 4.
EXIT.
ENDIF.
sy-subrc = 0.
ENDIF.
* Billing status
IF vbup-fksaa = ' '.
PERFORM vbfs_hinzufuegen_allg
USING vbap-vbeln vbap-posnr 'VF' 'I' '044'
space space space space.
sy-subrc = 4.
EXIT.
ENDIF.
IF vbup-fksaa = 'C'.
PERFORM vbfs_hinzufuegen USING vbap-posnr '045' space space space.
sy-subrc = 4.
EXIT.
ENDIF.
* Billing status of billing plan line item
IF fplt-fksaf = ' '.
PERFORM vbfs_hinzufuegen USING vbap-posnr '143' fplt-afdat
space space.
sy-subrc = 4.
EXIT.
ENDIF.
IF fplt-fksaf = 'C'.
PERFORM vbfs_hinzufuegen USING vbap-posnr '142' fplt-afdat
space space.
sy-subrc = 4.
EXIT.
ENDIF.
* Billing block customer
IF kurgv-faksd NE space.
SELECT SINGLE * FROM tvfsp WHERE faksp = kurgv-faksd
AND fkart = tvfk-fkart.
IF sy-subrc = 0.
PERFORM vbfs_hinzufuegen USING '000000' '068' kurgv-kunnr
space space.
sy-subrc = 4.
EXIT.
ENDIF.
sy-subrc = 0.
ENDIF.
*} INSERT
ENDFORM.

Add AZWR condition type before taxes and maintain requirement -2 and Cal Type 48 and Acct Key ERL.
Condition Type AZWR
Billing plan should have configured:

Define billing plan for Milestone Billing:

Create Date Description


Define And Assign Date Categories
Allocation of default Category.

Maintain Date Proposals For Billing Plan Types

Assign Billing Plan Types To Sales Document Types


Assign Billing Plan Types To Item Categories

Define Rules For Determining Dates

Additional PS settings
This will manage the date of billing plan in sales order through PS project activity date. Also billing block will
release after the confirmation of PS activity.

Following are the settings from FI side for Advance payment request from SD
Set reconciliation account (TC: OBXR) – For the ‘Received Down Payment’ and ‘Down Payment Request’. Piles
Assign the field status group G031 in G/L.

Maintain the accounting configuration (TC: OBXB) – For the down payments (posting key ANZ)
And output tax clearing (posting key MVA in Standard system) , must maintain the posting key.
Maintain the posting key (Transaction OB41) , For posting key 19 , set the sales order as a optional field.

Maintain the field status definition (Transaction OB14) for the field status variant 0001, and field status group
Z031, set the sales order as an optional field.
Assign the field status variant to company code (OBC5)