Skip to Content
author's profile photo Former Member
Former Member

Onclick F4 directory name and filename should display in different textbox

Hi All,

I am using following FM for the list of directories on the application server....

CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'

EXPORTING

i_location_flag = 'A'

i_server = ' '

i_path = search_dir

filemask = c_fnh_mask

fileoperation = 'R'

IMPORTING

o_path = file_path

EXCEPTIONS

rfc_error = 1

OTHERS = 2.

IF sy-subrc EQ 0.

CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'

EXPORTING

full_name = file_path

IMPORTING

stripped_name = lv_source_file_name

file_path = lv_source_file_dir

EXCEPTIONS

OTHERS = 1.

endif.

actually i have two textboxes one is source directory and source filename...

when i click F4 in the text box source directory the directory name should display in source directory field and file name in source file name...

to split i called FM 'SO_SPLIT_FILE_AND_PATH' but not getting displayed ...

so can anyone help me out in this???

helpful answers will be awarded...

Thanks,

Jayshree.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 04:45 AM

    Hi Jayshree

    Use the FM DYNP_VALUES_UPDATE by passing the program name and screen number. And to the DYNPFIELDS internal table pass the selection screen field name of Source field file name and the value which you got after using the FM SO_SPLIT_FILE_AND_PATH. All this things will be done at place where F4 help for Source directory field.

    Hope this helps !

    Regards

    Ranganath

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.