<?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: This BDC won't run in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109915#M105859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you getting the data for BDC? Is is coming from a file, if so where is the file - App server or Presenation server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you uploading the data into internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WS_UPLOAD or OPEN DATASET.&lt;/P&gt;&lt;P&gt;WS_UPLOAd will not work in the background mode !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the posts that help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2005 04:22:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-20T04:22:59Z</dc:date>
    <item>
      <title>This BDC won't run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109912#M105856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This simple code here runs with normal excution (it's called from a output type directly), but when I schedule it into a background job it never run as it supposed to. Can anyone please let me know if I'm missin something major here. Thanks biggy...&lt;/P&gt;&lt;P&gt;code as below&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;REPORT ZRTLABELO  MESSAGE-ID WJ.&lt;/P&gt;&lt;P&gt;INCLUDE bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TYPE-POOLS: LABEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: NAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PRODUCT_LABEL USING RETURN_CODE SCREEN_FLAG.&lt;/P&gt;&lt;P&gt;types: begin of ty_mseg,&lt;/P&gt;&lt;P&gt;        matnr like mseg-matnr,&lt;/P&gt;&lt;P&gt;        werks like mseg-werks,&lt;/P&gt;&lt;P&gt;        ebeln like mseg-ebeln,&lt;/P&gt;&lt;P&gt;       end of ty_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_mseg       type ty_mseg,&lt;/P&gt;&lt;P&gt;      charg         type charg_d,&lt;/P&gt;&lt;P&gt;      mat_doc(10)   type c,&lt;/P&gt;&lt;P&gt;      year(4)       type c,&lt;/P&gt;&lt;P&gt;      item(4)       type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mat_doc = nast-objky(10).&lt;/P&gt;&lt;P&gt;year    = nast-objky+10(4).&lt;/P&gt;&lt;P&gt;item    = nast-objky+14(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * into corresponding fields of wa_mseg from mseg&lt;/P&gt;&lt;P&gt; where mblnr = mat_doc&lt;/P&gt;&lt;P&gt;   and mjahr = year&lt;/P&gt;&lt;P&gt;   and zeile = item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single charg into charg from mcha&lt;/P&gt;&lt;P&gt; where charg = wa_mseg-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  PERFORM OPEN_GROUP.&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPLCHRG' '1000'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=ENTR'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'DFBATCH-MATNR'&lt;/P&gt;&lt;P&gt;                                wa_mseg-matnr.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'DFBATCH-WERKS'&lt;/P&gt;&lt;P&gt;                                wa_mseg-werks.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'DFBATCH-CHARG'&lt;/P&gt;&lt;P&gt;                                wa_mseg-ebeln.&lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPLCHRG' '1000'.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=SAVE'.&lt;/P&gt;&lt;P&gt;  perform bdc_transaction using 'MSC1N'.&lt;/P&gt;&lt;P&gt;  PERFORM CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 03:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109912#M105856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T03:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: This BDC won't run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109913#M105857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give us your code for the form bdc_transaction? Are you checking the status of your OPEN_GROUP, bdc_transaction and CLOSE_GROUP? What do they say?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are calling a transaction from an output, which will cause runtime errors if for some reason an error is thrown out in your call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 03:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109913#M105857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T03:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: This BDC won't run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109914#M105858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are you passign single screen? because in your code the screnn numbers are same(1000), if so, just comment these line and do..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;perform bdc_dynpro using 'SAPLCHRG' '1000'.
perform bdc_field using 'BDC_OKCODE' '=ENTR'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this might works you, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not just give us the code, and the error messages, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 03:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109914#M105858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T03:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: This BDC won't run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109915#M105859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you getting the data for BDC? Is is coming from a file, if so where is the file - App server or Presenation server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you uploading the data into internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WS_UPLOAD or OPEN DATASET.&lt;/P&gt;&lt;P&gt;WS_UPLOAd will not work in the background mode !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the posts that help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 04:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/this-bdc-won-t-run/m-p/1109915#M105859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T04:22:59Z</dc:date>
    </item>
  </channel>
</rss>

