07-10-2006 2:36 PM
Experts,
The following code is a simple query extract. Why am I getting the error in the subject line and dumping? Does anybody know?
Thank-You.
REPORT zmm_zrecipes_errs_query.
DATA: ok_code LIKE sy-ucomm,
lt_zrecipes_errs LIKE TABLE OF zrecipes_errs,
grid1 TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container.
START-OF-SELECTION.
******************************************************************
Fill report table and call screen to display alv *
******************************************************************
SELECT * FROM zrecipes_errs INTO TABLE lt_zrecipes_errs.
CALL SCREEN 100.
******************************************************************
Process Before Output Modules *
******************************************************************
MODULE setup OUTPUT.
SET PF-STATUS 'MAIN100'.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = 'MY_CONTROL_AREA'.
CREATE OBJECT grid1
EXPORTING i_parent = g_custom_container.
CALL METHOD grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'ZRECIPES_ERRS'
CHANGING
it_outtab = lt_zrecipes_errs.
ENDIF.
ENDMODULE. "setup OUTPUT
*******************************************************************
Process After Input Modules *
*******************************************************************
module check_exit input.
case ok_code.
when 'EXIT'.
leave program.
endcase.
clear ok_code.
endmodule.
07-10-2006 2:38 PM
It would appear that you have not create screen 100. Double click on the "100" in that statement. System will ask if you want to create it if it has not been created yet. Say yes, put your UI elements in the screen, check the flow logic.
Looks like you will need to put a custom container on your screen, name it as 'MY_CONTROL_AREA'
Makes sure that the flow logic code looks like this.
process before output.
module setup .
process after input.
module check_exit.
Regards,
Rich Heilman
07-10-2006 2:38 PM
It would appear that you have not create screen 100. Double click on the "100" in that statement. System will ask if you want to create it if it has not been created yet. Say yes, put your UI elements in the screen, check the flow logic.
Looks like you will need to put a custom container on your screen, name it as 'MY_CONTROL_AREA'
Makes sure that the flow logic code looks like this.
process before output.
module setup .
process after input.
module check_exit.
Regards,
Rich Heilman
07-10-2006 2:40 PM
FIrst Create the screen 100.
If already created activate the screen.
If useful reward points.
Regards,
Vasanth
07-10-2006 2:41 PM
1. Doulbe click on 100 screen, then create it.
2. And create a custom control and name it to 'MY_CONTROL_AREA'.
3. Activate and test the report.
Regds
Manohar
07-10-2006 2:42 PM
07-10-2006 2:47 PM
Tom,
In the screen painter, to the left there is an icon with a letter C written over it... Drag and drop the container into your screen. Now double click on the container, you will get the attributes, just give a name to the container.
Save and activate it...
Now execute the above said program.
You can go through this link for refering as to how to do using containers.
http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
It will work..
Regards,
SP.
07-10-2006 2:54 PM
Hi Tom
I think either you have not created Screen 100 or have not actvated screen 100. First create screen 100 and then activate it. you can create custom control in screen-painter ( SE51 ).