‎2008 Jul 08 10:13 AM
Hi Experts,
I am working with BDC
I want to get the flat file name also .
how to get that
Regards,
‎2008 Jul 08 11:10 AM
‎2008 Jul 08 10:16 AM
use FM 'F4_FILENAME' to accept file name.
Regards,
Aparna Gaikwad
‎2008 Jul 08 10:20 AM
Hi Aparna,
suppose if the file name is like this
C:\Documents and Settings\pri\Desktop\intput.xls
my req is to get the name only 'input' to display in the report
if i upload no of flat files all the names i want to maintain in one Ztable
‎2008 Jul 08 10:19 AM
Hi Buddy,
Use this selection screen event.
PARAMETERS: p_fname LIKE rlgrap-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
IMPORTING
file_name = p_fname.
You can get the flat file name in the selection screen.
Regards,
Suresh.S
‎2008 Jul 08 10:37 AM
Hi Buddy,
Use this selection screen event.
PARAMETERS: p_fname LIKE rlgrap-filename DEFAULT 'C:\TEMP\materialupload.TXT'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
IMPORTING
file_name = p_fname.
You can get the flat file name in the selection screen.
Regards,
Suresh.S
‎2008 Jul 08 10:21 AM
If you are working with Presentation server
class CL_GUI_FRONTEND_SERVICES
Method FILE_OPEN_DIALOG
or
use the FUnction
TMP_GUI_FILE_OPEN_DIALOG
‎2008 Jul 08 10:21 AM
Hi ,
Please check this link
http://help.sap.com/saphelp_nw70/helpdata/en/79/34a246d9b511d1950e0000e8353423/content.htm
Also check thsi function module
EPS_GET_DIRECTORY_LISTING
Best regards,
raam
‎2008 Jul 08 10:29 AM
Hi above all
Thanks for your reply,
I want only flat file name .
for ex:If i am working with this file
C:\Documents and Settings\pri\Desktop\INPUT.xls
i have to populate only The name of Flat file(INPUT) In Ztable
like that how many flat files i work with my program
all the names should be populated in ztable
I am successfully populating the data of flat file into ztable
I need only the FLAT FILE NAME
Regards,
Edited by: abap learner on Jul 8, 2008 11:35 AM
‎2008 Jul 08 10:35 AM
hi use function module 'F4_FILENAME' . its works as Browse button in window
Thanks & Regards.
Raju Mummidi.
‎2008 Jul 08 10:37 AM
‎2008 Jul 08 10:44 AM
Hi ,
1 Use f4_filename function module you will get c:/temp/file.txt into the
selection screen variable .
2 then use string_reverse function module then the txt.elif/pmep/:c will
come so from that read the variable upto '/' that will become the reverse of your file name .
3.then again use string_reverse your filename come to one variable then append that to internal table
reward if useful
‎2008 Jul 08 10:58 AM
‎2008 Jul 08 11:10 AM