Bex Query to calculate canceled order value
Hi experts,
I am using the 0SD_C03 infoCube to stock the SD data, I want to calculate the net value of canceled orders.
In the 2LIS_11_VAHDR, there is a field "AUGRU", when it is filled, it means that the order is canceled.
In the 2LIS_11_VAITM, I have the net value of different order items.
The two above extractors load data to the InfoCube, the first one, 2LIS_11_VAHDR fill the 0ORD_REASON that is mapped to AUGRU. The second one, 2LIS_11_VAITM, fills the 0NET_VAL that is mapped to NETWR.
The query in SQL looks like:
Select 0NET_VAL from 0SD_C03 where VBELN in (Select VBELN from 0SD_C03 where 0ORD_REASON <> "")
How can I do this with Bex query?
Thank's a lot.
Abdess,
Hi Sunil,
Like I explained above,
The 0Ord_Reason is filled only by the extractor 2LIS_11_VAHDR which dosen't give any value for the orders value, the 2LIS_11_VAITM dosen't fill the 0Ord_Reason InfoCube but it fills the orders value InfoObject.
So if I restrict with 0ord_reason by excluding blank values, I will get 0 in the measure 0NET_VAL.
Abdess,
Similar Messages
-
BEx calculation for 'average sales order value'
Hi all,
Can someone tell me how to use BEx query function to compute the <b>'average sales order values' by month</b>? Thank you.
J.Hi John,
You've two characteristics in the rows, right? Calendar Month and Order Type.
Try the option Calculate Result as Average of All Values and
Calculate Single Value as Nothing Defined? See if this works.
Or else in Modelling,
In the Info Object Create/Change screen, you can specify an Exception Aggregation based on
<b>Aggregate Reference Characteristic</b> Calendar Month.
I think there's an option for Average Values in the <b>Exception Aggregation</b> tab.
For more Information,
http://help.sap.com/saphelp_nw04/helpdata/en/75/21054da1392649948e5b94e4fc4bce/content.htm
Hope this helps.
Regards
Hari
Message was edited by: Hari Krishnan K -
Bex Query - How to capture characteristic value and set it as filter value?
Dear Experts,
I would like to create a tricky report that listed sales quantity by companis. Companies consists of production plant as well as trading company.
Company / Sales Quantity / Sales Quantity 2 (which produced by Company itself)
A / 100 / 50 (50 was produced by company A)
B / 80 / 0 (this is a trading company)
C / 150 / 150 (All are produced by company C)
First I thought of using variable to capture Company value and then under Sales Quantity 2 I set producing company = this variable. But this only works if I filter company values. Any workaround idea that I can get the above with all the listing of companies?
Any assistance would be great! Thanks!
JLHi,
Have you tried elimination of Internal business Volume?
http://help.sap.com/saphelp_bw32/helpdata/en/d5/784d3c596f0b26e10000000a11402f/content.htm
Impliment this solution by adding another KF Sales qty2. with ref. to Sales qty.
In characteristic pair you can have Company and Production Company(navigational attribute).
By implimenting this solution the system will eliminate if the quantity is produced by the company it self. You can create CKF in query to get the result you need.
Jaya -
Problem executing BEx query Hierarchy variable with default value
My query has hierarchy variable on 0MOVETYPE char with a default value . The 0MOVETYPE variabale restriction is in Static filter area.
I got timeout on query execution not because of amount of data but because of this hier. variable. Any ideas why?
Notes:
a) The hierarchy and the 0MOVETYPE characteristic are active and correct.
b) I've tried RSRT check, but got the same timeout error.
c) query executes fine on dev environment. I'm getting timeouts on PRD (as I say not because of amont of data)Hi,
1. Try generating the report in RSRT and see if query runs correctly
2. Looks like you are dafulating onto top node which contains whole data may be. This is not correct as it will definitely slow down the report based on amount of data it contains. Try to remove default and try first whether query is opening.
3. You can put some lower level defualt to understand whether amount of data is the issue.
4. Try to increase the server time out setting and see if it runs.
Thanks and regards -
BEx query: count unique key figure values
Hi
I need a little help with a query. I need to count the number of unique key figure values. Se example;
Data:
Employee1 - 2
Employee2 - 3
Employee3 - 2
Employee4 - 1
Employee5 - 2
Employee6 - 1
Employee7 - 2
Wanted output:
1 - 2
2 - 4
3 - 1
What kind of options do I have?
Thanks
MikeI would create a new characterstic for the same key figure and placed in rows and count in columns.
and second approach would be , create condition with customer exit and write the logic to count the unique values.
This is just a direction to move forward with the assumption that you are good in using variables and wirting logic in ABAP.
Thanks,
Sukhi -
BEx Query to display cumulated Stock value..
Hi,
I want to display below report o/p in BEx.
Below is data set:
Material Batch Fiscal year/period stock value
A A123 005/2011 $1000
A123 006/2011 $1500
Report should display o/p as follows:
Material Batch Fiscal year/period stock value Cumulated stock value
Till today
A A123 006/2011 $1500 $2500
Cumulated stock value is addition of period 005/2011 and 006/2011. How this can be accomplished in BEx if fiscal period/year is required to display in rows.
Any help is greatly appreciated.
Thanks,
MilindHi,
Create a RKF called cumulated stock values and in this RKF restrict the Fiscal year Period For current year. This will give you the cumulated value of all stock for the entire year.
Reg,
Rahul -
BEx Query Designer: Calculate result as Problem
Hi Experts!
I have a trouble with calculating result for one field in report desiner.
Scenario
Fomular: Price = Amount/Qty
Amount Qty Price
5 2 2.5Hi experts,
I have a trouble with calculating result for one field in report desiner.
Scenario
Fomular: Price = Amount/Qty
Amount -
Qty----
Price
5 -
2 -
2.5
6----
4 -
1.5
8--5--
1.6
Result 19 11 ?
Required result ? = 19/11, please some advice how can I get required result? How can I calculate thish result?
Thanks in advance,
Luu -
How to restrict the Null Values for Key Figules in the Bex Query
Hi Friends,
I want to restrict the Null values of a perticular key figure in the Bex Query Output.
I will explain in details. i have 3 key figures in my query.. let us assume.. key1 key2key3
key1 key2 key3
4 4 100.00
5 0 200.00
1 0 19.00
0 1 10.00
i don't want to see the the records for which key 2 is 0.
we have a setting in the Bex Query for restricting the Zero values in the query properties. If we enable that setting it will show
4 4 100.00
but i want the report to display..
4 4 100.00
0 1 10.00
can any body guide me. <b>i want to display the values if key2 <> 0.</b>
Regards,
Nagesh.Hi AVR,
nice to see reply.
can you eloborate your view...how can i put the condition.
<b>i want to put the condition key2 <> 0.</b>
Regards,
Nagesh. -
How to pass parameter values to Bex query through xcelsius (LO or QWAAS)
Hi,
I have prompt in Bex query and want to pass values to query prompt through xcelsius .
In xcelsius i have selection
e.g 1] Combo selection is for Vendor
2] Combo selection is for Fiscal Year
If i select value from Combo list and refresh the dashboard im getting below error
A database error occured. The database error text is: The MDX query SELECT { [Measures].[4IKKZVYWWD3XKQK7Z1BK34VTL], [Measures].[4IKKZVJJUFWIJHHBND6VJ0YE1], [Measures].[4IKKZV46SIP3I8EFBP26YX0YH], [Measures].[4IKKZUOTQLHOGZBJ00XIET3IX] } ON COLUMNS , NON EMPTY [0CREDITOR].[LEVEL01].MEMBERS ON ROWS FROM [0FIAP_O03/ZFIAP_O03_UNIVERSE] SAP VARIABLES [VN_VAR] INCLUDING A00140 [0S_FYEAR] INCLUDING V3/2010 : V3/2010 failed to execute with the error Unknown error. (WIS 10901)
I have tried using LO and QWAAS but not able to do so......
if any one knows plz help....Hi,
most likely yo are passing the wrong value.
you need to send the key or the member unique name.
Ingo -
Unwanted LOVs - Universe on a BEx query on top of a Multiprovider
BO XI 3.1
BW 7.01
OLAP Universe on a BEx query
BEx query on top of a Multiprovider
Multiprovider on 2 DSOs; lets say DSO1 and DSO2
BEx query has a global filter for "INFOPROVIDER = DSO1"
BEx query has a user input variable defined for "Field1" (Field1 is present in both DSOs)
In BEx, F4 on Field1 variable entry gives the values of Field1 from DSO1. (which is what we want)
Expected LOVs for the generated prompt for Field1 in the WEBI report: Values of Field1 from DSO1
Problem:
Actual LOVs returned in WEBI report: Values of Field1 from both DSO1 and DSO2
Has anyone faced this before?
Thank youHenry Banks wrote:
> I have a suspicion the BEX property 'only values in infoprovider' isn't picked up/consumed by the BAPIs used by the MDX interface.
That is correct. The BEx properties do not carry over to the BO side. In Webi 3.1 here are the default selections for LOVs (as far as I know)
OLAP universe against BEx query on an infoprovider (Infocube, DSO, Multiprovider) - Only values in Infoprovider
OLAP universe against BEx query on an Infoset - Values in the master data table
My understanding now is
OLAP universe against BEx query on a Multiprovider - Only values in ALL Infoproviders under the Multiprovider
Henry Banks wrote:
> Yes, this is confirmed by Note 1224318 - MDX: InfoProvider restriction for the member rowset
> It's a BW limitation of the OLE DB for OLAP.
I have seen this note before and according to it you can set an RSADMIN parameter MDX_JOIN_CUBE_DIME and have more control over the LOVs.
MDX_JOIN_CUBE_DIME = "A" -> The read mode for all LOVs is Only values in master data
MDX_JOIN_CUBE_DIME = "I" -> The read mode for LOVs is either master data or infoprovider depending on the infoobject settings
Henry Banks wrote:
> It might be easier to have to 2 data providers for this document, if you don't already, for plan and actual; or 2 seperate bex queries.
Well, that would work but it would defeat the purpose of having a Multiprovider for logical partitioning, wouldn't it? -
Conditional Formating in Bex Query
Hi Folks,
Here requirement is like..if the value is +ve it should show <b>upward arrow</b> and -ve it should show <b>Downward arrow</b> in Bex query result besides a particular value.
could any one let me know what formula is required in Analyzer/Designer or is there any option to display..To show up arrow and down arrow for +ive and -ive result for the bex query result. You can modify your web query with the table interface. Table modify class.
Please check out this two document:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/403c789a-aafb-2910-e5a4-835645f0721b
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49dfeb90-0201-0010-a1a2-9d7a7ca1a238
Thanks
Mona -
WebIntelligence report on top of bex Query in BI4.0 (SP2)
Dear experts,
I'm working on webi report on top of bex Query in BI4.0 (SP2). I would like to know your opinions about some points I have noticed.
A - I need to drill throught a hierarchy which contains several millions of members.
Is there a possibility in my report drilling down to one member without selecting all members of the hierarchy in the query panel ?
B - I cannot put a dimension with hierarchy both in the result pane and in the filter pane, although it is possible for any other dimension without hierarchy.
Is there any special trick to achieve this or is a bug??
C - I cannot sort variables defined in my bex query, but they don't appear in the window to sort prompts.
Do you know how to solve this issue ?
D - I noticed all keys and description of dimensions appear with the same label "key" and "text". SO it is very confusing for the user to understand what key or text means (if a key if the customer key or the company code key).
Any idea to have a more explicit label for BW characteristics?
Regards.
CL.Hi,
I do not have access to a BW system to test this, but i have something on three of your questions...
A) drilling without getting all the lower members. I would look to query drill, this means a drill action in the report will go to the database to fetch the level (and only for the selected member, a drill down).
The only thing I'm not sure about is if the BEx hierarchy is seen as drill hierarchy by that option too.
If you'd ask me it really should.
C) this is an old problem, but I know it is bugging more people, because the same is true for universe based prompts. They also cannot be 'arranged'. Since the Bex query is the 'universe', ordering that has been set in the 'universe' is the only chance you have.
Like with the universe you could use prefixes to separate them from the query defined prompts (based on an alphabetic sort of the prompt message). I'd say this is a good one for the idea place...
D) also an old (very old actually) problem. Some will want to keep the text short and simple. The prefixing will tell which key it is. Some will prefer unique names, so no prefix is needed. The same was true for universe designers. Now since there is no universe, if you do not agree with the 'designer' you're out of luck no way to change it.
Hope this helps,
Marianne -
WEBI prompt based on bex variable suppress not assigned hashtag value in LOV
Hi,
is it possible to suppress the "Not assigned (#)" value from the list of values in a webi prompt based on a bex variable?
This "Not assigned" value is something BW specific, BW adds this to each characteristic automatically?!
WEBI:
RSRT:
It needs to work in WEBI, not only in RSRT, and the filtering of data still needs to work.
For rsrt it works, when you exclude the not assigned value in "Filter > Characteristic Restrictions" and use the bex variable in/through "Filter > Default Values", but this does not work in WEBI, because the BEX Query Data is not filtered on the in the prompt selected value.
Thanks.
Regards
DavidThanks David for a quick reply !
I could manage to avoid # values in WebI prompt using BAdI implementation, here is the brief:
Problem:
WebI report prompt (which shows BEx variable) list of values shows blanks or # . Rrequirement was to avoid these blanks or #
Environment:
BW 7.3
BO 4.0
BW Cube > BEx Query > OLAP Connection > WebI report
Solution:
InfoObject Level1 in BW had # values in masterdata, this could not be deleted since it was in use with other Cubes.
Vaurable Var_Level1 displays # when pressed F4 running BEx query and in list of values in WebI report prompt.
I implemented BAdI on Level1 info object and variable Var_Level1.
Steps to implement BAdI are as in following link
BEx Query - Control the values which are shown on F4
Used following code to elimitate #.
METHOD IF_RSR_VARIABLE_F4_RESTRICT~GET_RESTRICTION_FLAT.
DATA: l_s_range LIKE LINE OF c_t_range.
DATA: l_var_range LIKE LINE OF i_t_var_range.
DATA: IT_MZLEVELS TYPE TABLE OF /BIC/MZLEVELS,
WA_MZLEVELS LIKE LINE OF IT_MZLEVELS.
DATA: L_ZLEVEL1 TYPE /BIC/OIZEVEL1.
IF i_vnam EQ 'ZV_LEVEL1'.
SELECT /BIC/ZLEVEL1
FROM /BIC/MZLEVELS
INTO CORRESPONDING FIELDS OF TABLE IT_MZLEVELS
WHERE OBJVERS = 'A'.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
SORT IT_MZLEVELS BY /BIC/ZLEVEL1.
DELETE ADJACENT DUPLICATES FROM IT_MZLEVELS COMPARING /BIC/ZCLV1GP.
DELETE IT_MZLEVELS WHERE /BIC/ZLEVEL1 = ''.
l_s_range-iobjnm = i_iobjnm.
l_s_range-sign = 'I'.
l_s_range-option = 'EQ'.
LOOP AT IT_MZLEVELS INTO WA_MZLEVELS.
l_s_range-low = WA_MZLEVELS-/BIC/ZLEVEL1.
APPEND l_s_range TO c_t_range.
ENDLOOP.
ENDIF.
ENDMETHOD. -
Unable to sequence the prompts as mentioned in Bex Query
Hi,
We are unable to sequence the prompt order in web i report which is build up on Bex query.
We have follwed the prompts order in Bex query,
When we build a web i report the sequence of prompts is not coming as expected, rather its taking in alphabetical order.
Please help us in ordering the sequence of the prompts in Web i.
Thanks in Advance,
Swaraj.Hi,
Part of this other post I just answered, so I'll leave the same info here...
This is a known behavior, but I know it is bugging more people, because the same is true for (normal) universe based prompts.
They also cannot be 'arranged'. Since the Bex query is the 'universe', ordering that has been set in the 'universe' is the only chance you have.
Like with the universe you could use prefixes to separate them from the query defined prompts (based on an alphabetic sort of the prompt message). I'd say this is a good one for the idea place...
(actually it is there, part of this one... [https://cw.sdn.sap.com/cw/ideas/2377])
Vote for it if you want this happening.
Good luck,
Marianne -
Output of BOBJ (Web Intelligence Reports) are twice BEx Query Result
Hi Experts,
Incase of first level of hierarchy, correct values (i.e same as BEx Query) are displayed in BOBJ reports . However on selecting two and more levels of Hierarchy, values,twice the corresponding BEx query values, are displayed in BOBJ reports .
For e.g.
For level one of hierarchy (one level of object from hierarchy ):
Actual Amount keyfigure value in BEx Query : 100
Actual Amount keyfigure Value in BOBJ Report : 100
For if we select two and more levels of Hierarchy, then we get following inconsistent values:
Actual Amount keyfigure value in BEx Query : 100
Actual Amount keyfigure Value in BOBJ Report : 200
We have implemented SP5 ,as suggested in SAP note 1373220 . However issue still persists...
Can you please suggest, how to resolve this issue?
Regards
MohitWe had the issue close to your issue. Basically, Webi does a Cartesian product of the characteristics value and duplicate the number of rows. But when we add the key figure in the report, it was showing the correct result.
Not sure, why the Key figures are also duplicating in your case. Please try adding removing characteristics and see if that resolves your issue.
- Danny
Maybe you are looking for
-
How do i clear my old iphone 5 of data?
I saw in these support communities that I should go to settings/general/reset and then select "erase all content and settings" which is fine and good until I put in my password, hit erase iPhone, then select it again after I get a warning it can't be
-
Transfer from icloud to my itunes
Hi I have a lot of movies stored in my cloud they are a mixture of purhased and redeemed through purchasing blu rays and downloading through apple itunes redemption. However I can see my entire collection on icloud but not on my itunes. I want to cop
-
Can we monitor the CAN bus load through a vi
Is there a way to monitor the CAN bus load through a vi? I am using USB 8473 to establish a CAN communication. Thank You, -Raghu
-
I have several Keynote presentations, where I have recorded the presentation. One of them shows up as 370MB (from a previous recording), and the other one as .5MB (slideshow without recording). I get these same results if I re-open Finder, or view
-
Firefox crashes when using multiply tabs
When using multiply tabs Firefox crashes I get the not responding message and something to do with a script error etc. Is there anything I can do