<?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: MB51 BDC Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229291#M1380330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you feeding all parameters in the selection screen of MB51 transaction or some of the parmeters which are set automatically ie  if user name if you feed once, it will come by default.  You no need to supply again.  Check whether such parameter is missing in your BDC.  If missing, then supply those parameters also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2009 15:40:21 GMT</pubDate>
    <dc:creator>venkatesan_nagiah</dc:creator>
    <dc:date>2009-09-23T15:40:21Z</dc:date>
    <item>
      <title>MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229289#M1380328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently writing a BDC session that inputs some fields into the selection screen of MB51 and then executes it.  Afterwards, in the BDC, it does an export to the local disk.  The problem that I'm having is that sometimes when I run it I get no data, even though I know there should be.  The only way to fix it is to manually run MB51 with the same parameters, and then go back and run my program.  Only then will I get my data.  Does anyone have an idea why this may be happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curtis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 15:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229289#M1380328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T15:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229290#M1380329</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 MB51 transaction is a report..try to use submit report instead of BDC it will work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report name for transaction MB51 is RM07DOCS&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

"see the Below example.....
  submit  RM07DOCS
          with &amp;lt;screen field name&amp;gt; in s_budat
               and return.

"or call the MB51 transactionlike this..

      set parameter id 'MAT' field liefsum-matnr.          
      set parameter id 'WRK' field liefsum-werks.         
      set parameter id 'LIF' field liefsum-lifnr.           
      set parameter id 'LAG' field g_f_lgort_initial.       
      set parameter id 'LIF' field liefsum-lifnr.           
      set parameter id 'KUN' field g_f_kunnr_initial.       
      call transaction 'MB51' and skip first screen.        

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 15:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229290#M1380329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229291#M1380330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you feeding all parameters in the selection screen of MB51 transaction or some of the parmeters which are set automatically ie  if user name if you feed once, it will come by default.  You no need to supply again.  Check whether such parameter is missing in your BDC.  If missing, then supply those parameters also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 15:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229291#M1380330</guid>
      <dc:creator>venkatesan_nagiah</dc:creator>
      <dc:date>2009-09-23T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229292#M1380331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prabhudas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using those methods, is there a way I can automatically export the results unconverted to the local drive?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curtis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 16:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229292#M1380331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T16:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229293#M1380332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Is there a way I can automatically export the results unconverted to the local drive?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Curtis&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Curtis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a BDC, then do you intend to run the report in background? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If YES, you must be aware SAP GUI capabilities are unavailable in BG mode. Hence the answer will be a simple, "NO".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If NO, then no point in using BDC for this &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 16:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229293#M1380332</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-23T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229294#M1380333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot to finish what I wanted to say.  Currently my BDC session does export the list.  I was wondering if I used the methods Prabhu mentioned (the SUBMIT or CALL TRANSACTION) if there was a way to export afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your question though, this program will be ran in the foreground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curtis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 16:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229294#M1380333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T16:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229295#M1380334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Curtis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you, if possible, try to elaborate why you want to run the report in foreground &amp;amp; not directly access MB51?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we know the program flow may be we can help in a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 16:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229295#M1380334</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-23T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229296#M1380335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently the people needing this run MB51 and export the data to the local disk.  Then they take that data, and using another SAP screen, they create an Excel spreadsheet that they email to various people.  So what I'm doing is running the report, exporting it, read the data in, find the missing information, create the Excel spreadsheets using OLE, and email the reports to whoever needs them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 16:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229296#M1380335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T16:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229297#M1380336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can set up an implicit enhancemnt before the out put and download the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 16:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229297#M1380336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: MB51 BDC Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229298#M1380337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you can export the output data of MB51 into excel sheet ..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  submit &amp;lt;report name&amp;gt;
          exporting list to memory and return.   "Exporting to memory will send the output of the report to spool and memory

* read list from memory into table
  call function 'LIST_FROM_MEMORY'
    tables
      listobject = lt_listobject
    exceptions
      not_found  = 1
      others     = 2.

  if sy-subrc &amp;lt;&amp;gt; 0.
*   Error in function module &amp;amp;1
  endif.

*Spool content in Ascii format
  call function 'LIST_TO_ASCI'
    tables
      listobject         = lt_listobject
      listasci           = txtlines
    exceptions
      empty_list         = 1
      list_index_invalid = 2
      others             = 3.

"Now call the gui_gownload and pass txtlines internal table it will contains all the Output data of the MB51..

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 17:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mb51-bdc-problem/m-p/6229298#M1380337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T17:03:10Z</dc:date>
    </item>
  </channel>
</rss>

