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

problem in abap coding in SAP QUERY

Former Member
0 Likes
432

My Requirement is to fetch records form bseg based on the selection-screen values of XREF1(ref key1) field into table ibseg1, after this take the clearing document of ibseg1 and find all the Documents cleared with these clearing document from bseg into ibseg2.

Now My Final Internal Table is IBSEG2.

How to display the o/p of query with the records of IBSEG2 ??

In query, in Infoset(SQ02) in code (shft+F8) : i have declared custom variables,Selection-screen, select statements and used FM: reuse_alv_grid_display to diaplay the o/p from IBSEG2.

But when coming to SQ01 once again we are selecting the fieldgroup, Selection-screen fields and fields for display.....

In selection screen i have both : explicitly declared fields & selection fields from Query

What is hapening is when i am executing the query due to explicit calling of FM:reuse_alv_grid_display,

data from IBSEG2 is being displayed and When we Click 'BACK' button it is giving the o/p of the Query based on the selection Fields & o/p fields selected in basic list.

I want to avoid 2 O/Ps one from Coding & one from Query....is there any solution for this..

2 REPLIES 2
Read only

Former Member
0 Likes
389

how to shadow the normal o/p of a query by o/p achieved using coding in sap query.....

any suggestions?

Read only

Sandra_Rossi
Active Contributor
0 Likes
389

Be careful when you use abbreviations like "o/p", it may not be clear for everyone.

Do you have an infoset with an internal/external program defined?

Why do you want to display the result by yourself, as sap query has this functionality?

Why do you use sap query, as it seems most of the code is custom?