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

Given QUERY --> to report development

Former Member
0 Likes
563

I have given a query.

i need to convert that to report.

However the business requirement is not given.

I need to dig the given query and

based on the table used, select queries written in that generated quiery program, I need to develop the REPORT.

Ane smart guidelines on how to write reprot based on given query

or

how to proceed ?

Your guide lines to complete this report quickly and smartly would be highly appreciated.

Thanks in advance!

1 ACCEPTED SOLUTION
Read only

SureshRa
Active Participant
0 Likes
512

Hi,

You don't have to dig into the SAP Query. Just write an executable program and call the Function Module SAP_QUERY_AD_HOC and pass your Infoset Query Name and other parameters. Your SAP Query selection screen would appear to user. You can claim that this is a report program written by you. Pleae refer to SAP help [Calling the Infoset Query|http://help.sap.com/saphelp_47x200/helpdata/en/9c/6b7538c9a8ee45e10000009b38f8cf/content.htm]

Cheers,

Suresh

I have given a query.

i need to convert that to report.

However the business requirement is not given.

I need to dig the given query and

based on the table used, select queries written in that generated quiery program, I need to develop the REPORT.

Ane smart guidelines on how to write reprot based on given query

or

how to proceed ?

Your guide lines to complete this report quickly and smartly would be highly appreciated.

Thanks in advance!

2 REPLIES 2
Read only

SureshRa
Active Participant
0 Likes
513

Hi,

You don't have to dig into the SAP Query. Just write an executable program and call the Function Module SAP_QUERY_AD_HOC and pass your Infoset Query Name and other parameters. Your SAP Query selection screen would appear to user. You can claim that this is a report program written by you. Pleae refer to SAP help [Calling the Infoset Query|http://help.sap.com/saphelp_47x200/helpdata/en/9c/6b7538c9a8ee45e10000009b38f8cf/content.htm]

Cheers,

Suresh

Read only

Former Member
0 Likes
512

As per my understanding , you need to convert a query to report.

So proceed as below :

1. GO in infoset and find the batadase tables used in query with their join condition.

You need to write select statements on these tables with given join condition in your report.

2. Now, check the extra fields added and calculations. This you have to use in your report to get derived fields.

3. Check the output layout and selection parameters in SQ01. This you need to use for selection screen and output dilpsay. Use ALV to display output.

Hope this helps you.