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: 

ALE IDOC IDOC_INBOUND_SINGLE updation issue

Former Member
0 Kudos
436

Hi Gurus,

I have a requirement where I have to process a large inbound IDOC and split it into small transaction IDOCS using FM IDOC_INBOUND_SINGLE.

In large IDOC suppose I have 5 PO header records so 5 small transaction IDOCs will be generated.

So far it is working fine. The client requirement is that when any one one small IDOC creation fails due to system failure or buffer issue, it should stop further IDOC processing and also not update the previous create small IDOCs.

For ex: Suppose 2 small IDOCs are created through FM IDOC_INBOUND_SINGLE and third processing fails it should not update the previous 2 IDOCS as well and also stop further processing.

I can see FM IDOC_INBOUND_SINGLE creating small IDOCS but I am not sure whether it will update database or not.

Please let me know whether this FM will automatically stop processing of previous IDOCs too or else I need to do further checks or coding to achieve the same?

Looking forward to your cooperation.

Thank you.

Best Regards,

Varun D.

4 REPLIES 4

former_member219762
Contributor
0 Kudos
131

Hi,

  Fill the parameter PI_DO_COMMIT to "X" for lost record only.

Regards,

Sreenivas.

Former Member
0 Kudos
131

Hi Sreenivasa,

pi_do_commit = 'X' will update the records.

How will it help me for lost record?

Best Regards,

Varun D.

0 Kudos
131

Hi,

   pi_do_commit trigger the commit work.The idoc's are updated in update function module.Update function module start only after commit work.So if you set that for lost record , all records are in one LUW.

Regards,

Sreenivas.

SyambabuAllu
Contributor
0 Kudos
131

Hi Varun,

I have to create IDOC like you using inbound idoc,Can you please tell me the steps to create inbound idoc(i.e your source code like above your post) from NON-SAP to SAP.

Thanks,

Syam