Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 06, 2011 at 01:37 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 06, 2011 at 03:30 PM

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

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2011 at 09:33 AM

    help was usefull.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.