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: 

Dump Exception condition "CNTL_ERROR" raised after submit.

mohammadaamir_khan
Participant
0 Kudos

Hi All,

I am call report program from another program using below statement.

submit XXX  WITH SELECTION-TABLE rspar_tab EXPORTING LIST TO MEMORY and return.

Called program has 2 containers. 1 for ALV and another where container is filled using HTML data and shown

  CALL METHOD ref_html->load_data

    EXPORTING

      type                 = 'text'

      subtype              = 'html'

    IMPORTING

      assigned_url         = w_url

    CHANGING

      data_table           = html

    EXCEPTIONS

      dp_invalid_parameter = 1

      dp_error_general     = 2

      cntl_error           = 3

      OTHERS               = 4.

  IF sy-subrc EQ 0.

    CALL METHOD ref_html->show_url

      EXPORTING

        url = w_url.

I am getting dump '

A RAISE statement in the program "CL_GUI_CONTROL================CP" raised the  exception  condition "CNTL_ERROR".

I can't change the called program.

Is there anyway to get data from program.

Thanks

3 REPLIES 3

balanand_s
Participant
0 Kudos

May i know your ECC version?

Former Member
0 Kudos

Hi

Try this class to get runtime data. Please search it for detail.

      cl_salv_bs_runtime_info=>set()

      SUBMIT xxx.

      cl_salv_bs_runtime_info=>GET_DATA().

regards,

Archer

0 Kudos

Version is 720 and in calling program i am using

  cl_salv_bs_runtime_info=>set(

    EXPORTING display  = abap_false

              metadata = abap_false

              data     = abap_true ).

Thanks