09-03-2008 9:35 AM
Dear All,
I am creating ALEAUD Idocs from an incoming CONTRL or BANSTA file. This incoming file can have multiple BANSTA/CONTRL messages, for which I need to create atleast one ALEAUD(maybe multiple) per BANSTA/CONTRL message. The requirement here is that the IDocs be committed only when all the IDocs corresponding to the incoming message are successfully created i.e. if the incoming file has 10 messages, then 10 IDocs have to be created, but committed only when all these 10 are successfully created.
I tried using the FM 'IDOC_INBOUND_SINGLE' by setting the error flag and do_commit parameter but it works only when there is an error in the header of the IDoc and cannot be created. It does not work in case the IDoc is created but with in an error status.
Can anyone please suggest what else are the possibilities ?
Thanks in advance,
Archana.
09-03-2008 9:38 AM
Yes you can , say post idoc's collectively after say N number or post idoc's at the end of each day .
09-03-2008 9:38 AM
Yes you can , say post idoc's collectively after say N number or post idoc's at the end of each day .
09-03-2008 9:41 AM
Hi Karthik,
How can this be done. Is there some FM that I can use ?
Can you guide me to some example.
09-03-2008 9:47 AM
09-03-2008 2:51 PM
Hi Pavan,
Thanks for your reply.
I could not really understand the relevance of that post with my question. Could you please explain a little more.
09-11-2008 8:56 AM
Hi,
I finally managed to handle this situation using FM 'IDOC_INBOUND_SINGLE'. I realised there is a message statement after this FM, and if that is executed the rollback is not successful, hence just removed the message statement and it works as desired. Still in case anybody has any other suggestions please let me know. They are always welcome.
Thank you all for your attention.