Mar 26, 2026

Running an ATC Check with Variant for a Z Program

Option 1: From SE38 (Most Direct)

  1. Open SE38, enter your Z program name
  2. Menu: Program → Check → ATC Check
  3. A dialog appears — select your Check Variant
  4. Confirm → results go to the ATC worklist

Option 2: From ATC Cockpit (Correct Flow)

  1. Go to transaction ATC
  2. Click "Schedule Run" (not "Run Check")
  3. In the next screen:
    • Define or select an Object Set containing your Z program
    • Select the Check Variant
  4. Set execution as "Immediately"
  5. Execute → view results under "Worklist"

Option 3: From SATC

  1. Go to SATC
  2. Button: "Create" a new run
  3. Specify:
    • Object Set → add your Z program (PROG / ZMYPROGRAM)
    • Check Variant
  4. Run immediately or schedule in background

Quickest Method

For a single Z program, SE38 → Program → Check → ATC Check is the fastest — it prompts for the variant inline and runs immediately without needing to define object sets.

Would you like help interpreting the results or configuring a specific check variant?

Mar 24, 2026

Function Module to Run a Simple ALV Report

Codes:

FUNCTION z_very_simple_alv.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"    REFERENCE(I_START_COLUMN) TYPE  I DEFAULT 25
*"    REFERENCE(I_START_LINE) TYPE  I DEFAULT 6
*"    REFERENCE(I_END_COLUMN) TYPE  I DEFAULT 100
*"    REFERENCE(I_END_LINE) TYPE  I DEFAULT 10
*"    REFERENCE(I_TITLE) TYPE  STRING DEFAULT 'ALV'
*"    REFERENCE(I_POPUP) TYPE  FLAG DEFAULT ' '
*"  TABLES
*"      IT_ALV TYPE  STANDARD TABLE
*"----------------------------------------------------------------------

  DATA go_alv TYPE REF TO cl_salv_table.

  TRY.
      cl_salv_table=>factory(
        IMPORTING
          r_salv_table = go_alv
        CHANGING
          t_table      = it_alv[] ).

    CATCH cx_salv_msg.
  ENDTRY.

  DATA: lr_functions TYPE REF TO cl_salv_functions_list.

  lr_functions = go_alv->get_functions( ).
  lr_functions->set_all( 'X' ).

  IF go_alv IS BOUND.
    IF i_popup = 'X'.
      go_alv->set_screen_popup(
        start_column = i_start_column
        end_column  = i_end_column
        start_line  = i_start_line
        end_line    = i_end_line ).
    ENDIF.

    go_alv->display( ).

  ENDIF.

ENDFUNCTION. 


Sample program to call the Function:

REPORT z_very_simple_alv.

DATA gt_tab TYPE STANDARD TABLE OF sflights.

SELECT * FROM sflights INTO TABLE gt_tab.

CALL FUNCTION 'Z_VERY_SIMPLE_ALV'
  TABLES
    it_alv = gt_tab.


Result





AdT (ABAP in Eclipse), Code Formatter/PrettyPrinter/Beautify setup in Eclipse

 Windows > Preferences > ABAP Formatter