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

f4 help-value

former_member225134
Participant
0 Likes
728

Hi,

    In function module f4_filename am getting value from(importing) filename(desired file path)..

after choosing a particular file it is not placed on the i/p or o/p field....in which place am mistaking???

5 REPLIES 5
Read only

Former Member
0 Likes
707

It will be easy to find out if you can paste your code here.

Read only

0 Likes
707

MODULE F4_HELP INPUT.

   data: F4 LIKE rlgrap-filename.

   DATA : rlgrap-filename(50) .

CALL FUNCTION 'F4_FILENAME'

     EXPORTING

       program_name  = syst-cprog

       dynpro_number = syst-dynnr

       field_name = 'F4'

     IMPORTING

       file_name  = F4.

   IF SY-SUBRC EQ 0.

      RLGRAP-FILENAME F4 .

   ENDIF.

ENDMODULE.   

Read only

Former Member
0 Likes
707

try code like this, DATA : V_FILE TYPE STRING. DATA : T_FILE TYPE RLGRAP-FILENAME. CALL FUNCTION 'F4_FILENAME'  "PASS THE FILE NAME AS U NEED. EXPORTING   FIELD_NAME          = 'T_FILE' IMPORTING   FILE_NAME          = T_FILE. V_FILE = T_FILE.          "STRING CONVERSION

Read only

0 Likes
707

Thanks for your repli,

                   Am also using same code only.But am unable to capture that file name in output screen..after selecting file name it doesnt show anything on output screen.

Read only

Former Member
0 Likes
707