<?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: BDC SESSION ERROR LOG IN INTERNAL TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187132#M1000937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are running the bdc transaction with call transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION TCODE USING BDCDATA&lt;/P&gt;&lt;P&gt;                     MODE   'N'&lt;/P&gt;&lt;P&gt;                     UPDATE 'S'&lt;/P&gt;&lt;P&gt;                     MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All your messages are stored in internal table MESSTAB. So, after you run this command, you can loop this internal table and write it to screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 20:23:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-22T20:23:32Z</dc:date>
    <item>
      <title>BDC SESSION ERROR LOG IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187131#M1000936</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;I have to use BDC session method for posting GL accounts (through FB01) and if something goes wrong with the posting then user must be informed about it through messages in the screen(interface). The crux of the problem is "How to fetch the error from BDC session and store it into the internal table". Any other alternative is also welcome , Please suggest !!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 20:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187131#M1000936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T20:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: BDC SESSION ERROR LOG IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187132#M1000937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are running the bdc transaction with call transaction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION TCODE USING BDCDATA&lt;/P&gt;&lt;P&gt;                     MODE   'N'&lt;/P&gt;&lt;P&gt;                     UPDATE 'S'&lt;/P&gt;&lt;P&gt;                     MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All your messages are stored in internal table MESSTAB. So, after you run this command, you can loop this internal table and write it to screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 20:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187132#M1000937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T20:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC SESSION ERROR LOG IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187133#M1000938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this Program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSBDC_PROTOCOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the Form &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form get_logfiles_from_temse.
* are there any logs in the TemSe for this QID ?
  clear logtab_temse[].
  clear itab_bdcld[].
*----------------------------------------------------------------------*
  if log_quid eq 0.
    call function 'BDC_PROTOCOL_SELECT'
         exporting
              name         = d0100-mapn
              client       = sy-mandt
              date_from    = d0100-von
              date_to      = d0100-bis
              status       = '*'
              session_user = d0100-creator
         tables
              apqltab      = logtab_temse
         exceptions
              invalid_data = 1
              others       = 2.

    if sy-subrc &amp;lt;&amp;gt; 0.
      message s324.                    "Kein Protokoll vorhanden
      exit.
    endif.

  else.
    select * from apql into table logtab_temse
             where ( qid = log_quid ).
    check sy-subrc = 0.
  endif.
*----------------------------------------------------------------------*

* some logs were found: now put this info into table bdcld.
  data: wa_log like line of logtab_temse,
        wa_ld  like line of itab_bdcld.

  loop at logtab_temse into wa_log.
    clear wa_ld.
    wa_ld-temseid = wa_log-temseid.
    wa_ld-lmand   = wa_log-mandant.
    wa_ld-edate   = wa_log-credate.
    wa_ld-etime   = wa_log-cretime.
    wa_ld-luser   = wa_log-creator.
    wa_ld-grpn    = wa_log-groupid.
    wa_ld-quid    = wa_log-qid.
    wa_ld-local_host = wa_log-destsys.
    append wa_ld to itab_bdcld.
  endloop.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 20:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187133#M1000938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T20:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: BDC SESSION ERROR LOG IN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187134#M1000939</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;Info : I am not using call transaction method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i get the message from temseid ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 21:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-error-log-in-internal-table/m-p/4187134#M1000939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-22T21:05:27Z</dc:date>
    </item>
  </channel>
</rss>

