Application Development 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: 

Run time error : CONTROL_NOT_FOUND

Former Member
0 Kudos

Hi all,

I have the following dump in production.

ShrtText

CONTROL variable not found

What happened?

Error in ABAP application program.

The current ABAP program "SAPLSLVC_FULLSCREEN" had to be terminated because one

of the

statements could not be executed.

This is probably due to an error in the ABAP program.

Error analysis

CONTROL "GRID1" was searched but was not found.

This is due to a data inconsistency of a screen and the program or the

ABAP statement is incorrect (for example, REFRESH CONTROL ... FROM

SCREEN with an incorrect Control name).

Information on where terminated

The termination occurred in the ABAP program "SAPLSLVC_FULLSCREEN" in

"SYSTEM-EXIT".

The main program was "Z2RLS192101001_01RP_00 ".

The termination occurred in line 0 of the source code of the (Include)

program " "

of the source code of program " " (when calling the editor 00).

No. Ty. Program Include Line

Name

5 MODULE SAPLSLVC_FULLSCREEN ??? 0

SYSTEM-EXIT

4 FUNCTION SAPLSLVC_FULLSCREEN LSLVC_FULLSCREENU01 186

REUSE_ALV_GRID_DISPLAY

3 FORM Z2RLS192101001_01RP_00 Z2RLS192101001_01RP_00 1349

OUTPUT_REPORT

2 FORM Z2RLS192101001_01RP_00 Z2RLS192101001_01RP_00 869

OUTPUT_LOCATION_REP

1 EVENT Z2RLS192101001_01RP_00 Z2RLS192101001_01RP_00 667

START-OF-SELECTION

Any help will be appreciated

Thanks

Sai.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

This error comes if the GUI should not patched.

Just have a look at SAP logon (the window with all the logons listed), in left upper corner you can open a small menu, last line is 'about' -> number will be displayed.

GUI for Windows version 640 currently patch-level 19 is up-to-date.

If youe GUI is upto date, then the Program is doing wrong

Regards

Sudheer

7 REPLIES 7

Former Member
0 Kudos

Have u checked a cutom container is added in the screen. that is GRID1 in the screen u r using to display the GRID,

Vasanth

Former Member
0 Kudos

Hi,

This error comes if the GUI should not patched.

Just have a look at SAP logon (the window with all the logons listed), in left upper corner you can open a small menu, last line is 'about' -> number will be displayed.

GUI for Windows version 640 currently patch-level 19 is up-to-date.

If youe GUI is upto date, then the Program is doing wrong

Regards

Sudheer

0 Kudos

Hi Sudheer,

Thanks for your reply.

What abt if we use the GUI for Windows version 620 what is the correct patch level?

Thanks

Sai.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Post the code of the program, just so we can take a look and make sure that everything is there. Also, if using the CL_GUI_ALV_GRID, make sure that the container is on the screen in screen painter, and it has the correct name.

REgards

Rich Heilman

0 Kudos

Hi Rich,

Iam using reuse_alv_grid_display.


*  Set calling program
  w_repid = sy-repid.

*  Set display options
  st_layout-zebra = c_x.
  st_layout-colwidth_optimize = c_x.

*  Field to hold line colour
  st_layout-info_fieldname = 'INFO_FIELDNAME'.

*  User can look at selection screen info via a pushbutton
  st_layout-get_selinfos = c_x.

*  User can set a formatting option relating to the sort criteria
*  (in print preview mode)
  st_layout-group_change_edit = c_x.

*  wa_excl = '&UMC'.                                  DEVK944065-
*  insert wa_excl into table ts_excl.                 DEVK944065-

*   wa_event_exit-ucomm = '&XXL'.                     DEVK944065
*   wa_event_exit-before = 'X'.                       DEVK944065
*   append wa_event_exit to ts_event_exit.            DEVK944065

*  Output list
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program                = w_repid
      i_callback_pf_status_set          = 'SET_PF_STATUS'
      i_callback_user_command           = 'USER_COMMAND'
      is_layout                         = st_layout
      it_fieldcat                       = ts_fieldcat
      it_excluding                      = ts_excl
      i_save                            = c_save
      is_variant                        = st_variant
      it_events                         = ts_events
      is_print                          = st_print
      it_event_exit                     = ts_event_exit     "DEVK944065
      it_sort                           = ts_sort           "DEVK944065
*    IMPORTING
*      E_EXIT_CAUSED_BY_CALLER           =
*      ES_EXIT_CAUSED_BY_USER            =
    tables
      t_outtab                          = ts_alv_output
*     t_outtab                          = ist_output
    exceptions
      program_error                     = 1
      others                            = 2
            .
  if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

Thanks

Sai.

0 Kudos

Ah, then this might be a gui problem, because the FM encapulates all the object stuff.

Make sure you are on the latest patch level

REgards,

RIch Heilman

0 Kudos

the latest patch level is 23