cancel
Showing results for 
Search instead for 
Did you mean: 

Commercial Invoice without doing PGI

Former Member
0 Kudos

How to configure to allow billing document (commercial invoice - Not the Proforma invoice) to be created (but not posted - No accounting ) prior to the post goods issue.

The actual posting takes place at post goods issue.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Dear Sachin

You don't want to make billing before the PGI date in the delivery.

You can do it in the following manner with the help of ABAPER

Run T Code

CMOD give your project name click on "Enhancement assignment"provide there

SDVFX001:User exit header line in delivery to accounting and then click on component

Function exit                  EXIT_SAPLV60B_001

Click and then enter on ZXVVFU01

and write the following code

DATA :DEL_DATE TYPE SY-DATUM .

   IF SY-TCODE = 'VF01' OR SY-TCODE = 'VF02'.

     SELECT SINGLE WADAT_IST INTO DEL_DATE FROM LIKP WHERE VBELN = CVBRP-VGBEL .

     IF DEL_DATE IS NOT INITIAL .

       IF VBRK-FKDAT LT DEL_DATE.

         MESSAGE  'Billing date is less than Goods Issue date' TYPE 'E'.

       ENDIF .

      ENDIF .

   ENDIF .

By doing this it won't allow you to create invoice but with the help of ABAPER you can block it for posting.

This will resolve your issue.

Kind regards

Ashish Mishra

Former Member
0 Kudos

Hi Sachin ,

You have to do the following.

1) Enable "Posting Block" field in the Billing Type

2) Check the Copy control from Delivery to Billing (VTFL) so that system should not validate the status of the Delivery.Refer the standard requirement 11. Assign it to the line item.

3) Do the enhancement in VFX3 so that before releasing the Billing, system should validate the PGI status of the delivery.

Regards

Vinu.N

0 Kudos

Hi Sachin,

In billing document, you can select "Posting block" on which will avoid posting the invoices to post to accounting.

To post it to accounting, you can manually run VFX3 and post it or built an enhancement in MV45AFZ1 with logic that if Actual PGI or Goods movement status is C then process the invoice to accounting.

Thanks

Nikhil

Former Member
0 Kudos

Hi Sachin,

use Posting Block option in your Billing Document Type, and write coding in MV50AFZ1 so as at the time of PGI the relevant billing document will automatically released to accounting.

thanks,

Sandeep Singh Chauhan