05-29-2007 10:02 AM
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
05-29-2007 10:05 AM
Hi,
In SE93 assign the program name & screen no. as 1000.
Transactional classification as Professional User Transaction.
Best regards,
Prashant
05-29-2007 10:03 AM
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
05-29-2007 10:09 AM
You should select "Program and selection screen(report transation)" when create T-code for a report.
05-29-2007 10:05 AM
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
05-29-2007 10:05 AM
Hi,
In SE93 assign the program name & screen no. as 1000.
Transactional classification as Professional User Transaction.
Best regards,
Prashant
05-29-2007 10:06 AM
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
05-29-2007 10:07 AM
Hi Smitha,
Check your transaction code it should be program with selection screen (Second radio button while creating transaction).
Regards,
Atish
05-29-2007 10:14 AM
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
05-29-2007 10:24 AM
Thanks everyone for the prompt reply. Its working now!!! I feel like a fool I am rewarding everyone
Cheers!
Smitha