<?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 Calling an external application by pushing a button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-external-application-by-pushing-a-button/m-p/4385611#M1043085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a button inside the transaction MM02/MM03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Button is as extention for my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, what I can't do, if when I push the button it should start whether a transaction that call an external program or call directly an external program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Button was created by the screen painter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a module inside the PAI, &lt;/P&gt;&lt;P&gt;this module is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE appexternal INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'mybutton'.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ZEXTERNAL'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem, if I click on that button it don't call the transaction but rather show me a screen, &lt;/P&gt;&lt;P&gt;which is to save the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My needs, I want to call the external program without leaving the screen of MM02.&lt;/P&gt;&lt;P&gt;And so the external application is showen and I can return working on my material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later the materialnumber should be sended the the external application to show it there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2008 15:25:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-15T15:25:14Z</dc:date>
    <item>
      <title>Calling an external application by pushing a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-external-application-by-pushing-a-button/m-p/4385611#M1043085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a button inside the transaction MM02/MM03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Button is as extention for my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, what I can't do, if when I push the button it should start whether a transaction that call an external program or call directly an external program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Button was created by the screen painter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a module inside the PAI, &lt;/P&gt;&lt;P&gt;this module is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE appexternal INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'mybutton'.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ZEXTERNAL'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem, if I click on that button it don't call the transaction but rather show me a screen, &lt;/P&gt;&lt;P&gt;which is to save the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My needs, I want to call the external program without leaving the screen of MM02.&lt;/P&gt;&lt;P&gt;And so the external application is showen and I can return working on my material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later the materialnumber should be sended the the external application to show it there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kais&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 15:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-external-application-by-pushing-a-button/m-p/4385611#M1043085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T15:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calling an external application by pushing a button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-external-application-by-pushing-a-button/m-p/4385612#M1043086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm thinking that you want to start a new task when calling the transaction.&lt;/P&gt;&lt;P&gt;You can use this function to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'MYBUTTON'.

CALL FUNCTION 'ABAP4_CALL_TRANSACTION'
  STARTING NEW TASK 'newtask'
  exporting
    tcode                         = 'ZEXTERNAL'
*   SKIP_SCREEN                   = ' '
*   MODE_VAL                      = 'A'
*   UPDATE_VAL                    = 'A'
* IMPORTING
*   SUBRC                         =
* TABLES
*   USING_TAB                     =
*   SPAGPA_TAB                    =
*   MESS_TAB                      =
 EXCEPTIONS
   call_transaction_denied       = 1
   tcode_invalid                 = 2
   OTHERS                        = 3.

ENDCASE.

ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&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>Fri, 15 Aug 2008 15:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-an-external-application-by-pushing-a-button/m-p/4385612#M1043086</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-15T15:40:03Z</dc:date>
    </item>
  </channel>
</rss>

