<?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 screen program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392529#M532166</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;my scenario is, to create a button, and if the button is pressed, a browser should  come so that i choose which file to attach.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i was trying to do a screen program , i did the following steps,&lt;/P&gt;&lt;P&gt;1)in se38&lt;/P&gt;&lt;P&gt;created a ztrial program as MODULE program ( should i choose executable),&lt;/P&gt;&lt;P&gt;2)in se51 created a screen 100 with this ztrial program name.&lt;/P&gt;&lt;P&gt;3)i put apush button in the screen , and in the attributes i put okcode  for ok.&lt;/P&gt;&lt;P&gt;4)in PAI i called aprogram F4_filename .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i tried to execute  it , it was giving problem.&lt;/P&gt;&lt;P&gt;how should i use the okcode, in PAI&lt;/P&gt;&lt;P&gt; can some one help.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2007 15:47:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-01T15:47:40Z</dc:date>
    <item>
      <title>screen program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392529#M532166</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;my scenario is, to create a button, and if the button is pressed, a browser should  come so that i choose which file to attach.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i was trying to do a screen program , i did the following steps,&lt;/P&gt;&lt;P&gt;1)in se38&lt;/P&gt;&lt;P&gt;created a ztrial program as MODULE program ( should i choose executable),&lt;/P&gt;&lt;P&gt;2)in se51 created a screen 100 with this ztrial program name.&lt;/P&gt;&lt;P&gt;3)i put apush button in the screen , and in the attributes i put okcode  for ok.&lt;/P&gt;&lt;P&gt;4)in PAI i called aprogram F4_filename .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i tried to execute  it , it was giving problem.&lt;/P&gt;&lt;P&gt;how should i use the okcode, in PAI&lt;/P&gt;&lt;P&gt; can some one help.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:47:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392529#M532166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: screen program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392530#M532167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;MODULE user_command_1100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on user_command_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_1100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'FCODE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do ur opreation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392530#M532167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: screen program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392531#M532168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you need all that? try the following in your report..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;parameters:
          p_file  like rlgrap-filename.  "file name
* get local file
at selection-screen on value-request for p_file.
  perform get_file.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_file
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Obtain the input file from the desktop if this option is selected
*&amp;amp;---------------------------------------------------------------------*
form get_file .
  data: t_filetable type filetable,
        w_filetable like file_table-filename,
        w_subrc     type i.
  constants: c_title type string value 'Choose File'.       "#EC NOTEXT
  call method cl_gui_frontend_services=&amp;gt;file_open_dialog
    exporting
      window_title            = c_title
    changing
      file_table              = t_filetable
      rc                      = w_subrc
    exceptions
      file_open_dialog_failed = 1
      cntl_error              = 2
      error_no_gui            = 3
      not_supported_by_gui    = 4
      others                  = 5.

  case sy-subrc.
    when 0.
      read table t_filetable index 1 into w_filetable.
      move w_filetable to p_file.
    when others.
      message e016(rp) with 'file not found'.
  endcase.
endform.                    " get_file
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392531#M532168</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-06-01T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: screen program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392532#M532169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI saritha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program type shoule be module pool. So its should be type of M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a screens. In module, create Set pf-status '1000'. Create some buttons.&lt;/P&gt;&lt;P&gt;Assign some function code for each buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move sy-ucomm value to Ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can trigger whteven u want by using CASE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;Case ok_code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When '/nex'.&lt;/P&gt;&lt;P&gt;    leave program.&lt;/P&gt;&lt;P&gt;when 'others'.&lt;/P&gt;&lt;P&gt;  leave screen '1001'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need ur reward points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392532#M532169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: screen program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392533#M532170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks sheshu and suresh,&lt;/P&gt;&lt;P&gt;but this is a bigger program, where in my part is to only place abutton on the already existing screen and write code, for the file to get attached if the button is pressed.&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 16:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392533#M532170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T16:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: screen program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392534#M532171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then using TCode SE41,add the button &amp;amp; function code to the pf-status of the screen you need to modify &amp;amp; then using SE51, put the above code in the PAI after checking for the function code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 16:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-program/m-p/2392534#M532171</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-06-01T16:25:49Z</dc:date>
    </item>
  </channel>
</rss>

