<?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 Program Writing .... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117473#M107882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suleman,&lt;/P&gt;&lt;P&gt;     You can use the collection of messages which are populated during the message run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved like&lt;/P&gt;&lt;P&gt;DATA: BDCDATA TYPE TABLE OF BDCDATA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE TABLE OF BDCMSGCOLL. &lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'SE38'  USING BDCDATA  MODE 'N' &lt;/P&gt;&lt;P&gt;                         MESSAGES INTO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use the messages in your itab to put it as a log or send it as a content of a mail during the BDC run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Award points if this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2006 15:52:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-18T15:52:10Z</dc:date>
    <item>
      <title>BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117470#M107879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys &lt;/P&gt;&lt;P&gt;            I&amp;#146;m working on batch input program. I have record and then pass my internal table. In a net shell its working fine. I&amp;#146;d like to know what else we can put in batch input program from LOG stand point. For example I have put the one sub routine showed error log and other sub routine send an email to recipient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else could be the beneficial, or what is the normal practice. I just want that BDC program should give sensible information from user stand point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give your suggestion.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 15:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117470#M107879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T15:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117471#M107880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually when programming a BDC, I will throw an ALV grid after all processing which shows all of the transactions and the status of the transaction( Successfully or Error).  If there is an Error, I will give the first error message which was encountered during processing of that transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 15:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117471#M107880</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-18T15:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117472#M107881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suleman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional things you can do to you BDC program is&lt;/P&gt;&lt;P&gt;1) to do a call transaction for all the uploaded records.&lt;/P&gt;&lt;P&gt;2) For error records,by checking sy-subrc value for call transaction, you can do a BDC session method.&lt;/P&gt;&lt;P&gt;3) Process the BDC session so that the user can have a very useful Error log and that too in SAP provided format(SM35).&lt;/P&gt;&lt;P&gt;4) If you don't want steps 2 nad 3, you can use&lt;/P&gt;&lt;P&gt;FORMAT_MESSAGE function module to create meaningful messages out of messhage variables and display as a report.&lt;/P&gt;&lt;P&gt;5) As you have mentioned, you can mail the erroneous records to the User using SO_NEW_DOCUMENT_SEND_API1 FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 15:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117472#M107881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117473#M107882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suleman,&lt;/P&gt;&lt;P&gt;     You can use the collection of messages which are populated during the message run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved like&lt;/P&gt;&lt;P&gt;DATA: BDCDATA TYPE TABLE OF BDCDATA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE TABLE OF BDCMSGCOLL. &lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'SE38'  USING BDCDATA  MODE 'N' &lt;/P&gt;&lt;P&gt;                         MESSAGES INTO ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use the messages in your itab to put it as a log or send it as a content of a mail during the BDC run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Award points if this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 15:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117473#M107882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T15:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117474#M107883</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;You can also include BDCRECX1 into your report and let all the message handling and error map creation do the standard code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 16:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117474#M107883</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-01-18T16:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117475#M107884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you guys also tell me how can I bulid error ,Warning and message in my BDC program ..The wasy SM35 showed it . I mean What emplyee has error .. etc ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suleman Javed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 17:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117475#M107884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T17:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117476#M107885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  You can use FM FORMAT_MESSAGE to format your message &amp;amp; display them as report.&lt;/P&gt;&lt;P&gt;After call transaction check for Sy-subrc &amp;amp; move the message into one internal table accordingly checking for the message type('E','W', 'I' etc) &amp;amp; formating with the FM mentioned &amp;amp; then write them as report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 16:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117476#M107885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T16:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117477#M107886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That`s I know .. I mean to say .. when we process session in SM35 and when we get error log ..it shows as the recored number and log , where , how , where it fails .. so we can go to that screen block and re-process our REC...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show these kind of messages in my BDC log ...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 16:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117477#M107886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program Writing ....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117478#M107887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Record no.,you can get from SY-TABIX &amp;amp; save it in the internal table. &amp;amp; the rest of the log you can get from the message internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2006 16:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-writing/m-p/1117478#M107887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-26T16:50:15Z</dc:date>
    </item>
  </channel>
</rss>

