Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with function module KD_GET_FILENAME_ON_F4 in SCM 5.0

rudy_schmitz
Active Participant
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

rudy_schmitz
Active Participant
0 Kudos

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

rudy_schmitz
Active Participant
0 Kudos

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.