‎2009 Jun 16 10:02 AM
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..
‎2009 Sep 14 7:00 AM
how to shadow the normal o/p of a query by o/p achieved using coding in sap query.....
any suggestions?
‎2009 Sep 14 10:17 AM
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?