Skip to Content
0
Former Member
May 29, 2007 at 09:02 AM

problem with start-of-selection

18 Views

Hello Experts!

I am facing a weird situation and I am not able to do anything about it. Here is the problem-

I have a report. When I execute the report directly and provide values for selection-screen parameters, the control enters the start-of selection. But, I have created a tcode for this report and when i execute this transaction code and give the same values, the control does not enter the start-of-selection and I am kicked out of this z transaction. I have no idea why this is happening.

This is my code-

PROGRAM zmmnae_req_extract LINE-SIZE 120.

INCLUDE:

zmmnae_req_extract_decl,

zmmnae_req_extract_macros,

zmmnae_req_extract_selscr,

zmmnae_req_extract_forms.

************************************************************************

  • INITIALIZATION Event

************************************************************************

INITIALIZATION.

  • Read config values from SSM_VAR

PERFORM do_initialization.

************************************************************************

  • AT SELECTION-SCREEN Events

************************************************************************

AT SELECTION-SCREEN.

  • Validate the selection screen fields

PERFORM do_input_validation.

************************************************************************

  • START-OF-SELECTION Event

************************************************************************

START-OF-SELECTION.

  • Before doing anything, check the error status flag

CASE err_status.

WHEN fatal.

MESSAGE i999(zv) WITH text-002.

EXIT.

WHEN nonfatal.

MESSAGE i999(zv) WITH text-015.

WHEN OTHERS.

ENDCASE.

  • Prepare for processing:

PERFORM setup.

  • Get data to be processed:

PERFORM get_data.

  • Process the data:

PERFORM process_data.

Could anybody please help me out?

Thanks and Regards,

Smitha