Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Split of outbound IDoc: INVOIC

Former Member
0 Kudos

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.

Regards,

Raghu.

3 REPLIES 3

Former Member
0 Kudos

All, any ideas please?

0 Kudos

Hi,

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.

BR/Yogesh

Former Member
0 Kudos

tnx