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

f4 help for Application Server

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 07:14 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 08:14 AM

    Hi,

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

    Mohinder

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 06:49 PM

    Hi,

    Try this FM '/SAPDMC/LSM_F4_SERVER_FILE'

    Thanks,

    Phani Diwakar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2008 at 05:31 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2008 at 10:51 AM

    Check FM '/SAPDMC/LSM_F4_FRONTEND_FILE' and F4_dxfilename_toprecursion

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 09:16 AM

    solved myself

    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.