<?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 BDC Error Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552129#M250388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a BDC calling transaction FOB1 (the table used for the BDC is &amp;lt;b&amp;gt;it_bdcdata&amp;lt;/b&amp;gt;).&lt;/P&gt;&lt;P&gt;After calling the transaction i need to know which of posts where successfully processed in the transaction FOB1.&lt;/P&gt;&lt;P&gt;The reason i need to know that is because after the processing of the &amp;lt;b&amp;gt;it_bdcdata&amp;lt;/b&amp;gt; in the transaction i need to update a table with the documents that where successfully created. &lt;/P&gt;&lt;P&gt;How can i, after calling the transaction, return to my program and analyze the data processed in the call transaction and update one of my tables in the system with only the successfull documents created in FOB1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 15:55:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-10T15:55:10Z</dc:date>
    <item>
      <title>BDC Error Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552129#M250388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a BDC calling transaction FOB1 (the table used for the BDC is &amp;lt;b&amp;gt;it_bdcdata&amp;lt;/b&amp;gt;).&lt;/P&gt;&lt;P&gt;After calling the transaction i need to know which of posts where successfully processed in the transaction FOB1.&lt;/P&gt;&lt;P&gt;The reason i need to know that is because after the processing of the &amp;lt;b&amp;gt;it_bdcdata&amp;lt;/b&amp;gt; in the transaction i need to update a table with the documents that where successfully created. &lt;/P&gt;&lt;P&gt;How can i, after calling the transaction, return to my program and analyze the data processed in the call transaction and update one of my tables in the system with only the successfull documents created in FOB1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552129#M250388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552130#M250389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Calling the transaction 'fd01'.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'&lt;/P&gt;&lt;P&gt;    MESSAGES INTO IT_CUSTMSG.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*--Populating the error records internal table.&lt;/P&gt;&lt;P&gt;      IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.&lt;/P&gt;&lt;P&gt;      APPEND IT_ERRCUST.&lt;/P&gt;&lt;P&gt;      CLEAR IT_ERRCUST.&lt;/P&gt;&lt;P&gt;*--Opening a session if there is an error record.&lt;/P&gt;&lt;P&gt;      IF V_FLAG1 = ' '.&lt;/P&gt;&lt;P&gt;        PERFORM FORM_OPENSESSION.&lt;/P&gt;&lt;P&gt;        V_FLAG1 = 'X'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;*--Inserting the error records into already open session.&lt;/P&gt;&lt;P&gt;      IF V_FLAG1 = 'X'.&lt;/P&gt;&lt;P&gt;        PERFORM FORM_INSERT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;*--Populating the Success records internal table.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.&lt;/P&gt;&lt;P&gt;      APPEND IT_SUCCUST.&lt;/P&gt;&lt;P&gt;      CLEAR IT_SUCCUST.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;*--Displaying the messages.&lt;/P&gt;&lt;P&gt;    IF NOT IT_CUSTMSG[] IS INITIAL.&lt;/P&gt;&lt;P&gt;      PERFORM FORM_FORMATMSG.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;*--Clearing the message and bdc tables.&lt;/P&gt;&lt;P&gt;    CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Getting the total no of error records.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Getting the total no of successful records.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Closing the session only if it is open.&lt;/P&gt;&lt;P&gt;  IF V_FLAG1 = 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM FORM_CLOSESESS.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FORM_FORMATMSG .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Var to store the formatted msg.&lt;/P&gt;&lt;P&gt;  DATA : LV_MSG(255).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ID        = SY-MSGID&lt;/P&gt;&lt;P&gt;      LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;      NO        = SY-MSGNO&lt;/P&gt;&lt;P&gt;      V1        = SY-MSGV1&lt;/P&gt;&lt;P&gt;      V2        = SY-MSGV2&lt;/P&gt;&lt;P&gt;      V3        = SY-MSGV3&lt;/P&gt;&lt;P&gt;      V4        = SY-MSGV4&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      MSG       = LV_MSG&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;      OTHERS    = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; LV_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " FORM_FORMATMSG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ashok Parupalli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 15:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552130#M250389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T15:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552131#M250390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do like this:&lt;/P&gt;&lt;P&gt;data: it_messages like bdcmsgcoll occurs 0.&lt;/P&gt;&lt;P&gt;call transaction 'FOB1' using bdcdata options from x_ctuparams messages into it_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;loop at it_messages where msgtyp = 'S'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;One of msgv1,msgv2,msgv3,msgv4 will have a number of the document that has bee created.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;itab-number = it_messages-msgv1. "Or it may be 2,3,4 also&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ztab from itab. "itab should have the same structue as the ztable.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 16:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552131#M250390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T16:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552132#M250391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL TRANSACTION &amp;lt;tcode&amp;gt; USING IT_BDCDATA MODE 'A'&lt;/P&gt;&lt;P&gt;                               MESSAGES INTO IT_MESSTAB.&lt;/P&gt;&lt;P&gt;       IF NOT IT_MESSTAB[] IS INITIAL.&lt;/P&gt;&lt;P&gt;         PERFORM FORMAT_MESSAGES.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FORMAT_MESSAGES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DATA : L_LINES TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CLEAR: L_LINES,WA_IT_MESSTAB,V_MSG.&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE IT_MESSTAB LINES L_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE IT_MESSTAB INTO WA_IT_MESSTAB INDEX L_LINES.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;     CLEAR V_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;               ID        = WA_IT_MESSTAB-MSGID&lt;/P&gt;&lt;P&gt;               LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;               NO        = WA_IT_MESSTAB-MSGNR&lt;/P&gt;&lt;P&gt;               V1        = WA_IT_MESSTAB-MSGV1&lt;/P&gt;&lt;P&gt;               V2        = WA_IT_MESSTAB-MSGV2&lt;/P&gt;&lt;P&gt;               V3        = WA_IT_MESSTAB-MSGV3&lt;/P&gt;&lt;P&gt;               V4        = WA_IT_MESSTAB-MSGV4&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;               MSG       = V_MSG&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;               NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;               OTHERS    = 2.&lt;/P&gt;&lt;P&gt;     IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;     ELSE.&lt;/P&gt;&lt;P&gt;*-- If the messge type is S then the records in it_file&lt;/P&gt;&lt;P&gt;*-- are taken as success records&lt;/P&gt;&lt;P&gt;       IF WA_IT_MESSTAB-MSGTYP = C_S.&lt;/P&gt;&lt;P&gt;         IT_SUCCESS[] = IT_FILE[].&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;         READ TABLE IT_FILE WITH KEY MATNR = WA_IT_MESSTAB-MSGV3.&lt;/P&gt;&lt;P&gt;         IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;           IT_ERROR = IT_FILE.&lt;/P&gt;&lt;P&gt;           APPEND IT_ERROR.&lt;/P&gt;&lt;P&gt;           CLEAR IT_ERROR.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt; ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 16:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552132#M250391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Error Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552133#M250392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of you replys helped in understanding the question and solving it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all,&lt;/P&gt;&lt;P&gt;Pedro Gaspar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 10:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-error-control/m-p/1552133#M250392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T10:00:58Z</dc:date>
    </item>
  </channel>
</rss>

