<?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: call transaction error log in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-log/m-p/4539853#M1072571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Try this way,&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;CALL TRANSACTION 'XD01' USING i_bdcdata MODE 'N' UPDATE 'S' MESSAGES INTO i_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0&lt;/P&gt;&lt;P&gt;PERFORM get_success_messages.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; i_upload-kunnr, v_msg.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;PERFORM get_error_messages.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; i_upload-kunnr, v_msg.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_success_messages.&lt;/P&gt;&lt;P&gt;READ TABLE i_bdcmsgcoll WITH KEY msgtyp EQ 'S'.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;     id = i_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;     lang = sy-langu&lt;/P&gt;&lt;P&gt;     no = i_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;     v1 = i_bdcmsgcoll-msgv1&lt;/P&gt;&lt;P&gt;     v2 = i_bdcmsgcoll-msgv2&lt;/P&gt;&lt;P&gt;Importing&lt;/P&gt;&lt;P&gt;     msg = v_msg.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM get_error_messages.&lt;/P&gt;&lt;P&gt;READ TABLE i_bdcmsgcoll WITH KEY msgtyp EQ 'E'.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;     id = i_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;     lang = sy-langu&lt;/P&gt;&lt;P&gt;     no = i_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;     v1 = i_bdcmsgcoll-msgv1&lt;/P&gt;&lt;P&gt;     v2 = i_bdcmsgcoll-msgv2&lt;/P&gt;&lt;P&gt;Importing&lt;/P&gt;&lt;P&gt;     msg = v_msg.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&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;or download all the records to an internal table and downlaod to excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bala Krishna on Sep 21, 2008 8:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Sep 2008 15:29:01 GMT</pubDate>
    <dc:creator>former_member585060</dc:creator>
    <dc:date>2008-09-21T15:29:01Z</dc:date>
    <item>
      <title>call transaction error log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-log/m-p/4539852#M1072570</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 call transaction method a log sheet should be generated. For the successful line items, the corresponding line Document Number should be provided. For the Unsuccessful ones, the error details should be provided.&lt;/P&gt;&lt;P&gt;Line Item No.	Success/ Failure	Document Number	Error Details&lt;/P&gt;&lt;P&gt;1	S	doc 001	&lt;/P&gt;&lt;P&gt;2	S	Doc 002	&lt;/P&gt;&lt;P&gt;3	F		company code does not exist&lt;/P&gt;&lt;P&gt;4	F		company code does not exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus if an excel sheet contains 100 line items and there are 5 such line items which have some inconsistent data or no value is entered in a mandatory field, then a log sheet will be displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As rectification, the end-user will go back to his excel sheet, and correct the inconsistent values, and upload the sheet again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2008 15:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-log/m-p/4539852#M1072570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-21T15:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction error log</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-log/m-p/4539853#M1072571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Try this way,&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;CALL TRANSACTION 'XD01' USING i_bdcdata MODE 'N' UPDATE 'S' MESSAGES INTO i_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0&lt;/P&gt;&lt;P&gt;PERFORM get_success_messages.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; i_upload-kunnr, v_msg.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;PERFORM get_error_messages.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; i_upload-kunnr, v_msg.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_success_messages.&lt;/P&gt;&lt;P&gt;READ TABLE i_bdcmsgcoll WITH KEY msgtyp EQ 'S'.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;     id = i_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;     lang = sy-langu&lt;/P&gt;&lt;P&gt;     no = i_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;     v1 = i_bdcmsgcoll-msgv1&lt;/P&gt;&lt;P&gt;     v2 = i_bdcmsgcoll-msgv2&lt;/P&gt;&lt;P&gt;Importing&lt;/P&gt;&lt;P&gt;     msg = v_msg.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM get_error_messages.&lt;/P&gt;&lt;P&gt;READ TABLE i_bdcmsgcoll WITH KEY msgtyp EQ 'E'.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;     id = i_bdcmsgcoll-msgid&lt;/P&gt;&lt;P&gt;     lang = sy-langu&lt;/P&gt;&lt;P&gt;     no = i_bdcmsgcoll-msgnr&lt;/P&gt;&lt;P&gt;     v1 = i_bdcmsgcoll-msgv1&lt;/P&gt;&lt;P&gt;     v2 = i_bdcmsgcoll-msgv2&lt;/P&gt;&lt;P&gt;Importing&lt;/P&gt;&lt;P&gt;     msg = v_msg.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&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;or download all the records to an internal table and downlaod to excel sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bala Krishna on Sep 21, 2008 8:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2008 15:29:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-error-log/m-p/4539853#M1072571</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-09-21T15:29:01Z</dc:date>
    </item>
  </channel>
</rss>

