09-12-2008 9:05 AM
Hello everybody,
I have a problem with function module KD_GET_FILENAME_ON_F4.
The parameter "mask" does not seem to work properly, while in R/3 4.6c, it is working properly...
In SCM 5.0: call function with mask = '*.xls'
---> File name is blank
---> Files of type = .XLS (without the *)
---> NOT OK
In R/3 4.6c: call function with mask = '*.xls'
---> File name = *.xls
---> Files of type = All files
---> OK
Please can you help?
Do I have to install a special OSS note?
Thanks in advance for your help.
Regards,
Rudy
09-12-2008 9:53 AM
Hello,
Please check below,I had used it program FM
KD_GET_FILENAME_ON_F4.
1) First way to use:
call function 'KD_GET_FILENAME_ON_F4'
EXPORTING
static = 'X'
mask = '*'
CHANGING
file_name = FILENAME
EXCEPTIONS
mask_too_long = 1
others = 2.
2) Second way to use :
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
STATIC = 'X'
MASK = '*.TXT'
CHANGING
FILE_NAME = FILENAME
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
Filename is nothing but path of file.
regards,
vishal jain
09-12-2008 10:18 AM
Hello,
Thank you for your reply, but it is not the problem.
The problem is that this FM does not work with the mask '*.xls' in SCM 5.0, while it is working fine with R/3 4.6c.
Regards,
Rudy
09-12-2008 11:00 AM
OK, I have found something else which is similar, and which can fit my needs.
I will finally use this method:
CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
Thank you.
Regards,
Rudy.