cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order / Proformo Invoice / Billing Plan

measum_kumail2
Participant
0 Kudos

Hi,

I am creating a Proforma invoice based on a sales order with a single line item having a billing plan at item level.

problem is that all items in billing plan are copied into the proforma invoice irrespective of its block status (at billin plan level).

e.g. if there are 2 lines in billing plan and one is not block and other is blocked. but when i create a proforma invoice F5, both line items from billing plan are copied into the proforma invoice document. i've maintained "008" in copy control at item level.

Any1 idea where to check this problem.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

System only checks the VBAP - FAKSP.

You have to create your own copying requirments from "008" and incoporate the code to check the Billing Block at billing plan level ie FPLT-FAKSP.

See current block of code written for normal billing block

  • Billing block

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.

Like Wise you have to write the code for FPLT-FAKSP and then user removes the block from header level.

and saves the order will be available for billing

Former Member
0 Kudos

Hi,

If you assign billing plan at item, it will give billing due dates so when ever you create invoice you have to specify due date,

or else

you have to run VF04, then you will get all due dates, select proper date and create proforma invoice

kapil