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: 

problem with start-of-selection

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member223537
Active Contributor
0 Kudos

Hi,

In SE93 assign the program name & screen no. as 1000.

Transactional classification as Professional User Transaction.

Best regards,

Prashant

8 REPLIES 8

Former Member
0 Kudos

Hi

Check which transaction type you have assigned to your program, probably it's wrong.

If you need to create a transaction for a report you have to choose:

<b>Program and Selection Screen (Report Transaction)</b>

Max

0 Kudos

You should select "Program and selection screen(report transation)" when create T-code for a report.

Former Member
0 Kudos

Hi

Which type of Transaction code have you created for this report ?

Check that in SE93? you might have created a Module Pool related TCODE/

But you have to create a <b>REPORT related TCODE</b> (second radiobutton) in the SE93.

check that and create it and test it will work.

Reward points if useful

Regards

Anji

former_member223537
Active Contributor
0 Kudos

Hi,

In SE93 assign the program name & screen no. as 1000.

Transactional classification as Professional User Transaction.

Best regards,

Prashant

Former Member
0 Kudos

Hi Smitha ,

As said by Max check the type of transaction you have used and also debug the transaction and see what happend when you enter the values and try to execute the program.

Regards

Arun

Former Member
0 Kudos

Hi Smitha,

Check your transaction code it should be program with selection screen (Second radio button while creating transaction).

Regards,

Atish

Former Member
0 Kudos

Hi Smita,

When you create the Transaction code either thru Se80 or thru Se93... please see that you are giving the screen number asked there as 1000, which is the default screen number for the selection screen.

Also, please see if the checkboxes for the GUI Support are ticked. I think it iwll solve you problem.

Regards,

Jayant

0 Kudos

Thanks everyone for the prompt reply. Its working now!!! I feel like a fool I am rewarding everyone

Cheers!

Smitha