on 10-06-2011 9:19 AM
Hello,
I am a new forum member (after reading and using a lot of postings - thanks).
my problem is: After the language is changed (e.g. from IT to DE) in the customer master data, there will be another print of the invcoice, if someone is changing the invoice (VF02). This happens, when you cancel the invoice. In our process, we want to avoid a new print out.
To make it clear:
1. invoice is printed (lets say in DE)
2. Change of language code in customer (VD02)
3. invoice is canceled: a new output will be created
I dindn't find the way to avoid the new output.
Thank you experts!
Hans
Hi
Wellcome to SDN. As the language is new, the determination (tcode VV31) create a new output. To avoid it, create a VOFM requirement and set it in mantain output determination procedure (IMG for SD / basic functions / output control / output determination / mantain output det. for billing doc. / mantain output det. procedure ).
For the coding try with a coding as this (see req. 101 as a template) where xxx is your VOFM. I am not sure, but in debugging check the value for GT_KNVD, I think that it has the value for the language for customer
FORM KOBED_xxx.
LOOP AT XNAST WHERE KSCHL EQ KOMT1-KSCHL AND
OBJKY EQ MSG_OBJKY AND
SPRAS NE GT_KNVD-SPRAS AND
AKTIV EQ SPACE AND
VSTAT EQ '0'.
EXIT.
ENDLOOP.
CHECK SY-SUBRC = 0. "YOU SEARCH IT
SY-SUBRC = 4. "DON'T CREATE THE OUTPUT
ENDFORM.
See Note 156230 - Requirements: What is permitted, what is not?.
I'm not sure that coding will work, but try to do it with debugging and you will understand how it works.
I hope this helps you
Regards
Eduardo
Edited by: E_Hinojosa on Oct 6, 2011 3:37 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
help was usefull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Uncheck the box Multiple issuing in t.code V/40 for the billing output type and create new document and test.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.