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 for Logical file

Former Member
0 Likes
985

Hi All,

i've declared a parameter where end-user can specify the logical file name. can anyone provide the code for F4 help for logical file name.

Regards

Faisal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
699

Declare this :-->

PARAMETERS: p_apsvr LIKE rlgrap-filename OBLIGATORY.

*----


  • AT selection Screen

*----


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apsvr.

PERFORM get_apsvr_path.

***

FORM get_apsvr_path .

CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'

EXPORTING

directory = p_apsvr

filemask = '*'

IMPORTING

serverfile = p_apsvr

EXCEPTIONS

canceled_by_user = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

ENDFORM. " get_apsvr_path

Hi All,

i've declared a parameter where end-user can specify the logical file name. can anyone provide the code for F4 help for logical file name.

Regards

Faisal

3 REPLIES 3
Read only

Former Member
0 Likes
699

Hi ,

Check this ..

FM - SD_F4_HELP_LOGICALSYSTEM

Read only

Former Member
0 Likes
700

Declare this :-->

PARAMETERS: p_apsvr LIKE rlgrap-filename OBLIGATORY.

*----


  • AT selection Screen

*----


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apsvr.

PERFORM get_apsvr_path.

***

FORM get_apsvr_path .

CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'

EXPORTING

directory = p_apsvr

filemask = '*'

IMPORTING

serverfile = p_apsvr

EXCEPTIONS

canceled_by_user = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

ENDFORM. " get_apsvr_path

Read only

Former Member
0 Likes
699

Hi ,

Check this ..

FM - SD_F4_HELP_LOGICALSYSTEM