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 Application Server

Former Member
0 Likes
983

Hi all,

i have a requirement like selection screen for F4 help where i need to pick the file from Application Server.

When i click on the field on selection screen it should display like same as the AL11

How can this posssible by calling any Function Module or Method ,Will anybody help me in displaying all the Directories with Paths.

Regards,

Madhavi

8 REPLIES 8
Read only

Former Member
0 Likes
953

see below sample code:

PARAMETERS: p_file TYPE IBIPPARMS-PATH.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

CALL FUNCTION 'F4_FILENAME_SERVER'

EXPORTING

pfad = p_file

IMPORTING

FILE_NAME = p_file

EXCEPTIONS

NO_FILE_ON_SERVER = 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.

Read only

0 Likes
953

Hi lakshmi,

what i need to mention in the p_file field.

will you explain wat it will display

Read only

0 Likes
953

Hi Madhavi,

check this code and for the field p_file no need to pass any thing. before that i have given some wrong code.

DATA: lv_hostname TYPE msxxlist-name.

DATA: lv_server TYPE bank_dte_jc_servername.

PARAMETERS: p_file TYPE rlgrap-filename.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

CALL FUNCTION 'BANK_API_SYS_GET_CURR_SERVER'

IMPORTING

e_server = lv_server.

lv_hostname = lv_server.

CALL FUNCTION 'F4_DXFILENAME_4_DYNP'

EXPORTING

dynpfield_filename = 'P_FILE'

dyname = sy-cprog

dynumb = '1000'

filetype = 'P'

location = 'A'

server = lv_hostname.

just run this code separately in a SE38 prog. when ever u press F4 key on the field p_file, u can able to see like AL11 transaction.

Read only

Former Member
0 Likes
953

Hi,

from this table ---> IBIPPARMS check once also do a where used list for the same.... will find where its been used.

Mohinder

Read only

Former Member
0 Likes
953

Hi,

Try this FM '/SAPDMC/LSM_F4_SERVER_FILE'

Thanks,

Phani Diwakar.

Read only

Former Member
0 Likes
953

Hi,

You have a function module that can be used for both the application as well as the presentation server.

F4_DXFILENAME_TOPRECURSION.

In I_LOCATION_FLAG parameter , put 'A' for application server and 'P' for presentation server.

Hope this is clear.

Thanks and regards

Read only

Former Member
0 Likes
953

Check FM '/SAPDMC/LSM_F4_FRONTEND_FILE' and F4_dxfilename_toprecursion

Read only

Former Member
0 Likes
953

solved myself