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

how to execute a report using a transaction code?

0 Likes
10,774

Hi team,

I am new in ABAP and I want to do a very simple report and then call this report using a transaction code.

Steps:

1) create the report (SE38)

the report is: Z_DEMO

2) generate a transaction code for this report (SE93)

note: the transaction code is ZDEMO

3) call the transaction generated on step 2

When I execute the report using SE38, everythig is ok and the records are inserted in my table zdemo2.

But when I call my transaction ZDEMO there is no insertion. Why?

The report ask for parameters and then fowards me to SAP's main menu.

Thanks,

Walter.

The report is:

REPORT Z_DEMO.

tables: zdemo2.

parameters:

nombre like zdemo2-nombre,

edad like zdemo2-edad.

data:

begin of tabla occurs 0,

nombre like zdemo2-nombre,

edad like zdemo2-edad,

end of tabla.

zdemo2-nombre = nombre.

zdemo2-edad = edad.

insert zdemo2.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,281

Hi,

While creating the transaction for your program

1>Make sure u give the program name and screen number

2>Important thing is a option "GUI SUPPORT"

Check all the checkboxes or atleast SAPGUI for Windows to ensure that the Code runs in SAP GUI.

Thank you.

5 REPLIES 5
Read only

Former Member
0 Likes
5,282

Hi,

While creating the transaction for your program

1>Make sure u give the program name and screen number

2>Important thing is a option "GUI SUPPORT"

Check all the checkboxes or atleast SAPGUI for Windows to ensure that the Code runs in SAP GUI.

Thank you.

Read only

0 Likes
5,281

Solved.

The solution was changing the transaction type from "program and screen" to "program and selection screen".

Thanks,

Walter.

Read only

Former Member
0 Likes
5,281

hi walter,

Please create report transaction for your report .

while creating a popup comes and ask which type of tcode you want to create, select second option, and select all gui support in your tcode, it will definitely work.

Yogesh N

Read only

narin_nandivada3
Active Contributor
0 Likes
5,281

Hi,

While creating a Ztransaction in SE93 select the start object as Program and Selection-screen (Report Transaction)..

Hope this would work and solve your issue....

Good luck

Narin

Read only

Former Member
0 Likes
5,281

Hi,

While creating the Transaction in SE93.

1.Enter the discription.

2. You have to select the program & selection screen for report option.

3. You need to enter the Program Name & screen No. default 1000.

4. In the Below GUI Support Box. Select all the check boxs.

Regards

Rajendra