FM used in RSRT
Does anyone know what Function Module is used to execute the query in RSRT? I'm using WREX_GET_DATA in my program but I'm getting much slower response time than executing the query via RSRT.
Thanks,
Dae Jin
Hi Dae Jin
Here is example of program - it will work without any modification if variant Z7300 is created for query in BEX analyzer. Query ID should be given as parameter. Anyway result is returned as grid in FM RRX_GRID_GET. It means anyway you will have 100k records for 10x10 table.
*& Report Z_QUERY_EXECUTE
REPORT Z_QUERY_EXECUTE.
TYPE-POOLS RSR.
PARAMETERS: genuniid LIKE rsrrepdir-genuniid OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR genuniid.
CALL FUNCTION 'RSZ_COMPONENT_TREE_GET'
EXPORTING
i_title = 'Query auswählen'(031)
IMPORTING
e_genuniid = genuniid
EXCEPTIONS
OTHERS = 1.
START-OF-SELECTION.
DATA: g_handle LIKE rrx_misc-handle
, t_var LIKE TABLE OF RRX_VAR WITH HEADER LINE
, t_grid LIKE TABLE OF RRX_GRID WITH HEADER LINE
, t_ranges LIKE TABLE OF RRX_RANGES WITH HEADER LINE
CALL FUNCTION 'RRX_REPORT_OPEN'
EXPORTING
I_GENUNIID = genuniid
I_TRACE_MODE = RS_C_FALSE
IMPORTING
E_HANDLE = g_handle
E_HANDLE_INT =
EXCEPTIONS
OTHERS = 6
CHECK sy-subrc IS INITIAL.
CALL FUNCTION 'RRX_VARIABLES_FLUSH'
EXPORTING
I_HANDLE = g_handle
I_SELSCRN = RSR_C_SELSCRN-INACT
I_VARIANT = 'Z7300'
TABLES
C_T_VAR = t_var
EXCEPTIONS
OTHERS = 6
CHECK sy-subrc IS INITIAL.
CALL FUNCTION 'RRX_GRID_GET'
EXPORTING
I_HANDLE = g_handle
TABLES
E_T_GRID = t_grid
E_T_RANGES = t_ranges
E_T_VAR = t_var
EXCEPTIONS
OTHERS = 5
CALL FUNCTION 'RRX_REPORT_CLOSE'
EXPORTING
I_HANDLE = g_handle
EXCEPTIONS
OTHERS = 3
CHECK sy-subrc IS INITIAL.
Similar Messages
-
Use of rsrt in a program to produce a flat file
Dear experts,
I want to read data from an ODS and save the output list as flat file on the SAP directory.
I have been thinking of using RSRT but I have no notion of about.
Can I run RSRT using an ABAP program and then save the output list as local file ?
Alice>
alice r. wrote:
> Dear experts,
>
> I want to read data from an ODS and save the output list as flat file on the SAP directory.
> I have been thinking of using RSRT but I have no notion of about.
>
> Can I run RSRT using an ABAP program and then save the output list as local file ?
>
>
> Alice
If your requirement is to just take data from DSO, then RSRT won't server the purpose.
There are several methods to do this but simple approach would be:
1) Go to LISTCUBE transaction.
2) Give your DSO name, execute.
3) Give your related conditions (if any), make sure you remove the 200 limit(max no. of hits) at the end.
4) In the specificaton for return type tab (at the end of the screen) choose "Store in file (appl server)".Give your file path on application server in the "Name of the table or file" part.
5) Execute in background.
Hope this helps. -
Hi, experts,
I try to use Tcode: Rsrt to analysis the difference if report use aggregates or not.
under the "Execute + Debug" button, I select the option "Display Statistics Data". but in output text interface, I can not found any information for query performance ( for example: run time, how much rows readed, how many transfer to OLAP processor, etc )
thanks in advance.hi,
hope SAP Note Number: 130696 -Performance trace in BW-
helps
Symptom
How can you monitor the performance of a query in BW?
Other terms
Performance, tracing, BW, query, report, time
Solution
1) Activate the saving of statistical data for each InfoCube
-> BW Admin Workbench - Tools -> BW Statistics for Infoproviders ->
Select the "OLAP" field for the InfoCube.
3) Execute report/query
2) Analyze the RSDDSTAT table using Transaction SE16
Access, for example, using the InfoCube name or the user name or the
timestamp
1. Times that are saved:
QTIMEOLAPINIT
Time of the initialization of the query (for example, loading query in OLAP, compiling if required)
QTIMEOLAP
Time that the OLAP processor required
QTIMEDB
Time the database + network required to select the transaction data. The time is measured from when the SQL command is send to the database, and it is stopped when the requested data reaches the application server. This time therefore includes the transport on the network and the selection on the database.
QTIMEVARDP
Time the user required to enter the variables
QTIMEUSER
Time the user required between the navigation steps
QTIMECLIENT
Time of data formatting in the frontend
The time measurment starts when the OLAP processor has completed the data formatting. The data is then sent to the frontend (EXCEL). The time is stopped when the frontend (BW add-in in EXCEL) has inserted all data in the worksheets (writing the contents and formatting cell, if required). The time therefore includes the transport on the network with the RFC connection and the output in the frontend.
TIMECHAVLREAD
Time required to read master data
TIMEAUTHCHECK
Runtime of the authorization check.
TIMEREST
Time that could not be assigned in more detail (should be equal to 0; if this is not the case, something in the internal processing of the OLAP processor occured differently than expected.)
QRUNTIMECATEGORY
Time of a navigation step (QTIMEOLAPINIT + QTIMEOLAP + QTIMEDB + QTIMEEXCEL + QTIMECHAVLREAD) rounded to the next higher scaling (1,10,100,1000 ... seconds). As of 1.2B, this is rounded to 1,2,3, ... 10,20,30,...100,200,300,... seconds.
1. Data regarding the size of the query:
QDBSEL
Number of the records that had to be read on the database
QDBTRANS
Number of records that the database transferred to the server
QNUMCELLS
Number of cells that were transferred to the frontend
QNUMRANGES
Number of formattings that were transferred to the frontend
RECCHAVLREAD
Number of master data records to be read
1. In addition, the following is saved:
QAGGRUSED
Name of the aggregate used
QNACHLESEN
Indicator: Query reads during each navigation step
1. Administrative information
STATUID
Key of the table; link in view RSDDSTAT_V
QSESSION
All data for a call of the frontend (between start and end of the frontend) is compounded with this unique GUID.
QNAVSTEP
The navigation steps of a QSESSION are numbered in ascending order
QNUMOLAPREADS
Number of read operations OLAP processor for each navigation step
HANDLE
In the frontend, each embedded query has a separate, sequential number (handle)
If you want to analyze a certain query, start it and filter the values from the table afterwards: Selection options: infocube, user name, queryid (can be determined in the report monitor (Transaction RSRT)-> Technical information). The STARTTIME (UTC time) tells you whether you have found the correct session.
You can recognize a session because the QSESSION is always assigned the same ID. The sequence of the navigation steps is saved in QNAVSTEP. However, you can also determine it using the STARTTIME. -
RSRT query execution result page
Hi experts,
I used transaction rsrt/rsrt2 to execute a query and found that when I clicked the icon for next row,it went to next 18 records by default, in the next page I even found some records which are also displayed in first page.
Is there any way I can set to only display new records in next page instead of including records in first page?
I can use Bex analyzer to implement this but I just wonder is it possible to realize this in rsrt/rsrt2?
Thanks.
Best regards
FanchestHi,
In RSRT, select your report and then in Query Display = List or BEX Analyzer and the execute the report the it will display output na dit won't show any duplicates.
Thanks
Reddy -
What is the use of RSRT transaction?
What is Create Variant Tab in the Query Monitor? What is the use of it?
What is Get variant Tab in the Query Monitor? What is the use of it?
Do you have any step by step documentation for cube partitioning, ST03 transaction, SQL trace ST05.............. It would be great if any one explains
topics realated to these
Thanks
NagaUsing RSRT you can test and see how your query runs. It also gives you the performance info, cache info........please check that Tcode in your BW system
Hope these links would help regarding partitioning info cube.
http://help.sap.com/saphelp_nw04/helpdata/en/33/dc2038aa3bcd23e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/0a/cd6e3a30aac013e10000000a114084/content.htm
I'm not so aware of ST03 and ST05
Regards,
Manasa. -
Hello,
In BW production system I'm using tcode RSRT to scan the query for performance issues, using this transaction does anyone know what options to select to determine if it is an Extractor, OLAP, Excel, etc... that is causing the query performance to run slow?
Please advice, thanks for your assistance.
Regards,
Niki Nguyenhi Niki,
it means your infoprovider/infocube ZCSCCOMP has 28 requests not compressed,
compression will improve query performance
for compression take a look
http://help.sap.com/saphelp_nw70/helpdata/en/ca/aa6437e7a4080ee10000009b38f842/frameset.htm
for RSRT (Query monitor) detail
http://help.sap.com/saphelp_nw70/helpdata/en/1b/55d979fd5ca54d96fdb605f22b677e/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/a0/2a183d30805c59e10000000a114084/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d589190-0201-0010-f19a-c74465ce6e0f
hope this helps. -
How do we use RSRV & RSRT for performance tuning?
which specific information is used in decision making (I know that RSRV & RSRT provides lot of performance tuning related information)
Thanx in advance...points will be granted
MonicaHi,
RSRV is basically used for index, database statistics. This has combined tests as well as elementary tests for master data, transaction data, PSA tables, etc. Ex if you are facing any load performance issues with a cube , you can check the database indices for the cube as well as for aggregates if any. Another ex is there are tests which give you comparision between table sizes.
RSRT is mainly used for queries. You can use the debug option to trace the queries to see why the query is taking a long time to execute and so on.
Cheers,
Kedar -
Characteristics Remittance information not available in infoprovider
Hi All,
When I run query from portal it get error : 500 Internal Server error Bex Web Application
FAILED TO PROCESS REQUEST, CONTACT YOUR SYSTEM ADMINITRATOR
ROOT CAUSE:
Characteristics Remittance information not available in infoprovider
ABEND BRAIN(635) QUERY COULD NOT BE OPENED.
NOTE: THIS QUERY RUNS ON MULTIPROVIDER., ANY URGENT HELP WILL BE APPRECIATED, POINT WILL BE ASSIGNED
Thanks in advance
HunnaHi,
Try activating multiprovider and underlying infocubes, using following programs.
Multiprovider: RSDG_MPRO_ACTIVATE
Infocube: RSDG_CUBE_ACTIVATE
DSO: RSDG_ODSO_ACTIVATE
InfoObject: RSDG_IBOJ_ACTIVATE
Then try to run the query, alternately you can use transaction RSRT.
Regards,
Durgesh. -
Virtual Cube with Services - Debugging
I want to debug the function module assigned to a Virtual Cube with services. Using transaction RSRT, I can access the FM using debugger when the query is initially called, by selecting Debug options/Default Breakpoints/VirtualCube. I want to debug subsequent navigation steps on the query. How do I access the debugger for subsequent navigation steps?
Hi Maverick,
You can extract the attributes of the characterstic but u need to configure depending on the function module you are using to read the data from basic infocubes.
I suppose in your FM u are using RSDRI_INFOPROV_READ*(check in your FM to find this) in to get the data from basic infocube. If it is the case then u need to configure interface parameter I_TH_SFC and I_T_RANGE to get the attributes. Hope it helps and if need more let me know the same. If you are using the other function modules you can follow the same logic.
Regards,
Ramana
Message was edited by: Ramana -
In the filter the value of text variable is not shown, only technical name.
Hi All,
We have some odd behavior of text variables in the filter screen of key-figures.
After entering values in the variable screen, the report is executed.
Within the report all text variables are filled, with the values entered in the variable screen.
I say all, because we use both sap standard variables &0T_FPER& as customer specific &ZFSCYR&.
When i want to change the key figures showned, i press the filter icon for key-figures (BW 3.5)
In the list shown: existing filtervalues, the textvariables of SAP standard are filled with the value entered in the variable screen. However the customer specific is shown with the technical name (&ZFSCYR&) and not the value.
Has anyone experience with this behavior or even better a solution to prevent this?
As allways, each usefull answer points assigned!
Regards,
RenéHi Rene,
If ur custom text variable is not getting populated then you need to check out the code that u have written in there in CMOD for this and ofcourse if ur using this text variable after report execution then it will definately be in i_step 2.
So best way is to debug your code and check that using code RSRT.
Thanks
Dipika -
What are the ways to make Query run fast?
Hi Experts,
When a query runs slow, we generally go for creating an aggregate. My doubt is - what other things can be done to make a query run faster before creating an aggregate? What is the thumb rule to be carried out for creating an aggregate?
Regards,
ShreeemHi Shreem,
If you keep Query simple not complicate it with runtime calculations , it would be smooth. However as per business requirements we will have to go for it anyways mostly.
regarding aggregates:
Please do not use the standard proposal , it will give you hundreds based on std. rules , which consumes lots of space and adds up to load times. If you have users already using the Query and you are planning to tune it then go for the statistics tables:
1.RSDDSTAT_OLAP find the query with long runtimes get the Stepuid
2. RSDDSTAT_DM
3. RSDDSTATAGGRDEF - use the stepuid above to see which aggregate is necessary for which cube.
Another way to check ; check the users as in 1 to find the highest runtime users and find the last used bookmarks by user thru RSZWBOOKMARK for this query and check if the time matches and create the aggregates as in 3 above.
You can also Use Transaction RSRT > execute & debug (display stats ) - to create generic aggregates to support navigations for New queries and later refine as above.
Hope it helps .
Thnks
Ram -
Restricting a Ratio with a filter on a dynamic value.
In a Report built with the query designer.
I display:
Row Custumer Category Material ListPrice SalesPrice
1 K1 C1 M1 5 4
2 K2 C1 M2 6 5
3 K2 C2 M3 4 3
The Report is based on a multicube composed of 2 cubes.
One Cube is recording ListPrice By Material and Category
The other cube is Recording SalesPrice By Custumer and Material.
The Category is also an Attribute of the customer.
ListPrice do not vary according to customer.
I managed to Display my listPrice on the same Row of the Sales Price with a constant selection on customer in the ratio ListPrice
But The ListPrice cumulates on the different categories. Indeed for each Material, several ListPrice are recorded depending on the Category so it's aggregating the listPrice and I don't want so. So I could filter on a given Category like C1 or C2. Nevertheless I want to display various categories in the same report. In fact, Line 1: ListPrice should be filtered on Category C1 and Line 3: ListPrice should be filtered on category C2.
Do you have an idea how I could do ?
Thank you.Check the cube to see if the 0CALMONTH field is populated.
Check the transformation may be the transformation was not activated correctly. if thats the case then retransport the transformation again.
Use TCode RSRT to debug the query to see if something else is happening
I would also check the query to see if any other filters are present -
Navigational Attributes are not working in Excel
Hi,
In my report output I have few navigational attributes i define when I filter the values for example Location as define Navigational attribute I am selecting Location = ABC in report after some time my excel is disconnecting?
I am thinking what would be the problem?hi randy,
i guess u have some connection problem.
u can use tcode RSRT and RSRCACHE u can use option debug to check weather any problem occurs because of navg attr.
i consider there should be some bex problem.
byebye -
Query is not picking up right data from the cube
Hi Bi expert,
I added one infoobject (0cust_group) on the cube and when I display data through manage option on RSA1 transaction, I can see that the infoobject nicely populated. But when running query, its coming under Not assigned customer group (s). Could you please help me on this matter? I have activated cube and update rule and even generated the query using transaction RSRT.
Thanks for your help.How do you fill the customer group char in your rules?
1 - using master data of customer or 2 -datasource sending it from R3?
case 1:
check that 0customer attributes are filled and active ( objvers = A)
case 2: check it in r3 using RSA3 transaction, to see if it is extracting it?
derya -
Query Variable: F4 search by Text is case sensitive in Web Templates.
Hello Guru's,
I have a problem, when I am trying to search the variables in Web Templates the search by text is case sensitive.
For example If I have the customer name as "King", I have to search the text as King or Ki*, But If I search as king I will not get any results.
I need to have my text search as case insensitive.
When I checked in my BEx queries the search is case insensitive. I have the problem in my Web Templates only. Please let me know do I need to change any variable settings ing the web templates or let me know how do I fix this issue.
Many Thanks,
Vamshi KrishnaHi,
So the only workaround for this would be to goto RSD1 -> enter info
-object as xxxx, and press maintain, then goto master data/text
tab and select the check box, 'with text', now save and activate the
infoobject. After this regenerate the query using tcode rsrt.
To regenerate goto rsrt enter query name and press 'generate report'
button.
Now the F4 help screen should show the options search by key and search
by text. So that you can select serach by key to have a case insensitive
search.
Thanks,
Venkat
Maybe you are looking for
-
Firefox stops responding and crashes
My tablet is an Asus tf300t with an Android 4.02 OS. I really like what Firefox has to offer, but it is not working for me. I am even writing this on Chrome because Firefox would stop responding constantly.
-
Display Port - 50" Full HD Plasma, what adapter?
Hey guys I have this 50" TV, and ofc I want to hook it up with the MB, but how to do it? There is two adapters: Mini DisplayPort to DVI Adapter. "....DVI adapter lets you connect an advanced digital monitor, such as the 20- or 23-inch Apple Cinema Di
-
Hi All, I am calculating number of days between 2 dates (dt2-dt1)+1 i have a traget table with ranges specified as key days_from days_to 1 1 4 2 5 10 3 11 30 4 31 99999999999999 like.... select KEY from days_ra
-
In case of repair orders, is it possible and recommended to cancel pro forma invoice?
-
If elseif else echo statement with radio buttons
Hi everyone Please help me out here. I have a standard php file with 4 groups of questions (radio groups). The user must answer "yes" to ALL 4 questions where after "You Qualify" will echo on the same page. If any of the questions are answered "No