<?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: Provide Input Parameters when called only from a TCODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375945#M1543518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use event INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And check if sy-tcode &amp;lt;&amp;gt; 'SA38' and &amp;lt;&amp;gt; 'SE38'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set the value for the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Roy Olav Johansen on Oct 10, 2010 2:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Oct 2010 12:13:50 GMT</pubDate>
    <dc:creator>royolav_johansen</dc:creator>
    <dc:date>2010-10-10T12:13:50Z</dc:date>
    <item>
      <title>Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375943#M1543516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where in we need to provide  a input parameters for a report when it is triggered from a TCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this program is executed in SE38, the input parameters should not be available. The report takes a default value which is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;defined in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need use the same program when called using the TCODE, as well as from SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for a early response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 09:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375943#M1543516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-10T09:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375944#M1543517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use [Parameter Transaction|http://help.sap.com/saphelp_nw04/helpdata/en/eb/5fab44d79b11d296190000e82de14a/frameset.htm] in order to pass data to the report once called by this tcode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 09:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375944#M1543517</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-10T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375945#M1543518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use event INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And check if sy-tcode &amp;lt;&amp;gt; 'SA38' and &amp;lt;&amp;gt; 'SE38'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set the value for the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Roy Olav Johansen on Oct 10, 2010 2:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 12:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375945#M1543518</guid>
      <dc:creator>royolav_johansen</dc:creator>
      <dc:date>2010-10-10T12:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375946#M1543519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the requirement is, the parameter screen itself should not available if i trigger the code from SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the parameter screen should be available if i come through the TCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 05:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375946#M1543519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T05:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375947#M1543520</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;Does this fit the bill:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_bukrs TYPE bukrs.

INITIALIZATION.
  IF sy-tcode NE 'ZTEST'. "Name of the T-Code assigned to the report
    MESSAGE 'Cannot use SE38 to run the report' TYPE 'E'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&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>Mon, 11 Oct 2010 05:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375947#M1543520</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-11T05:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375948#M1543521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So simply hide it if called via SE38&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen output.
   if sy-tcode NE 'your_tcode'. 
     loop at screen.
        if screen-name = 'SOME_PARAMETER'.
            screen-active = 0.
            modify screen.
        endif.
     endloop.
   endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 06:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375948#M1543521</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T06:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375949#M1543522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i do as suggested by you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen parameters are inactive, this is ok, but it stops at a empty screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to press the execute button again to run the program. This is should not happen. &lt;STRONG&gt;The program  should run without any manual interventions or any error message popping out if run through SE38.  If i run from TCODE it should show the input parameters.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 08:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375949#M1543522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T08:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375950#M1543523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to suppress this empty screen, simply create another program where you use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report z_addit_program.

submit z_original_program. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will run the program and will not show the selection screen anymore (so even no need to hide the parameters). Then create a ZTCODE for &lt;EM&gt;z_original_program&lt;/EM&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way when you run it via se38, use Z_ADDIT_PROGRAM, and when run via ZTCODE it will run Z_ORIGINAL_PROGRAM. In first case no parameters will come at all, in the secod case entire selection screen will be shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 08:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375950#M1543523</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T08:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375951#M1543524</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; I need to press the execute button again to run the program. This is should not happen. &lt;STRONG&gt;The program  should run without any manual interventions or any error message popping out if run through SE38.  If i run from TCODE it should show the input parameters.&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't get why do you want this functionality. Do your users have authority for SE38 in Production?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 08:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375951#M1543524</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-11T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375952#M1543525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suhas Saha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The  program willl be scheduled everyday which will take the default date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For retriving data for a particular date i need to provide user input screen. This will be done through ZTCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 09:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375952#M1543525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T09:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375953#M1543526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this way I don't know how you want to schedule the ZTCODE. In my opinion you should be using same program and checking if &lt;STRONG&gt;sy-batch = 'X'&lt;/STRONG&gt; so you know whether it was run in frontend or in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report z_addit_program.

if sy-batch = 'X'.
   submit z_original_program with parameter1 = sy-datum.
else.
   submit z_original_program.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then forbid the access to Z_ORIGINAL_PROGRAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 09:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375953#M1543526</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T09:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375954#M1543527</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;Create a parameter transaction and give screeb names from se93.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 09:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375954#M1543527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T09:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375955#M1543528</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; The  program willl be scheduled everyday which will take the default date.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of Background processing SELECTION-SCREEN will not be displayed so you don't have to worry about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;For retriving data for a particular date i need to provide user input screen. This will be done through ZTCODE.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would schedule the job on a daily basis in SM36 &amp;amp; for individual dates you'll access the report via the T-Code. So where does SE38 come into the picture?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Marcin: If SY-BATCH = 'X', i don't think SELECTION-SCREEN will be available &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>Mon, 11 Oct 2010 09:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375955#M1543528</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-11T09:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Provide Input Parameters when called only from a TCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375956#M1543529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got the Solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 10:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/provide-input-parameters-when-called-only-from-a-tcode/m-p/7375956#M1543529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T10:03:21Z</dc:date>
    </item>
  </channel>
</rss>

