<?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: Regarding parameter passing through the bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327293#M511585</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;If you want popup to come for selecting the file name from your pc,you can use ws_filename_get function module in at selection-screen on value-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_fname LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS : c_0      TYPE c VALUE '0',&lt;/P&gt;&lt;P&gt;            c_mask(5) TYPE c VALUE ',&lt;STRONG&gt;.&lt;/STRONG&gt;.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        def_path         = p_fname&lt;/P&gt;&lt;P&gt;        mask             = c_mask&lt;/P&gt;&lt;P&gt;        mode             = c_0&lt;/P&gt;&lt;P&gt;        title            = 'FIlename'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        filename         = p_file&lt;/P&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2007 08:21:59 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2007-06-11T08:21:59Z</dc:date>
    <item>
      <title>Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327288#M511580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz check bellow code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_fname TYPE localfile.&lt;/P&gt;&lt;P&gt;calling upload &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = p_fname&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                     = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i pass filename (p_fname) to parameter i am not getting the output path to select the file plz give me proper suggestion .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 08:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327288#M511580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T08:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327289#M511581</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;Try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: FILENAME LIKE EPSF-EPSDIRNAM.

DATA: FILENAME LIKE  RLGRAP-FILENAME.

  FILENAME = P_FILENAME.
  CLEAR P_RC.

  CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
*   CODEPAGE                      = ' '
      FILENAME                      = FILENAME
      FILETYPE                      = 'ASC'
*   HEADLEN                       = ' '
*   LINE_EXIT                     = ' '
*   TRUNCLEN                      = ' '
*   USER_FORM                     = ' '
*   USER_PROG                     = ' '
*   DAT_D_FORMAT                  = ' '
* IMPORTING
*   FILELENGTH                    =
    TABLES
      DATA_TAB                      = P_ITAB_DATA
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      FILE_OPEN_ERROR               = 2
      FILE_READ_ERROR               = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      OTHERS                        = 10
            .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    P_RC = SY-SUBRC.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 08:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327289#M511581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T08:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327290#M511582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;U need to declare the filename as&lt;/P&gt;&lt;P&gt;p_fname like rlgrap-filename.&lt;/P&gt;&lt;P&gt;Then it will work for the localfile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 08:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327290#M511582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T08:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327291#M511583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;U should decalre file name like &lt;/P&gt;&lt;P&gt;PARAMETERS: P_NAME LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass the parameter to FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards points if help full&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 08:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327291#M511583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T08:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327292#M511584</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;Use p_fname like rlgrap-filename.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.

CALL FUNCTION 'F4_FILENAME'
EXPORTING
FIELD_NAME = PATH
IMPORTING
FILE_NAME = P_FNAME.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 08:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327292#M511584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T08:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327293#M511585</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;If you want popup to come for selecting the file name from your pc,you can use ws_filename_get function module in at selection-screen on value-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_fname LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS : c_0      TYPE c VALUE '0',&lt;/P&gt;&lt;P&gt;            c_mask(5) TYPE c VALUE ',&lt;STRONG&gt;.&lt;/STRONG&gt;.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        def_path         = p_fname&lt;/P&gt;&lt;P&gt;        mask             = c_mask&lt;/P&gt;&lt;P&gt;        mode             = c_0&lt;/P&gt;&lt;P&gt;        title            = 'FIlename'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        filename         = p_file&lt;/P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 08:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327293#M511585</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-11T08:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327294#M511586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Try this. Hope this is what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_TAB TYPE FILETABLE,&lt;/P&gt;&lt;P&gt;      GD_SUBRC TYPE I. " For string return code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************&lt;STRONG&gt;Selection screen definition&lt;/STRONG&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 LIKE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;lOGIC FOR OPENING TEXT FILE AND STORING IT IN INTERNAL TABLE&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;AT SELECTION-SCREEN&lt;/STRONG&gt;***************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.&lt;/P&gt;&lt;P&gt;  REFRESH: IT_TAB.&lt;/P&gt;&lt;P&gt;*Opens File Open Dialog Box for selecting input file.&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;      WINDOW_TITLE     = 'Select File'&lt;/P&gt;&lt;P&gt;      DEFAULT_FILENAME = '*.txt'&lt;/P&gt;&lt;P&gt;      MULTISELECTION   = ' '&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      FILE_TABLE       = IT_TAB&lt;/P&gt;&lt;P&gt;      RC               = GD_SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Loop on the internal table and get the file name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT IT_TAB INTO P_FILE.         &lt;/P&gt;&lt;P&gt;    EXIT.  " Loop only once&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of execution....the parameter p_file will contain the address of the local file that you selected through the interactive screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Pts if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kirti Bhushan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 09:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327294#M511586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T09:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding parameter passing through the bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327295#M511587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;         CALL FUNCTION 'F4_FILENAME'                        "For upload of the program&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      field_name = 'P_FILE'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      file_name  = p_file.&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;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2007 09:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-parameter-passing-through-the-bdc/m-p/2327295#M511587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-11T09:15:33Z</dc:date>
    </item>
  </channel>
</rss>

