AT SELECTION SCREEN: Unterschied zwischen den Versionen

Aus SAP Wiki ツ
Zeile 13: Zeile 13:


=== 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 41:
       APPEND gs_message_bal_msg TO gt_messages_bal_msg.
       APPEND gs_message_bal_msg TO gt_messages_bal_msg.
   ENDTRY.
   ENDTRY.
</syntaxhighlight>

Version vom 12. August 2021, 11:53 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.

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.