How to restrict Null values
Dear All,
I have main query..And i written a Query for Issued Quantity.
The query is retrieving exact data. And when i add the Query in main query the data is coming with extra null values.
for ex. Query for Issued Qty fetchs 16 records.
and i run the main query it fetchs 20 records...there r 4 records which issued Qty is null.
How can i restrict that records.
Thanks.
Shahabuddin wrote:
Dear All,
I have main query..And i written a Query for Issued Quantity.
The query is retrieving exact data. And when i add the Query in main query the data is coming with extra null values.
for ex. Query for Issued Qty fetchs 16 records.
and i run the main query it fetchs 20 records...there r 4 records which issued Qty is null.
How can i restrict that records.
Thanks.How about showing us the query? If you have an outer join condition between the tables, that would account for the NULL qty in the 4 "extra" rows. In that case, you'd want to remove the outer join from the query.
Cheers,
Similar Messages
-
How do I restrict null values??????
Hi,
Created BW report Purchase Orders Awaiting Goods Receipting. Having difficulty in restricting the report to those orders that have not been goods receipted. How do I restrict null values.
thanks in advance
S VRHi,
I believe you are using Standard Business Content.
You can use the following reports for overcome your requirement:
Query Name: 0PUR_C01_Q0017 - Quantities Purchase Order Delivery - Invoice
Link: http://help.sap.com/saphelp_nw04/helpdata/en/99/670539b15b186ce10000000a114084/content.htm
Try to use it. And let me know still you are having some doubts.
Regards,
Vivek V -
How to delete null values in a table
hi all,
tell me please any one how to delete null values in a table
example:
in emp table is there
empno ename job mgr sal deptno
7900 scott 7902 2000 10
7499 clerk 7900 20
7834 james manager 3000 30
like this in the above emp table there are some null values are there
so how to delete the null values in emp table
thanks,
regards.
Edited by: user9195968 on Feb 25, 2010 6:30 AMnot too sure what you mean, perhaps you could supply a table description and some sample data
but, consider
delete from table_1 where column_1 is null
commit
/ -
How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working 10g
Hi,
How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
We have tried below methods
1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
E.g. if you want zeros (0) instead of null then enter:
#,##0;-#,##0;0
2) in that formula columns we have put it below case condition also ,
Measure Column: Nom_amt --> edit formulas
CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
3) we have uncheked IS NULL check box in the admin tool also
I tried above formats still it's not working for me..kindly help me on this..
thanks to do the needfull
Best Regards,
R.DevarasuHi,
Null value in database displaying as 0 in report, I need to keep value as in database, and I have one calculated row which is based on null values should also null in report.
but it showing 0 for null values also so, my calculated row showing wrong result.
my report is like
col1 col2
ABC 0
BCD 12
DEF -12 --this is calculated row.
I require result like:
col1 col2
ABC null
BCD 12
DEF null --this is calculated row.
Please let me know how I can achieve this.
Thanks,
Rahul -
How to Replace Null Value as 0 in an OBIEE11g Pivot Table?
Hi,
How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
We have tried below methods
1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
E.g. if you want zeros (0) instead of null then enter:
#,##0;-#,##0;0
2) in that formula columns we have put it below case condition also ,
Measure Column: Nom_amt --> edit formulas
CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
3) we have uncheked IS NULL check box in the admin tool also
I tried above formats still it's not working for me..kindly help me on this..
thanks in advance...
Best Regards,
R.DevarasuHi Amith,
I have update your suggested one,but it's working few of the rows only..remainings rows some of cells still NULL only
Measure colmns is : Nom_SGD
IFNULL(Nom_SGD,0.00)
Movment : dynamic date calc by using $2-$1 oracle formula's
Actually i am doing below things only,
31/12/2011 31/03/2011 Movment
Country
India 100 -50 -150
Singapore 200 200
UK 1200 -1200
USA 0.00 0.00 0.00 (here changed null as 0)
Helpmeon this... -
How to restrict Option values for a particular metadata in profile checkin
How to restrict Option values (drop down) for a particular metadata in profile checkin-
Metadata field Color is having options dropdown values (stored in table/views)-
Display name - Blue, Value=1
Display name - Red, Value=2
Display name - Yellow, Value=3
Display name - Green, Value=4
Display name - Black, Value=5
For a particular profile checkin form, for the metadata field Color I want the dropdown value consist of only top three options
Display name - Blue, Value=1
Display name - Red, Value=2
Display name - Yellow, Value=3
But this should be done on profile level only, should not impact the standrad checkin form and other profile checkin forms.
Please help me if any one having any suggestion to implement the above secnario
Thanks,
SumitHi,
Into the rule containing the Color metadata, you can restrict the values of the list.
In "Has restricted list and pane", list the values 1, 2 and 3 (new line for each value) :
1
2
3
Romain. -
How to assign NULL value to an ITEM in Forms Personalization?
Hi,
how to assign NULL value to an ITEM in Forms Personalization?
please suggest me.
ThanksI don't know what your form personalization does and maybe I misunderstand you ...
Try
:item_name := null; -
How to post null values from h:inputText?
Hello,
I have a form made of h:inputText fields that map to an entity class as the backing bean. Whenever I post the form from a web page, all the fields that I did not fill out and that are mapped to String fields in the entity class are set to "" (empty string) instead of null.
However, I would like to post null values to my entity, because that would indicate that the user did not fill out the field. In other contexts (outside of the web app) it is possible to set the fields to empty strings, but from the web app it should always be null. How can I get JSF to do this correctly?
Also, when reading entitys with null values from the database, these are converted to empty h:inputText fields, so this direction works as expected.
UlrichI haven't seen a solution for this as far.
This is how I do it:
public void action() {
if (isEmpty(inputValue)) {
// do your thing
} else {
// do your thing
public static boolean isEmpty(Object value) {
if (value == null) {
return true;
if (value instanceof String && ((String) value).trim().length() == 0) {
return true;
if (value instanceof Collection && ((Collection) value).size() == 0) {
return true;
// And go so on .. make it an utility method.
return false;
} -
How to replace NULL values from main table
Dear all,
I like to remove the NULL values from a main table field. Or the question is how to replace any part of the string field in MDM repository main table field.
e.g. I have a middle name field partly the value is NULL in some hundreds of records, I like to replace NULL values with Space
any recommendation.
Regards,
NaeemHi Naeem,
You can try using Workflows for automatically replacing NULLs with any specific value.
What you can do is: Create a workflow and set trigger action as Record Import, Record Create and Record Update. So, that whenever any change will occur in the repository; that workflow will trigger.
Now create an assignment expression for replacing NULLs with any specific value and use that assignment expression in your workflow by using Assign Step in workflow.
For exiting records, you will have to replace NULLs manually using the process given by Preethi else you can export those records in an Excel spreadsheet which have NULLs and then replace all NULLs with any string value and then reimport those records in your MDM repository.
Hope this will solve your problem.
Regards,
Varun
Edited by: Varun Agarwal on Dec 2, 2008 3:12 PM -
How to restrict the values in seach helps
Dear All,
I am new to the BSP concept.I have a requirement
where in the BSP i need to restrict the values of the search help.i.e. 2 values are coming in the help i need to display only 1 value.
can anybody please explain how to do it.
Cheers,
Deepthee Kasal
Edited by: Craig Cmehil on Sep 2, 2008 8:21 AMHi,
I assume that you read values for the search help with function 'F4IF_FIELD_VALUE_REQUEST' and in a later step you display values with <htmlb:tableview>. If that is true and the function is delivering too many records as you mention, you could then restrict the output table of values like this:
TABLES mara.
DATA: mytable TYPE TABLE OF ddshretval WITH HEADER LINE.
DATA l_repid TYPE syrepid.
PARAMETERS p_mtart LIKE mara-mtart.
AT SELECTION-SCREEN ON VALUE-REQUEST
FOR p_mtart.
l_repid = sy-repid.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'MARA'
fieldname = 'MTART'
dynpprog = l_repid
callback_program = l_repid
callback_form = 'F4CALLBACK'
TABLES
return_tab = mytable
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5.
START-OF-SELECTION.
blah, blah, blah
* Form F4_form
* Exclude all material types that start with F & H
FORM f4callback
TABLES record_tab STRUCTURE seahlpres
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
DATA: aux_struc TYPE ddshselopt.
MOVE: 'H_T134' to aux_struc-shlpname,
'MTART' TO aux_struc-shlpfield,
'E' TO aux_struc-sign,
'CP' TO aux_struc-option,
'F*' TO aux_struc-low.
append aux_struc to SHLP-SELOPT.
MOVE: 'H_T134' to aux_struc-shlpname,
'MTART' TO aux_struc-shlpfield,
'E' TO aux_struc-sign,
'CP' TO aux_struc-option,
'H*' TO aux_struc-low.
append aux_struc to SHLP-SELOPT.
ENDFORM. "F4_form
Mark points if helpful -
How to populate null values as blank in cell
Hi All,
I have an query i have data like blow
qtr
data
1Q-4Q 2009
4,069,379
1Q-4Q 2010
3,979,490
and i want result like below
1Q-4Q 2009
4,069,379
% Change
-2%
1Q-4Q 2010
3,979,490
for % age change i have applied the previous function
formula is (data/previous(data)) -1*100
but is coming like below
% Change
0%
1Q-4Q 2009
4,069,379
% Change
-2%
1Q-4Q 2010
3,979,490
for the 1 column i am getting 0% age due to i applied previous function but i don't have data for 2008
so i am trying not to populate 0% for the % change before 2009
I have checked with null value
If (IsNull(Previous [data])) then "" else ([data]/previous[data]) -1*100
so it is populating blanck value but i can not formatting the values as %age
please suggest
how can i solve this issue please advice
Thanks in advance
RanjeetChange your formula to be:
=If(IsNull(Previous([data])=0 then ([data]/previous([data])-1 * 100
You can ignore the else part and it will leave the null cell as blank and you can still use your number format. -
How to restrict the values during extraction?
Hi everyone,
I want to restrict the values while extracting data from R/3 Datasource... For example:
I have MATNR, which have around 10 materials out of which i want to extract the data for only 5 materials. My Selection screen is disabled, i mean we cant do anything in selection screen... Can anyone plz tell me how to go abt this issue?
Advance thanks,
chintu..Hi KJ,
Am saying that its not available in Selection screen in R/3 side.. am not talking abt the BW side.. Then also i want to extract the data.. How to do this? this is an interview question asked by HP today morning..
Regards,
Chintu. -
Hello Experts,
I got a basic question to ask. Iu2019ve created a custom table and then attached a check table with one of its field. This field is not PK. Now through help u2018F4u2019 I can see the values coming from check table. But other then those values let say if I enter any data (any garbage) it is getting stored in the table. Can somebody tell me how to restrict this field so that user must have to select the values from the list not on his own?
ThanksDo a validation of the input that the user gives.
Select single xxx from Ztable
where xxx ( eq selection screen parameter )
( IN select options )
If Sy-subrc eq 0.
Through an error message
Message e000 'Pls enter a correct value for the XXX '
Endif.
The whole code should be under AT selection screen event.
i guess you will agree with this solution.
Thanks,
Karthik -
Oracle Discoverer: How to handle null value
In Oracle Discoverer, I pull data from a folder. When I hit Null value for a column, I want to replace it with data from another folders column. Something like the functionality of "nvl" of a SQL statement. How can I do the following query in Discoveror :
example: select nvl(table1.column1,table2.column2) from table1, table2
where table1.column7 = table2.column7.Hi,
You first need to include any column from folder table2 into your report so that Discoverer will do the join. (This assumes the join between table1 and table2 is set up in your EUL). Then you can create a calculation containing nvl(table1.column1,table2.column2) . You can then remove the column from folder table2 and the join will stay in your workbook.
Hope that helps,
Rod West -
Oracle Discoveror: How to handle null value
In Oracle Discoveror, I pull data from a folder. When I hit Null value for a column, I want to replace it with data from another folders column. Something like the functionality of "nvl" of a SQL statement. How can I do the following query in Discoveror :
example: select nvl(table1.column1,table2.column2) from table1, table2
where table1.column7 = table2.column7.Hi,
You first need to include any column from folder table2 into your report so that Discoverer will do the join. (This assumes the join between table1 and table2 is set up in your EUL). Then you can create a calculation containing nvl(table1.column1,table2.column2) . You can then remove the column from folder table2 and the join will stay in your workbook.
Hope that helps,
Rod West
Maybe you are looking for
-
How can I use two different Yahoo mail accounts ion Firefox?
I have two Yahoo mail IDs. How can I use them both simultaneously on Firefox? Right now I am running Firefox and Internet Explorer so I can have the two accounts open at the same time. I would prefer to have both accounts running on Firefox, but I ca
-
How I got Voice Tags to work on my E65
If contact has a single telephone number the voice tag is automatically created for that number. If the contact has multiple telephone numbers a voice tag is created but not easy to find!! If you open a contact and scroll down the details on the righ
-
GeoRaster - problem w/ setModelSRID
Hello All, I've loaded a GeoRaster from a geotiff and am trying to set the SRID on it but getting an error: ORA-13418: null or invalid parameter(s) for set functions Is this because I loaded w/o specifying a world file? I would have thought the world
-
PS CS6 extended on osx mountain lion?
what are the problems to be aware of when installing p.s. cs6 on mac osx mountain lion?
-
Mac book pro wont load.
Hi, I've been having this problem for the past few days with my mac it started to run slow and then freezing at times. This is kind of an on going problem when I have to shut it down, it takes ages to load up to 2 hours. This is with me turning it of