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: 

F4_Filename

Former Member
0 Kudos

Hi,

I need a solution regarding F4_Filename...

when i am uploading a file am using 'F4_Filename' , when i press f4, with in look in window by default it is showing 'SAP Work directory', but I need another location like 'Desktop'.

Thanks,

Anil

3 REPLIES 3

Former Member
0 Kudos

Hi,

set the path of the directory you want as default value to the parameter

regards

padma

Former Member
0 Kudos

Hi,

When u use F4_Filename, choose the path from the directory (for eg from Desktop) and then execute the same.

Regards

Guru

Former Member
0 Kudos

Hi,

Try like this:

PARAMETERS : p_ipfile LIKE ibipparms-path OBLIGATORY

DEFAULT 'C:\Documents and Settings\yourname\Desktop\prod_input.txt'.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

program_name = syst-cprog

dynpro_number = sy-dynnr

field_name = 'P_IPFILE'

IMPORTING

file_name = p_ipfile.

ENDFORM. " get_filename_ip.

Regards,

Bhaskar