<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Idoc processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221157#M768178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reprocess an Idoc which is failed follow the steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For failed transactional data ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Inbound side(51 status).&lt;/P&gt;&lt;P&gt;1. In the partner system open transaction SE38.&lt;/P&gt;&lt;P&gt;2.Use program RBDMANI2.&lt;/P&gt;&lt;P&gt;3.Give the Idocs and save as background job.&lt;/P&gt;&lt;P&gt;4.Go to SM36 and run the job.&lt;/P&gt;&lt;P&gt;5.Check the Idocs in the spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Outbound error i.e in 02 status,&lt;/P&gt;&lt;P&gt;1.In partner sys open SE38.&lt;/P&gt;&lt;P&gt;2.Use RBDAGAIN program and run a job.&lt;/P&gt;&lt;P&gt;3.The Idocs will be in 30 status now.&lt;/P&gt;&lt;P&gt;4.Now in SE38 again,use RSEOUT00 and run a job which would then pass the Idocs to the port,which is a success state(03 status).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its useful,&lt;/P&gt;&lt;P&gt;Sravani&lt;/P&gt;&lt;P&gt;Please assign points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Dec 2007 22:37:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-29T22:37:22Z</dc:date>
    <item>
      <title>Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221155#M768176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I need your help .I am very new in Idoc kindly provide me some valuable document with steps for reprocessing Idoc which is fail.&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Ankur Garg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 15:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221155#M768176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T15:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221156#M768177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ankur Garg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can reprocess a failed IDOC using transaction BD87. But before that, you have to correct the error that caused the failure. You may find a hint for the error in status records (WE05).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 16:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221156#M768177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221157#M768178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reprocess an Idoc which is failed follow the steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For failed transactional data ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Inbound side(51 status).&lt;/P&gt;&lt;P&gt;1. In the partner system open transaction SE38.&lt;/P&gt;&lt;P&gt;2.Use program RBDMANI2.&lt;/P&gt;&lt;P&gt;3.Give the Idocs and save as background job.&lt;/P&gt;&lt;P&gt;4.Go to SM36 and run the job.&lt;/P&gt;&lt;P&gt;5.Check the Idocs in the spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Outbound error i.e in 02 status,&lt;/P&gt;&lt;P&gt;1.In partner sys open SE38.&lt;/P&gt;&lt;P&gt;2.Use RBDAGAIN program and run a job.&lt;/P&gt;&lt;P&gt;3.The Idocs will be in 30 status now.&lt;/P&gt;&lt;P&gt;4.Now in SE38 again,use RSEOUT00 and run a job which would then pass the Idocs to the port,which is a success state(03 status).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its useful,&lt;/P&gt;&lt;P&gt;Sravani&lt;/P&gt;&lt;P&gt;Please assign points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2007 22:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221157#M768178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-29T22:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221158#M768179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls find this material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward pts also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepanker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP IDOC PROCESSING &lt;/P&gt;&lt;P&gt;Creating and processing IDocs is primarily a mechanical task, which is certainly true for most interface programming. We will show a short example that packs SAP R/3 SAPscript standard text elements into IDocs and stores them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound IDocs from R/3 are usually created by a function module. This function&lt;/P&gt;&lt;P&gt;module is dynamically called by the IDoc engine. A sophisticated customising&lt;/P&gt;&lt;P&gt;defines the conditions and parameters to find the correct function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface parameters of the processing function need to be compatible with a&lt;/P&gt;&lt;P&gt;well-defined standard, because the function module will be called from within&lt;/P&gt;&lt;P&gt;another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDoc inbound functions are function modules with a standard interface, which will&lt;/P&gt;&lt;P&gt;interpret the received IDoc data and prepare it for processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The received IDoc data is processed record by record and interpreted according to&lt;/P&gt;&lt;P&gt;the segment information provided with each record. The prepared data can then be&lt;/P&gt;&lt;P&gt;processed by an application, a function module, or a self-written program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example programs in the following chapters will show you how texts from the&lt;/P&gt;&lt;P&gt;text pool can be converted into an IDoc and processed by an inbound routine to be&lt;/P&gt;&lt;P&gt;stored into another system.&lt;/P&gt;&lt;P&gt;The following will give you the basics to understand the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP R/3 allows the creation of text elements, e.g. with transaction SO10. Each&lt;/P&gt;&lt;P&gt;standard text element has a control record which is stored in table STXH. The text&lt;/P&gt;&lt;P&gt;lines themselves are stored in a special cluster table. To retrieve the text from the&lt;/P&gt;&lt;P&gt;cluster, you will use the standard function module function READ_TEXT . We&lt;/P&gt;&lt;P&gt;will read such a text and pack it into an IDoc. That is what the following simple&lt;/P&gt;&lt;P&gt;function module does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no convenient routine to process data, the easiest way to hand over the&lt;/P&gt;&lt;P&gt;data to an application is to record a transaction with transaction SHDB and create a&lt;/P&gt;&lt;P&gt;simple processing function module from that recording.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound routines are called by the triggering application, e.g. the RSNAST00&lt;/P&gt;&lt;P&gt;program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inbound processing is triggered by the central IDoc inbound handler, which is&lt;/P&gt;&lt;P&gt;usually the function module IDOC_INPUT . This function is usually activated by&lt;/P&gt;&lt;P&gt;the gatekeeper who receives the IDoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound is triggered by the application.&lt;/P&gt;&lt;P&gt;Inbound is triggered by an external event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most difficult work when creating outbound IDocs is the retrieval of the application data which needs sending. Once the data is retrieved, it needs to be converted to IDoc format, only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each R/3 standard text element has a header record which is stored in table STXH.&lt;/P&gt;&lt;P&gt;The text lines themselves are stored in a special cluster table. To retrieve the text&lt;/P&gt;&lt;P&gt;from the cluster, you will use the standard function module function&lt;/P&gt;&lt;P&gt;READ_TEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program below will retrieve a text document from the text pool, convert the text&lt;/P&gt;&lt;P&gt;lines into IDoc format, and create the necessary control information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first step is reading the data from the application database by calling the&lt;/P&gt;&lt;P&gt;function module READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our next duty is to pack the data into the IDoc record. This means moving the&lt;/P&gt;&lt;P&gt;application data to the data part of the IDoc record structure EDIDD and filling the&lt;/P&gt;&lt;P&gt;corresponding segment information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, we have to provide a correctly filled control record for this IDoc. If the IDoc routine is used in a standard automated environment, it is usually sufficient to fill the field EDIDC-IDOCTP with the IDoc type, EDIDC-MESTYP with the context&lt;/P&gt;&lt;P&gt;message type and the receiver name. The remaining fields are automatically filled&lt;/P&gt;&lt;P&gt;by the standard processing routines if applicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inbound processing is basically the reverse process of an outbound.. The received IDoc has to be unpacked, interpreted and transferred to an application for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The received IDoc data is processed record by record and data is sorted out according to the segment type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the IDoc is unpacked data is passed to the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally the processing routine needs to pass a status record to the IDoc processor.&lt;/P&gt;&lt;P&gt;This status indicates successful or unsuccessful processing and will be added as a&lt;/P&gt;&lt;P&gt;log entry to the table EDIDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The status value '51' indicates a general error during application processing and the&lt;/P&gt;&lt;P&gt;status '53' indicates everything is OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 04:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-processing/m-p/3221158#M768179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T04:50:52Z</dc:date>
    </item>
  </channel>
</rss>

