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

Sap Query Report Assignment Parameter

Former Member
0 Likes
2,019

Hi,

Actually I am a functional Consultant and building a query for PM Reports.

I have two queries in place where First query provides the Equipment Life (i.e., days with calculations) and second one is for Equipment Order Costs.

I want to call up the second query from the first one.

I have made the report assignment everything is working fine but the problem is as below:

The second query (With order details) is having two selection fields one with Equipment (EQUI-EQUNR) and second is PERID (which I have created as selection parameter in infoset SQ02) and it is a date field (with reference from AFKO-GLTRP).

Now, the field PERID (or AFKO-GLTRP) is not present anywhere in first query but since it is a date field, it is picking the value from EQUI-ANSDT which is also a date field and is present in my First Query.

Here I want the report not to take up that value and instead I want to give a formula for this field.

Is there any way to provide formula for Report assignment.

Thanks in advance.

Regards,

Chin2.

1 ACCEPTED SOLUTION
Read only

jogeswararao_kavala
Active Contributor
1,451

What is the method of Report Assignment you are using?

6 REPLIES 6
Read only

jogeswararao_kavala
Active Contributor
1,452

What is the method of Report Assignment you are using?

Read only

0 Likes
1,451

Sir, I have tried using TR as well as query as mentioned in your post  but in both the cases it is behaving the same way.

Your post was stuffed well enough to help me in creating the query and quiery is working like a charm.

But if there is any way I can give the condition from first query to selection field in second query it would be done.

Thank you for your valuable time and response sir.

Regards,

Chin2.

Read only

0 Likes
1,451

At the most from the known methods so far you can try to give the Variant name also in the Query you are referring to in Report Assignment. And the variant can contain dynamic Date values (you know the settings while Saving a variant). For detailed calculations of the Date field in the called query, I would say, Such are the requirements which drove me to ABAP reporting always.

Read only

0 Likes
1,451

Thank you so much for your response sir.

I solved it myself as I have created a similar field in first query and I am fetching the values from that field instead.

Read only

0 Likes
1,451

Happy you've resolved. Often this area demands innovative methods. Very recently similar thing happened to me and I had posted that timely as an update to my existing blog. i.e., Please go through the same at the end of the post. It might be a useful knowledge piece, because you are active in this area.

Good luck

KJogeswaraRao

Read only

0 Likes
1,451

Thank you so much sir.

By the way, I have been through this post as I am constantly following all your posts.

As in some manner, I am a big fan of your writting.

Thank you once again Sir.

Regards,

Chin2.