on 09-28-2013 11:05 AM
Hi,
One of my Client have a Requirement as
Once the Original invoice is cancelled the Printout of the Original invoice should not Generate
is this user exit sufficient or Please suggest
USEREXIT_FILL_VBRK_VBRP
Recently I had same requirement, and what we did is created new requirement type and had code to not to execute output determination if
sy-subrc = 4.
if KOMKBV3-fksto = 'X' and KOMKBV3-FKART = 'F2'and assigned that requirement to output determination
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Robert is right, do it with a VOFM and perhaps you can consider SAP Note 32662 - User name added to new condition table to avoid performance troubles (instead V2, change to V3 because I believe in KOMKBV3 there isn't a field for this information), but if you don't achieve it, or as an additional measure, you can modify the smartform and write a watermark with the text 'Cancelled Invoice'.
I hope this helps you
Regards
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Siva,
Can u pls give little bit more information on which condition type your using for print output, its procedure. All these details you will get in TCODE NACE against V3 billing type. Look at for your output procedure & against its output condition type. Then you have to take help from Abaper & get the print progrm changed to look at from VBFA table if subsequent document i.e; Cancellation document created based on invoice then restrict to output condition to be triggered.
This may help you.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Friend,
Can you clear my doubt , once you had cancelled the invoice, then how will you take the invoice print .????
Regards,
Kundan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva,
You can try by putting a requirement logic in output determination procedure. The logic can be built based on the billing document Status.
If the billing document is created but not passed to account, we can stop the print based on the status as per standard behavior. Similarly we can block the output with Cancelled status.
You can give a try.
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
printout is based on condtions and you can use a VOFM routine to suppress a message during message determination.
If the message was already determined and you would like to block user from re-print i think you have to change the corresponding print program.
Best regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
why user exit, dont maintain condition records for cancel doc type?
Jagdeesh
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.