<?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: Capturing errors in BDC NO Screen mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589426#M1274261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Run the BDC with the additions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction....mode 'N'...messages into t_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where t_messge type table of BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Download the contents of this internal table t_messages to a file for errors during the BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 06:19:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-04T06:19:43Z</dc:date>
    <item>
      <title>Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589423#M1274258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to capture error in BDC in No-Screen mode. But in this mode i am not able to capture errors during BDC. I need to run my BDC in no-screen mode and need to capture errors to generate error file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589423#M1274258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T06:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589424#M1274259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can fill the message  table BDCMSGCOLL and then log the messages&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589424#M1274259</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-05-04T06:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589425#M1274260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL TRANSACTION v_tcode
USING i_bdc_tbl
MODE c_n
UPDATE c_s
MESSAGES INTO i_msg.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error will be captured in internal table i_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mawi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589425#M1274260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T06:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589426#M1274261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Run the BDC with the additions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction....mode 'N'...messages into t_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where t_messge type table of BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Download the contents of this internal table t_messages to a file for errors during the BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589426#M1274261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T06:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589427#M1274262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am filling the message table friend. but i am getting only on emessage ' No batch input data ' .  when i saw in documentation it was mentioned like we will get this message all the times. but i need error file. please suggest if there is any other way&lt;/P&gt;&lt;P&gt;   Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589427#M1274262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T06:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589428#M1274263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well in this please make sure that you are really filling  the table with error messages .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589428#M1274263</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-05-04T06:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589429#M1274264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call transaction 'MM01' using itab_bdcdata MODE 'N'  messages into itab_message.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This is my code.  Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589429#M1274264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589430#M1274265</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;Check this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION c_pa30 USING i_bdc_data MODE 'N'
                                           MESSAGES INTO i_msg_tab.
  IF sy-subrc NE 0.
*   Process as error if message type is E or A. if it is type S, it is
*   only an error if it is 347, 348, 344"No batch input data for screen
    LOOP AT i_msg_tab INTO i_msg_tab_line
                      WHERE msgtyp = c_e OR msgtyp = c_a
            OR ( msgtyp = 'S' AND msgid  = '00' AND msgnr = '347' )
            OR ( msgtyp = 'S' AND msgid  = '00' AND msgnr = '348' )
            OR ( msgtyp = 'S' AND msgid  = '00' AND msgnr = '344' ).
      CALL FUNCTION 'MASS_MESSAGE_GET'
        EXPORTING
          sprsl             = sy-langu
          arbgb             = i_msg_tab_line-msgid
          msgnr             = i_msg_tab_line-msgnr
          msgv1             = i_msg_tab_line-msgv1
          msgv2             = i_msg_tab_line-msgv2
          msgv3             = i_msg_tab_line-msgv3
          msgv4             = i_msg_tab_line-msgv4
        IMPORTING
          msgtext           = l_errormsg
        EXCEPTIONS
          message_not_found = 1
          OTHERS            = 2.
      IF sy-subrc &amp;lt;&amp;gt; 0.                                     "#EC NEEDED
*       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      MOVE p_emp_details TO e_error_line.
      MOVE l_errormsg TO e_error_line-errmsg.
      APPEND e_error_line TO e_error.
      EXIT.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589430#M1274265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T06:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589431#M1274266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friend i need to get actucal error. but with the solution u have provided i am getting the same error 'No batch input exist'.   Please suggest other way.&lt;/P&gt;&lt;P&gt;   Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 06:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589431#M1274266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T06:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing errors in BDC NO Screen mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589432#M1274267</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;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL TRANSACTION 'SE11' USING T_BDCDATA MODE 'N' MESSAGES INTO T_MSG.LOOP AT T_MSG INTO MSG.
CALL FUNCTION 'FORMAT_MESSAGE'
 EXPORTING
   ID              = MSG-MSGID
   LANG            = 'EN'
   NO              = MSG-MSGNR
   V1              = MSG-MSGV1
   V2              = MSG-MSGV2
   V3              = MSG-MSGV3
   V4              = MSG-MSGV4
 IMPORTING
   MSG             = MESSAGE
 EXCEPTIONS
   NOT_FOUND       = 1
   OTHERS          = 2
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.IF sy-subrc EQ 0.
      WRITE / MESSAGE.
    ENDIF.ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 07:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-errors-in-bdc-no-screen-mode/m-p/5589432#M1274267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T07:15:46Z</dc:date>
    </item>
  </channel>
</rss>

