on 03-18-2009 4:42 AM
Dear SD Experts,
Please find my scenario as created below
Sales Order --> Outbound Delivery with PGI --> Billing (posted) --> Return Order --> Inbound Delivery with PGR --> Credit Memo (posted)
My question is why it is still possible to cancel Billing even after I have created and posted Credit Memo? There should be a control or something?
Please advise. Thanks!
Regards,
LEE
Hi
SAP does not have control/check on invoice to verify the subsequent documents or processed documents. To avoid this kind of situvation you need to incorporate 2 lines coding in routine.
The standard routine is 005 is assigned between S1 to F1 and S1 to F2 at header level. You need to incorporate 2 lines to check successfully processed invoices and which subsequent documents should not be cancelled. this routine should be customized in VOFM. You need to copy the existing logic in 005 and incorporate your own logic and save as 999 and assign to copy control level.
When try to cancel the invoice, system will not allow. If require you can incorporate message class also.
Thanks & regards
Ugamesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yeow,
In your billing document at the header level, in header tab --> General information is the 'Cancelled' switch on ???
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Krishnan,
Yes the 'Cancelled' is switched on...that's because the invoice has been cancelled.
Generally i'm able to cancel and invoice and re-do a new one provided there are no subsequent documents created for example return order & credit memo. But i want the system to stop me from cancelling an invoice after a credit note is created and posted for security purposes.
Is that possible?
Yes I have also tested this scenario till generating credit note and again cancel the origin billing document. System is allowing to cancel the billing document despite there is a subsequent document.
Hence, in order to control this, you can try with the following billing user exit
- USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
where you can add a logic such that in VBFA table, for any billing document, if there is a subsequent document, one should not cancel the billing document in VF11.
thanks
G. Lakshmipathi
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.