How to find out that a record is empty or null
hi
how can i find out that a record is empty or null.
in other languages when a object or record is not initialized it will be null.
after initialization how can i find out its values are null. so far i tried this
declare
v_r_emp emp%rowtype := null;
BEGIN
if (v_r_emp is null) then
dbms_output.put_line('record is not initialized');
end if;
END;
it seems in plsql we can assign null but cannot compare it with null clause why? if we are able of assign null we must should about to compare it with null too.
also how record can be made empty. how can we find out that a record variable is empty
please help me to understand the concept
thanks
You need to check every element in the record.
Similar Messages
-
How to find out that particular structure is used in which tables
Hello Friends,
Most of the times through techinal information we come to know the table name for a particular field.And in se16 when i give that table name than system says its structure and not the table.So in se11 when i give that structure name in database table field, its shows all the field in that structure, but not the data stored in that field.
So my question is how to find out that particular structure is used in which tables,so that i can view data stored in that structure?
Thanking you guys in advance.
Regards,
JitendraDear,
When you click on the technical information it will give the structure name and field, double click on the structure and it will take you the display structure screen, there you will have the where-used List icon (Ctrl + Shift + F3) at the top , click on that and it will show the options, select Database tables and execute, it will give the tables related to the structure, you can explore the list of tables and find where your required field is stored in them.
Thanks & Regards,
Vijaya Bhaskar A -
Hi ,
How to find out the latest Record in per_all_people_f and per_all_assignments_f
Requirement : Need to find out the latest record in per_all_people_f and per_all_assignments_f to update the attribute column with pre defined value . Its not possible to track only with person_id / assignment_id and effective end date
SELECT pp_id
FROM (SELECT app.person_id pp_id,
asf.*
FROM apps.per_all_people_f app,
apps.per_all_assignments_f asf
WHERE --app.person_id=123568 and
asf.person_id = app.person_id AND
app.effective_end_date = to_date('31-dec-4712') AND
asf.effective_end_date = to_date('31-dec-4712')
GROUP BY app.person_id)
HAVING COUNT(pp_id) > 1
GROUP BY pp_id
This query also returns more than 1 value for person_id .
It would be great if you put comment on this .. Thanks in advance ,
AryaI am getting more records with asf.primary_flag='Y' . If you give ur mail id , i will send the sample data
ASSIGNMENT_ID EFFECTIVE_START_DATE EFFECTIVE_END_DATE BUSINESS_GROUP_ID RECRUITER_ID GRADE_ID POSITION_ID JOB_ID ASSIGNMENT_STATUS_TYPE_ID PAYROLL_ID LOCATION_ID PERSON_REFERRED_BY_ID SUPERVISOR_ID SPECIAL_CEILING_STEP_ID PERSON_ID RECRUITMENT_ACTIVITY_ID SOURCE_ORGANIZATION_ID ORGANIZATION_ID PEOPLE_GROUP_ID SOFT_CODING_KEYFLEX_ID VACANCY_ID PAY_BASIS_ID ASSIGNMENT_SEQUENCE ASSIGNMENT_TYPE PRIMARY_FLAG APPLICATION_ID ASSIGNMENT_NUMBER CHANGE_REASON COMMENT_ID DATE_PROBATION_END DEFAULT_CODE_COMB_ID EMPLOYMENT_CATEGORY FREQUENCY INTERNAL_ADDRESS_LINE MANAGER_FLAG NORMAL_HOURS PERF_REVIEW_PERIOD PERF_REVIEW_PERIOD_FREQUENCY PERIOD_OF_SERVICE_ID PROBATION_PERIOD PROBATION_UNIT SAL_REVIEW_PERIOD SAL_REVIEW_PERIOD_FREQUENCY SET_OF_BOOKS_ID SOURCE_TYPE TIME_NORMAL_FINISH TIME_NORMAL_START BARGAINING_UNIT_CODE LABOUR_UNION_MEMBER_FLAG HOURLY_SALARIED_CODE REQUEST_ID PROGRAM_APPLICATION_ID PROGRAM_ID PROGRAM_UPDATE_DATE ASS_ATTRIBUTE_CATEGORY ASS_ATTRIBUTE1 ASS_ATTRIBUTE2 ASS_ATTRIBUTE3 ASS_ATTRIBUTE4 ASS_ATTRIBUTE5 ASS_ATTRIBUTE6 ASS_ATTRIBUTE7 ASS_ATTRIBUTE8 ASS_ATTRIBUTE9 ASS_ATTRIBUTE10 ASS_ATTRIBUTE11 ASS_ATTRIBUTE12 ASS_ATTRIBUTE13 ASS_ATTRIBUTE14 ASS_ATTRIBUTE15 ASS_ATTRIBUTE16 ASS_ATTRIBUTE17 ASS_ATTRIBUTE18 ASS_ATTRIBUTE19 ASS_ATTRIBUTE20 ASS_ATTRIBUTE21 ASS_ATTRIBUTE22 ASS_ATTRIBUTE23 ASS_ATTRIBUTE24 ASS_ATTRIBUTE25 ASS_ATTRIBUTE26 ASS_ATTRIBUTE27 ASS_ATTRIBUTE28 ASS_ATTRIBUTE29 ASS_ATTRIBUTE30 LAST_UPDATE_DATE LAST_UPDATED_BY LAST_UPDATE_LOGIN CREATED_BY CREATION_DATE TITLE OBJECT_VERSION_NUMBER
931510 7-Nov-08 31-Dec-12 122 (null) (null) (null) 3978 1 (null) 14402 (null) 220150 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 2 E Y (null) 100035417-2 (null) (null) (null) 45948739 (null) (null) (null) (null) (null) (null) (null) 868007 (null) (null) (null) (null) 449 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 26-Aug-08 26-Aug-08 122 (null) (null) (null) 3980 3 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
916076 26-Aug-08 31-Dec-12 122 (null) (null) (null) 3980 1 4 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 B Y (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 25-Feb-08 25-Aug-08 122 (null) (null) (null) 3980 1 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) -
How to find out, that sales invoice is paid
Hi,
does anybody some hint, how to easy find out, that sales invoice is paid already (2007). I need to do this check for list of invoices (thousands) - so Im looking for some query.
I know, how to find it through oinvoice object, from bank payment, internal reconciliation, ..., but I think that there must be some internal view or SP which is in use for SAP for receiving this information (calculating variables). I dont need informations about payment dates, Im looking just for info, that invocie is paid already. Maybe some record in JE linked to invoice?
thanksWe need to get the Invoice Paid Amount. Our customer use Bill of exchange frequently , so we are looking into OBOE for payment info, because Invoice Paid Amount (OINV.PaidToDate) does not reflect current payment info when there are Bill of Exchanges.
Are we wrong?
Does anybody know an easy way gather this information?
For more detailed info about the way we are doing this see Field BoeType - OBOE -
How to find out that the database table is empty
Hello all,
How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * ) looks to me as not the best way.
Kind regards
Radim Benek
Moderator message: FAQ, please search for previous discussions of similar topics.
example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
Moderator message: Please Read before Posting in the Performance and Tuning Forum
Edited by: Thomas Zloch on Aug 11, 2011 5:06 PMHi,
One approach is:
check lt_mytable is initial.
This will be true if there are no lines.
Another:
describe table lt_mytable lines lv_count
if lv_count = 0.
"Empty
Thanks.
Anitha a -
How to find out that the card in a given NIDAQ slot is a DSA card?
In the description of DAQ_Op(...) function in the traditional NIDAQ function reference one reads:
"buffer" is an integer array. "buffer" has a length equal to or greater than count.
When DAQ_Op returns with an error number equal to zero, buffer contains the acquired data.
For DSA devices, buffer should be an array of i32. These devices return the data
in a 32-bit format in which the data bits are in the most significant bits.
Question 1: How to find out programmatically that the card in a given NIDAQ slot is a DSA card?
Question 2: How many MSB carry the information? How do I find out bit-ness of the card (programmatically)?
The obvious solution to create and keep updated the table/fil
e with the data for all existing DAQ cards is unacceptable. This could be maintained by NI itself, but not by 3rd party developpers, like me.Bryan, thanks for your answer.
I hope that my NIDAQ-wish-list will not only reach NIDAQ developers but some of it will be implemented in the next versions of NIDAQ.
I should say that I am quite pessimistic because I was sending similar requests via German support few YEARS ago and I am still even do not know whether they reached developers or not. Even if yes, the present NIDAQ still does not have these functions and this means that NI takes 2..4 years to react on the feedback.
At the moment I have no choice, and I do maintain self-made info file (nidaq.ini). But beleive me, it is a pain in the @ss to scan help files and manuals of the DAQ cards which I've never seen just to include info in nidaq.ini. And when my customers of a brand new NIDAQ ca
rd call and wonder why the card is not reacognized by my application correctly, I tell to them that this is basically fault of NI. Because NI provides no way to get card info. I am doing my best analysing error codes, but it does not help in all cases. Sorry, guys, but you left no choice to me.
As for NIDAQmx, this is not a solution either. I am not going to rewrite my existing and working rather big application. It could be a good suggestion for those who just starts developing a new applications from the scratch, but not for those who almost finished it. Even for those who begin now, NIDAQmx may not be a good choice, because, as I saw in this forum, it does not support all cards that are supported by NIDAQ. It also looks like that instead of improoving, developing and fixing NIDAQ, NI dicided to change API completely. It is not yet clear to me whether NIDAQmx is supposed to substitute NIDAQ in the future or not. If not, I would concentrate on improoving trad. NIDAQ. If yes, it wou
ld be a disaster for many developers. :-(
Anyway, I hope that the interaction between NIDAQ team and application developpers will be improoved, and we will see some results of this feedback. -
How to find out that recovery is sufficient
HEllo all,
Lets say I am running recovery of database (no RMAN) and I apply few redologs. How can I find out that recovery done on datafiles so far is sufficient and datafiles are in consistent state so I can open DB w/o problems? I mean , I know that I would get error in case I try to open DB and datafiles need more recovery, but I would like to see some kind of proof on my screen that recovery is not finished (probably some v$ view or something ).
Or it does not have to be an option that I am running recovery of DB, it can be that my DB is running and there is some failure which will require media recovery . Where can I see expect logs that I need to recover because of this or that does not match (I guess in some v$view for datafiles will be mismatch of some numbers comparing to v$controlfile or v$database view.....or??? )
I hope you guys got it what I mean :)))if not just let me know I'll try to explain it better
thxYou claim to have done an Offline Backup. And yet, Oracle asked for Recovery. Then there might be something wrong with your backup.
Here I do a normal shutdown of the database and when I MOUNT, I see that the files are NOT Fuzzy :
ora10204>sqlplus '/ as sysdba'
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 27 23:24:40 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 880803840 bytes
Fixed Size 2087992 bytes
Variable Size 197133256 bytes
Database Buffers 675282944 bytes
Redo Buffers 6299648 bytes
Database mounted.
Database opened.
SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
1 YES 2063978 27-AUG 23:24:48
2 YES 2063978 27-AUG 23:24:48
3 YES 2063978 27-AUG 23:24:48
4 YES 2063978 27-AUG 23:24:48
5 YES 2063978 27-AUG 23:24:48
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 880803840 bytes
Fixed Size 2087992 bytes
Variable Size 197133256 bytes
Database Buffers 675282944 bytes
Redo Buffers 6299648 bytes
Database mounted.
SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
1 NO 2064344 27-AUG 23:25:36
2 NO 2064344 27-AUG 23:25:36
3 NO 2064344 27-AUG 23:25:36
4 NO 2064344 27-AUG 23:25:36
5 NO 2064344 27-AUG 23:25:36
SQL> alter database open;
Database altered.
SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
1 YES 2064345 27-AUG 23:28:49
2 YES 2064345 27-AUG 23:28:49
3 YES 2064345 27-AUG 23:28:49
4 YES 2064345 27-AUG 23:28:49
5 YES 2064345 27-AUG 23:28:49
SQL> The MOUNT after a NORMAL Shutdown that would have been used for an Offline Backup, shows "NO" for Fuzziness of datafiles.
Hemant K Chitale
http://hemantoracledba.blogspot.com -
JCA: how to find out that import parameter is structure?
Hello,
I'm using JCA to obtain import parameter of some function (com.sapportals.connector.metadata.functions.IParameter). Now, I'd like to switch program flow depend on kind of this import parameter (scalar, structure, table). Especially, I'm interested in finding out that import parameter is structure. In API I was only locate getStructure() method in IParameter. I tried to compare with null value, but it didn't solve my problem.
Best Regards,
Josef MotlI have come along this post so many times that now that I have solved it myself I will have to reply to it, even after 5 years.
MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
//Now we want to read the output.
//If we deal with a structure, we get an IRecord Object
IRecord addressStructure = (IRecord) output.get("ADDRESS");
//Otherwise we would get an IRecordSet Object (Field)
I hope it will help all those searching as well.
BR
Sigi -
How to find out no. of records or repeating frame in a page
Hi All,
How do I find out how many records have been displayed on a particular page?
I'm having a repeating frame, and I want to know print another item, on a condition that if the records printed on the page are less than 5 then it should be printed otherwise not.
The item to be printed is not a part of the repeating frame whoz occurences have to be counted.
Regards
NaveenHi Naveen
You can create a Packaged varaible that acts as
global variable , and you can increment this
variable in the repeating frames Format Trigger .
Based on the value of the variable , you can
return true or false for the item that you want to
display . -
How to find out the missing records
Dear all,
I feel that there is some Inconsistent records between R/3 and the extracted records BI for the data source 2LIS_03_BF. some of the records may not be updated through delta.. Is this possible? as we have created Zkey figures to capture the diffrent unit of measure's quantity from the table MSEGO2 and updated to IC_c03 cube.
Can any one tell me how to go about the missed records..where to find them.. and how to extract them.
Poits will be assigned
Regards
venuhi,
inventory scenario is difficult to handle as this have non cumulative key figures which can be viewed at the repors.
extreme care is required while compression and intila loads and their compression.
run the report or ask the user to run the report and sort out the missing records.
chk out the document and chk if the procedure done by you is correct.
inventory management
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
Ramesh -
How to find out that position is a chief position or not?
Hi All,
Kindly let me know to find out the position is a chief position or not?
I have to display various positions with Y if it is a manager and N if it is not.
Thanks!
SachinHi
1. tcode PPOME
2. select the position by double click
in the overview position, chief position will be differentiate by symbol a person with red clothes and wearing a hat
in the tab "Basic Data", chief position can be defined if the "Head of own organizational unit" is being ticked/flagged.
Head of Organizational Unit
If you flag this field, the position becomes the chief position of the organizational unit that it belongs to. When this position is displayed again, it is automatically flagged and is automatically the chief position.
Technically, a relationship (A/B 012) is created between the organizational unit and the position.
Field Name : OMLEADER
Data Element: HROMLEADER
hope this info helps you.
best regards,
dhenny muliawaty (pei pei) -
How to find out that an art item has spot color using script?
Hi all,
I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.
Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?
Thanx in advance...Thanx for the reply carlos....
But I am not able to use "icolor.typename". There is nothing like "typename" showing in the properties.
I am using it like this:
var app:com.adobe.illustrator.Application = Illustrator.app;
var pathArt:PathItem;
var allPaths:PathItems = doc.pathItems;
if ( app.documents.length > 0 && doc.pathItems.length > 0)
var colorValue:com.adobe.illustrator.Color;
//Fill color to the selected object.
for (var i:int = 0; i < doc.pathItems.length ; ++i)
pathArt = allPaths.index(i);
if(pathArt.selected)
colorValue = pathArt.fillColor;
trace(colorValue.typename); //But colorValue doesn't show any property like "typename".
Do am i missing some thing?
Thanks... -
How to find out that one module is multi org or not?
Hi Friends,
Can any one tell me that how can we findout that one module is multi org or not?
Thanks in Advance.
Shravan Kumar Kota.ORG_ID tends to be for Multiple Operating Units (ie Multi-Org)
ORGANIZATION_ID is not used for multiple operating units as far as I know - I am used to it being HR, Expenditure or Inventory organization related. -
How to find out that sequence has finished loading?
Hello,
i have a custom C#-OPUI to load and execute testplans.
I do this using these funtions:
1. ApplicationManager.OpenSequencFile(filename)
2. ???
3.Command TestStart = axSequenceFileViewMgr.GetCommand(.......)
TestStart.Execute(true)
The question is now: How do i know that the OpenSequenceFile has finished doing everything?
I need to know that is finished before i run the execute-command.
Is there a specail final-event that i can check?
Thanks for help
Solved!
Go to Solution.Hi jigg,
Thanks for the info.
In my sequence file, besides the main sequence, I also enabled "SequenceFileLoad" callback. In "SequenceFileLoad" sequence, I added some instruments initialization tests. The goal is to initialize the instruments only once when the sequence file is loaded. Therefore I need to know when the "SequenceFileLoad" is finished or when the sequence file has finished loading.
My first idea is to use the event "axApplicationMgr_SequenceFileOpened", but I found that I will catch this event before the "SequenceFileLoad" execution finished.
And then, I also found that together with the execution of sequence "SequenceFileLoad", there are 2 events in my C# code: "axApplicationMgr_StartExecution" and "axApplicationMgr_EndExecution" triggered. So I was thinking may be I can use "axApplicationMgr_EndExecution" to determine if the sequence file has finished loading. But the problem is every sequence execution will trigger these 2 events. The main sequence will also trigger these 2 events. So I needs to know the name/ID of the current executing sequence.
So Is there a way to read current executing sequence name?
Thanks and regards,
0049 -
How to find out top 10 records from the R/3 using Java code (WD Program)
Hi Experts,
I have used Java Web Dynpro program to fetch records from the backend. Following code helps me and fetches record. As per the customer reqirement, we have to fetch only top 10 records (Actual Cost) from the backend. So I have to modify the Java code. How I can do so? Please help.
wdContext.nodeGraphData().invalidate();
IPublicCostcnt.IGraphDataElement categoryElement;
for (int i = 0; i < wdContext.nodeItab_Final1().size(); i++) {
categoryElement = wdContext.createGraphDataElement();
categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
wdContext.nodeGraphData().addElement(categoryElement);
Regards,
GaryDear SDN Users,
This is how I resolved the issue.
1) Requested ABAPer to provide me sorted data. The data has been sorted in descending order of actual_cost.
2) After that I used following code. This resolved the issue.
if (wdContext.nodeItab_Final1().size()>10){
IPublicCostcnt.IGraphDataElement categoryElement;
for (int i = 0; i < 10; i++) {
categoryElement = wdContext.createGraphDataElement();
categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
wdContext.nodeGraphData().addElement(categoryElement);
if (wdContext.nodeItab_Final1().size()<=10){
if (wdContext.nodeItab_Final1().size()>0){
IPublicCostcnt.IGraphDataElement categoryElement;
for (int i = 0; i < wdContext.nodeItab_Final1().size(); i++) {
categoryElement = wdContext.createGraphDataElement();
categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
wdContext.nodeGraphData().addElement(categoryElement);
Regards,
Gary
Maybe you are looking for
-
Design mode disabled please help
Hi all Got to the office this morning and when I fired up Flash builder for PHP my desighn mode was disabled. I cant get this to work at all. Any idea what might be going on here? My builder mode is set to flah not Zend... this makes no sence please
-
Scheduling Jar files to execute
Hey Everyone! Help Please! Im needing to schedule one of my jar files to execute late at night,when no one is around! The jar file works perfectly, but when scheduled does not run,I have tried using various schedulers and none of them execute the jar
-
Help with how to setup property list correctly
I am developing an iPhone application and I need a database to store data. Since it's small amount of data I'll go for Property List. But I have zero experience with it. I was hoping you could help me set it up. It's an app based on karate techniques
-
HTC One Wi-Fi and Tethering blocked?
So I thought there was a lawsuit settling that they couldn't block third party apps from providing these functions, but everything I've tried brings a processing pop-up that ends with saying I have to subscribe to Mobile Hotspot or Broadband Connect.
-
Installing SAP ECC 6.0 in Windows Vista
Hi experts, Can anyone say me if i can install SAP ECC 6 in Windows Vista other than Windows 2003/2008. Thanks