cancel
Showing results for 
Search instead for 
Did you mean: 

SD Invoice: New output is created after change of customer language

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

help was usefull.

Shiva_Ram
Active Contributor
0 Kudos

Uncheck the box Multiple issuing in t.code V/40 for the billing output type and create new document and test.

Regards,

Former Member
0 Kudos

The box 'Multiple issuing' is already blank. The next thing I will check is the 1st reply (see above).

Thanks.