<?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: F4 help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860667#M927880</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;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just before passing the file to GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PASS the file to a variable file_str of type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because gui_upload will accept string format only. try it . it wil work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feel free to ask doubts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpfil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2008 06:30:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-23T06:30:38Z</dc:date>
    <item>
      <title>F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860660#M927873</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is define one parameter to select the file name from presentation server&lt;/P&gt;&lt;P&gt;For this filed I have to provide the f4 help&lt;/P&gt;&lt;P&gt;Can any body pls suggest me which type of filed can I declare in selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : p_fnam like rlgrap-filename or any other&lt;/P&gt;&lt;P&gt;Because In Gui_upload it is giving dump&lt;/P&gt;&lt;P&gt;Reason is type mismatch of the file types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Jaya.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860660#M927873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860661#M927874</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;Refer below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_pifile TYPE rlgrap-filename MODIF ID md1, "Input filename for presentation server&lt;/P&gt;&lt;P&gt;             p_pefile TYPE rlgrap-filename MODIF ID md2. "Error filename for presentation server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Call function module for F4 help to input filename on presentatrion server&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     program_name        = syst-cprog&lt;/P&gt;&lt;P&gt;     dynpro_number       = syst-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     file_name           = p_pifile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PRashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860661#M927874</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2008-05-23T06:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860662#M927875</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;Selection screen, declare the fields as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_file TYPE rlgrap-filename &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file event, write the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH i_file.&lt;/P&gt;&lt;P&gt;  ws_c_defpath = 'c:\'.&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      initial_directory = ws_c_defpath&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_table        = i_file&lt;/P&gt;&lt;P&gt;      rc                = ws_i_rc.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    IF ws_i_rc = 1.&lt;/P&gt;&lt;P&gt;      READ TABLE i_file INTO wa_file INDEX 1.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        p_file = wa_file-filename.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE e005.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860662#M927875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860663#M927876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
parameter: pa_pex1 TYPE rlgrap-filename

AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_pex1.
PERFORM fr_f4_file USING pa_pex1.


*---------------------------------------------------------------------*
FORM fr_f4_file USING p_pcfile .

CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
mask = ',*.txt,*.txt'
static = 'X'
CHANGING
file_name = p_pcfile.

ENDFORM. " fr_f4_file
*&amp;amp;---------------------------------------------------------------------*

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860663#M927876</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-05-23T06:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860664#M927877</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;define the parameters as  &lt;STRONG&gt;ibipparms-path&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file TYPE ibipparms-path.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnks,&lt;/P&gt;&lt;P&gt;raji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860664#M927877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860665#M927878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The declaration for parameter is perfectly OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. But, for passing to gui_upload we have to pass as string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. so declare another variable and pass like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : myfile type string.&lt;/P&gt;&lt;P&gt;         myfile = p_fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;Now pass this myfile to gui_upload.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860665#M927878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860666#M927879</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;Try using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER:&lt;/P&gt;&lt;P&gt;  path TYPE ibipparms-path OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEF_FILENAME           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DEF_PATH               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MODE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TITLE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     filename               = path&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RC                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     inv_winsys             = 1&lt;/P&gt;&lt;P&gt;     no_batch               = 2&lt;/P&gt;&lt;P&gt;     selection_cancel       = 3&lt;/P&gt;&lt;P&gt;     selection_error        = 4&lt;/P&gt;&lt;P&gt;     OTHERS                 = 5&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravind JM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860666#M927879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860667#M927880</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;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just before passing the file to GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PASS the file to a variable file_str of type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because gui_upload will accept string format only. try it . it wil work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feel free to ask doubts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpfil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help/m-p/3860667#M927880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:30:38Z</dc:date>
    </item>
  </channel>
</rss>

