Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Loop in Selection Screen

0 Kudos

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?

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor

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

3 REPLIES 3

DominikTylczyn
Active Contributor

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

0 Kudos

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

how can i do it?

0 Kudos

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

HTH

Dominik Tylczynski