How to re-initialize a record in PLSQL
Hi All,
I am trying to re-initialize a RECORD type data strcuture every time a methodid called.
But I am not sure how to do this. The following program shows what I intend to do, but the package body does not compile. Any suggestions are appreciated. I dont want to create objects to get around this issue.
Thanks for any help
Vissu
create or replace package testpkg is
type Definition is record
something varchar2(30)
function startit return number;
lexicon Definition;
end;
create or replace package body testpkg is
function startit return number
is
lexicon := Definition();
lexicon.something := 'xyz';
return 1;
end;
end;
/
You r missing BEGIN key word.And initialistion syntax is wrong
create or replace package body testpkg is
function startit return number
is
begin
lexicon := null;
lexicon.something := 'xyz';
return 1;
end;
end;
jeneesh
Similar Messages
-
How do I initialize a DVD to prepare for recording data?
Using an S5150t pavilion, LightScribe drive. How do I initialize a DVD to prepare for recording data? The HP Digital Media program only addresses pictures and video.
Bill, here is a guide to using CyberLink DVD Suite 6. This is the program that the Product Specifications page states is on your computer.
Please let us know if this solves your problem or not.
Signature:
HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
HP Photosmart 7520 AIO
++++++++++++++++++
**Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
Intelligence is God given; Wisdom is the sum of our mistakes!
I am not an HP employee. -
How to Delete the condition record in CRM
HI,
Can you please help me how to delete the condition record from condition table in CRM.
Please explain the usage of FM CRMXIF_CONDITION_SEL_DELETE with examples.
I have also read the documention of the function module. How to use this FM for custom defined condition table.
(this is the code given in Documentation)
DATA-OBJECT_REPRESENTATION = 'E'
DATA-SEL_OPT-CT_APPLICATION = 'CRM'
DATA-SEL_OPT-OBJECT_TASK = 'D'
DATA-SEL_OPT-RANGE-FIELDNAME = 'PRODUCT_ID'
DATA-SEL_OPT-RANGE-R_SIGN = 'I' (Including)
DATA-SEL_OPT-RANGE-R_OPTION = 'EQ'
DATA-SEL_OPT-RANGE-R_VALUE_LOW = 'PROD_1'
Thanks
ShankarHi Shankar,
I am using the same CRMXIF_CONDITION_SEL_DELETE function module to delete condition record present in CRM.
But it is giving me below error in the return table of the FM after i run the program. Can you please correct me if I am doing any thing wrong?
Error in lt_return: SMW3 CND_MAST_SEL_DEL_EXT_VALIDATE CND_M_SD
code:
ls_range-fieldname = 'PRODUCT_ID''.
ls_range-R_SIGN = 'I'.
ls_range-R_OPTION = 'EQ'.
ls_range-R_VALUE_LOW = '123456'.
APPEND ls_range TO lt_range.
MOVE lt_range TO ls_entry-SEL_OPT-range.
ls_data-SEL_OPT-object_task = 'D'.
ls_data-SEL_OPT-ct_application = 'CRM'.
ls_data-object_representation = 'E'.
CALL FUNCTION 'CRMXIF_CONDITION_SEL_DELETE'
EXPORTING
DATA = ls_date
IMPORTING
RETURN = lt_return
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
return = lt_ret.
Edited by: Saravanaprasad Nadar on Jul 7, 2010 1:27 AM -
How to refresh/initialize sy-tabix in a loop?????
Dear all,
Please do let me know how to refresh/initialize 'sy-tabix' for every new document in a loop statement.
Thanx in advance.
Alok.Never try to refresh or initialize system variable. It shall always lead to errors in the programs. For this I have an alternative way below.
Please declare a variable for e.g
data: <b>l_count</b> type sy-tabix.
Inside loop you can write the code like this:
say for eg. you need to refresh l_count for every new material.
Loop at itab.
on change of itab-material.
clear : l_count.
endon.
l_count = l_count + 1.
endloop.
Hope this clarifies your issue.
Lakshminarayanan -
How do you initialize audio player on iPhone 5s iOS8?
I am trying to use Scan & Translate and Translate Photo but the error message that says "Unable to initialize audio player" comes up and cannot use those apps.
How do you initialize audio player on iPhone 5s iOS 8?Ddeveloper has not updated their app since July.
THey need to update to be ios 8 compatible.
the popup you are getting is the app failing to work, not a direction for you to follow. -
Portal Master-detail form how to auto assign detail record sequence number
Portal Master-detail form how to auto assign detail record sequence number.Please help me?
You can just read the following section
Can I specify a sequence number generator as the default value for a form column?
Yes. Enter the following in the "default value" field for the column:
#<schema name>.<sequence name>.nextval
where <schema name> is the name of the schema containing the sequence, and <sequence name> is the name of the sequence. The entry is preceded by a "#".
For example, if the schema name is "SCOTT", and the sequence name is "CUSTOMER_SEQ", the default value entry is:
#SCOTT.CUSTOMER_SEQ.NEXTVAL
same way you can do for master - detail form.
for more information on forms please refer the following URL.
http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
hope it helps. -
I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc. But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?
You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
http://www.macupdate.com/app/mac/24481/ntfs-3g
If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.) -
How to find the particular record in 1000's of workflow jobs are running
Hi,
In a data manager -> in workflow tab>IF a record is in CHECK-OUT MODE there are 1000's of jobs are running in that workflow tab. Can anyone tell me how to find that particular record in that workflow jobs.
Can anyone show me the difference in getting a record in 5.5 and 7.1Hello COTI
Unfortunatly, SAP MDM doesn't have good ability for WF search.
All WF clarify by it's status (unlaunched, avialable, Received, complited, error etc.)
For each WF SAP MDM assing unique Job ID and this id will be shown in Job ID field in Data Manager WF Tab.
You can change WF list order by all WF fields like as Job ID, Step, User, Start etc. and try to find your's WF.
You can use Java API - this is one of the best solution for WF management and WF mass upload (for example)
Regards
Kanstantsin Chernichenka -
How to count number of records for a field based on condition?
Hi guys,
I want to know how to find count of records coming from the database for a particular field based on some condition.
I need to use this count to suppress some headers. Because of this i am not able to use running totals. Is there any other way?
Ex scenario:
I have account number and currency fields, those are coming from database. And i need to count the number of accounts whose currency is not Euro.
Thanks in advance,
Vijay.A simple formula can do that:
//Formula begin
if {your account field}<>"Euro" then 1
//Formula end
This formula can be summarized. (by group or report)
Bryan Tsou@Taiwan -
How to display the NULL records by multiple XMLTABLE()
First, let me provide the testing data of INSERT and CREATE TABLE sql:
create table xml_t2 (xml_raw XMLTYPE);insert sql, a bit long.....just copy and paste then run it will be OK!
the system warns: Your message exceeds the maximum length of 30000 characters.
So, I place it on the mediafire shariing space
http://www.mediafire.com/?npmot6lgl86dgliTesting SQL:
SELECT t1.years, t1.months,t1.days,t1.hours,t1.value,t2.value
FROM xml_t2,
XMLTABLE ('$d/cdata/F1' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t1 ,
XMLTABLE ('$d/cdata/F2' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t2The condition for now is....In the xml data, I have deleted the month 'Jan' with <F2>tag which is in 2010.
That mean the output of XMLTABLE t2 will not contain the 'Jan' records but it is still remain in XMLTABLE t1.
The problem is that when I use the above SQL to show the t1.value, it will not display the t1.value in 2010 Jan.....it just skipped 'Jan' and becomes 'Feb'...
what i would prefer to display is something like this:
YEARS MONTHS DAYS HOURS t1_value t2_value
2009 Jan 01 01 8 8
2009 Jan 01 02 8 580
2009 Jan 02 01 580 580
2009 Jan 02 02 580 580
2009 Feb 01 01 440 440
2010 Jan 01 01 627 NULL
2010 Jan 01 02 627 NULL
2010 Jan 02 01 367 NULL
2010 Jan 02 02 367 NULL
2010 Feb 01 01 367 849
2010 Feb 01 02 849 849
..............So...the main problem is how to display back the record in JAN in 2010 in t1 XMLTABLE and assign null to the t2 XMLTABLE since it doen't contains this months record.
THANKS for help!!Hi,
What's your database version?
Are you using binary XML storage? (This is the default in 11.2.0.2)
If not you have to explicitely specify it :
create table xml_t2 (xml_raw XMLTYPE)
xmltype column xml_raw store as securefile binary xml;Along with object-relational, it's the best storage strategy to use in conjunction with XMLIndex.
You should also use a structured XML index instead, it's more appropriate than the unstructured index you're currently using :
create index xml_t2_sxi on xml_t2 (xml_raw)
indextype is xdb.xmlindex
parameters (q'#
XMLTABLE xml_t2_xt '/cdata'
COLUMNS
YEARS INTEGER PATH 'F1/name/year',
MONTHS VARCHAR(3) PATH 'F1/name/month',
DAYS VARCHAR(2) PATH 'F1/name/day',
HOURS VARCHAR(2) PATH 'F1/name/hour',
MINS VARCHAR(2) PATH 'F1/name/minute',
VALUE FLOAT PATH 'F1/name/value',
VALUE2 FLOAT PATH 'F2/name/value'
call dbms_stats.gather_table_stats(user, 'XML_T2');Use the query provided by Stew and check the explain plan, you'll see the difference. -
How can I call multiple records(40) at same time as webservice ?
Hi All
My scenario is some thing like calling SOAP(Webservice) to Rfc(BAPI)
Thing is how can i call multiple records at the same time using the SOAP
adapter i.e i need to make a request to BAPI and in the BAPI response
based on the fields, i need to send to different records....it is Sync call
Can any explain me how to implement this scenario ?
Regards
Kiran lvsHI,
Please see the below link
http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/content.htm
Regards
Chilla.. -
How to update or delete records in a Complex View in Forms?
Hi,
I have a requirement to create a Form by using Complex View. Insertion is possible but updation and deletion is not working properly . I got FRM-40501 Error. I need How to update or delete records in a Complex View in Forms?
Thanks & Regards,
Hari BabuDepending on how complex your view is, forms is not able to determine how to appropiately lock a record, when you try to update or delete a record.
One approach to using complex views in forms:
1. Set the Key-mode of the block to "Non-Updateable"
2. Mark the column which can be used to build the WHERE-condition to uniquely identify a record with "Primary Key" = "Yes"
3. For doing INSERT, UPDATE and DELETE, create an INSTEAD-OF-trigger on the view.
4. Create your own ON-LOCK-trigger in forms which does the locking of the records to update. -
How to restrict the last record and not moving to next reocrd
1) how to restrict the last record and not moving to next reocrd.
2) Also for the F6 key(for new record).When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
Francois -
How to handle the control records in case of file to idoc scenario.
Hi All,
can you please clarify me how to handle the control records in case of file to idoc scenario.Hi,
In File to Idoc scenario even though you selected apply control record values from payload and you are not getting those correct values which you have provided in the mapping.
Also check the checkboxes Take sender from payload and Take receiver from payload along with the Apply control record values from payload checkbox
Regards
Seshagiri -
How do I burn a recorded track, on logic pro?
How do I burn a recorded track, on logic pro?
Bad?
I am far from an expert at Logic, but I found making a .wav file or .MP3 file fairly easy.
Using the edit menj, I select all the tracts in my arrnage window. Having done that I bounce the selected tract to my audio hard drive, having named it.
I can then import that audio file and others into Itunes and then burn a list of compositions onto a CD.
There must be several variations on that process but that one works well for me.
David
Maybe you are looking for
-
An error occurs when trying to load a .psd into PSE 9
Hi I am getting the message- An error occurred during Apple event processing -43 when I try to load .psd files into PSE 9. These are templates that I have bought that have previously worked. This just happened. I am not very computer savvy- but I
-
Hi My USB CF (Compact Flash) Card reader is not mounting on my 2.5 GHZ Intel Core i5 iMac anymore. Last week it worked fine to get pictures from my camera but now it won't mount at all. I ejected it in the correct way rather than just disconnecting i
-
Recently upgraded Mac OS to 10.5.5 - have an older G4 which is max'd out upgrade-wise - both processor and OS. At present Safari is 3.1.2. Itunes is 9.2.1. Itunes will not allow me to connect to store - says it requires Safari 4.0.3 - however, when I
-
Validate_layer_with_context error
BEGIN sdo_geom.validate_layer_with_context('COPPER', 'GEOM', 'VAL_RESULTS', 100); END; ERROR at line 1: ORA-04030: out of process memory when trying to allocate 16408 bytes (koh-kghu sessi,mdvgrr elmbr) ORA-06512: at "MDSYS.SDO_3GL", line 439 ORA-065
-
Why do I get the message that my operating system is not supported?
My computer is running Windows 7 - 64-bit. I have the latest softwear on both my iPhone and my iPad. I have installed Edge Inspect on these devices and have the Google Chrome edge inspect extension installed. I have been able to enter my passcodes fo