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

Adding a input box in the application tool bar

HI,

How to add a input box in the application tool bar..? I need a F4 help also for the input box.

Thanks,

Kishore B A

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 04, 2007 at 11:03 AM

    Hello,

    Not sure of your exact reqt

    But got some sample code to create a button on the toolbar which once clicked gives a new popup window with additional parameters

    TABLES:SSCRFIELDS.
    
    **Create the Additional Selection screen to input filename
    SELECTION-SCREEN: BEGIN OF SCREEN 10.
    PARAMETERS: P_FILE TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN: END OF SCREEN 10.
    
    **Create Application Toolbar Button on the Standard selection Screen
    SELECTION-SCREEN FUNCTION KEY 1. "Its fcode will be FC01
    PARAMETERS : P_WERKS TYPE MARC-WERKS.
    
    INITIALIZATION.
      SSCRFIELDS-FUNCTXT_01 = 'Enter File'. "Assign the Text to the Button
    
    AT SELECTION-SCREEN.
    
      CASE SSCRFIELDS-UCOMM. "Check the Fcode
        WHEN 'FC01'.
          CALL SELECTION-SCREEN 10 STARTING AT 5 8 ENDING AT 85 20.
    
      ENDCASE.
    
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    
      CALL FUNCTION 'F4_FILENAME' "Local file browser
      EXPORTING
      PROGRAM_NAME = SYST-CPROG
      DYNPRO_NUMBER = SYST-DYNNR
      FIELD_NAME = 'P_FILE'
      IMPORTING
      FILE_NAME = P_FILE.
    
    START-OF-SELECTION.
    ***Your list processing.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 11:03 AM

    Hi,

    I hope this functionality is not available in SAP.

    Cheers,

    Bujji

    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.