Non zero values in the extraction of the planning area
In our DP implementation we have been trying to extract 2 key figures from the planning area, one of the key figures might have zero values, when we set the indicator for the non zero values then it only eliminates the records for which both the key figure are zero but that is not what I want. I am trying to have a setting in the data source where we can reject the records even if one of the key figure has zero values.
Are there any settings for that while we are generating the data source.
Thanks in advance
Hi Colin,
This can be easily solved using a slightly different ABAP routine. You can assign the fields that you need to check into other field symbols and then check the value of those field symbols.
Here's one possible solution. I based in from the ABAP code you posted.
field-symbols: <LS_EXTR_BLOCK> TYPE any,
<ls_fcst> type any,
<ls_hist> type any.
data: w_pos type sy-tabix.
loop at ct_data assigning <LS_EXTR_BLOCK>.
w_pos = sy-tabix.
assign component '/BI0/9AVCORFCST'
of STRUCTURE <LS_EXTR_BLOCK> to <ls_fcst>.
assign component '/BI0/9AVCORHIST'
of STRUCTURE <LS_EXTR_BLOCK> to <ls_hist>.
if <ls_fcst> = 0 and <ls_hist> = 0.
delete ct_data index w_pos.
endif.
endloop.
Aside from the solution above, you can also define the structure of CT_DATA (that's basically the structure of the extract structure of your datasource). You can then assign the contents of CT_DATA to a field-symbol and the delete data using that field symbol.
Here's an example:
TYPES:
TY_DATA_TABLE type table of *PUT THE NAME OF YOUR EXTRACT STRUCTURE HERE*.
field-symbols:
<FS_DATA_TABLE> type TY_DATA_TABLE.
DELETE <FS_DATA_TABLE> WHERE /bi0/9avcorfcst = 0
and /bi0/9avcorhist = 0.
You can check the name of the extract structure by viewing table /SAPAPO/TSAREAEX field EXPORT_STRU. You can also see the name of the extract structure in debug mode by looking at the value of the parameter IV_DDIC_REFERENCE.
Hope this helps
Similar Messages
-
How to find first non zero value from the numeric value or string?
Hiii, Every body
I have one numeric indicator in which some valuse is coming with the decimal value, lets say 0.00013, now i want to find the first non-zero value from this numeric indicator, then what should i do to do so? i have converted it in the string, but i could not find any method to find first non-zero value from that string or either from the numeric indicator????
Can you please help me, how to do it? i have attached the vi and write all the description inside.
Thanks in Advance,
Nisahnt
Attachments:
Find first nonzero.vi 20 KBJust convert it to an exponential string and take the first character .
Message Edited by altenbach on 05-10-2006 08:00 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
FisrstNonzeroChar.png 3 KB
FindFirstNonzeroCharacter.vi 20 KB -
Display Non-zero values of keyfigures based on a particular value of a cha
Hi Gurus,
I would like to display only Non-zero values for keyfigures but only for a particular value of a characteristic. For Ex: We have material Group. For a particular value of material group, i do not want to display the zero stock. But for other material groups it should display zero stock.
I tried to use conditions, but the problem is it suppresses all the zero values for the keyfigure for material group in general and not for a particular value of the material group.
Is there is any way that i can go about for this scenario. Pls help.
thanks & regards,
PSHi,
You can very much restrict your KF on particular values of said material group. For example you material group contains the values like "Blades", "Personal Cares", "Disposables" etc... and you want to restrict your KF on "Blades" only, you can do that.
Just restrict your KF on Material Group and include the values which you want for restrictions. You can also exclude values from restrictions.
Hope it help you.
Yogesh. -
Display Non-zero values of keyfigures based on a particular value of a char
Hi Gurus,
I would like to display only Non-zero values for keyfigures but only for a particular value of a characteristic. For Ex: We have material Group. For a particular value of material group, i do not want to display the zero stock. But for other material groups it should display zero stock.
I tried to use conditions, but the problem is it suppresses all the zero values for the keyfigure for material group in general and not for a particular value of the material group.
Is there is any way that i can go about for this scenario. Pls help.
thanks & regards,
PSHi
Create a structure in the rows based on selections on material group. Eg.
Structure
Mat grp 1 (restricted to material during selection)
Mat grp 2
then add a formula in columns using boolean argument
e.g (exisisting KF >= 1)*1+0
Then you can use conditions to elimanate zeros on the new KF.
Hope it helps
Edited by: Karin van der Merwe on Feb 29, 2008 8:52 AM -
How to Get ZERO and Non-ZERO Values in rowcount using Group by?
Dear All,
How can I get Non-ZERO and ZERO row count values in SQL using Group by? I can get non-zero values but when I want NULL should be returned to non-zero values it is ignoring ZERO values in output?
Any hint?
Thanks
GQHi,
Something like
select count(case col
when 0
then 1
end) zero_count,
count(case nvl(col,1)
when 0
then null
else 1
end) nonzero_countRegards
Peter -
SBO SQL Query outputs zero values as nulls but need the zeros
Hi all,
I'm having a problem with a query I'm writing in SBO where if the field contents are zero, these are output as null.
I have a field for the stock usage on sales orders and ont too for production orders, but if I add these together they only provide a result if both columns contain a numeric value.
I've tried adding "0" to the column value, adding and subtracting "1" and also multiplying the value by "1" but still no joy.
I have also tried adding a "cast" statement to the column, but that doesnt seem to have an effect either (I think as this is more an output function).
I need to be able to use these columns as separate displays in addition to being used in a further column as part of a calculation.
If anyone has an idea how I can output a true zero value as opposed to a null value your help would be appreciated.
Cheers,
JHello Julian,
You could try to use a CASE Statement as I have shown below and test this will the SQL below. If you use the T0.LineNum without any CASE or CAST the LineNum 0 will show as blank in SAP.
SELECT
CASE WHEN T0.LineNum != 0 THEN CAST(T0.LineNum AS VARCHAR(10)) ELSE '0' END AS 'Row Number',
T0.ItemCode AS 'Item No.', T0.BaseQty AS 'Base Quantity', T0.PlannedQty AS 'Planned Quantity - Rows' FROM [dbo\].[WOR1\] T0 -
Calculating average of non-zero values only
Hi all,
I have a table containing a numeric column which contains processing time in mili seconds. this can range from zero to any value. I want to calculate average processing time for only those entries which have non zero processing time in a single SQL. can you please suggest any SQL function for this?
I'm using Oracle 10g.Sure, decode the 0 values to NULL (aggregate functions like AVG do not consider NULL values).
ME_XE?with data as
2 (
3 select 10 as col1 from dual union all
4 select 0 as col1 from dual union all
5 select 20 as col1 from dual union all
6 select 20 as col1 from dual
7 )
8 select avg(col1) as col1_avg, avg(decode(col1, 0, null, col1)) as col1_avg_no_zero
9 from data;
COL1_AVG COL1_AVG_NO_ZERO
12.5 16.666666666666667
1 row selected.
Elapsed: 00:00:01.07
ME_XE? -
Display only non zero values in rows
Hi Friends,
I have a key figure "X', and it is split over 12 months (aging buckets), by using formula, but I want to filter values with zero values ie I want to display all non zer values only.
This looks like
Apr 100
May 200
Jun 200
Jul 0
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
In the above example I dont want to display 'Jul' at all, and the rest should be displayed, Wherein all the above are formula(Apr, May,......)
Is it possible ?
If so , what is method.
I tried supress in query properties , Like supress zeros, but it is not working.
Suggest me
Points assured.
SanjayDear Gupta,
In my case condition is not working, as I want to display values that ae non zeros. If I am using conditions, none of the values are displayed like Apr, May,Jun, Jul, etc........, I want to display all values except Jul as that values is zero as per my example.
Please suggest
Sanjay. -
The extraction of the profit center & the cost center
Hi all,
Can anyone share the extraction document with me regarding the profit center and the cost center? Thank you for help.Hi,
I hope, These two infoobjects do not have any deviation in the extraction of data to other Infoobjects.You can do population in as usual manner.
Are you getting any difficulty in this process?
With rgds,
Anil Kuamr Sharma .P -
after execute the setup, the extraction of files begin and by the time its finished, everything stops...
https://support.mozilla.com/en-US/questions/794745
Will Firefox 4 have a 64-bit version?
No, not for Windows.
There is no official 64bit Firefox built for Windows. You may try the unofficial builds at http://wiki.mozilla-x86-64.com/Firefox:Download and their support means. -
A new schedule line with net price zero but custom duty non-zero value
Hello,
I have a special requiremnet in MM scheduling agreement, for a specific type of scheduling agreement, I am copying a schedule line to a new schedule line. The new schedule line should have all the pricing and duty values from the old schedule line, except the net price of the new schedule line should be zero.
I am able to make the net price zero in the new schedule line, but not able to copy the custom duty values from the old schedule line. Since my netprice is zero in the new line, it automatically set all other follwoing duty values also to zero.
Say example a scheduling agreement: A has two line:
Condition Type % Total Value
scheduline line 1 - with pricing values PB00 200 USD
Cond1 5 10 USD
Cond2 10 20 USD
230 USD
expectedd result i the new schedule line
scheduline line 2 - PB00 000 USD
Cond1 5 10 USD
Cond2 10 20 USD
30 USD
I am trying to overwrite the condition values using the FM RV_CONDITION_COPY, but I am not getting the desired result.
Please let me know if you have any solution to my requirement.
Best Regards,
Amarjit SinghHello Colleague;
In Standard the schedule lines cateogory CV is activated for 'Req./Assembly' and 'Availability'.
Please, make this adjust and re-test you process.
Regards
Ruy Castro -
Consumption value updated for zero value materials
Hi Masters
I have maintained value of a material in material master as zero.Although it is maintained zero, When the material is issued using 261 accounting document got generated and showin the following entries
Inventory a/c
Consumption a/c(+)
How it is happening?
Regards
Mohanhi,
Check your price control it would be MAP...
REASON :
Suppose you post the GR at price of 100/pc...where as in MMR the price is ZERO...
Now when you post the GR at 100/pc...the MAP changes in the MMR automatically...ie. via total value / total stock...so the MAP doesn't remain ZERO now...
So, now when you post the GI, the current MAP is taken from MMR ie. Non-ZERO value and so system post the accounting document while GI...
I hope the matter is clear now..
Regards
Priyanka.P -
Non-zero rule for figuring out the interior of a shape
I need help in understanding how the non-zero rule works in figuring out the interior of a shape? Can anybody give a simple example? The winding rule is set by the PathIterator...WIND_NON_ZERO.
Do you have a Java question?
We can't really answer general questions like that, except to point you towards google.
If you have some Java code you're working with, post an [SSCCE |http://sscce.org] that demonstrates where you're stuck, and be specific with your questions. -
How can I speed up the extract() function queries on XML
Hi,
Please I need some light on xml and indexes.
This is my case:
I use Oracle 9i R2.
I have a table with some rows containing some few xml documents (each row contains a big xml document).
Given a value for an attribute of a tag, I want to extract the entire section within the tags.
Example:
<MYTAG number="1">
.....big stuff here
</MYTAG>
<MYTAG number="2">
.....big stuff here
</MYTAG>
<MYTAG number="x">
.....big stuff here
</MYTAG>
So for number=2 I would like to extract from the document the xmltype
<MYTAG number="2">
.....big stuff here
</MYTAG>
I created an index and have followed all the steps from the XML Database Developers Kit manual. Then I would use extrac() as the document says.
Now some doubts arised:
Are these text/xml indexes only useful for getting the rowid of my document?
I mean, if I select 'x' from the table looking for some value, then the index is used. But when I use extract in the select to get the section I look for, the query gets really low, specially when xml documents are big. I think when I have only row with one document, getting the rowid is not the problem, but the extraction from the document is.
Is the extraction process faster because of the index?
For what I see, the index only helps me to find the rowid, but then Oracle has to deal with the very big document inside the row. At that point Its oracle against a big text processing and index has nothing to do.
How can I speed up the extraction of the section?
If there any other index or tool for help extraction to be faster?
I would appreciate to know what can I do. I need help on this.
Thanks in advance!Well,
- What indexes, if any, already exist?
- What do the functions rl and nice do?
- What are the current query plans?
- How restrictive are the various predicates?
- What version of Oracle?
Justin -
How to find Extract for the bank key/ bank account changed in vendor maste
Hello Gurus,
I need help in finding the extract for the bank details of vendors changed for a period of time. I tried using FK04 under multiple selection and ran the report for the selected vendors. It only shows the "bank details created" or "bank details deleted" under Old Values and New Values but doe not actually shows the values for the field changed.
Is there a way where i can get a report which shows a log of change in bank details with old and new values,
Thank you,
PrakashHI,
Try using report RSSCD100 and give the selection condition
Object id --> BANK
and then you can limit the results by specifying the time and date range..
Maybe you are looking for
-
Hi I am trying to work out how to achieve the following: I have a registration page and all works great and the user receives an email to activate their account. The {kt_login_user} in the include displays the Username in the email the sent to the pe
-
HELP ME!!! VISION M 3
Alright here is my story.. I have a vision 30GB, i started having problems with it. For example, for every song that i played the same album art will be displayed. That is just the beginning of my problems. So i decided to update my firmware to the l
-
We have a subcontract PO set up where the material number is the top level of the BOM. When we receive against this PO, the components pull into the GR as they should. However, when we needed to return some of the material for rework and we used a
-
Generate pulses in NI-ELVIS II to be used as an external clock
I am using the NI ELVIS II counter for edge counting and to set the clock for Sample clock function I have to use an external clock but I am not sure how to do it. I suggest I have to use Counter Output/ Pulse generation to generate a pulse with a de
-
How can i install my audio output device back
my audio is not working it says "No Audio Ouput Device installed" but it was working perfectly fine the day before. PLease Help