Skip to Content
-1

Loop in Selection Screen

Hello,

My selection screen got 2 sides, left side inputs right side outputs. I get Transaction names from user, and give output table like SU24 but more spesific.

PARAMETERS :     TRAN01 TYPE XUPNAME OBLIGATORY.
SELECTION-SCREEN COMMENT (2) ARBPL01.
SELECTION-SCREEN COMMENT (2) BUKRS01.
SELECTION-SCREEN COMMENT (2) BWKEY01.
SELECTION-SCREEN COMMENT (3) EKGRP01.
SELECTION-SCREEN COMMENT (3) EKORG01.
SELECTION-SCREEN COMMENT (2) ERKRS01.
SELECTION-SCREEN COMMENT (2) FIKRS01.
SELECTION-SCREEN COMMENT (2) GSBER01.
SELECTION-SCREEN COMMENT (2) IWERK01.
SELECTION-SCREEN COMMENT (3) KOART01.
SELECTION-SCREEN COMMENT (3) KOKRS01.
SELECTION-SCREEN COMMENT (3) KOSTL01.
SELECTION-SCREEN COMMENT (2) LGNUM01.
SELECTION-SCREEN COMMENT (2) PLVAR01.
SELECTION-SCREEN COMMENT (2) PRCTR01.
SELECTION-SCREEN COMMENT (2) PS_PR01.
SELECTION-SCREEN COMMENT (2) SPART01.
SELECTION-SCREEN COMMENT (2) SWERK01.
SELECTION-SCREEN COMMENT (2) VKORG01.
SELECTION-SCREEN COMMENT (2) VSTEL01.
SELECTION-SCREEN COMMENT (2) VTWEG01.
SELECTION-SCREEN COMMENT (2) WERKS01.
SELECTION-SCREEN END OF LINE.

In this example, TRAN01 is my first inputbox, and others my outputs.

But as you can see, if i need 100 inputs, i need to re-write the code up above 100 times like TRAN02, TRAN03,..., TRAN99, TRAN100.

Is there a easy way to do it? IDK maybe using class may useful, any suggestions?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Mar 23 at 01:53 PM

    Why don't you implement that with dialog screen with table control?

    Or with ALV list with the first column ready for input?

    Then you could easily handle any number of rows you wish.

    Frankly, that's one strange way of using selection-screen.

    Best regards

    Dominik Tylczynski

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 23 at 04:17 PM

    Check out this wiki: Interactive ALV - Input Enabling Functionality in ALV Grid

    HTH

    Dominik Tylczynski

    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.