cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent Proforma invoice before PGI

Former Member
0 Kudos

Hi,

I am configuring proforma invoice in STO scenario and the requirement is tht the system should not allow the user to create proforma invoice before goods issue is posted. Kindly advice if any standard routine is available in SAP and whether I should assign it at item or header level in VTFL (delivery to billing copy control).

Accepted Solutions (1)

Accepted Solutions (1)

jiteshmehta
Active Contributor
0 Kudos

Dear Rahul

Please check the code - it will work only in case Billing Quantity field at item level is either B or D.

  • do not invoice without goods issue posted

if tvcpf-fkmgk ca 'BD'.

if vbapf-erlmenge_p ne vbapf-rmenge_p

or vbapf-rmenge_p is initial.

perform vbfs_hinzufuegen using '000000' '066'

space space space.

sy-subrc = 4.

exit.

endif.

endif.

Regards

Jitesh

Former Member
0 Kudos

Dear Jitesh,

I copied new rountines 650 based on 9 in coping requriement billing document and added the code below mentioned. But there is no active tick after activation. How to make it active to get 650 requirements in VTFL copy control.

Regards

R.Sureshkumar

Answers (1)

Answers (1)

Former Member
0 Kudos

yep ur correct, you need to maintain the logic in copying requirement.

Former Member
0 Kudos

yes but which routine should I use for tht? SAP help tells me to use data transfer routine 3, but when I use it I get an error saying "this document is not relevent for billing" I am creating a proforma invoice.

Former Member
0 Kudos

Hi Rahul,

There is no such standard routine avialable in standard SAP.

But you can copy routine number 9 in VTFL copying requirement at header level and create your qwn Z routine .Here you can write the code for your requirement.

Reward points if useful

Regards,

Amrish Purohit

Former Member
0 Kudos

Hi Amrish,

Pls help me reg'ing my queries for 'ONE TIME CUSTOMER" & "INTEGRATION WITH SD & PPQM MODULES".

Regards,

Vinod