<?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: Calling report from a diffrent program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429026#M1051489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; when the push button is hit, I need to call SM30, put the table name and hit the maintain button on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the user_command handling if it is report porgram then you can use the event at user-commnad&lt;/P&gt;&lt;P&gt;at user-command.&lt;/P&gt;&lt;P&gt;when 'BUTTON1'.&lt;/P&gt;&lt;P&gt;CALL TRANSCACTION 'SM30'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; When the push button is hit I have to call a Z report, fill in the selection screen with the file name  and then execute.&lt;/P&gt;&lt;P&gt;when 'BUTTON2'.&lt;/P&gt;&lt;P&gt;SUBMIT ZREPORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Sep 2008 03:17:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-14T03:17:51Z</dc:date>
    <item>
      <title>Calling report from a diffrent program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429024#M1051487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 questions.&lt;/P&gt;&lt;P&gt;Basically I have screen with many push buttons on it.&lt;/P&gt;&lt;P&gt;I am able to capture the place where it will trigger after the button is hit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My 1st question is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the push button is hit, I need to call SM30, put the table name and hit the maintain button on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the push button is hit I have to call a Z report, fill in the selection screen with the file name  and then execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ster..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 00:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429024#M1051487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T00:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling report from a diffrent program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429025#M1051488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in case of first push button use call transaction and in case of second pushbutton use submit program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 03:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429025#M1051488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T03:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling report from a diffrent program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429026#M1051489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; when the push button is hit, I need to call SM30, put the table name and hit the maintain button on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the user_command handling if it is report porgram then you can use the event at user-commnad&lt;/P&gt;&lt;P&gt;at user-command.&lt;/P&gt;&lt;P&gt;when 'BUTTON1'.&lt;/P&gt;&lt;P&gt;CALL TRANSCACTION 'SM30'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; When the push button is hit I have to call a Z report, fill in the selection screen with the file name  and then execute.&lt;/P&gt;&lt;P&gt;when 'BUTTON2'.&lt;/P&gt;&lt;P&gt;SUBMIT ZREPORT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 03:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429026#M1051489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T03:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calling report from a diffrent program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429027#M1051490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this approach for 1 and 2 as suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For question when I call Sm30 I need to hit the maintain button and go to the second screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second case I have a file path on the selection screen, I need to pass this file path to the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 14:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429027#M1051490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T14:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calling report from a diffrent program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429028#M1051491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to hit the button manually then you can do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can call this function VIEW_MAINTENANCE_CALL , instead of call transaction.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'VIEW_MAINTENANCE_CALL'
         exporting
              action                       = 'U'  "it will directly open in maintenance mode
              view_name                    = p_view
         exceptions
              client_reference             = 1
              foreign_lock                 = 2
              invalid_action               = 3
              no_clientindependent_auth    = 4
              no_database_function         = 5
              no_editor_function           = 6
              no_show_auth                 = 7
              no_tvdir_entry               = 8
              no_upd_auth                  = 9
              only_show_allowed            = 10
              system_failure               = 11
              unknown_field_in_dba_sellist = 12
              view_not_found               = 13
              others                       = 14.
    if sy-subrc ne 0.

    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and second case&lt;/P&gt;&lt;P&gt;you need to use the addition WITH along with submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT ZREPORT 
 WITH P_FILE EQ V_FILE and RETURN.  "Assuming the you have some parameter named P_FILE
"pass the v_file which is of same type, and populate the file name to it.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2008 14:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-report-from-a-diffrent-program/m-p/4429028#M1051491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-14T14:26:20Z</dc:date>
    </item>
  </channel>
</rss>

