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

Cannot get generated program to run from TCODE

colin_cheong
Contributor
0 Likes
908

I generated the query program and copied it as to another as an abap program and linked it to a TCODE.

When I run in SE38, it is able to come up with a report but when I run as a TCODE, it pop up the screen for me to input my selection and then it ended when I execute it.

I checked that the sy-ucomm is always a "CRET" when I run from TCODE and "ONLI" when I run from SE38.

I managed to ovewrite it in the codes but it still doesnot work.

Can someone highlight to me what further changes do I need to do?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
856

Change the transaction type from

Program and Screen ( Dialog transaction ) to

Program and selection screen ( Report transaction )

7 REPLIES 7
Read only

Former Member
0 Likes
857

Change the transaction type from

Program and Screen ( Dialog transaction ) to

Program and selection screen ( Report transaction )

Read only

Former Member
0 Likes
856

HI,

Check and specify the correct radio buttons :

program and screen (dialog transaction)

program and selection screen (report transaction)

Method of class

Transction with variant

transaction with parameters

reg

siva

Read only

Former Member
0 Likes
856

Hi,

Select program and selection screen (report transaction) radiobutton.

Regards,

Jyothi CH.

Read only

Former Member
0 Likes
856

Are u trying to create a transaction code for a SAP query? If this is so, follow the steps below. You do not need to copy to another abap program:

1. Go to SE93 and enter the transaction code for the query and click 'Create' icon

2. Choose 'Transaction with parameters (parameter transaction)' on the popup

3. Type Transaction = 'START_REPORT'

4. Check 'Skip Initial Screen'

5. Check ' Inherit GUI Attributes'

6. Check SAPGUI for HTML, Java, Windows

7. Default Values as such:

D_SREPOVARI-REPORT = <User Group>

D_SREPOVARI-EXTDREPORT = <Query Name>

D_SREPOVARI-REPORTTYPE = 'AQ' (for Query)

Read only

former_member506713
Participant
0 Likes
856

Re-create the transaction with Program and selection screen (report transaction) instead of program and screen (dialog transaction).

Read only

colin_cheong
Contributor
0 Likes
856

Thanks

Read only

colin_cheong
Contributor
0 Likes
856

Thanks