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: 

GUI_UPLOAD or KD_GET_FILENAME_ON_F4

Former Member
0 Kudos

Hi All,

Could you please tell me which function module is very useful for F4 help.

REgards,

AMAR

1 ACCEPTED SOLUTION

Former Member
0 Kudos

KD_GET_FILENAME_ON_F4

8 REPLIES 8

Former Member
0 Kudos

KD_GET_FILENAME_ON_F4

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

You cannot use 'GUI_UPLOAD' for F4 help. You can use 'KD_GET_FILENAME_ON_F4' for F4 help. To let you know, internally KD_GET_FILENAME_ON_F4 uses 'WS_FILENAME_GET' which is obsolete.

You can use the method FILE_OPEN_DIALOG of class CL_GUI_FRONTEND_SERVICES.

BR,

Suhas

Edited by: Suhas Saha on Apr 15, 2009 2:16 PM

Former Member
0 Kudos

CALL FUNCTION 'KD_GET_FILENAME_ON_F4'

  • EXPORTING

  • PROGRAM_NAME = SYST-REPID

  • DYNPRO_NUMBER = SYST-DYNNR

  • FIELD_NAME = ' '

  • STATIC = ' '

  • MASK = ' '

CHANGING

file_name = P_FILE

  • EXCEPTIONS

  • MASK_TOO_LONG = 1

  • OTHERS = 2

Former Member
0 Kudos

hi,

hi for F4 value for local directory. even you can use 'F4_FILENAME'


************************************************************************
at selection-screen on value-request for p_file.
************************************************************************
call function 'WS_FILENAME_GET'
    exporting 
        def_filename = space
        def_path = p_file           "File name
        mask = ',*.*.'
        mode = 'O'
        title = title
    importing
        filename = p_file     ""File name
        rc = dummy
    exceptions
        inv_winsys = 04
        no_batch = 08
        selection_cancel = 12
        selection_error = 16.
 
if sy-subrc ne 0.
    message i872(5g).
endif.
 

Regards,

Prabhudas

former_member438956
Active Participant
0 Kudos

hiii,

GUI_UPLOAD Fm is used to take data from text file or excel sheet to internal table while KD_GET_FILENAME_ON_F4 is use for gettin help file on a particular field.

Regards,

Anil N.

Former Member
0 Kudos

Hi ,

FM s used for F4 help,

1. KD_GET_FILENAME_ON_F4

2. F4_FILENAME

Also u can use class CL_GUI_FRONTEND_SERVICES

regards,

ajit

former_member203501
Active Contributor
0 Kudos

hi please search before posting ..

look at this..

Former Member
0 Kudos

hi ,

use both FM to upload the data .

check this link

.

~linganna