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

BDC

Former Member
0 Likes
391

hi,

In bdc we can access both files on presentation server & application server.

i am taking the path of the file on presentation server in selection screen using f4 help, by implementing f4_filename function module. then how can we get the f4 help to access the file on application server?

plz assist me.

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
370

Hi Ravi...

This is the code....

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_afile.

CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'

EXPORTING

directory = './'

IMPORTING

serverfile = p_afile

EXCEPTIONS

canceled_by_user = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

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

ENDIF.

then u wil get f4 help for application server.

reward if Helpful.

3 REPLIES 3
Read only

varma_narayana
Active Contributor
0 Likes
371

Hi Ravi...

This is the code....

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_afile.

CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'

EXPORTING

directory = './'

IMPORTING

serverfile = p_afile

EXCEPTIONS

canceled_by_user = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

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

ENDIF.

then u wil get f4 help for application server.

reward if Helpful.

Read only

varma_narayana
Active Contributor
0 Likes
370

Hi Ravi...

This is the code....

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_afile.

CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'

EXPORTING

directory = './'

IMPORTING

serverfile = p_afile

EXCEPTIONS

canceled_by_user = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

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

ENDIF.

then u wil get f4 help for application server.

reward if Helpful.

Read only

varma_narayana
Active Contributor
0 Likes
370

Hi Ravi...

This is the code....

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_afile.

CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'

EXPORTING

directory = './'

IMPORTING

serverfile = p_afile

EXCEPTIONS

canceled_by_user = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

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

ENDIF.

then u wil get f4 help for application server.

reward if Helpful.