How to find out the null values in table
hi experts,
my version is oracledb10g:
i h'd simple doubts.
for eg:
create table ex1( e varchar2(20));
insert into ex1 (null).
insert into ex1(e)
count will be: 2
i can easily found out the value 'e'.
so my question is:
how can i found out the null values in the table and i want to delete the null values from the table.
ADF 7 wrote:
hi experts,
my version is oracledb10g:
i h'd simple doubts.
for eg:
create table ex1( e varchar2(20));
insert into ex1 (null).
insert into ex1(e)
count will be: 2That depends what you count. If you issue count(*) you are asking Oracle "how many rows are there". If you issue a count(<column_name>) you are asking Oracle "how many not null values of <column_name> are there".
ADF 7 wrote:
i can easily found out the value 'e'.
so my question is:
how can i found out the null values in the table and i want to delete the null values from the table.
delete from <table_name>
where <column_name> is null;Ideally you'd just place a NOT NULL constraint on the column in question, thereby prohibiting NULL values from entering into the system (assuming your business requirement is that the column MUST always have a value).
Similar Messages
-
How to find out the selected column in Table Control
Hi all,
How to find out the selected column in Table Control?
Thanks & Regards,
YJRHi,
Let your table control name in Screen painter be TC1.
READ TABLE TC1-COLS INTO WA_COLS (some wok area)
WITH KEY SELECTED = 'X'.
IF SY-SUBRC = 0.
CLEAR: W_DUMMY, W_COL_NAME.
SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
W_COL_NAME.
endif.
W_COL_NAME gives you the column name.
Hope it helps.
cheers
sharmistha -
How to find out the ASCII Values for Spanish character
Hi,
I had an requirement to store Spanish character and also need to fileter the records based on the Spanish character.
Kindly guide me for below.
To filter the Records which contains spanish characters?
To get the ASCII Values for the particular column?
E.g. we can find out the ASCII value of 'a' by using the syntax select ASCII('a') from dual.
But I want to find the ASCII Values for the particular column value. Ie. name.
E.g., Client name is "Suresh", I want to the ASCII Values for entire name of "Suresh".
Kindly do the needful help / Guidance on this.
Thanks,
OraharTo expand on what I said in my first post, you want to do something along these lines:
with t (thename) as
select 'Suresh' from dual
select thename
, substr(TheName, level, 1)
, ascii(substr(thename, level))
from t
connect by level <= length(thename);The output of the above query is:
THENAM S ASCII(SUBSTR(THENAME,LEVEL))
Suresh S 83
Suresh u 117
Suresh r 114
Suresh e 101
Suresh s 115
Suresh h 104
6 rows selected.Note that the WITH statement is only there to simulate a table for this example. With a table, all you do is get rid of the with and substitute the name "t" for the name of your table (also the name of the column to whatever name the column has in your table).
Lastly, I suggest you post your question along with, an example table and the output you'd like to get in the PL/SQL forum. There are people there that will give you all kinds of great ways of solving that problem.
HTH,
John. -
How to find out the name of a table?
Hi
How can I find out the name of a table which doesn't have a record history?
Regards
RahmanNo direct way to know the tables. What you will find on the ABout this page link are the View Object (similar to record sets), Entity objects, controller and Application module. Generally EO is based on a table or the VO can be based on the query which you can find the corresponding xml file. But a button action might be calling a method in AM or CO which in turn call some wrapper method to interact with database. So nothing straight forward. You will have to analyze the all page related code objects.
They are specific to OA framework and if you are not aware about them, better go through the initial chapters of OAF dev guide.
--Shiv -
Function module to find out the changed values from tables
What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?
Hi Harish,
Please elaborate your requirement...
Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
Try Below FMs as well..
For Header Level...
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = cdhdr-utime
username = cdhdr-username
TABLES
i_cdhdr = icdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
For Item Level
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = icdhdr-changenr
IMPORTING
header = cdhdr
TABLES
editpos = icdshw
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
How to find out the aligning Data dictionary table for a structure.
Hi
As the table controls are associated with strucures, the data input goes to the data dictionary table aligned to that structure. Is there any way we can find out the table related to that particular structure ?
Thanks,
DhareppaHi,
The structure and its fields may be associated with multiple database tables.
You can try by where-used list of the structure/field and then you can look and determine the table by hit and try method.
Also as suggested above you can try get the SQL trace and then ypu can look for table associated behind the structure/fields I believe this is the best way to find the DB table.
Thanks,
Ravi -
How to find out the NULL columns in the table?
Hi,
Please provide the query to find the null columns in the table. Here, all rows in the table have same column as null. It won't change.
Table
c1 c2 c3 c4
X C 10
T D 20
I wanna find out as C2 is the nullable column.
Thanks in advance !!
Regards,
Vissu....Below code might be solution for finding NULL valued in columns in a table and if it is solution .kindly give me points for the same.
declare
cursor col_cur is
select column_name
from user_tab_cols -- all_tables can also be used in case the table is present in own schema
where table_name = 'TABLE_NAME'; --provide the TABLE_NAME
stmt varchar2(1000):= '';
v_count number;
count_null number;
begin
execute immediate 'select count(*) from TABLE_NAME' into v_count; --provide the TABLE_NAME
for rec in col_cur loop
execute immediate 'select count(*) from TABLE_NAME' where --provide the TABLE_NAME
'||rec.column_name||' IS NULL' into count_null;
if count_null = v_count then
stmt :=stmt|| rec.column_name ||chr(13);
end if;
end loop;
dbms_output.put_line(stmt);
end ; -
How to find out the maximum value
Dear all,
i have one query where in i have to calculate Excise Duty based on the maximum sales qantity of all materials with the corresponding sales value... i mean i wil get the maximum value of a individual material no matter how many sales has done.i wil pick up the maximum sales qty and the correspondig sales value....
This im able to solve by taking the condition as TOP 1..
Now my question is if the same material qty is sold with differnt value then i have to pick up the Max value and as usual the sales qty..... plz help me out
Material Sales Qty sales value
3000 10 kl 1000INR
3200 15 kl 1100 INR
4000 20 kl 1000INR
in this case my query is picking up the max qty of 20 and the value 1000 INR as i had taken TOP 1 on Sales qty ....
<b>
But In the below example for the same material i have to pick up the 3 rd row where the sales value is maximum and the corresponding sales qty 10 kl</b>
EX Material Sales Qty sales value
3000 10 kl 1000INR
3000 10 kl 1100 INR
3000 10 kl 1500INRHi,
U can use the restrict option fo the Material characteristics for sales value just drag and drop on columns >right click Properties> U have the option Calculated Result as Summation, Maximum, Minimum etc..just choose Maximum for ur case. -
How to find out the maximum value of one array
hi all..
I have one array that consists of some elements
so I want the maximum value of the list ...
if anyone knows this please help me..
thanks..>
If your array is already sorted, you can do a binary
search.
I think there are already methods to do that in
java.util.Arrays. (?)
If not, it's not hard to find an example on the net.
A binary search will be more efficient.1. If your array is already sorted, you do not need a binary search. Either check the value of arr[0] or arr[arr.length - 1] depending on the direction of sorting.
2. If your array is not sorted, try this:
int maxValue = arr[0];
for(int index = 1; index < arr.length; index++)
if(arr[index] > maxValue)
maxValue = arr[index];
} -
How to find out the maximum value in a Query within single material
Dear all,
Im creating a Query on 0SD_C03 where i have to disply Maximum value of a material which is having more that one transaction..
EX:
MATERIAL BILLED VALUE
x with BILLED VALUE 100
x with BILLED VALUE120
y with BILLED VALUE 50
y with BILLED VALUE 80
z with BILLED VALUE 50
z with BILLED VALUE 60
in a analyser i have to display X with billed value 120 that is max in X material and
Y with billed value 80 that is max in Y material and
Z with billed value 60 that is max in Z material
In a query all the values are summing up. I.e for X its 220 and Y its 130 and Z its110 but we dont want to get total sum value we want individual values and the maximim of those values..........
We are using BW 7.0 version
Can any one help me out in this
Thxs in Advance
VenuVenu,
In your query try creating a formula, with the value of each record as the key figure in the formula.
In the aggregation tab select maximum in the exception aggregation dropdown and then select material as the reference characteristic
then when you include material in the rows it will only display the maximum value.
cheers
mark -
How to find out the maximum value in a Query
Dear all,
Im creating a Query on 0SD_C03 where i have to disply Maximum value of a material..
EX:
MATERIAL BILLED VALUE
x 1000
y 3000
z 2500
in a analyser i have to display only Y and 3000
We are using BW 7.0 version
Can any one help me out in this
Thxs in Advance
VenuHi Venu,
You may wish to refer the link below:
http://help.sap.com/saphelp_nw04/helpdata/en/17/82853c2dc5c505e10000000a11405a/content.htm
Assign points if this is helpful.
Regards,
Anil -
How to find out the invoice value from a sales order
Hi All,
Please can any one hlpe to solve the beloq query.
Is there any report in SAP , which give you the following.
Sales order , Total cost incurred , Total revenue recoganised , Total Invoiced , Total collected .
Thanks ,
RajeshDear Waman,
Thanks a lot for your replay ..
But i don't have much knowldge about KE 30 report , is there any study meterial available online to configure this \ or study this report . -
How to find out the amount assigned to WBS element
Hello Friends,
Will you please inform how to find out the (amount/value/budget) assigned
to WBS element
Which Table it is stored in?
Thanks in Advance
Bset Regards
DiwakarHi Diwakarnd,
You can use any of the following reports to get the information you require.
1. <b>S_ALR_87013557</b> - Budget/Actual/Variance
2. <b>S_ALR_87013558</b> - Budget/Actual/Commitment/Rem Plan/Assigned
3. <b>S_ALR_87013559</b> - Budget/Distributed/Plan/Distributed
Some of these reports use a complex selection criteria from various tables which has been grouped together, logically by SAP. The Logical Database table name for PS is <b>PSJ</b>.
Execute transaction code <b>SE36</b> -> <b>PSJ</b> -> (Subobject : Radio button <b>Structure)</b> -> Click on <b>Display</b>.
You would see all the underlining tables used.
I hope the above helps.
Do not forget to award the points please.
Regards,
Jacob -
How to find out the tables that will be affected using a transaction
Hi,
How to find out the list of database tables that will be affected when we use a standard transaction(ex. VA01, MM01..)...?(like When we create a salesorder, which tables and which fields will be affected..?)
Is there any transaction or a simple way to find out the solution?
Thanks,
Pradeep.Hi,
Give transaction code and in menu(system- status), double click onthe Program name.
Check in TOP INCLUDE - you will find all the tables related to that transaction.
Thanks,
Anitha -
How to find out the structure stored field value in a standard program
Hi Gurus,
Please suggest me how to find out the structure field stores the value in which table.
Exanple : i have a strutured field in T.code cj31 is BPDY-WERT1 and it is stotring value 10,000,000.00. know i need to find out in which table this value is storing .
Please suggest me its urgent.
Thanks in Adavance!!!
Points will be rewarded.......
Regards,
Kranthihi,
Go to transaction ST05,Click activate trace with filter,Give the transactio name as cj31,Go to the transaction and navigate to the place where the particular field is present, then again go to st05 ,Deactivate the trace and display the trace.
Now u can see how the data is fetched ,U can even go to display mode of the same transaction cj33
Thanks
San
Maybe you are looking for
-
Can I upgrade my black macbook graphic card to the aluminium mac's GEForce 9400M? Currently using GMA X3100.
-
Using Dimension Formulas to sum data based on different criteria
Hi all, I am trying to use a u201CDimension Formulau201D to perform the following calculation: We have an account dimension which has 2 important properties: 1. CRITERIUMTYPE: This property can have 3 different values: u201CWERKu201D, u201CINVu20
-
Adding a background video clip covers my template.
Is there a way to have a background video playing behind the framesFilmstripCover template? Thanks!
-
Identify USAGE TYPE that has been installed in the system
Hi All, I have a newly upgraded BI system. I need to check what are all the USAGE types that has been installed in the system. How to verify the same (without asking the basis person). Is there any system parameter or transaction which would give the
-
Then general there is now software update showing where might i find it?
I have an Ipad 2 and it has version 4.3.5 on it at the moment I would like to update it to ios5, but in general there is no software update to choose, where might it be please?