Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

start-of-selection and sy-ucomm

Semih
Newcomer
0 Kudos
251
sy-ucomm

AT SELECTION-SCREEN.
  IF sy-ucomm 'BTN1' AND lv_executed IS INITIAL.
    "lv_executed = abap_true.

    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr             '01'
        object                  'ZNRO_TEST2'
      IMPORTING
        number                  lv_number
      EXCEPTIONS
        interval_not_found      1
        number_range_not_intern 2
        object_not_found        3
        OTHERS                  4.

    gs_log-id lv_number.
    gs_log-ad gv_ad.
    gs_log-soyad gv_soyad.
    gs_log-yas gv_yas.

    INSERT zbk_egt_00034 FROM gs_log.


  ENDIF.

In this statement, If statement triggers twice. Because of that program print 2 rows. What could be the reason ?

0 REPLIES 0