Query Level formatting
Hi All,
We have a below requirement where we need to find the solution at Query Designer level.
A A1 10
A2 20
A3 30
B B1 10
B2 50
B3 20
Now we need the output in the following format
A A1,A2,A3 60(Sum of all the values)
B B1,B2,B3 80(Sum of all the values)
Can someone please provide me inputs for the same
Thanks in Advance
Regards
AVS Reddy
Hi All,
We have a below requirement where we need to find the solution at Query Designer level.
A----A1-----10
A2-------20
A3-------30
B--- B1--
10
B2----
50
B3----
20
Now we need the output in the following format
A--A1,A2,A3--
60(Sum of all the values)
B-- B1,B2,B3--
80(Sum of all the values)
Can someone please provide me inputs for the same
Thanks in Advance
Regards
AVS Reddy
Similar Messages
-
Time format is showing wrong at query level
hi,
i have a problem at query level
i have two time fields which are key figures
i have calculated key figure which has a formula
cal kf = time (tim1- tim2)
data at the dso level
flightno time1 time2
f001 11:12:24 10:12:24
f002 11:12:24 10:12:24
f003 10:12:24 10:12:12
f004 11:12:24 11:12:12
query output
flightno time1 time2 calkf
f001 11:12:24 10:12:24 19:00:00
f002 11:12:24 10:12:24 19:00:00
f003 10:12:24 10:12:12 18:00:12
f004 11:12:24 11:12:12 18:00:12
calculated key figure is showing me wrong values by adding up 18 hours
so i added a key figure at dso level and calculated using formula in transformations
it is showing me correct value at dso level but query level it is showing me wrong values
how to solve this
did any one face this problem before
any ideas
i will assign points
Message was edited by:
venkat sVenkat,
Try out this.
Since the 2 time fields are key figures,create the calculated key figure for each of them using the Time() data function.
eg: for tim1 --> create CKF using time data function as TIME(tim1)
eg: fro tim2 --> create CKF using time data function as TIME(tim2)
As a next step,now create a CKG for calculating the diff bewteen 2 time CKG.
eg : TIME(TIME(tim1)-TIME(tim2))
Hope this helps.
Thanks & Regards,
Suchitra.V -
Information Broadcasting Authorization at Query Level
Hi,
I would like to know, is there any way to authorized a user at query level in information broadcasting?
For example, there are three plant P1,P2 and P3 showing in Query, now i want to broadcast this query to E-mail to two user U1 and U2 in following manner.
1.) User U1 get only Plant P1 Data.
2.) User U2 get only Plant P2 Data.Yes, you can do that. For that;
Plant should be authorization relevant info object
(ii) you must have roles to give access to users at Plant level
(iii) Users U1 and U2 must be SAP user IDs and should have required role for Plant access
(iv) Query to be broadcasted must have auhtorization variable for Plant
Once the basic setup is ready, you can test it by executing the report for individual users U1 and U2 and they should see data only for respective Plants.
Now in the broadcasting setting, specify the users U1 and U2 in User box seperated by semi-colon and tick the checkbox "User Specific" - this will make sure that data is executed as per the data aurthoziation and also format will be selected as per the user profile (date format etc).
If U1 and U2 are not the SAP users, you will have give their email addresses and will have to create two different broadcast settings to send data for selection plants.
I hope it helps.
Regards,
Gaurav -
Want to convert MMDDYYYY to DDMMYYYY at Query level
Hi All,
I have done all the user settings for DDMMYYYY format. However till cubel level its coming in DDMMYYYY format. In query its showing MMDDYYYY, is there any setting in Analyzer which i need to do to fullfill the requirement.
I have gone with FM too, however when am getting at cube level the way i require at query level its in MMDDYYYY format.
Regards,
Krishna.Hi,
Craete Custome Exit Variable on CalDay and use the follwoing code in CMOD
In the following code I declared ZT_DT1 as SY-DATUM, I think in your case you change the data type and check, but the code is same, you need to check data typs only.And also if required use LOOP and ENDLOOP else delete it directly use Variable 'ZT_DAY1' .
i.e.
WHEN 'ZT_DAY1' .
ZT_DT2 TYPE SY-DATUM,
ZT_SDT TYPE SY-DATUM,
ZT_YR(4) TYPE N,
ZT_DY(2) TYPE N,
ZT_MT(2) TYPE N,
ZE_TT(2) TYPE N.
ZT_SDT = SY-DATUM.
IF sy-subrc = 0.
CLEAR: l_s_range.
ZT_DY = loc_var_range-low+6(2).
ZT_MT = loc_var_range-low+4(2).
ZT_YR = loc_var_range-low+0(4).
CONCATENATE ZT_DY ZT_MT ZT_YR INTO ZT_DT1.
l_s_range-low = ZT_DT1
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
Else
WHEN 'ZT_DAY1' .
DATA: ZT_DT1 TYPE SY-DATUM,
ZT_DT2 TYPE SY-DATUM,
ZT_SDT TYPE SY-DATUM,
ZT_YR(4) TYPE N,
ZT_DY(2) TYPE N,
ZT_MT(2) TYPE N,
ZE_TT(2) TYPE N.
ZT_SDT = SY-DATUM.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZCDAY'.
IF sy-subrc = 0.
CLEAR: l_s_range.
ZT_DY = loc_var_range-low+6(2).
ZT_MT = loc_var_range-low+4(2).
ZT_YR = loc_var_range-low+0(4).
CONCATENATE ZT_DY ZT_MT ZT_YR INTO ZT_DT1.
l_s_range-low = ZT_DT1
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDLOOP.
Thanks
Reddy -
Question about CHKDSK ,S.M.A.R.T and low level format
hi,
I like to know the difference exactly between CHKDSK and S.M.A.R.T and low level format program(I know that low level format writes zero"s) I mean besides the low level format writes zero's what onother
benefits it has , it repairs some bad sectors or mark bad sectors ect?
very short explanation wil be enough.
thanks
johan
h.davidH.david
1-CHKDSK http://en.wikipedia.org/wiki/CHKDSK CHKDSK verifies the
file system integrity on
hard disks or
floppy disk and fixes logical file system errors.
2-S.M.A.R.T http://en.wikipedia.org/wiki/S.M.A.R.T. smart is a monitoring system for
computer
hard disk drives (HDDs) and
solid-state drives (SSDs)<sup class="reference" id="cite_ref-1">[1]</sup> to detect and report on various indicators of reliability, in the hope of anticipating failures.
3-Low level formatting http://en.wikipedia.org/wiki/Low_level_format
Wanikiya and Dyami--Team Zigzag -
Query level filter not working in Webi report
Hi All,
I am using BOXI R3.1 (SP3), m facing one problem when refreshing Webi report on daily basis. I am using three query level filter as a prompt, but i checked one filter is not working then i need to reapply this filter and rest 2 filter is working fine.
Can anyone suggest me why problem is coming?
Regards,Hi,
Prompts are interactive, and come from the query panel. Filters are not interactive, and are set on the report or block. There are also input controls, which are interactive filters
1. Select the universe in the list of universes to open the Query Panel.
2. Drag the Year object to the Result Objects pane.
3. Drag the Number of Guests object to the Query Filters pane and create a report filter that restricts Number of Guests to greater than n.
4. Click Combined Query.
The Combined Query pane appears in the bottom left of the Query panel with the two queries joined by UNION.
5. Click on the second query and remove the Year and Number of Guests objects.
6. Drag the Reservation Year object to the Result Objects pane.
7. Drag the Future Guests object to the Query Filters pane and create a report filter that restricts the future guests to greater than n.
8. Click Run Query.
Best Regards
Naveen -
Date to Month Conversion at Query Level.
Hi,
I have Net due date in the Info provider.
At query level i have to create a restricted keyfigure based on Net Due Month.
Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
Thanks and Regards,
MuraliManohar.Hi,
Is there any way i can calculate Net due month at runtime and then create the restricted keyfigure using the net due month instead of using net due date directly(linke 01-10-2010 to 31 -10-2010 for october 2010).
you can calculate , but as he said you can add in cube , may be for cal month you are taking som eother date field.
in this case write one customer exist code .
create one varaibel on netdue date with customer not ready input (if user wants to enter input then ct=reate user entry varaible with reday input by using customer exit).
in routine wriet the code as when that varaible .
l_s_range - high , low and give then take the month form that date
like netdue date +0(6)-- gives month and year
netdue date +0(2)-- gives month
then rtestrict that variable with your keyfigure.
Thanks & Regards,
sathish -
How to low level format an external hard drive on Yosemite
I need to perform a low level format on an external hard drive as the WD external hard drive does't provide instructions for doing it on my Mac with Yosemite.
Drive Partition and Format
1. Open Disk Utility in your Utilities folder.
2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.
4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
6. Click on the Erase button. The format process can take up to several hours depending upon the drive size. -
Logical Formula at query level?
I have requirment like if D = 0 then ' ' (SAPCE) else E / F.
I dont know how to get space ?
please help me to create this formula at query level?hi Hari,
I am not really sure ,but u can try this...
if D = 0 then ' ' (SPACE) else E / F.
use the same formula and make it Zero instead of space and then in the Query properties replace Zero with Blank or Space Values.
Rgds
SVU123
Edited by: svu123 on Sep 30, 2010 6:53 AM -
Infoset resulting multiple results at query level
Hi,
I have joined 1 DSO and 1 Infocube in Infoset.. Mapped Plant, Material and Batch
DSO
Plant Material Batch Caldate Qty
P1 M1 B101 01/02/2014 1000
P2 M2 B102 05/02/2014 2000
Infocube
Plant Material Batch Caldate %
P1 M1 B101 02/02/2014 20
P1 M1 B101 05/01/2014 20
P2 M2 B102 07/02/2014 15
I'm considering date only on DSO and ignoring Infocube date. When I execute the report for the month of February, report output is as follows.
Plant Material Batch DSODate Qty %
P1 M1 B101 01/02/2014 1000 40 (Summing up with January Date)
P2 M2 B102 05/02/2014 2000 15
I want data % value to be 20%.
Is there any possibility to change at query level or join level.
If we have one line item, data is correct but not the case with multiple line items.
Kindly do the needful!
Thanks
SSHi,
When you join the two infoproviders in the infoset ignoring infocube date, you are creating as many records for each record in DSO. That means for the first record the infoset creates :
Plant Material Batch Caldate Qty %
P1 M1 B101 01/02/2014 1000 20 (for first row in infocube)
P1 M1 B101 01/02/2014 1000 20 (for second row in infocube)
I also think same as Anshu, you have all the common characteristics, you can as well use a multiprovider.
regards
Yasemin... -
Currency Conversion at Query Level
Guys,
Can some one tell me step by step procedure to do Currency conversion from USD to Mexican PESO at query level in BI 7.0. I have read lot of threads but not clear in maintaining the Exchange rates and also in creating the variables.
Thank you,
KumarHi Kumar ,,
You're able to convert the currency amount on the routine ...
Using this function :
CONVERT_TO_LOCAL_CURRENCY
Sample:
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
DATE = " current date.
FOREIGN_AMOUNT = " local currency amount (peso)
FOREIGN_CURRENCY = " local currency
LOCAL_CURRENCY = 'USD'
IMPORTING
LOCAL_AMOUNT = RESULT " result.
EXCEPTIONS
NO_RATE_FOUND = 1
OVERFLOW = 2
NO_FACTORS_FOUND = 3
NO_SPREAD_FOUND = 4
OTHERS = 5.
To maintain the exchange rate, you can go to tcode: OB08
Hopefully it can help you a lot..
Regards,
Niel
thanks for the points you choose to assign. -
Query level formula is not working for all the amounts
Hi Friends,
In my production system I found new thing that in my query level I done some calculation (as per my requirement I done amount devide by 100 to get correct values)
It is working for all the amounts except 1or 2 amounts, im uploading same source file for all the amountsu2026 why it is happening like this u2026and is there any availability to change those 1 or 2 values at data base tables level or at any pleace (I hope in SAP it is may not possible)u2026can any body tell me why it is happening like this. u2026 because of this issue only my report is pending to sign off u2026.please can any body find the solution ASAP.
Regards,
VENKATAre they non decimal currencies?
If yes, create RKF1 on amount field excluding the currencies for which you are not getting currect values then in CKF or formula as RKF1 / 100. Similarrly create another RKF2 on amount only including the currencies which are excluded in RKF1, create a CKF or formula as RKF2/10000. Then created another formula wich adding CKF1 and CKF2. -
WEB BEx Analyzer Comments on Query level
I would like to enable BW users to create comments for some queries an enable other user to read them. System BW 7.01.
Issues and questions:
-how to create comment on query level - it's always on data (KYF), Metadata or Master data level
-I would like to show the document icon - next to the query title (it's relevant for the query)
-when I create Comments (with the button in the standard template), it's on the data level (combination of KYF) - and when I
switch to icon display (settings) I get icons in every line. If this would be just at KYF header??
-where can I edit, delete, ... recorded comments
Thanks, TomHi Tom,
1) If you want to create comments on query level, you need to create metadata documents, object type 'ELEM', object name is the technical name of the query.
2) Document icons are always shown in the data table. Thus it will be hard to show a document icon for a document on query level. If you are using web templates, you can insert a single document item on metadata documents to display the comment on the query.
3) Where the document is displayed depends on the document properties. If a characteristic is document property depends on the infoobject setting -> transaction RSD1 -> enter the characteristic -> tab 'general'.
To see the document properties you can execute the query for example in RSRT (html mode) -> create a new document on any cell. On the bottom you will see the document assignment. Compare this assignment with the cell next to it. If its the same the document will be displayed in both cells. The same can be done for example in java web -> create a new document and switch to the second tab ('BI').
4) Documents can be edited and deleted in the document browser itself, when you open the document in the executed query or in transaction RSA1 -> documents.
Best regards,
Janine -
How to find the date difference in query level?
Hi All,
I have to find the difference between Delivery Date and Posting Date in the query level. Canyou please let me know whether it is possible or not?
Thanks in advance!!
Regards,
Ramanathan.RHello,
If both infoobjects are key figures , then you can do the calculations. Create new formula and do the calculations.
If infoobjects are characteristics, then also you can perform the calculations but you can do this by creating a formula variable using replacement path.
Thanks,
Praveen Tati -
Good Afternoon everyone,
data is loaded correctly in my infocube thru flat file.but wen i create query on this provider n drill down on one of the object i see different data then cube(field is 'assigned to' which actually store the person's name who the ticket is assigned to but in query it is showing some data which look as some date in single quotes.ex- '20080101').wat can be possible reson for this?
Regards,
DeepikaHi,
You are trying to see a assignne name but u are getting a date.
Thats only possible if the mappings are wrong(identifications) in multicube or u are giving different restrictions at the cube level and at the query level.
The cube is defenately going to contain the values shown in the report for that infoobject.
Again go through the restrictions and filters in the query.
Query will show whatever is in the cube based on the restrictions.
It will not do the conversions as u have said in your case.
If it is a multicube check for the identifications again in the multicube for this charactritics.
It is possible that update rules are correct but the identification in the multicube is incorrect and assignne is mapped to some date.
Thanks
Ajeet
Maybe you are looking for
-
Problem in selection screen validation.
Hi All, I am having the following in the selection screen: PARAMETERS : p_r1 RADIOBUTTON GROUP grp DEFAULT 'X' USER-COMMAND dlvy, p_r2 RADIOBUTTON GROUP grp . SELECTION-SCREEN BEGIN OF BLOCK b1 with frame title text-001. SELECT-OPTIONS:
-
Upgrade from 46C to ECC 6.0
Hi All, We are upgrading from 4.6C to ECC 6.0.I have downloaded all the SOFTWARE from Service market place except ORACLE 10.2 which I am not able to locate it. Do I need to order ORALCE UPGRADE CDS from SAP? or is there any way to find out on the ser
-
Where is the underscore on the iphone 5s?
Where is the underscore on the iphone 5s?
-
I have tried to find the page where I can click on the Firefox button and get to the "Set Up Sync" page. I have tried every Firefox home page and web page I can find and there is no button that gets me to the "Set Up Sync" page. Please help me. I jus
-
On one of my recent shoots I used a multi-camera setup. The main camera had the audio fed directly into it via XLR. The only problem I have is that my audio feed is horrible because my camera man on the main camera didnt monitor his audio so the audi