Application Development and Automation 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: 
Read only

Replacement for function module F4_FILENAME?

VijayaKrishnaG
Active Contributor
0 Likes
4,176

Dear Experts, Good Day.

In my organization very recently SAP has upgraded from ECC6 - EHP0 to EHP6. Now I am facing issues like F4_FILENAME is not able to capture the selected file name/path. I found replacement for this as CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG( ).

But, here my problem is there are more than 50 transactions/programs which are calling function modules F4_FILENAME or KD_GET_FILENAME_ON_F4. Am I need to change all these programs or is there any other efficient solution to resolve this problem at once???

Thanks and Regards,

Vijay

1 ACCEPTED SOLUTION
Read only

rosenberg_eitan
Active Contributor
0 Likes
2,591

Hi,

Please check if you can put implicit enhancement point at the beginning of F4_FILENAME

to call CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG( ) and return .

I am at home I cannot check it now .

Regards .

7 REPLIES 7
Read only

Former Member
0 Likes
2,591

Dear Vijay,

Procedural approach is getting obsolute.

So i wll suggest to go with CL_GUL_FRONTEND_SERVICES class. that is better option.

I dont see any alternative to your solution.

It will code copy paste option.

hope this helps.

Read only

0 Likes
2,591

Hi Jeetendra, firstly thanks for the response.

As mentioned in my query, I already found that CL_GUI_FRONTEND_SERVICES as the alternative. And even I have modified in one program. But there are 50+ programs, so is that only way to change all those programs or what? That is what I am searching for.

Thankyou,

Vijay

Read only

rosenberg_eitan
Active Contributor
0 Likes
2,592

Hi,

Please check if you can put implicit enhancement point at the beginning of F4_FILENAME

to call CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG( ) and return .

I am at home I cannot check it now .

Regards .

Read only

0 Likes
2,591

Hi Eitan,

I have done as you suggested and it is working pretty well.

Thank you.

Vijay

Read only

0 Likes
2,591

Vijay,

Yup Eitan told alternative for the same to use implict enhancement and get it EXIT.

Read only

0 Likes
2,591

Hi,

Yes. Already implemented. Working fine too.

Regards,

Vijay

Read only

0 Likes
2,591

Hi,

You are welcome.

Regards.