2023 May 02 12:15 PM
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
2023 May 03 7:36 AM
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.
2023 May 05 6:45 PM
I want create a tabla with this structure and create the screen with the information of this table
2023 May 05 7:08 PM
Please draw the selection screen that you expect, it will be more easy to answer.
2023 May 05 7:58 PM
SELECTION-SCREEN END OF LINE.
2023 May 07 5:44 AM
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.
2023 May 07 12:45 PM
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).