<?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: CO 02 : Read PP Master Data BDC errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096057#M979480</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; When you did your recording, ar eyou able to generate these errors? If you can , then those can be captured in BDC MSGCOLL. If not they might be update errors. In such cases the BDC call transaction will anyway give u a sy-subrc of 1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the best option is to move it to SM35 using session method and process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give a gyst of what are the errors that go to the SAP log?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shobana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2008 18:47:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-10T18:47:27Z</dc:date>
    <item>
      <title>CO 02 : Read PP Master Data BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096054#M979477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day Everybody!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having one intresting issue in BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a BDC which does REAd PP MASTER DATA&lt;/P&gt;&lt;P&gt;in CO02 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While reading master data if any errors are generated these are&lt;/P&gt;&lt;P&gt;logged in error log which is avalable from &lt;/P&gt;&lt;P&gt;MENU-&amp;gt;&lt;/P&gt;&lt;P&gt;GO TO-&amp;gt;&lt;/P&gt;&lt;P&gt;LOGS&lt;/P&gt;&lt;P&gt;-&amp;gt;Read PP Master Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However these are not captured in BDC error table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i access these errors from Error LOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any  Exit or Enhance ment spot available to capture these errors.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096054#M979477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: CO 02 : Read PP Master Data BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096055#M979478</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;The BDC will not handle errors unless we explicitly use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'tcode'  MESSAGES BDCMSGCOLL.&lt;/P&gt;&lt;P&gt; we need to decalre an internal table of this BDCMSGCOLL type but here it will not state the error clearly only message numbers can be seen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In BDC if there are any errors then send them to Session method.&lt;/P&gt;&lt;P&gt;We have to combine both Session and BDC to handle the errors. &lt;/P&gt;&lt;P&gt;Error log can be seen in Session method SM35 and check in erro log tab for that tcode.&lt;/P&gt;&lt;P&gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;Best Wishes,&lt;/P&gt;&lt;P&gt;Chandralekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096055#M979478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: CO 02 : Read PP Master Data BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096056#M979479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chandralekha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using internal table of type BDCMESSAGECOLL&lt;/P&gt;&lt;P&gt;to cpature errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but problem is errors are getting generated in background of SAP and dyanmically updating Error Log of CO02 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so these are not at all captured by BDC since these errors&lt;/P&gt;&lt;P&gt;does not flash on screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096056#M979479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: CO 02 : Read PP Master Data BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096057#M979480</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; When you did your recording, ar eyou able to generate these errors? If you can , then those can be captured in BDC MSGCOLL. If not they might be update errors. In such cases the BDC call transaction will anyway give u a sy-subrc of 1001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the best option is to move it to SM35 using session method and process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give a gyst of what are the errors that go to the SAP log?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shobana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 18:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096057#M979480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T18:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: CO 02 : Read PP Master Data BDC errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096058#M979481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Please check following code that I have used.&lt;/P&gt;&lt;P&gt;Internal table structure:&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      werks like aufk-werks,&lt;/P&gt;&lt;P&gt;      auart like aufk-AUART,&lt;/P&gt;&lt;P&gt;      aufnr like aufk-aufnr,&lt;/P&gt;&lt;P&gt;      PLNBEZ LIKE AFKO-PLNBEZ,&lt;/P&gt;&lt;P&gt;      GSTRP like afko-GSTRP, "Order start date&lt;/P&gt;&lt;P&gt;      TDATE TYPE  AFKO-GSTRP,&lt;/P&gt;&lt;P&gt;      TEXT01(12) TYPE C,&lt;/P&gt;&lt;P&gt;      TEXT02(12) TYPE C,&lt;/P&gt;&lt;P&gt;    end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC Program:&lt;/P&gt;&lt;P&gt;  loop at itab.&lt;/P&gt;&lt;P&gt;    clear:l_strerr,bdcdata.&lt;/P&gt;&lt;P&gt;    refresh bdcdata.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLCOKO1' '0110'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'CAUFVD-AUFNR'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '/00'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'CAUFVD-AUFNR'&lt;/P&gt;&lt;P&gt;                                    itab-aufnr.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'R62CLORD-FLG_OVIEW'&lt;/P&gt;&lt;P&gt;                                    'X'.&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLCOKO1' '0115'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=STAK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLCOKO1' '0131'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=ENT1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     perform bdc_field      using  'BDC_CURSOR'  'RC62F-AUFLD'.&lt;/P&gt;&lt;P&gt;     perform bdc_field      using  'RC62F-NEW_BOM'   'X'.&lt;/P&gt;&lt;P&gt;     perform bdc_field      using  'RC62F-AUFLD'  ITAB-TEXT02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPLCOKO1' '0115'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=BU'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'CO02' USING BDCDATA&lt;/P&gt;&lt;P&gt;                                    MODE P_MODE&lt;/P&gt;&lt;P&gt;                                    UPDATE 'S'&lt;/P&gt;&lt;P&gt;                                    MESSAGES INTO IT_MSG.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        l_strerr = 'error'.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      l_strerr = ' is not exist in table'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    IF not l_strerr is initial .&lt;/P&gt;&lt;P&gt;      move-corresponding itab to itab_err.&lt;/P&gt;&lt;P&gt;      itab_err-strerr = l_strerr.&lt;/P&gt;&lt;P&gt;      append itab_err.&lt;/P&gt;&lt;P&gt;      delete itab.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;*FORM BDC_DYNPRO&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------" /&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;  BDCDATA-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;*FORM BDC_FIELD&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;  IF FVAL &amp;lt;&amp;gt; ''.&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 02:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/co-02-read-pp-master-data-bdc-errors/m-p/4096058#M979481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T02:37:17Z</dc:date>
    </item>
  </channel>
</rss>

