Skip to Content

Clear selection-screen

It is possible to clear all the parameters and select-options in a selection-screen ? (instead of clear : param1, param2, ...).

Frédéric.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 07, 2004 at 08:44 AM

    If you want clear event to occur at the initilization of the screen than you can use the code below. And it will not be reexecuted when enter key is used. The screen paramteres will be clean when it is first called.

    INITIALIZATION.

    LOOP AT SCREEN.

    • clears all the screen values that are parameters.

    CHECK screen-group3 EQ 'PAR'.

    ASSIGN (screen-name) TO <fs>.

    CLEAR <fs>.

    ENDLOOP.

    -


    If the solution helps please give points. Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2004 at 11:50 AM

    REPORT zsilf .

    TABLES sscrfields.

    FIELD-SYMBOLS:

    <fs>.

    PARAMETERS:

    vbeln LIKE vbak-vbeln.

    SELECTION-SCREEN PUSHBUTTON /10(20) pushy USER-COMMAND abcd.

    INITIALIZATION.

    MOVE 'Clear' TO pushy.

    AT SELECTION-SCREEN.

    CHECK sscrfields-ucomm = 'ABCD'.

    LOOP AT SCREEN.

    • clears all the screen values that are parameters.

    CHECK screen-group3 EQ 'PAR'.

    ASSIGN (screen-name) TO <fs>.

    CLEAR <fs>.

    ENDLOOP.

    START-OF-SELECTION.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Poornamand,

      I thought I'm a violent dev, but, I think you are more violent than me 😊

      Thanks for the trip, but I can use trip like this because I use complexe selection-screen with call screen ...

      My problem his, I can call several time the same selection-screen (In fact I have several selection-screen with selection-screen include ...). And when I call the second time I see value of the first time.

      I have tried to use event, but the output event occurs even user press ENTER (to validate the value).

      Thanks again.

      (I will try to give you reward point 😊

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.