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

Split of outbound IDoc: INVOIC

Hello All,

Following is my client requirement:

They need to send invoices to their customers via EDI. I plan to setup INVOIC message type and send invoice data through INVOIC01 IDoc type. However, my client requirement is that whenever the invoice contains more than 8 line items the IDoc should be split i.e. for every 8 line items a new IDoc should be sent.

Following are the restrictions:

1) No split of documents allowed in SAP i.e. invoice split in SAP is not allowed--it is illegal.

2) Client is NOT comfortable using XI interface.

3) The split of data has to happen in SAP itself i.e. splitting this data in middle ware is too costly for the client.

I've done some high level analysis of this-->

Creating a stand-alone program for IDoc creation:

This would require an impeccable mapping between the database fields for invoice and corresponding IDoc segment fields. The splitting can be taken care when the segments are filled and IDoc creation triggered through SDATA of MASTER_IDOC_DISTRIBUTE. It is doubtful how far the standard IDoc creation process can be replicated in the Z program and hence the feasibility of the program.

Please let us know if you have encountered a similar scenario and any probable solutions for the same. Many thanks in advance.



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 May 30, 2009 at 02:33 PM

    All, any ideas please?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      My only concern is, even if you have managed to split the invoice, how does it get tallied in the recieving system. How will they recognize its the same document which is split and how manys IDocs are on its way?

      If you are already clear with those, then the only worse way it comes to my mind is doing the splitting the IDOC_DATA in any user exits of IDOC_OUTPUT_INVOIC.

      1) Try to check if there is any user exits/badi in IDOC_OUTPUT_INVOIC available before creating the IDoc. I didnt find any. so we have to go for Implicit enhancements.

      IDOC_OUTPUT_INVOIC i hope gets called only once during the transaction run

      Im not sure functionaly how your are going to split. Blindly 8 line items wil do?

      2) You can talk to your functional consultant if there is any SPRO config that can be done to split the document in SAP. (I understand SAP doesnt allow from your comments, but you can give a check if you have not already)

      I suggest better you convince your customer stating splitting is against the functionlity of SAP if it is.


  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2011 at 07:03 AM


    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.