How to left trim in the query designer?
Hi all,
I have a sceanario like zcust_details contains abcde/1000276 where 1000276 is the customer code (sold to party) how do i truncate this in the query and then reference this field to solto party.
The issue is when the user run the query abcde/1000276 is been displayed but users wants 1000276 text to be displayed which is not been captured in bw system.
so how to truncate and reference the same with 0customer master and display the text values from 0customer text.
thanks
Hi Pooja,
It would be easier to achieve this on bachend. You can truncate and store the result in another Object and then display it in your Query.
Deepika
Similar Messages
-
How to exclude values in the query designer
Hi everybody,
i need your help!
I need to exclude certain information from a report, but as could enter new values in the future, I see it now.
Ex.
CreatedBy contains the following values:
MSanz
PRojas
Soporte
Soporte1
Soporte2
I need to exclude anything value that is Soporte* for first report
and the second report include anything value Soporte*
first report
MSanz
PRojas
Second Report
Soporte
Soporte1
Soporte2
thanks for your help
Manuel
Edited by: Manuel Sandoval on May 30, 2008 6:35 PMHi Manuel,
There are two ways to exclude the fields of Createby.
1. Excude Soporte,Soporte1,Soporte2 in the first report. Select createby -->, right click >Restrict> select Soporte,Soporte1,Soporte2 and pull from left to right > right click(3 fields)> exclude.
Similary for second report exclude MSanz, PRojas.
Or
After restricting include only the necessary fvalues from right to left for creteby field.
Best method is include one, for performance point of you.
Second approach is create two user exit variables. one to include Soporte,Soporte1,Soporte2 (3 values) in the variable and second variable to include MSanz, PRojas. You can maintain these two variables values in the tvarvc table and use these variable in the reports directly. This approach is very very useful if you want to use this variable in many reports ex, 10 or more. Directly you can drag createby and its corresponding variable.
Choose the best approach for your requirement.
Hope it helps.
(assign me points)
Thanks
Lasya. -
How can i reuse a structure in the query designer in 3.5
Hi all,
we are using the version BW 3.5, now how can i reuse a structure made int he query designer, because i need it in another query, i did the structure and put it a technical name and save, help guysHI Richard,
Create a Structure in Rows/columns and save As it, then in the left Panel of the Query Designer you can see three Folders
1) Structures
2) Keyfigures
3) Dimensions
then Expand the structures Folder, there you can find your saved structure, Structures are 2 types
1) With Key figures
2) Without Key Figures
If you have the key figures in your saved structure, then you can find it in the subfolder of with Keyfigures, else in the other folder.
Now you can use this structure by draging in all the queries which are on the same InfoProvider (CUbe. MultiProvider)
Regards
ReddY A -
How to hide a single value node hierarchy in the query designer
Hi,
I would like to perform a calculation in the infocube. It concern a count "Nb of different customers" with the following hierarchy : Country / region / City.
This KF would be read at the same time by city, region and country, and certain customers exist in 2 different region, and I have to count them only once by country.
To do this, I added a new record (at the country level when loading infocube) to deduct a number of customers in doubloons.
This line added contain only a country code and the number of cutomers in doubloons (- 23 when I have 23 cutomers in doublons) with revrese sign.
Now, I would like to use this value (-23) to have a right Nb of different customers by country, without showing the not assigned line in the report hierarchy.
How can I hide, in the query designer or the WAD, a single value node from hierarchy (NOT assigned) but take in account the value (-23) at the country level ?
Is there another solution (more simple) to perform this in the infocube ?
For information,
1) The infocube is loaded once per month, and the KF (Nb of different customers" is also performed by month.
2) I can't perform this in the report (performance problem with calculated KF).
thx.Hi,
the short answer is "you can't", the longer is: The ADF Faces tree component is stamped for better performance. This stamping means that nodes are not rendered as JSF objects but copies of an existing component (just with a changed value). For this reason the nodes don't issue their own query for data and thus cannot be refreshed individually
Frank -
How To Make Infocube Visible in Query Designer?
hello,
i'm using BIW 3.10, i've just created infocube and succesfully populated it with data. I went through all the process from datasource (from R/3 masterdata), infosource, infoobjects and so on, until i get to browse the content of the infocube using the "Manage Data Targets" screen of rsa1->modeling->InfoProvider->Manage. Now my problem is how do i make the infocube visible in the Query Designer?
thanks,
sidhi sid,
you have open bex analyzer, and click 'query', in next screen 'sap bex : select query', click 'new' (icon blank page), and click 'infoarea' in left side, you will see the infocube under your infoarea. hope this helps.
for new infocube, when there is no query created from this infocube, the infocube will invisible, since the screen is to select existing queries. -
Error in while Executing Query in the Query Designer
Hi,
I created info Set based two info object and three Data Store Objects. and join condition is Left Outer Join.
there are Business Partner info object, CRM BP Sales View Info Object and Data Store Objects are BP: Roles (0BP_ROLE),Partner: Industries(0BP_IS),CRM Marketing Attributes for Business Partner(0ATR_DS01)
I given some Selection Parameters while executing query in the Query Designer. in That i given city is selection parameters
and i creted variable for this info object.
it gives the Error Messages
Beim Lesen der Daten sind Fehler aufgetreten. Navigation ist möglich
Der Wert "New Delhi " von Merkmal 0CITY40 enthält an der 10.ten Stelle einen Fehler
it is very urgent , can any one help me regarding this.Hi Reddy,
The Error message in english is this
While reading the data mistakes have appeared. Navigation is possible
The value " New of Delhi " from sign 0CITY40 contains a mistake at the 10.ten place
and i think you need to run the change run and run the report with out selecting the variable option.and navigate in the report by filtering the report for your requirement.
Try this and let me know.
Thanks,
RK -
Providing access to Variables in the Query Designer
Greetings experts and fellow consultants,
I have a simple question, did a search and did not come up with much of an answer. Currently, we have a system with a role for BI Power Users in order for them to create ad-hoc queries. An issue we found was that these power users were not able to view variables within the query designer:
Under the "Characteristic Restrictions" pane, the variables show up as (Display Not Allowed) under their associated InfoObjects. This is presenting an issue (understandably) and I would like to provide access for these power users to see the variables.
My question is, are there any circumstances where I would want to restrict which variables are shown to the power user? Right now, I plan to allow display access to all variables (via S_RS_COMP+S_RS_COMP1 for those informed on Security). Just trying to brainstorm on whether there might be scenerios where I would want to hide certain variables.
Many thanks to all opinions, as always!Suresh, in my above post I knew how to enable this. I just wanted to know in regards to security whether there were any exposures. Apparently, I could not find any and the changes went through without issue. The way you enable display of variables in the Query Designer is the following:
S_RS_COMP:
RSINFOAREA '*'
RSINFOCUBE '*'
RSZCOMPTP 'VAR'
ACTVT '03'
S_RS_COMP1:
RSZCOMPTP 'VAR'
RSZCOMPID '*'
RSZOWNER '*'
ACTVT '03'
Hope this helps. Of course, adjust the field values are you see fit but the minimum requirement is that RSZCOMOPTP 'VAR' (Variables) and ACTVT '03' (Display). -
Curerency conversion for a Formula in the query designer
Hi
I have a ' Financial Loss Formula' in the report. I want to convert this 'Financial Loss' into USD Currency at query designer level.
Source Currency = SAR
Target Currency = USD
So how can i do the curerency conversion for a Formula in the query designer.
pls let me kow
kumarHi,
If you define your query conversion in BW then it is easy to do currency conversion through Bex.What you need to do is use calculated key figure instead formula and do a right click select properties there at the currency translation area you ca select defined currency conversion in BW and your target currency.
/people/rasim.manavoglu/blog/2007/04/30/currency-currency-currency
Regards. -
Restrict the values in the Query Designer
Hi Gurus,
I want to Restrict PLANT or SALES ORG values in the Query Designer, in the Query, PLANT has selected in the rows and having variable and SALES ORG is display attribute of the PLANT. In this scenario How can we Restrict the values?
Thanks in Advance,
Ravi.Hi Ravi,
You cannot restrict values on the display attributes. Better change it to navigational attribute and check the box as navigational in the cube.
Regards
Ram -
Currency conversion in the query designer level
Hi
Iam calculating the 'Financial Loss' in the Formula in the query designer.And it comes in SAR(Saudi Riyals).
But i want the 'Financial Loss' in USD in the Query Designer. Because i want the USD Financial Loss to be use in some other calculation.
Please let me know how can we do this one in the query designer. I really appreciate for it .
Regards
KumarDear Ravi,
Basically there are 2 ways to do it: routine & query level.
If query level, you need to maintain it first using tcode RRC1, then you use it in your KF in your query. .
Routine level,
You can create new KF in info-provider, then in the update rules routine, you can use this function to convert the currency :
CONVERT_TO_LOCAL_CURRENCY
Hopefully it can help you a lot.
Regards,
Niel
thanks for any points you choose to assign. -
Creating formula in the Query Designer
Hi,
I have a KF which I have to convert in to different unit in the query ( x/data)
The problem is some of my data in the cube is zero (0) and when I use division, it shows me error (red X) in the query output.( Divide by zero)
Is there any way to skip this division if the data is zero? How can I set my formula in the Query designer?
Thanks
M Kumar.Hi,
Please use the NDIV() or NOERR() function outside of your expression and it will take care of the division by zero.
See here for details:
http://help.sap.com/saphelp_nw04/helpdata/en/03/17f13a2f160f28e10000000a114084/content.htm
Hope this helps... -
Keyfigure value by comparing 2 date fields, in the query designer.
Hi all,
Could any one please intimate, how to display the key figure result with the comparison of 2 date fields.
We are having "Completed Date" say(CDATE) and "Deadline Date"(DDATE) values in the report as time characteristics, dervied from the CRM system.
Now we need to compare the values as:
CDATE <= DDATE, then only consider this under "Meeting Planned Date"(Key Figure).
Could you please intimate, how to display the key figure value, by using the code at the query designer level.
Thanks & Regards,
A.V.N.RaoHi Rao,
Simple create two formula variables with replacement path from these two date fileds,then create a formula then do the comparison
Eg:
ZVAR_CDATE WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ CDATE
ZVAR_DDATE WITH REPLACEMENT PATH PROCESSING TYPE REPLACED WITH OBJ DDATE
CREATE A FORMULA FORMULA1: IN THE FORMULA BUILDER AREA DO THE COMPARISON.
Thanks & Regards
Ramsthota -
Creating customer formula to be used in the Query Designer
hi,
How can i code a specific formula to be used in the query designer. As an example, i need to calculate dynamically working days between two dates.
i tried to find the corresponding BAdl interface with no success..
Do you have any suggestion ?
LudovicHi..
I have a scenario ... it may help..
The group HR administrator wants a detailed line item report that lists all employee absences in a given period. The report is to show the employee number, the absence start date, together with the end date of the absence and show the number of calendar days the employee was absent.
The good thing about using this technique is that no redesign work is needed from your technical BW team, no ABAP is involved and best of all, it quick and easy.
Solution:
For this example I created an ODS object called Absence that holds basic employee information along with individual absence record data.
Follow the steps below:
Open the BEx Query Designer and create a new report on your chosen InfoProvider.
Drag the Employee, Valid from and Valid to characteristics into the Rows section of the screen.
If needed, apply data selection restrictions to the characteristics as pop up
Right click on the Key Figures structure and select New Formula
In the new formula window right click on Formula Variable and choose New Variable
The Variables Wizard will launch and will require you to specify the variable details.
( Click the NEXT button if the Introduction screen appears )
Enter the variable details on the General Information as shown in pop up
Enter the Variable Name , Description and select Replacement Path in the Processing by field.
Click the Next Button.
In the Characteristic screen (pop up) select the date characteristic that represents the first date to use in the calculation (From Date).
Click the Next Button.
The Save Variable screen (pop up) displays a summary of the new variable.
Click on the Finish button to save the variable.
Repeat steps first four for to create a second variable for the second date to be used in the calculation.
In the example shown, the characteristic 0DATETO is used to create the variable ABSEND (Absence End Date)
Define the Calculation............
The new calculated key figure will now show in the columns section of the BEx query designer
excute...
with regards,
hari -
Moving keyfgures to some other place in the query designer
Hi
I have lot of Keyfigures in the Query Designer (Columns). How can i move some other place in the query designer.
Like We can move some of characteristics to "Free Charactersitic" area . Like that how can i move some of keyfigures to some other area.
pls let me know
kumarYou can have all KeyFigures together either in columns or Rows(in a structure)..not possible to seperate them...or place them in Free chars or Filters...and not possible to group Chars and Kfs in the same structure.
-
Some question about the query designer
hello, dear all,
I am a new comer of here, and I am intersting in BI, but I have no basic knowledge about it.
so I just want someone could give me some advice about it.
our boss need I do the developer about the query designer, I just have searched in this forum. but nothing founded for I am a new comer here,
I heard there are some training document of the query designer, could someone give me the URL, thanks.Hi,
Query desinger is used to develop a Query, Query can be created on following data targets
-Info Cube
-DSO
Virtual data target
-MultiCube
-Infoset
-Multiprovider
We have 5 section in query designer
- Infoprovider : where we select the data target , on which report to be created
-Filter : to restrict value at infoprovider level ( if you want data for year 2008, for example)
-Free Characterstic : this allow you to drill down
-Columns : char/keyfigs to be display in columns can be added here
Row: key/char to be display in Rows can be added here
gv me ur mailid i will let u have Bex manual,
I would suggest , if you have any IDES ( training ) system , where you can log in and then go to RRMX,
and try to create new query and add any data target ( which is already created ) and then drag and drop the char/key fig to the required section ,
save it and execute it .....
if you play arround and see the output , that would help u to understand how to work with query designer.
Hope this helps
Sukhi
Edited by: Sukhvidner Singh on Nov 4, 2009 5:36 PM
Maybe you are looking for
-
Internet Service drops for days and Useless Customer Service
Does anyone know how to get through Verizon's shield of 'customer service' and actually get a problem resolved? There's no means of direct access that I have found that can get past the technical support gate keepers to anyone with enough authority
-
Report portlet not shown in public page
Hello, I created a sql based report in a database provider and published it as a portlet. I'd like to place the portlet in a public page so that users don't have to login to see the report content. However, when I tried to do so, the report content c
-
How do i change the name of a user in Yosemite?
it's not how it used to be... ~Sunny
-
Iphone 5 not working- Past year warranty
Hello, So I got my iphone 5 more than a year ago... I also have insurance on it through my carrier. It just isnt charging and I have no idea why. Its not the charger because I've tried on several different chargers that work with everyone else's phon
-
ORA-30926: unable to get a stable set of rows in the source tables
hi, I am loading data from source table to target table in a interface. Using LKM incremental update . In the merge rows step , getting the below error. 30926 : 99999 : java.sql.SQLException: ORA-30926: unable to get a stable set of rows in the sourc