<?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: error handling in bdc session method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548098#M853585</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;You have to use the function modules like&lt;/P&gt;&lt;P&gt;BDC_PROTOCOL_SELECT_QID&lt;/P&gt;&lt;P&gt;RSTS_OPEN_RLC&lt;/P&gt;&lt;P&gt;RSTS_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer this wiki posted by Sandra &lt;/P&gt;&lt;P&gt;[Get log of batch input session|http://wiki.sdn.sap.com/wiki/display/ABAP/Get&lt;EM&gt;log&lt;/EM&gt;of&lt;EM&gt;batch&lt;/EM&gt;input+session]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 18:38:57 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-11-17T18:38:57Z</dc:date>
    <item>
      <title>error handling in bdc session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548094#M853581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  can any one tell me how to handle the error in bdc session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know we can see the error log in sm35... i want to write the error log once the seesion completed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in which table the error log are stored...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any function module available...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz its urgent...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 02:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548094#M853581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T02:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: error handling in bdc session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548095#M853582</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;If you want to show the errors then what is the benefit of session method? Better use call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 02:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548095#M853582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T02:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: error handling in bdc session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548096#M853583</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;&lt;/P&gt;&lt;P&gt;If there are any error records in session, all those error records will get poulated in log .and after the session is completed , u can see error records which can be corrected and reprocessed again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the structures  BDCLD and BDCLM, which will capture the log details inthe session. Firstly, sesssion should be processed. After that log will be created. Then caputure the information into an internal table using BDCLM and BDCLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and refer the link.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="276525"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;raji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 06:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548096#M853583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T06:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: error handling in bdc session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548097#M853584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;It is better to use CALL TRANSCATION if  u want to display the error message.&lt;/P&gt;&lt;P&gt;Plz find below a sample code .&lt;/P&gt;&lt;P&gt;table gt_report contains the fields and messages to be displayed for error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_bdcmsgcoll type bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to update throuh BDC&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'CO02' USING gt_bdctab&lt;/P&gt;&lt;P&gt;                            MODE 'A'&lt;/P&gt;&lt;P&gt;                            UPDATE 'S'&lt;/P&gt;&lt;P&gt;                            MESSAGES INTO gt_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE text-t01 gwa_afko-aufnr text-t07 INTO lf_message SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      gwa_report-aufnr   = gwa_afko-aufnr.&lt;/P&gt;&lt;P&gt;      gwa_report-status  = text-t11.&lt;/P&gt;&lt;P&gt;      gwa_report-msgdes  = lf_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND gwa_report TO gt_report          .&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      LOOP AT gt_bdcmsgcoll INTO gwa_bdcmsgcoll WHERE msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            id        = gwa_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;            lang      = 'E'&lt;/P&gt;&lt;P&gt;            no        = gwa_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;            v1        = gwa_bdcmsgcoll-msgv1&lt;/P&gt;&lt;P&gt;            v2        = gwa_bdcmsgcoll-msgv2&lt;/P&gt;&lt;P&gt;            v3        = gwa_bdcmsgcoll-msgv3&lt;/P&gt;&lt;P&gt;            v4        = gwa_bdcmsgcoll-msgv4&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            msg       = lf_string&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;&lt;/P&gt;&lt;P&gt;        IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      gwa_report-aufnr   = gwa_bdcmsgcoll-msgv1.&lt;/P&gt;&lt;P&gt;      gwa_report-status  = text-t08.&lt;/P&gt;&lt;P&gt;      gwa_report-msgdes  = lf_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND gwa_report TO gt_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR : gwa_bdcmsgcoll, gwa_afko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if  useful.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 09:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548097#M853584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T09:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: error handling in bdc session method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548098#M853585</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;You have to use the function modules like&lt;/P&gt;&lt;P&gt;BDC_PROTOCOL_SELECT_QID&lt;/P&gt;&lt;P&gt;RSTS_OPEN_RLC&lt;/P&gt;&lt;P&gt;RSTS_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer this wiki posted by Sandra &lt;/P&gt;&lt;P&gt;[Get log of batch input session|http://wiki.sdn.sap.com/wiki/display/ABAP/Get&lt;EM&gt;log&lt;/EM&gt;of&lt;EM&gt;batch&lt;/EM&gt;input+session]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 18:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-handling-in-bdc-session-method/m-p/3548098#M853585</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-17T18:38:57Z</dc:date>
    </item>
  </channel>
</rss>

