on 04-05-2006 7:34 AM
In query i want to put following condition,
If 'Delivery Status'="X" Then
PO Balance=0
End IF
Delivery Status : Characteristics (Values:'X')
PO Balance : Calculated Key Figure ('PO Qty' -'Recd Qty')
means if the delivery status charecteristics value is "X" then put zero otherwise print PO Balance calculated key figure.
how can i do this?
HI Try this out:
1.Create two RKFs one for 'PO Qty x' and one for 'Recd Qty x'.
both should be restricted by 'Delivery Status'..'X'.
now Create a formula 'Po balance x' = 'PO Qty x'-'Recd Qty x'.
So this Fomula displays PO balance for delivery status 'x'.
U can hide two rkfs now.
2.now create one more formula 'PO balance' = ('PO Qty' -'Recd Qty')
<i>now in columns u will be having 'PO Qty','Recd Qty','Po balance x' ,and 'PO balance'.(and ofcourse two hidden rkfs)</i>
3.Now create one formula for required PO balance say 'PO balance-Req' = ( 'PO Balance x' <> 0 ) * 0 + ( 'PO Balance x' == 0 ) * NODIM ( 'PO Balance' ).
logic:'PO balance X' column will display some value whenever status is 'X' (becoz we restricted KFs with status X and difference of RKFs is 'PO balance x')
and 'PO Balance' will display values Regardless of status.
with that logic,when ever you have some value for 'PO Balance X' column, result would be 'PO Balance' otherwise 0.
Let's take an example: assume we have some value(including 0) for 'PO Balance X' = 10.
as per logic : 10 + 010 = 0( 'Po Balance-Req')
Assume we dont any value for 'PO Balance X'.
As per logic: 00 + 1 ('PO Balance') = 'PO Balance'.
P.S:Even if u have 0 for 'PO Balance X',formula will return 0.
Now you can hide 'PO Balnace X' and 'PO balance' also...
hope You understnad it.Let me know whether it works.if not we have alternative for this.
Thanks
Please don't forget assign points if it helps.
Message was edited by: Murali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to confirm whether this logic works or not...
Just drag and drop 'Status' characteristic into rows as first position. and enalble sorting order for this Characteristic (context menu---> properties of 'Status' Characteristic)...and from context menu of Material,set Suppress result rows to 'never'.
With this format,You can easily identify whether for all materials with Status 'X',PO balance is 0.
Thanks
hi Suyash,
also take a look this
sap help
bex query designer, web reporting to mobile bi etc ...
http://help.sap.com/saphelp_bw33/helpdata/en/5b/30d43b0527a17be10000000a114084/content.htm
http://help.sap.com/saphelp_bw33/helpdata/en/a2/06a83a4bd5a27ae10000000a11402f/frameset.htm
there is 'bw reporting made easy' book/cd
http://www.amazon.com/gp/product/1893570665/102-9958356-5476147?v=glance&n=283155
web reporting, javascript etc
docs 'how to' related in service.sap.com/bi (need oss id)
-> service and implementation -> how to
for variable exit, virtual char/kf, table interface, bw ep reporting etc etc
some available in this sdn forum (no id required)
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/e7100a2e-0a01-0010-4fb3-d0578f754105 [original link is broken]
e.g
How to Calculate with Attributes
This document explains how to calculate with attributes.
How to Use Variable Time References in Currency Conversion
This document explains how to use variable time references in currency conversions.
How to Enhance Web Printing
This document explains how to modify the format of BW Web Applications to improve the layout when printing from the web.
How to Enhance the Standard Web Query Template
This document explains how to upload a new web template (ZQUERY_TEMPLATE.htm) to the BEx Web Application Designer.
.....
www.bwexpertonline.com, vb macro etc
http://www.bwexpertonline.com/downloads.cfm?session=
e.g
http://www.bwexpertonline.com/downloads/Nissen.doc
http://www.bwexpertonline.com/downloads/boeke04.doc
http://www.bwexpertonline.com/downloads/fox04.doc
and all Raja's weblogs on bw query etc e.g
and consider reporting performance, check especially Prakash weblog for good query design
/people/prakash.darji/blog/2006/01/27/query-creation-checklist
/people/prakash.darji/blog/2006/01/26/query-optimization
oss note
557870 'FAQ BW Query Performance'
and 567746 'Composite note BW 3.x performance Query and Web'.
BW Performance Tuning Knowledge Center - SAP Developer Network (SDN)
performance docs on query
sir,
i have plant also in rows, means first when report runs it shows plant in rows when we drilldown to material it shows material in rows.
Your formula is working when we drildown it, but when material is not in rows only plant is their it will not work.
I want it should work in any case.In that report we have Material,PoNo,CalenderDate,Vendor,plant to drilldown.
please guid asap.
Hi Suyash
check this
http://help.sap.com/saphelp_nw04/helpdata/en/23/17f13a2f160f28e10000000a114084/frameset.htm
Hope this helps
-Doodle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can do that with a formula using boolean expressions.
Siggi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.