2020 Jun 30 11:28 AM
Hi Experts,
Do you guys know of any class similar to cl_ci_query_attributes? Where you can also create a dynamic selection screen based on a parameter table however the display will not be a pop-up but a normal sized screen?
Thank you.
Regards,
Kath
Hi Experts,
Do you guys know of any class similar to cl_ci_query_attributes? Where you can also create a dynamic selection screen based on a parameter table however the display will not be a pop-up but a normal sized screen?
Thank you.
Regards,
Kath
2020 Jun 30 11:30 AM
EDIT - my comment is an error (original: "cl_ci_query_attributes is based on cl_gui_alv_grid. Just use cl_gui_alv_grid.") - cl_ci_query_attributes is based on INSERT REPORT, INSERT TEXTPOOL and GENERATE REPORT = dynamic generation of program. Their use is not recommended by SAP - at your own risk.
2020 Jun 30 11:30 AM
Here's my sample code: I want the same functionality as below however I want it to be displayed in a normal sized screen and not a pop-up. Thank you.
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S31 {
font-style: italic;
color: #808080;
}
.L0S33 {
color: #4DA619;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}
REPORT ztestkath.
START-OF-SELECTION.
PERFORM main.
FORM main.
DATA: lt_test TYPE TABLE OF /txn/t_hyrcr_b,
lv_text TYPE text30,
lt_elements TYPE sci_atttab,
ls_elements LIKE LINE OF lt_elements,
" checkbox + radiobutton ( must be DDIC types )
lv_checkbox TYPE xfeld,
lv_language TYPE spras.
lv_language = sy-langu.
" Generic screen call
SELECT *
FROM /txn/t_hyrcr_b
INTO TABLE lt_test
WHERE
team = 'FINANCE'.
ls_elements-kind = 'G'.
ls_elements-text = 'Finance Hypercare'.
ls_elements-ref = REF #( lv_text ).
APPEND ls_elements TO lt_elements.
LOOP AT lt_test INTO DATA(ls_test).
ls_elements-kind = 'C'.
ls_elements-text = ls_test-checkbox_description.
ls_elements-ref = REF #( lv_checkbox ).
APPEND ls_elements TO lt_elements.
ENDLOOP.
cl_ci_query_attributes=>generic(
EXPORTING
" unique screen ID
p_name = CONV #( sy-repid )
" Screen title
p_title = 'Hypercare Automation Bot'
" Screen fields
p_attributes = lt_elements
p_display = abap_false ). " General Flag
ENDFORM.
2020 Jun 30 11:35 AM
Hi Sandra,
Can cl_gui_alv_grid create a selection screen based on a parameter table? I want the same functionality as cl_ci_query_attributes where I can be able to create a selection screen based on my parameter table( see sample code).
2020 Jun 30 12:43 PM
Sorry, my comment was a mistake - CL_CI_QUERY_ATTRIBUTES is not based on CL_GUI_ALV_GRID (I did a confusion with CL_WDY_WB_PROPERTY_BOX).
CL_CI_QUERY_ATTRIBUTES is based on INSERT REPORT, INSERT TEXTPOOL and GENERATE REPORT = dynamic generation of program. Their use is not recommended by SAP - at your own risk.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |