on 08-31-2007 10:54 PM
Dear All,
Please help me getting this issue resolved.
I am creating a delivery and some pupose i need to create a proforma invoice against the same. But system is allowing me to create multiple proforma invoices against a delivery. Delivery type i am using is LF and proforma invoice is F8.
please help me resolving this issue as i wish to create only one proforma invoice for single delivery. system shouldn't allow to create multiple proforma invoices against a delivery.
Please help on urgent basis .
Thanks and regards
Amit
By default, SAP allows you to create multiple proforma. You can stop this by writing ABAP code in the copy control.
Let me know if you need more info.
Pl rewards points if you find this useful.
Thanks,
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Select count from VBFA table for the delivery number in preceding document (take the user entered delivery number) and proforma invoice cateogry in subsequent document category Proforma Invoice (U). If the count is more than zero, then terminate it.
You need only enable this check for when user tries to create proforma invoice and not regular invoice (Invoice Type - F8).
Let me know if you need more details.
Please reward points.
Thanks,
Ramesh
for example:
You can coding in program which name is LV60A010 and assign item's Copying requirements with 010 in copy control from D/N to Billing.
You can insert these codes below into top of program.
data l_vbeln like lips-vbeln.
select single vbeln
into l_vbeln
from vbfa
where vbelv = lips-vbeln
and posnv = lips-posnr
and vbtyp_n = 'U'.
if sy-subrc = 0.
message e000(zv) with 'You can't created another Proforma Invoice by such Delivery Note.'.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amit
Did this resolve the issue? Let me know if you need more details.
Pl reward points if my earlier post resolved the issue.
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.