F4 Help for selecting the file
Hi All,
I want to select the file into my selection screen by providing the browsing option for user to locate the file.
But i want only '.CSV' files to be displayed. I am not sure if f4_filename provides option to restrict file type to '.csv' instead of '.*'.
I tried the fm 'KD_GET_FILENAME_ON_F4' .It has an option mask where i can enter the file type.The file type which i enter comes in the file dialog box but those files are not available for selecting.
Kindly help me in this regard.
Regards,
S.Subasree
hi,
have you pass all the value which is shown in the below code
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE '
STATIC = 'X'
MASK = '.excel , *.xls '
CHANGING
file_name = p_file
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2 .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
hope this hwlps
Regards
Ritesh
Similar Messages
-
Could any one tell the FM for F4 help to select the file from application server.
Hi,
Try this one..
REPORT ZTESTAPPL.
data: t_filetab type table of SALFLDIR with header line,
t_spopli type table of spopli with header line.
parameters p_dir like SALFILE-LONGNAME default 'D:\SAPWORKING'.
call function 'RZL_READ_DIR_LOCAL'
exporting
name = p_dir
tables
file_tbl = t_filetab
EXCEPTIONS
ARGUMENT_ERROR = 1
NOT_FOUND = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at t_filetab.
if t_filetab-size ne space.
t_spopli-varoption = t_filetab-name.
append t_spopli.
clear t_spopli.
endif.
endloop.
call function 'POPUP_TO_DECIDE_LIST'
exporting
CURSORLINE = 1
MARK_FLAG = 'X'
MARK_MAX = 25
START_COL = 0
START_ROW = 0
textline1 = 'Choose Files'
TEXTLINE2 = ' '
TEXTLINE3 = ' '
titel = 'File Selection'
DISPLAY_ONLY = ' '
IMPORTING
ANSWER =
tables
t_spopli = t_spopli
EXCEPTIONS
NOT_ENOUGH_ANSWERS = 1
TOO_MUCH_ANSWERS = 2
TOO_MUCH_MARKS = 3
OTHERS = 4
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at t_spopli.
if t_spopli-selflag ne ' '.
write :/ 'Selected File: ' , t_spopli-varoption.
endif.
reward points if helpful -
F4 Help for Selecting a File in WD ABAP
HI,
What is the method, or FM that is available for selecting a file in WD ABAP.
method FILE_OPEN_DIALOG is not working as it required GUI.
Thanks
MaheshHi ,
THIS SHOULD UR PROBELM
data: ifiletable type filetable.
data: xfiletable like line of ifiletable.
data: rc type i.
selection-screen: begin of block blk with frame title text-001.
selection-screen : skip 1.
parameters : u_file like rlgrap-filename.
selection-screen : skip 1.
selection-screen : end of block blk.
initialization.
h_repid = sy-repid.
at selection-screen on value-request for u_file.
call method cl_gui_frontend_services=>file_open_dialog
EXPORTING
WINDOW_TITLE =
DEFAULT_EXTENSION =
DEFAULT_FILENAME =
FILE_FILTER =
INITIAL_DIRECTORY =
MULTISELECTION =
changing
file_table = ifiletable
rc = rc
USER_ACTION =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
others = 4
if sy-subrc eq 0.
read table ifiletable into xfiletable index 1.
if sy-subrc = 0.
u_file = xfiletable-filename.
endif.
else.
endif.
start-of-selection.
clear : file ,count.
move u_file to file.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = file
filetype = 'ASC'
HAS_FIELD_SEPARATOR = SPACE
HEADER_LENGTH = 0
IMPORTING
FILELENGTH =
HEADER =
changing
data_tab = i_text_file[]
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at i_text_file ..
Thanks
Venki -
FM to select the file path for download into application server
Hello,
I need a FM to select the file path for download into application server. It is a F4 help .
Its functionality should be simmilar to the one used for presentation server i.e. as fol
CALL METHOD cl_gui_frontend_services=>file_save_dialogHello,
What about F4_DXFILENAME_TOPRECURSION? You can check other FMs of the group DX_FILE.
BR,
Suhas
PS: I think these FMs are not released by SAP, so need to be cautious while using these -
Add custom field in the F4 help for selecting source field in tcode FMDER
HI,
I an working in FUND MANAGEMENT, i want to add custom field in the F4 help for selecting source field in t-code FMDERIVE.
How this possible.
Regards,
PankajOK
-
HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says "feature films and home movies you add to itunes appear in movies in your iTunes library. To play a movie, just double click it". And below are two options for Downloading movies from store and rent movies. Please help.
I get the exactly the same problem with win 7, i rang apple support who suggested i try another machine/or create another account on my machine???? why should i, stupid ipad 3rd gen is now sitting here un syncable, apple support ....tut tut very poor support, its a shame im out of the 7 day period otherwise this ipad would be going straight back, older versions of itunes worked fine, some one must know a fix for this??
-
Encore CS5 very slow when selecting the File tab
Good morning.
This is the first I have ever experienced this. Encore CS5 is extremely slow when I try to select the file Tab. All other tabs like Edit are fine. It is also takes forever to Save anytime. I usually just use Encore for short no menu DVD's I'm building a DVD with a few sideshows and an hour of video. I haven't started the menu yet. I updated the latest from Adobe yesterday and I am current with the Window 7 64 bit updates. All other applications in the Master Suite work fine. I think my system should be enough to run Encore without any problems. Any suggestions? I'm all ears!...
CASE: Cooler Master HAF 932
MB: Gigabyte GA EX 58 UD5
VIDEO: Nvidia FX 4800
CPU: i7-860 2.8 Ghz 8mb Cache
COOLER: Zalman CNPS9700LED
RAM: G Skill F3-8500CL7S Rip Jaw 24 GB
HD: (3) Western Digital Caviar Black 2TB 7200/64MB/Sata
HD: (2) Western Digital Caviar Black 500GB 7200/64MB/Sata built as RAID0
HD: (1) Raptor 500GB for Operating System
SOUND: Creative X-fi SB 1040EF
OS: Windows 7 Home premium 64 Bit
Thanks,
ArtDo you have Windows hard drive Indexing ON or OFF?
Some Win7 notes...
http://forums.adobe.com/thread/789809?tstart=0
More Tips http://windowssecrets.com/comp/110127
Utilities http://windowssecrets.com/comp/110106 (Soluto for startup)
Win7 Help http://social.technet.microsoft.com/Forums/en-US/category/w7itpro/
Win7 Configuration Article http://windowssecrets.com:80/comp/100218
Win7 Monitor http://windowssecrets.com:80/comp/100304
Win7 Optimizing http://www.blackviper.com/Windows_7/servicecfg.htm
Win7 Virtual XP http://www.microsoft.com/windows/virtual-pc/
More on Virtual XP http://blogs.zdnet.com/microsoft/?p=5607&tag=col1;post-5607
Win7 Adobe Notes http://kb2.adobe.com/cps/508/cpsid_50853.html#tech
Win7 Adobe Update Server Problem http://forums.adobe.com/thread/586346?tstart=0
An Adobe Win7 FAQ http://forums.adobe.com/thread/511916?tstart=0
More Win7 Tips/FAQ http://forums.adobe.com/thread/513640?tstart=0
Processes http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
Compatibility http://www.microsoft.com/windows/compatibility/windows-7/en-us/Default.aspx
Win7 God Mode http://forums.adobe.com/thread/595255?tstart=0
CS5 Install Error http://forums.adobe.com/thread/629281?tstart=0
CS5 Help Problem http://kb2.adobe.com/cps/842/cpsid_84215.html
Win7 and Firewire http://forums.adobe.com/thread/521842?tstart=0
http://lifehacker.com/5634978/top-10-things-to-do-with-a-new-windows-7-system
http://www.downloadsquad.com/2009/05/29/7-free-windows-7-tweaking-utilities/
Win7 64bit Crashing and "a" fix http://forums.adobe.com/thread/580435?tstart=0
http://prodesigntools.com/if-any-problems-downloading-or-installing-cs5.html
Harm's Tools http://forums.adobe.com/thread/504907
Also http://www.tune-up.com/products/tuneup-utilities/
Also http://personal.inet.fi/business/toniarts/ecleane.htm -
I just watched the tutorial and did exactly what it was telling me to do, and I still can't get it done. Once I have selected the file, I get a box that pops up that says "Subscribe now to convert unlimited number of files to PDFs. Subscribe Now. I already have done this! I am a subscriber! Arrrrhhhgggg!
Hello Kathie,
Please let me know what exactly are you trying to do using Adobe online service.
You might try accessing the same service for some other PDFs and check.
Have you signed up correctly at "https://cloud.acrobat.com/" using your Adobe ID credentials.
If the same message pops up, then please visit Contact Customer Care as they could let you know if there is any problem with your account.
Hope to get your response.
regards,
Anubha -
Need help for understanding the behaviour of these 2 queries....
Hi,
I need your help for understanding the behaviour of following two queries.
The requirement is to repeat the values of the column in a table random no of times.
Eg. A table xyz is like -
create table xyz as
select 'A' || rownum my_col
from all_objects
where rownum < 6;
my_col
A1
A2
A3
A4
A5
I want to repeat each of these values (A1, A2,...A5) multiple times - randomly decide. I have written the following query..
with x as (select my_col, trunc(dbms_random.value(1,6)) repeat from xyz),
y as (select level lvl from dual connect by level < 6)
select my_col, lvl
from x, y
where lvl <= repeat
order by my_col, lvl
It gives output like
my_col lvl
A1 1
A1 3
A1 5
A2 1
A2 3
A2 5
A3 1
A3 3
A3 5
A4 1
A4 3
A4 5
A5 1
A5 3
A5 5
Here in the output, I am not getting rows like
A1 2
A1 4
A2 2
A2 4
Also, it has generated the same set of records for all the values (A1, A2,...,A5).
Now, if I store the randomly-decided value in the table like ---
create table xyz as
select 'A' || rownum my_col, trunc(dbms_random.value(1,6)) repeat
from all_objects
where rownum < 6;
my_col repeat
A1 4
A2 1
A3 5
A4 2
A5 2
And then run the query,
with x as (select my_col, repeat from xyz),
y as (select level lvl from dual connect by level < 6)
select my_col, lvl
from x, y
where lvl <= repeat
order by my_col, lvl
I will get the output, exactly what I want ---
my_col ....lvl
A1 1
A1 2
A1 3
A1 4
A2 1
A3 1
A3 2
A3 3
A3 4
A3 5
A4 1
A4 2
A5 1
A5 2
Why the first approach do not generate such output?
How can I get such a result without storing the repeat values?If I've understood your requirement, the below will achieve it:
SQL> create table test(test varchar2(10));
Table created.
SQL> insert into test values('&test');
Enter value for test: bob
old 1: insert into test values('&test')
new 1: insert into test values('bob')
1 row created.
SQL> insert into test values('&test');
Enter value for test: terry
old 1: insert into test values('&test')
new 1: insert into test values('terry')
1 row created.
SQL> insert into test values('&test');
Enter value for test: steve
old 1: insert into test values('&test')
new 1: insert into test values('steve')
1 row created.
SQL> insert into test values('&test');
Enter value for test: roger
old 1: insert into test values('&test')
new 1: insert into test values('roger')
1 row created.
SQL> commit;
Commit complete.
SQL> select lpad(test,(ceil(dbms_random.value*10))*length(test),test) from test;
LPAD(TEST,(CEIL(DBMS_RANDOM.VALUE*10))*LENGTH(TEST),TEST)
bobbobbobbobbobbobbobbobbobbob
terryterry
stevestevesteve
rogerrogerrogerrogerrogerrogerrogerrogerrogerYou can alter the value of 10 in the SQL if you want the potential for a higher number of names.
Andy -
How to get calender in f4 help for select options in module pool (URGENT)
Hi All,
how to get calender in f4 help for select options in module pool
Please help .
Thanx in advance,
amrutaHi Amruta,
First of all, you can not create select-options directly in module pool.
For creating <b>select-option is dialog prog</b> follow these steps:
1. create your selection screen model as subscreen by:
SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
PARAMETRS: P_MATNR LIKE MARA-MATNR.
SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
SELECTION-SCREEN END OF SCREEN 2000.
2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
3. write this bit of code in PBO and PAI of the screen 100;
CALL SUBSCREEN SUBSCREEN_2000.
4. include this code in PBO:
INCLUDING SY-REPID '2000'
6. write user_command of PAI, call screen which is going to executable after selection-screen.
5. create a transcation for this dialog module pool with screen 100.
6. execute this transaction and you can see it's behaving like cool with select-options.
After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
Hope it will solve the problem.
Regards
Krishnendu -
F4 help for select options based on parameter value
hi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PMhi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PM -
How do i select the file extension type?
using imovie '11.
i've finalised a project and exported it. it automatically saved as a .m4v (itunes) file.
my question is:
is there any way to manually select the file extension when saving/finalising a project?
for example, i might be required to save a project as a .mov file.
thanks in advance.Publish the movie on itunes then, drag the movie on your desktop. After right click on the movie icon and click get info. Go to name and extension and change the .m4v to .mov . This should work because, it works if you want to change from .mp4 to .3gp etc... This saves you time because you don't have to use a movie converter.
Best of luck Jono -
Freely Programed Help for select-option field
Hi,
how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
i used parameter i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
Please suggest where i am doing wrong??
Edited by: kranthi kumar on Dec 29, 2010 6:19 PM>
kranthi kumar wrote:
> Hi,
>
> how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
>
> i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
>
> i used parameter i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
>
> View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
>
> Please suggest where i am doing wrong??
>
> Edited by: kranthi kumar on Dec 29, 2010 6:19 PM
Hi Kranthi,
Please help me to understand your design.
Why would you like to create a Freely programmed value help for select-option?. why not use wdr_select_option directly ? -
Need help to zip the files? ? ? ?
hello friends
i am unable to zip the files in my directory by using this program
import java.io.*;
import java.util.zip.*;
public class Zip {
static final int BUFFER = 2048;
public static void main (String argv[]) {
try {
BufferedInputStream origin = null;
FileOutputStream dest = new
FileOutputStream("c:\\zip\\myfigs.zip");
ZipOutputStream out = new ZipOutputStream(new
BufferedOutputStream(dest));
//out.setMethod(ZipOutputStream.DEFLATED);
byte data[] = new byte[BUFFER];
// get a list of files from current directory
File f = new File(".");
String files[] = f.list();
for (int i=0; i<files.length; i++) {
System.out.println("Adding: "+files);
FileInputStream fi = new
FileInputStream(files[i]);
origin = new
BufferedInputStream(fi, BUFFER);
ZipEntry entry = new ZipEntry(files[i]);
out.putNextEntry(entry);
int count;
while((count = origin.read(data, 0,
BUFFER)) != -1) {
out.write(data, 0, count);
origin.close();
out.close();
} catch(Exception e) {
e.printStackTrace();
but it is working fine for compress the files in the current directory
but
File f = new File("C:\\ramu");
it shows the error like this
C:\j2sdk1.4.2_09\bin>javac Zip.java
C:\j2sdk1.4.2_09\bin>java Zip
Adding: okh.txt
java.io.FileNotFoundException: C:\ramu (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at Zip.main(Zip.java:21)
can any body help to rectify this problemDon't cross-post!
http://forum.java.sun.com/thread.jspa?threadID=5184841&tstart=0
And use code tags already.
The referenced thread already has advice for you (and no, we will not do it for you, you've already been given an example of how to do it, it is up to you to at least attempt it). -
Regarding help for selecting module in SAP
Dear Sir,
Myself manish kumar singh still working as an enduser in SD & PP (R/3) module.But now i want to select one module from both of them. But i confuesed for selecting one. I am graduate from commerce side and now persuing MBA. I am working in Excsie deptt. Pls help me for selecting the module and also pls guide me the good institutes for coaching which is chepest and also located in delhi.Hi Manish,
As in my view PP will be good one.
Regarding SAP training centers, check the below list of all the SAP Authoried training centers where from you can pursue the course:
http://www.sap.com/asia/services/education/centres/partners.epx
Regards,
Subhasha
Maybe you are looking for
-
Why is my Mac running so slow?
I have a Mac book late 2010 and it has 4 gb of ram. I got mountain lion and now every thing is slow like Turning on takes 1:30 to get to the log on screen. Loging in takes 30 sec opening any programs takes 30+ secs. Do you know why this is the case?
-
Hi All, I have got alert categories created by client,I have to use alert categories and dynamic alert message in BPM.i am not authorized for transaction ALRTCATDEF.Can you tell me where i can see dynamic alert messages for alert categories created.I
-
BAPI or Function Module to update IMZO
Hi, I'm looking to update table IMZO from a custom program but can't find a FM or BAPI to update the standrd table IMZO. I know this is updated from CJ20N but I can't find the FM or BAPI that does this. Can anyone help?
-
RE: Full update and init for 2008 differs
Dear All, I am doing initilization of data for 0fi_ar_4. When i do the full update for selection as fiscal yr.period =2008001 to 9999012 i get all the data around 33600 records. When i do the init however it fetches only 89000 records. I want do init
-
Friday Apr 25 while traveling south between Eckert and Fredricksburg TX on 16 I asked Google Maps to locate me. Three time over about ten minutes it told me I was in England. Where I was: http://maps.google.com/?ie=UTF8&ll=30.347695,-98.787346&spn=0.