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

Is it possible to call parameter on same screen using push-button (Add+)

PARAMETERS : p_in TYPE c MODIF ID m1 .
SELECTION-SCREEN PUSHBUTTON 50(20) text-001 USER-COMMAND btn .
PARAMETERS p_op TYPE i MODIF ID m2.

i want a push-button to increase parameters in same screen..

Help me ..

Thank you...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 01, 2017 at 09:44 AM

    It is:

    TABLES sscrfields.
    
    PARAMETERS : p_in TYPE c MODIF ID m1 .
    SELECTION-SCREEN PUSHBUTTON 50(20) text-001 USER-COMMAND btn .
    PARAMETERS p_op TYPE i MODIF ID m2.
    
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
        WHEN 'BTN'.
          p_op = p_op + 1.
      ENDCASE.
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Iftah Peretz

      thanks for your reply...

      But i want to increase parameters not values....

      that means .........

      if you click on that Button(ADD+) ...

      p_in ......... (ADD+)

      p_op ......

      p_in........

      p_op.......

      i'm expecting like this ....

  • Posted on Dec 01, 2017 at 10:18 AM

    If you know the number of additional input fileds, you can make them visible on user action (Default : invisible)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 02, 2017 at 09:50 AM

    I finally understand what you mean, by reading your latest comment. So, you want to add additional fields in the selection screen, dynamically at runtime.

    cf Sathya's answer.

    Either use a static selection screen with hidden parameters p_in2, p_op2, p_in3, p_op3, etc. Make them invisible by default (loop at screen..., screen-active='0' or '1', modify screen...), and make them visible when you press the button.

    You may use a dynamic selection screen by using function modules FREE_SELECTIONS_INIT, FREE_SELECTIONS_DIALOG...

    Search the web for more information about these concepts.

    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.