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

Txn code to Query

Former Member
0 Likes
799

I have made the Query in SQ01 with the User Group,..

now i want to assign the T-Code to the Query how can i get the Report Name

i am getting the Report name as

"!QA0FI==========ZPP456========" but when i assign this a T-code it gives error in SE93

can u tell me how to give t-code to this

6 REPLIES 6
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
708

Hi,

When ever you create query at the runtime a Function group along with Function modules are created you can copy that function group to a ZFunction group and them create a transaction.

Just execute the query in debug mode to get the Generated FG's name.

Regards,

Sesh

Read only

kiran_k8
Active Contributor
0 Likes
708

Go to SQVI

Select the the Query.

Choose the Qucik View button in the Menu bar

Choose More Funtions.

Click on DISPLAY REPORT NAME.

Now go to SE93.

K.Kiran.

Message was edited by:

Kiran K

Read only

Former Member
0 Likes
708

Hi

No need to use small report

No need to use generated program name (it really can change)

Just create a parameter transaction with reference to START_REPORT transaction. When creating a parameter transaction you have to set the following parameters:

D_SREPOVARI-REPORTTYPE = AQ

D_SREPOVARI-REPORT = precisely the first 12 characters - query user group (including trailing spaces), 13-th character is G for global queries

D_SREPOVARI-EXTDREPORT = Query name as shown in SQ01.

That's it.

Well, and do not forget to check the flag "Skip first screen".

To all others interested: just try to add some SAP query into a role via PFCG, then run it, and then via System -> Status look into the definition of the transaction generated, and you'll see the answer.

Tcode for Report Painter

To create a TCode, follow the steps below.

1) Go to Transaction code SE93, Enter TCode Name and Press Create.

2) Give short Description and select Parameter Transaction, Press Enter

3) Select Transation Radio Button and write START_REPORT in the next text

box Also Check the box Skip Initial Screen.

4) On the bottom of Screen (default Values), Enter Parameters

i) Name = D_SREPOVARI-REPORTTYPE. Value = RW

ii) Name = D_SREPOVARI-REPORT Value = Your Report Group Name (Say 1SIP)

5) Save and Execute.

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

Former Member
0 Likes
708

hi abhishek....

What u did is right...the problem is when u copying the report/program name and pasting it in tcode,.,..just delete the blank spaces in home and the end of the program name...and sav it

it will work

I did one SAP query report for HR yes'day and same i did...

reward me if useful...

sankar

Read only

Former Member
0 Likes
708

just delete the spaces

it should be like QA0FI==========ZPP456======== in the program name of the tcode....

sankar

Read only

Former Member
0 Likes
708

I faced the similar problem sometime back. Just try to generate the corresponding FG/query again and you will get a new query name. Everytime you generate the FG/query, you will get a different query name. I hope one of them will be without "!", use that in se93 (parameter transaction) and it will work.

Please reward the helpful entries.

Regards,

Raman.