<?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: Errors in Call transaction and Session method. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-call-transaction-and-session-method/m-p/3846414#M924764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For call Transaction:&lt;/P&gt;&lt;P&gt;We can use session method logfile in call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. We have to send error records in to one internal table.&lt;/P&gt;&lt;P&gt;2. Next for that itab we can use session method.&lt;/P&gt;&lt;P&gt;3. With this we will get session method log file in call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can use funtion module WRITE_MESSAGES and FORMAT_MESSAGES to read the messeges in stead of BDCMSGC&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4451322"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For session method:&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;Sessions can be viewed in SM35.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2008 09:42:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-12T09:42:41Z</dc:date>
    <item>
      <title>Errors in Call transaction and Session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-call-transaction-and-session-method/m-p/3846412#M924762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain me in detail with example how to handle errors in call transaction method and session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-call-transaction-and-session-method/m-p/3846412#M924762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in Call transaction and Session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-call-transaction-and-session-method/m-p/3846413#M924763</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;In Session Method Datawill be stored in session.In that session u can find error recods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CALL Transation useing 'FORMAT_MESSAGE' Function Module u can catch the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_messtab. &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FORMAT_MESSAGE' &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      id     = it_messtab-msgid &lt;/P&gt;&lt;P&gt;      lang   = it_messtab-msgspra &lt;/P&gt;&lt;P&gt;      no     = it_messtab-msgnr &lt;/P&gt;&lt;P&gt;      v1     = it_messtab-msgv1 &lt;/P&gt;&lt;P&gt;      v2     = it_messtab-msgv2 &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;    msg    =  g_msg &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;      OTHERS = 0. &lt;/P&gt;&lt;P&gt;  IF it_messtab-msgtyp = 'S'. &lt;/P&gt;&lt;P&gt;    it_sucess-sucess_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_sucess-lifnr = it_header-lifnr." Based on your field &lt;/P&gt;&lt;P&gt;    it_sucess-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_sucess. &lt;/P&gt;&lt;P&gt;  ELSEIF it_messtab-msgtyp = 'E'. &lt;/P&gt;&lt;P&gt;    it_error-error_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_error-lifnr = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_error-tabix = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_error. &lt;/P&gt;&lt;P&gt;  ELSE. &lt;/P&gt;&lt;P&gt;    it_info-info_rec = g_msg. &lt;/P&gt;&lt;P&gt;    it_info-lifnr    = it_header-lifnr. &lt;/P&gt;&lt;P&gt;    it_info-tabix    = v_lines. &lt;/P&gt;&lt;P&gt;    APPEND it_info. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_BDC_MESSAGES.&lt;/P&gt;&lt;P&gt;    IF IT_BDC_MESSAGES-msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT single  * FROM t100  WHERE&lt;/P&gt;&lt;P&gt;                                sprsl = it_BDC_MESSAGES-msgspra&lt;/P&gt;&lt;P&gt;                                AND   arbgb = IT_BDC_MESSAGES-msgid&lt;/P&gt;&lt;P&gt;                                AND   msgnr = IT_BDC_MESSAGES-msgnr.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        l_mstring = t100-text.&lt;/P&gt;&lt;P&gt;        IF l_mstring CS '&amp;amp;1'.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;1' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;2' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;3' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;4' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.&lt;/P&gt;&lt;P&gt;          REPLACE '&amp;amp;' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        CONDENSE l_mstring.&lt;/P&gt;&lt;P&gt;        it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.&lt;/P&gt;&lt;P&gt;        it_mess-lms = l_mstring.&lt;/P&gt;&lt;P&gt;        it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.&lt;/P&gt;&lt;P&gt;        APPEND it_mess.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.&lt;/P&gt;&lt;P&gt;        it_mess-lms = l_mstring.&lt;/P&gt;&lt;P&gt;        it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.&lt;/P&gt;&lt;P&gt;        APPEND it_mess.&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-call-transaction-and-session-method/m-p/3846413#M924763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in Call transaction and Session method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-call-transaction-and-session-method/m-p/3846414#M924764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For call Transaction:&lt;/P&gt;&lt;P&gt;We can use session method logfile in call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. We have to send error records in to one internal table.&lt;/P&gt;&lt;P&gt;2. Next for that itab we can use session method.&lt;/P&gt;&lt;P&gt;3. With this we will get session method log file in call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can use funtion module WRITE_MESSAGES and FORMAT_MESSAGES to read the messeges in stead of BDCMSGC&lt;/P&gt;&lt;P&gt;Refer:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4451322"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For session method:&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;Sessions can be viewed in SM35.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2008 09:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-in-call-transaction-and-session-method/m-p/3846414#M924764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-12T09:42:41Z</dc:date>
    </item>
  </channel>
</rss>

