adesso orange🍊Stellenangebote:
Software Engineer Trainee · Senior
| (Senior) Cloud Software Engineer BTP
(Senior) Consultant Technologie · Consultant ABAP
Werkstudent Softwareentwicklung · Fiori / UI5 · Consulting · Application Management
AT SELECTION SCREEN: Unterschied zwischen den Versionen
Aus SAP Wiki ツ
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
IF screen-group1 = 'INT'. | IF screen-group1 = 'INT'. | ||
screen-intensified = 1. | screen-intensified = 1. | ||
ENDIF. | |||
MODIFY SCREEN. | |||
ENDLOOP. | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="abap" line start="1"> | |||
PARAMETERS: p_single RADIOBUTTON GROUP rb DEFAULT 'X' USER-COMMAND uc, | |||
p_multi RADIOBUTTON GROUP rb. | |||
PARAMETERS: p_refbn TYPE co_refbn MODIF ID sng, | |||
p_refpos TYPE co_refbn MODIF ID sng. | |||
SELECT-OPTIONS s_refbn FOR cooi-refbn MODIF ID mul. | |||
AT SELECTION-SCREEN OUTPUT. | |||
LOOP AT SCREEN. | |||
IF p_single = abap_false AND screen-group1 = 'SNG'. | |||
screen-input = 0. | |||
screen-invisible = 1. | |||
ENDIF. | |||
IF p_multi = abap_false AND screen-group1 = 'MUL'. | |||
screen-input = 0. | |||
screen-invisible = 1. | |||
ENDIF. | ENDIF. | ||
MODIFY SCREEN. | MODIFY SCREEN. | ||
Zeile 13: | Zeile 34: | ||
=== AT SELECTION-SCREEN ON p_xyz. === | === AT SELECTION-SCREEN ON p_xyz. === | ||
<syntaxhighlight lang="abap" line start="1"> | |||
IF p_xyz IS INITIAL. | IF p_xyz IS INITIAL. | ||
MESSAGE e003(zbc_general). | MESSAGE e003(zbc_general). | ||
ENDIF. | ENDIF. | ||
</syntaxhighlight> | |||
=== AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xyz. === | === AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xyz. === | ||
<syntaxhighlight lang="abap" line start="1"> | |||
TRY. | TRY. | ||
p_doshow = ''. | p_doshow = ''. | ||
Zeile 41: | Zeile 62: | ||
APPEND gs_message_bal_msg TO gt_messages_bal_msg. | APPEND gs_message_bal_msg TO gt_messages_bal_msg. | ||
ENDTRY. | ENDTRY. | ||
</syntaxhighlight> |
Aktuelle Version vom 13. Januar 2022, 11:04 Uhr
AT SELECTION-SCREEN OUTPUT
"* SELECTION-SCREEN COMMENT /1(79) note '''MODIF ID int'''.
LOOP AT SCREEN.
IF screen-group1 = 'INT'.
screen-intensified = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
PARAMETERS: p_single RADIOBUTTON GROUP rb DEFAULT 'X' USER-COMMAND uc,
p_multi RADIOBUTTON GROUP rb.
PARAMETERS: p_refbn TYPE co_refbn MODIF ID sng,
p_refpos TYPE co_refbn MODIF ID sng.
SELECT-OPTIONS s_refbn FOR cooi-refbn MODIF ID mul.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_single = abap_false AND screen-group1 = 'SNG'.
screen-input = 0.
screen-invisible = 1.
ENDIF.
IF p_multi = abap_false AND screen-group1 = 'MUL'.
screen-input = 0.
screen-invisible = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN ON p_xyz.
IF p_xyz IS INITIAL.
MESSAGE e003(zbc_general).
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xyz.
TRY.
p_doshow = ''.
p_dodown = ''.
IF p_doshow <> abap_true AND p_dodown <> abap_true.
gv_title = 'Download file selection for template'(001).
cl_gui_frontend_services=>file_open_dialog( EXPORTING window_title = gv_title
CHANGING file_table = gt_filename
rc = gv_cnt
user_action = gv_action ).
IF gv_cnt > 1.
MESSAGE e062(cacsib_edt).
ELSE.
IF NOT gv_cnt < 1.
READ TABLE gt_filename INTO p_up INDEX 1.
ENDIF.
ENDIF.
ENDIF.
CATCH zcx_bc_basic INTO go_cx_bc_basic.
gs_message_bal_msg = go_cx_bc_basic->get_msg_in_bal_structure( ).
APPEND gs_message_bal_msg TO gt_messages_bal_msg.
ENDTRY.