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: 

Select option and parameter dinamyc

former_member740482
Participant
0 Kudos
565

Dear experts

How can create screen with select option and parameters, comment dinamyc with the information of a domain

SELECTION-SCREEN begin of LINE.
PARAMETERS : p1 type char10. " this will take 10
SELECTION-SCREEN COMMENT 12(5) text-005. "starting from 12
SELECTION-SCREEN COMMENT 18(5) text-006. "starting from 12+5 + gaps
SELECTION-SCREEN COMMENT 24(5) text-007. "starting from 18+5 + gaps
SELECTION-SCREEN end of LINE.

Regards

6 REPLIES 6

jens_michaelsen
Participant
0 Kudos
460

Do you mean something like this ?

SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : p1 TYPE char10. " this will take 10
SELECTION-SCREEN COMMENT 12(5) text1 modif id md1. "starting from 12
SELECTION-SCREEN COMMENT 18(5) text2. "starting from 12+5 + gaps
SELECTION-SCREEN COMMENT 24(5) text3. "starting from 18+5 + gaps
SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT.
text1 = 'Hello'.
text2 = 'World'.
text3 = '!'.

LOOP AT SCREEN INTO DATA(screen_wa).
IF screen_wa-group1 = 'MD1'.
screen_wa-intensified = '1'.
MODIFY SCREEN FROM screen_wa.
ENDIF.
ENDLOOP.

former_member740482
Participant
0 Kudos
460

I want create a tabla with this structure and create the screen with the information of this table

Sandra_Rossi
Active Contributor
0 Kudos
460

Please draw the selection screen that you expect, it will be more easy to answer.

former_member740482
Participant
460

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 5(5) text-350 MODIF ID hot.
SELECTION-SCREEN POSITION 12.
PARAMETERS: phot RADIOBUTTON GROUP gr66 MODIF ID hot.
SELECTION-SCREEN COMMENT 19(04) text-351 MODIF ID hot.
SELECTION-SCREEN POSITION 24.
PARAMETERS: pcold RADIOBUTTON GROUP gr66 MODIF ID hot.
SELECTION-SCREEN COMMENT 31(08) text-352 MODIF ID hot.
SELECTION-SCREEN POSITION 41.
PARAMETERS: poth RADIOBUTTON GROUP gr66 DEFAULT 'X' MODIF ID hot.
SELECTION-SCREEN END   OF LINE.

jens_michaelsen
Participant
460

I understand that you want to create a selection screen full dynamically with all the data in your table: the name of the parameters dynamically, the type of the parameters dynamically, the texts for the parameters dynamically and so on.

I think it's not possible, unless you write a program, which generate a selection screen in a new include/program.

Sandra_Rossi
Active Contributor
0 Kudos
460

Dynamic generation of ABAP code is internally supported although INSERT REPORT itself is not marked as internal (I don't see a clear reason in the ABAP documentation).