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

Export list to SAP memory.

Former Member
0 Likes
592

Hello experts,

I'm trying to excute the following sample:

http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html

I replaced the program in the SUBMIT STATEMENT with the name of my program which displays the reportt in an ALV format.

But my code gives me a dump on the submit statement and follwoing is the dump:

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

Since the exception was not intercepted by a superior program

in the hierarchy, processing was terminated.

is there any other way i can export my list to the memory without using submit statement.

Hello experts,

I'm trying to excute the following sample:

http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html

I replaced the program in the SUBMIT STATEMENT with the name of my program which displays the reportt in an ALV format.

But my code gives me a dump on the submit statement and follwoing is the dump:

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

Since the exception was not intercepted by a superior program

in the hierarchy, processing was terminated.

is there any other way i can export my list to the memory without using submit statement.

3 REPLIES 3
Read only

Former Member
0 Likes
540

EXPORTING LIST TO MEMORY addition with the SUBMIT statement will work only for classical reports. In case of ALV reports, this addition cannot be used.

Please mark points if the solution was useful.

Regards,

Manoj

Read only

0 Likes
540

in case of ALV also u can use this key words ?

can u see ST22 what it is saying abt this error ?

Regards

Peram

Read only

0 Likes
540

Hi Manoj this is wat the dump says:

The termination occurred in the ABAP program "CL_GUI_CONTROL================CP"

in "SET_VISIBLE".

The main program was "ZP_PERSONALREPORT ".

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

program "CL_GUI_CONTROL================CM009"

of the source code of program "CL_GUI_CONTROL================CM009" (when

calling the editor 180).

Source code extract

000010

000020 METHOD SET_VISIBLE .

000030 * (visible)

000040

000050 data: temp_visible(1).

000060 temp_visible = cl_gui_control=>visible_true.

000070 case visible.

000080 when '1'.

000090 when 'X'.

000100 when 'x'.

000110 when 'TRUE'.

000120 when others.

000130 temp_visible = cl_gui_control=>visible_false.

000140 endcase.

000150

000160 * check handle

000170 IF ME->H_CONTROL IS INITIAL.

> RAISE CNTL_ERROR.

000190 ENDIF.

000200

000210 * set properties

000220 CALL METHOD SET_WINDOW_PROPERTY

000230 EXPORTING

000240 PROPERTY_ID = CL_GUI_CONTROL=>PROPERTY_VISIBLE

000250 VALUE = temp_VISIBLE

000260 EXCEPTIONS

000270 CNTL_ERROR = 1

000280 CNTL_SYSTEM_ERROR = 2

000290 OTHERS = 3.

000300 CASE SY-SUBRC.

000310 WHEN 0.

000320 WHEN 1. RAISE CNTL_ERROR.