How to transport Query variant used in APD
Hello Experts,
I have created 2 query variants for a query in Development system. And, these variants are being used in APD. Now, when APD is transported to next system, query variants does not exist in next system, so cannot execute APD.
Please let me know how can i transport the query variants.
Note: Gone through SDN, and found, query variants can be transported through some tables.
Please let me any other possibile sloutions for the same.
Thanks
Lavanya
Hi Lavanya,
To the best of my knowledge, you cannot transport query variants. You have to manually create them in each system. The reason being, when you try to create variants through RSRT -> Query Variants, you are basically trying to create variants for a temporary program generated during run time!
These run time programs do not have TADIR entries (not transportable) and hence any sub elements (like variants) created on these programs are not transportable as well.
Actually you can export variants.Please follow the below steps:
1. Go To TCode SE38.
2. Execute "RSTRANSP".
3. Input your program name.
4. Input your variant name ie. "Z**** ".
5. Execute.
6. Click on continue.
7. You should be able to create a new transport at this point.
Hope It Helps,
Thanks,
Amit Kr.
Similar Messages
-
LSADMIN CMS authorization problem - How To Transport XI Content Using CMS
We are configuring CMS using the "How To Transport XI Content Using CMS". For the LSADMIN user we have added the SAP_XI_CMS_SERV_USER and SAP_SLD_ORGANIZER roles. We have followed all of the steps in the guide.
The problem we are encountering is that when we define the domain but put in the LSADMIN as the user, we get an error - "SLD (URL http://server:50000) server exception: HTTP response code: 403 Forbidden"
We then gave the LSADMIN all of the roles of XISUPER and restarted the J2EE engine. We still have the same problem. So we changed the CMS User to be XISUPER and we could save the domain. Now, we have another problem - when we try to export from dev using CMS, we get the following problem:
"Sent on 3/9/06 at 1:26 PM: Unable to establish connection to CMS server http://servername:50000. Unable to transfer the following transport lists: Export list for ...
Details: unknown exception: com.sap.cms.util.exception.conf.CMSCFinderException: Workspace name does not exist: com.sap.cms.util.exception.conf.CMSCFinderException: Workspace name does not exist: version=0,dtrWSName=
Check the availability of the CMS and the user authorizations and send the transport request again if necessary
We are on SP16. Anyone encountered this issue?
Regards,
JayHere are all of roles we have given LSADMIN in client 100:
SAP_CMS_ADMINISTRATOR
SAP_SLD_DEVELOPER
SAP_SLD_GUEST
SAP_SLD_ORGANIZER
SAP_XI_BPE_MONITOR_ABAP
SAP_XI_CMS_SERV_USER
SAP_XI_CMS_SERV_USER
SAP_XI_DEMOAPP
SAP_XI_DEVELOPER
SAP_XI_DEVELOPER_ABAP
SAP_XI_DEVELOPER_J2EE
SAP_XI_MONITOR
SAP_XI_MONITOR_ABAP
SAP_XI_MONITOR_J2EE
But on the J2EE side, we only see the following roles for LSADMIN:
- Authenticated Users Built-in Group Authenticated Users
- Everyone Built-in Group Everyone
- SAP_XI_CMS_SERV_USER Exchange Infrastructure: Change Management Service User
I checked client 000, and noticed that LSADMIN only had the SAP_XI_CMS_SERV_USER. So this the problem. I added all of the roles to LSADMIN in client 000 and restarted J2EE and now i can see all of the roles under the LSADMIN user in UME.
We noticed the problem that our UME configuration was pointing to client 000 and not client 100. If we go to Visual administrator and go to the Services->UME Provider, we see that - ume.r3.connection.master.client points to client 000. We will need to change this.
That was the issue. UME was pointing to the wrong ABAP client. I appreciate all of your help.
Regards,
Jay -
How to schedule Query Extracts using RSCRM_BAPI
Hi,
Can you give me the link to the document How to schedule Query Extracts using RSCRM_BAPI . I do not have userid password to view the same.
Thanks for the help.Hi,
this is the link for the document..
https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004400232004E
thnks. -
Hi All,
Kindly teach me how to transport query.
Thanks,
SidHi,
In SQ01, select the desired query from the appropriate query area.
From the Menu select Query -> More functions -> Generate Program.
After this the ABAP program is generated in memory for the query.
Again from the menu select Query -> More functions -> Display Report name .
Copy this program and execute through SE38, you will see the same result as executed from SQ01.
Now assign a tcode to thsi program and get it transported.
Regards,
Lalit -
Hi,
I have a lot of query variant which I need in every system.
Is it possible to transport query variants? I already tried to transport the query and variable in the transport connection. Addionally I figured out that the variants are stored in table rsrvariant, but I'm not able to transport the entries.
Regards,
KarenHi,
Pls transport the table RSRVARIANT ,which contains the entry for all bex variants, all variants will be transported then.You should transport the table contents(via SE16 or SE10).Create a request in SE09 or SE10. From the context menu of the transport no, go to object list (or double click). On the next screen go to 'change' mode.Press 'add new entry' (plus icon).
Rgds,
Murali -
Change a query variant using a program for APD
Hello everyone,
Some background:
We have a complex reporting based on calculated key figures (CKF). However, the business rules do change over time, and the formulas for CKF get outdated. So the business meaning of CKF remains the same, but the way it gets calculated - changes.
Yesterday CKF "A" = B + C
Today CKF "A" = B + D - F
Since the customer requires reporting for the former periods, maintaining several CKF of the same business meaning but calculated differently for each period becomes a problem.
Instead of having several versions of CKF "A", we decided to use APD, to periodically run the query with valid CKF, save the query results to transactional ods, then move it to another infocube. Now we will have the infocube with figures and dates, and the customer needs to maintain just one CKF "A".
After trying this out we've encountered following issue:
Since the query will run periodically we must use a time period filter (in fact - variable on a time characteristic - APD is not working with filter) to select CKF valid for this month for example.
The query in APD can work with variables only via query variants.
Now, the question is how to change the query variant automatically?
We can not force the customer to create new query variants each month for dozens of reports.
We plan to integrate APD in the process chain (although we haven't check how it works), where the query variant will be changed using a program.
so please advice:
1) is there any function module to change query variants in the background
2) which tables contain the query variant, so we can change it using abap
3) may be you can suggest other options to make it work
thank you
Message was edited by:
NorthernHi,
here it is.
write this code in SE38.
REPORT ZDATE_CAL..
DATA: itab_tvarvc like tvarvc,
l_date like sy-datum,
l_monthyear_low type /BI0/OICALMONTH,
l_monthyear_high type /BI0/OICALMONTH,
l_day(2) type c,
l_month(2) type c,
l_year(4) type c,
l_mandt(3) TYPE c VALUE '010',
l_type(1) type c VALUE 'S',
l_numb(4) type N value '0000'.
l_day = sy-datum+6(2).
l_month = sy-datum+4(2).
l_year = sy-datum+0(4).
concatenate l_day l_month l_year into l_date.
concatenate '01' l_year into l_monthyear_low.
concatenate l_month l_year into l_monthyear_high.
variable for current month interval
itab_tvarvc-mandt = l_mandt.
itab_tvarvc-name = 'ZDATE_INV'.
itab_tvarvc-type = l_type.
itab_tvarvc-numb = l_numb.
itab_tvarvc-sign = 'I'.
itab_tvarvc-opti = 'BT'.
itab_tvarvc-low = l_monthyear_low.
itab_tvarvc-high = l_monthyear_high.
update TVARVC from itab_tvarvc.
This code will always maintain the entry for the variable 'ZDATE_INV' as range from the start of month till current month.
you can modify it store anything yuou want.
Now when creating the variant by clicking the create variant option when running the query.
you have the option in the "selection variable" column here you will find only TVARVC table as option select it and then in "name of variable" use the Z variable you have just created.
This will automatically pick the current value for the variant for that variable.
So anytime the variant is used in any of the scheduling it will pick the inout from here.
make sure that the variable for time interval is of same type as that of the entry in the TVARVC table.
That if it is of type calmonth then TVARVC table should have variable entry of type calmonth.
thanks -
How to transport variable variants
Hi Gurus,
I want to transport the variable variants? how can i do that? in BI7 system.
Regards
Kiran Kumar Manku.Hi,
Looks Funny, but i got the variants i have created in Dev to QAS. I thought of creating in QA but when i checked them, they already exists. Did u checked in RSRT , Query Variants after transporting the Query ?
In my case i have used the Variant in the APD's.
-Sonti- -
How to transport BEX variants in BI?
Hi,
after the bw-upgrade we have problems with the transport of our variants created in BEX. In BW 3.1 we used saplsvar ( with report-id and variantname) to create a transport. But this doesn't work with BI. Does anyone know which parameter saplsvar need to create a transport in BI?- Or which other alternativ exists to transport a variant.
Thanx in advance.Hi,
the new variants will be stored only in RSRVARIANT, but not in the VARID. In VARID are only the variants saved in 3.x version.
But how can I transport RSRVARIANT; its a SAP-table?
I'm looking for a program like RSTRANSP, because this program will not work with BI.
Detlef -
How to Transport Java Classes used in Mapping?
Hi XI experts,
Within the development of one message mapping, some external java classes are imported and used in my UDF(user defined function). My question is: how will these external java classes be transported to the QA/PRD system? If I choose to use the file system transport method, do I have to manually find these jar files and transport them separately?
Any comments or suggestions are highly appreciated.
Thanks in advance
LuisHi Luis,
Normally Mapping programs and External Jars are used in XI using Imported Archive. So this Imported archive once activated will become part of your SWCV and can be transported automatically with the SWCV.
You dont have to worry about transporting it seperately, it will be avilable once you transport your SWCV using File system transport.
Hope this helps,
Regards,
Ananth -
How to transport display variants in alv
Hi,
Can any one please help me in transporting alv display variants?Actually I have transported the variants ,but only selection variants are getting transported.I want to transport ALV display variants accross the clients.
Please reply soon.It is very urgent.Hi,
Please use the following :
First execute the report .
Then Menubar Settings> Layout> layout management>select your variant> menubar layout--> transport
This will work only when your variant management is activve in your ALV report. -
How to send query parameters using BIApplicationFrame in WD Java
HI,
I am working on integration of BEx WebTemplate in webdynpro view.
I am using BIApplicationFrame ui element for this.
I set the template id in template property of BIApplicationFrame.
I have to execute a query of this template.
So i selected the option 'query' of dataProviderStateType property.
How to send the query parameters to that query.
I am setting the fowlloing values in BIApplicationFrame
dataProviderStateName: BEx Query Name
dataProviderStateType: query
server: server url
server type: java
templateid: BEx template id.
The query screen is opening ..But no data.
I have to pass the following two parameters to that query:
BI_COMMAND_1-I_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZVARCUST01&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=0500000003
&BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0I_CMNTH&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=01/2000-12/2002
How to send these two query parameters using BIApplicationFrame.
I did not find any help ( Example tutorial ) for BIApplicationFrame UI element in SDN.
Please help me.My problem solved. I used the following code in wdModifyView() method.
Map parameters=new HashMap();
parameters.put("BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZVARCUST01&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING","0500000003");
parameters.put("BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0I_CMNTH&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING","01/2000-12/2002");
WDBIMethods.addCustomParameters(wdThis.wdGetAPI(),"BIApplicationFrame",parameters); -
How to transport query - ECC 6.0
How can I transport a query in ECC 6.0?
The screen has changed from the usual in the earlier versions. There is no option asking for Export / Import or Upload / Download.
LakshmanHello,
You can generate transport request using program RSAQR3TR.
Thanks,
Venu -
How to create a variant used in SM30,View variant in Parameter transaction?
Dear Team,
I have a view V_TCURR. For which I would be creating a parameter transaction for transaction SM30 by filling the default Values section (VIMDYNFLDS-LTD_DTA_VR, VIEWNAME,TVIMV-VARIANT). The values for first two fields are obvious.
The question is on TVIMV-VARIANT How can we create a variant which can be used in tcode SM30.
Delving a little deeper show that these variants Obsolete since R/3 Release 3.1I: Selection variant for a table or maintenance view.
Since R/3 Release 4.0, there are view variants instead of selection variants.
The field only exists for reasons of backwards compatibility.
If thats is so, How do I use the same in parameter transaction..?
I have tried creating a view variant and use it parameter transaction but in vain..
Please help resolve my problem. I hope I am very clear. If still need any clarification, please get back to me.
Thanks a lot in advance,
Reagards,
Sai.
P.S. Though there are multiple quuestions on simlar subjects none of them has been either answered or is completely relevant to mine.Dear Suman,
Thanks a lot for the answer. Actually the Tcode is getting created if I do what you have said me.
But when I run the tcode which was created by view variant created, I am not getting the desired details .
To be more clear..
Previously there was a variant (TMIMV-VARIANT) created with follwing criteria..
Table TMIMV.
TABNAME VARIANT AS4POS VIEWFIELD NEGATION OPERATOR VALUE AND_OR TABIX
V_TCURR ZTHB 1 KURST NOT EQ M AND 2
V_TCURR ZTHB 2 KURST NOT EQ DWBP AND 2
V_TCURR ZTHB 3 TCURR EQ THB OR 4
V_TCURR ZTHB 4 TCURR EQ USD OR 4
V_TCURR ZTHB 5 TCURR EQ US$ 4
When we run tcode created by paramaeter transaction.. viewname as V_TCURR, TMIMV-VARIANT. I am getting the desired records for updation.
But if I do the same using View variant with the same selection criteria
Table Field name Operator Comaparison AND/OR
Value
TCURR KURST NE 'M' AND
TCURR KURST NE 'DWBP' AND
TCURR TCURR EQ THB OR
TCURR TCURR EQ USD OR
TCURR TCURR EQ US$
And the run the tcode created by using the view variant .. I am getting No entries found that match selection criteria...
Could you please help and let me know if I am missing any step.. Kindly also check from your side how this can be achieved.
Thanks a lot in advance,
Sai. -
How to improve query performance using infoset
I create one infoset that including 4 char.and 3 DSO which all are time-dependent.When query run, system show very poor perfomance, sometimes no data show in BEX anayzer. In this case I have to close BEX analyzer at first and then open it again, after that it show real results. It seems very strange. Does anybody has experience on infoset performance improvement. pls info, thanks!
Hi
As info set itself doesn't have any data so it improves Performance
also go through the below tips.
Find the query Run-time
where to find the query Run-time ?
557870 'FAQ BW Query Performance'
130696 - Performance trace in BW
This info may be helpful.
General tips
Using aggregates and compression.
Using less and complex cell definitions if possible.
1. Avoid using too many nav. attr
2. Avoid RKF and CKF
3. Many chars in row.
By using T-codes ST03 or ST03N
Go to transaction ST03 > switch to expert mode > from left side menu > and there in system load history and distribution for a particular day > check query execution time.
Statistical Records Part 4: How to read ST03N datasets from DB in NW2004
How to read ST03N datasets from DB
Try table rsddstats to get the statistics
Using cache memory will decrease the loading time of the report.
Run reporting agent at night and sending results to email. This will ensure use of OLAP cache. So later report execution will retrieve the result faster from the OLAP cache.
Also try
1. Use different parameters in ST03 to see the two important parameters aggregation ratio and records transferred to F/E to DB selected.
2. Use the program SAP_INFOCUBE_DESIGNS (Performance of BW infocubes) to see the aggregation ratio for the cube. If the cube does not appear in the list of this report, try to run RSRV checks on the cube and aggregates.
Go to SE38 > Run the program SAP_INFOCUBE_DESIGNS
It will shown dimension Vs Fact tables Size in percent.If you mean speed of queries on a cube as performance metric of cube,measure query runtime.
3. To check the performance of the aggregates,see the columns valuation and usage in aggregates.
Open the Aggregates...and observe VALUATION and USAGE columns.
"---" sign is the valuation of the aggregate. You can say -3 is the valuation of the aggregate design and usage. ++ means that its compression is good and access is also more (in effect, performance is good). If you check its compression ratio, it must be good. -- means the compression ratio is not so good and access is also not so good (performance is not so good).The more is the positives...more is useful the aggregate and more it satisfies the number of queries. The greater the number of minus signs, the worse the evaluation of the aggregate. The larger the number of plus signs, the better the evaluation of the aggregate.
if "-----" then it means it just an overhead. Aggregate can potentially be deleted and "+++++" means Aggregate is potentially very useful.
In valuation column,if there are more positive sign it means that the aggregate performance is good and it is useful to have this aggregate.But if it has more negative sign it means we need not better use that aggregate.
In usage column,we will come to know how far the aggregate has been used in query.
Thus we can check the performance of the aggregate.
Refer.
http://help.sap.com/saphelp_nw70/helpdata/en/b8/23813b310c4a0ee10000000a114084/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/60/f0fb411e255f24e10000000a1550b0/frameset.htm
performance ISSUE related to AGGREGATE
Note 356732 - Performance Tuning for Queries with Aggregates
Note 166433 - Options for finding aggregates (find optimal aggregates for an InfoCube)
4. Run your query in RSRT and run the query in the debug mode. Select "Display Aggregates Found" and "Do not use cache" in the debug mode. This will tell you if it hit any aggregates while running. If it does not show any aggregates, you might want to redesign your aggregates for the query.
Also your query performance can depend upon criteria and since you have given selection only on one infoprovider...just check if you are selecting huge amount of data in the report
Check for the query read mode in RSRT.(whether its A,X or H)..advisable read mode is X.
5. In BI 7 statistics need to be activated for ST03 and BI admin cockpit to work.
By implementing BW Statistics Business Content - you need to install, feed data and through ready made reports which for analysis.
http://help.sap.com/saphelp_nw70/helpdata/en/26/4bc0417951d117e10000000a155106/frameset.htm
/people/vikash.agrawal/blog/2006/04/17/query-performance-150-is-aggregates-the-way-out-for-me
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
http://help.sap.com/saphelp_nw04/helpdata/en/c1/0dbf65e04311d286d6006008b32e84/frameset.htm
You can go to T-Code DB20 which gives you all the performance related information like
Partitions
Databases
Schemas
Buffer Pools
Tablespaces etc
use tool RSDDK_CHECK_AGGREGATE in se38 to check for the corrupt aggregates
If aggregates contain incorrect data, you must regenerate them.
202469 - Using aggregate check tool
Note 646402 - Programs for checking aggregates (as of BW 3.0B SP15)
You can find out whether an aggregate is usefull or useless you can find out through a proccess of checking the tables RSDDSTATAGGRDEF*
Run the query in RSRT with statistics execute and come back you will get STATUID... copy this and check in the table...
This gives you exactly which infoobjects it's hitting, if any one of the object is missing it's useless aggregate.
6
Check SE11 > table RSDDAGGRDIR . You can find the last callup in the table.
Generate Report in RSRT
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c0ab590-0201-0010-bd9a-8332d8b4f09c
Business Intelligence Journal Improving Query Performance in Data Warehouses
http://www.tdwi.org/Publications/BIJournal/display.aspx?ID=7891
Achieving BI Query Performance Building Business Intelligence
http://www.dmreview.com/issues/20051001/1038109-1.html
Assign points if useful
Cheers
SM -
How to find Query name using Variable name (by Customer exit code in CMOD).
Dear SDN,
Enhancement name RSR00001.....Function Module name.....EXIT_SAPLRRSO_001...Include ZXRSRU01...
Some x variable coding in done here.
How can I find out the Query name for the X variable?
Wating for reply...
Thanks & Regards,
Praveen.KDear,
I have got answer..
Method 1 :Right click on variable in Query Designer and find the where used list.
Method 2 : SE16--> RSZGLOBV -->Enter the variable VNAM as 'Variable Name' ->Get the VARUNIID> Go to table RSZELTXREF --> Enter the values of VARUNIID in TELTUID --> Get the list of SELTUID --> Go to table RSZCOMPDIR --> Enter the values of SELTUID in COMPUID --> Get the list of COMPID -->COMPID is the list of queries
Thanks & Regards,
Praveen.K
Maybe you are looking for
-
How to share 3G with other Apple devices
Hi, I just updated my iPad to iOS 4.3 and I can't find how to share my Internet connection with other devices. Could you help me? Thanks,
-
How to print diffrent color and diffrent size of text in JTextArea ?
Hello All, i want to make JFrame which have JTextArea and i append text in JTextArea in diffrent size and diffrent color and also with diffrent fonts. any body give me any example or help me ? i m thanksfull. Arif.
-
Database Studio startup Error after installing MaxDB 7.7 on MS-Windows
After installing MaxDB 7.7 the following error occurs when starting up Database Studio: !ENTRY org.eclipse.osgi 4 0 2008-01-22 11:39:00.636 !MESSAGE An error occurred while automatically activating bundle com.sap.sdb.tools.ui.application (50). !STACK
-
We have a problem Apple and us. I have been having problems connecting to a remote file server using Pathfinder. I have narrowed down the problem to this. The connection will not work if you connect using the servers IP address and Path Finder will q
-
Automatic reconnect to iPhoto library on NAS attached to Time Capsule
My iPhoto library is too big for my MacBook Air (I admit, I bought the one with the small solid state memory), so I had to move it to a Synology DiskStation NAS (Network Attached Storage) connected to the TimeCapsule. This works pretty well, but ever