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

Working with Invoic02 IDOC extension

Hi Experts,

We have implemented an I NVOIC02 idoc extension (ZINVOC02) acording to SAP notes for Digital Invoice Mexico and the scenario is working perfectly.

Now is required to use the standard idoc for other country without the extension.

I expected to be able to control the use Z extensions by t-code WE20 by leaving blank the field extension for those customers that do not requires the extended segments and filling that field only for those that needed. Unfortunately, even when the field "Extension" in WE20 is blank, the Z segments are being created.

Is important to note that, if I fill the extension field in WE20 with value ZINVOIC02 the idoc takes the extension estructure in the rigth way but if that field is blank algo generates the Z segments but with an incorrect structure.

Please advice me, is there any way to handle the use of an extension for certain customers (company code, contry or other) by customizing or is needed some ABAP development?

Thanks in advance,

Rafael

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 21, 2011 at 02:55 AM

    I suspect that your outbound Function Module populates the extra segments without checking the Extension first. Just add a qualifier to your FM Userexit, i.e. :

    If EDIDC-CIMTYP = "ZINVOIC02"

    • Populate Extension Segments

    Else

    Cheers, Paul.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 18, 2011 at 08:19 PM

    Even when the proposed code also solved the issue some additional steps were implemented, like creating new output condition records.

    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.