How to define a button on Selection-Screen toolbar


Selection-Screen:

 

se1

 

Result:

 res

 

Codes:

 

report  zanil.

* Job: Define button on selection screen.

tablessscrfields.

data lv_result type i.

data lv_val    type string.

* Parameters

parametersp_val1 type i obligatory.

parametersp_val2 type i obligatory.

selection-screen function key 1.

initialization.

  move ‘Sum Values’ to sscrfieldsfunctxt_01.

at selectionscreen.

  if sscrfieldsucomm eq ‘FC01’.

     lv_result p_val1 + p_val2.

     lv_val    lv_result.

     message lv_val type ‘S’.

     return.

  endif.

Leave a comment

Your email address will not be published. Required fields are marked *