DML and collections

Hi,
How can modify a PL/SQL Table, Nested Table or VArray (using DML) that is not stored in the Database? Example: accept a collection as a "In Out parameter" in a function and manipulate this collection using DML.
Anybody have a full example to solve this situation?
Thank's

UPDATE, DELETE etc. are not supported in this way.
Three alternative approaches spring to mind.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> CREATE TYPE t_rec AS OBJECT (
2 a NUMBER,
3 b NUMBER);
4 /
Type created.
SQL> CREATE TYPE table_rec AS TABLE OF t_rec;
2 /
Type created.
SQL> SET SERVEROUTPUT ON;
1. Use PL/SQL loop to loop through collection setting values.
SQL> DECLARE
2 my_pltable table_rec :=
3 table_rec (t_rec (1, 2), t_rec (1, 2));
4 BEGIN
5 DBMS_OUTPUT.PUT_LINE ('old value: ' || my_pltable (1).a);
6
7 FOR i IN my_pltable.FIRST .. my_pltable.LAST LOOP
8 my_pltable (i).a := my_pltable (i).a + 1;
9 END LOOP;
10
11 DBMS_OUTPUT.PUT_LINE ('new value: ' || my_pltable (1).a);
12 END;
13 /
old value: 1
new value: 2
PL/SQL procedure successfully completed.
2. Use CAST/MULTISET to SELECT new values of collection back into collecion.
SQL> DECLARE
2 my_pltable table_rec :=
3 table_rec (t_rec (1, 2), t_rec (1, 2));
4 BEGIN
5 DBMS_OUTPUT.PUT_LINE ('old value: ' || my_pltable (1).a);
6
7 SELECT CAST (
8 MULTISET (
9 SELECT a + 1, b
10 FROM TABLE (my_pltable)) AS table_rec)
11 INTO my_pltable
12 FROM dual;
13
14 DBMS_OUTPUT.PUT_LINE ('new value: ' || my_pltable (1).a);
15 END;
16 /
old value: 1
new value: 2
PL/SQL procedure successfully completed.
3. Use BULK COLLECT to SELECT new values of collection back into collecion. Note this requires an additional collection.
SQL> DECLARE
2 my_pltable table_rec :=
3 table_rec (t_rec (1, 2), t_rec (1, 2));
4 my_new_pltable table_rec;
5 BEGIN
6 DBMS_OUTPUT.PUT_LINE ('old value: ' || my_pltable (1).a);
7
8 SELECT t_rec (a + 1, b)
9 BULK COLLECT INTO my_new_pltable
10 FROM TABLE (my_pltable);
11
12 DBMS_OUTPUT.PUT_LINE ('new value: ' || my_new_pltable(1).a);
13 END;
14 /
old value: 1
new value: 2
PL/SQL procedure successfully completed.
SQL>
Padders

Similar Messages

  • What is difference between Iterator and Collection Wrapper?

    Hi all,
                  I dont understand the actual difference between Iterator and Collection Wrapper. I observed both are used for the same purpose. Could any one please let me know when to use Collection Wrapper and when to use Iterator??
    Thanks,
    Chinnu.

    L_Kiryl is right.
    Collections support global iteration (through collection->get_next( )) and local iteration (through iterator->get_next( )).
    Each collection has a focus object. Initially, the first object has the focus.
    Any global iteration moves the focus, which is published by the event FOCUS_CHANGED of the collection.
    If you want to iterate on the collection without moving the focus (and without triggering timeconsuming follow-up processes) you can use local iteration. To do so, request an iterator object from the collection and use this to iterate.
    And one more advantage of using iterator: it takes care of deleted entities. If you use global iteration then when you reach deleted entity it will be an exception. But there is no exception with iterator in the same situation.

  • How do find Oustanding Sales Report and Collection Report for A/R Invoice

    Dear All,
                     I need to find the Sales Outstanding amount and Collection details like Check or Cash Or RTGS this is including A/R Invoice Amount and JE Pending Amount. Is it possible?
    Kindly any body let me know some idea or if any sql query, plz send me.
    Advance Thanks to all.
    Regards,
    A. Anvar

    Hi!
    Check this, with little modification you can get the report i think
    Declare @FromDate as Datetime
    Declare @ToDate as Datetime
    SET @FromDate = (Select Min(S0.TaxDate) from ORCT S0 where S0.TaxDate >='20110201')
    SET @ToDate = (Select Max(S1.TaxDate) from ORCT S1 Where S1.TaxDate < ='20110228')
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cash' [Payment Mode],R0.CashSum [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate   and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Cheque' [Payment Mode],R0.CheckSum  [Amount]  from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate  and R0.Canceled = 'N'
    Union All
    Select R0.TaxDate,R0.Docnum,R0.CardCode,
    'Discount' [Payment Mode],R0.TrsfrSum  [Amount] from ORCT R0
    Where
    R0.TaxDate >=@FromDate and R0.TaxDate <=@ToDate and R0.Canceled = 'N'

  • Dunning by dunning procedure and collection strategy

    Hi All,
    Have some questions around dunning.
    1. Can dunning by dunning procedure and collection strategy coexist in the same company code - if this cannot be achieved by config can it be achieved by development - can we have something like account determination IDs of X to use dunning procedure, account determination IDs of Y to use collection strategy?
    2. If the answer to 1. is no, can one company code use dunning procedure and another company code use collection strategy?
    3. What is SAP's (or any other proven) recommended approach to migrate a production system utilising dunning by dunning procedure to dunning by collection strategy?
    Cheers.

    Have a look
    SAP-ISU will be used to carry out initial collection activities. Initial 1 or 2 reminder letters (based on the customer type, Live or Closed) will generated from SAP-ISU. Thereafter, the account will be managed in Tallyman. Thus, all the subsequent activities, such as sending further reminder letters, sending debt to collection agencies, carry out warrant activities and taking customers to court will be carried out in Tallyman system. During the time, the account is in Tallyman, no dunning activities will be carried out in SAP.
    There will be daily interfaces from SAP-ISU to Tallyman to update Tallyman of Accounts that have passed a certain dunning level in SAP-ISU and any changes to the account that are currently being managed in Tallyman. Similarly there will be interfaces from Tallyman to SAP to update SAP of Accounts, that have been marked for write off in Tallyman. Fees and Charges that have been applied in Tallyman, for example court fees, warrant fees etc.
    Regards
    Shashi
    Edited by: shashi jha on Mar 31, 2010 8:10 AM

  • I D/L'd a trial version of LR 5 and lost all my catalog and collections in LR 4. What can I do to get them back?

    Yesterday I D/L'd a trial version of LR 5.6 and during installation it seemed to be copying my catalog from my LR 4.4.  Now nearly all of my catalog and all my collections in LR 4 have disappeared.  What has happened to them andhow do I get them back.  The original photos seem to still be available in the myphotos directory on the computer, but without any of my lightroom editing.

    Thank you so much!  I was freaking out that I had lost the whole
    catalog and all my collections.  It would have been good if Adobe
    support had been able to point me in the right direction with this
    advice. They basically shrugged their shoulders and said tough
    luck!  I am not impressed!
    Thanks again, Anne
    >I D/L'd a trial version of LR 5 and lost all my catalog and
    >collections in LR 4. What can I do to get them back?
    >
    >created by <https://forums.adobe.com/people/dj_paige>dj_paige in
    >Photoshop Lightroom -
    ><https://forums.adobe.com/message/6778009#6778009>View the full discussion
    >

  • What is the correct procedure to connect and collect events from IPS through SDEE

    What is the correct procedure to connect and collect events from IPS through SDEE?
    We are a 3rd party application, that needs to collect and analyze the IPS events for a client.
    Currently the approach we are following is
    1) get a SubscriptionId using the URL below
    https://IP_Of_IPS/cgi-bin/sdee-server?action=open&events=evIdsAlert&force=yes
    This gets us a subscriptionId which is used in step 2
    2) Collect events from the url below
    https://IP_Of_IPS/cgi-bin/sdee-server?confirm=yes&action=get&subscriptionId=sub-sample&startTime=1362699903575432000
    a few more notes here are
    - starttime is current time in nanoseconds
    the peculiar problem here is that, even though we specify todays date, SDEE returns us the events from mid Feb (today is march 7)
    we did try a few combinations, but are out of ideas.
    any help or direction would be appreciated

    This is more an application issue than an IPS issue.
    Have you compared your app against other apps [IME]?

  • Deferred Billing and Collections- dinging my credit and didn't know

    I just recently found out while trying to purchase a home that Verizon shows I owe a balance and has since moved this to a collections agency.  I've never been informed of this until my lender informed me of a poor credit score due to this balance "owed." I can't seem to get a hold of anyone who can help clarify what this amount is and how we can get it cleared/corrected, I canceled my account several months ago but checked my account after my final bill had been paid and the balance was zero, when i checked again to ensure all was settled, the account had been closed so everything is good right? Apparently not and I still don't have an answer from collections or Verizon... Please HELP! Checked previous address and nothing.
    How can I not be contacted by Verizon and then informed I am past due on some balance without ever getting a 30, 60, or 90 day notice? Had i not been trying to purchase a home I would have never found out!
    I am going to have to contact the FTC, file a formal complaint against Verizon and collections agency, and move foreward with legal action as this will impact my financial future.  Crazy how such a small amount can affect your credit, why would I not pay this had i known when making much larger payments on previous mortgages?

    Verizon does not send bills by email, just notices that online bills are available.
    When your service is cancelled, so is your ability to access your online account, so any balance which may have accrued after your last billing statement received online and the time you canceled your service would have been mailed to your address of record on your account. This may or may not be your actual address if you had moved during your tenure at Verizon but had failed to update it in your MyVerizon profile. You would not have been notified via email since you no longer had a MyVerizon account.
    But as Tidbits has already said, you could just as easily have mistook the final bill for a piece of junk mail since you were not in the habit of receiving bills via postal mail from Verizon Wireless and therefore would not have been expecting one, especially since you "thought" your balance was at zero and didn't "think" you would be getting another bill. This is compounded by the fact you hadn't been receiving your bill in the mail.

  • Sales and Collection Report

    Dear Experts
    Am using below query for Sales and collection report but i came across that if i have  cancel any incoming payment is also showing in this report.
    Am requesting to modify this query in which if i or user do any cancellation of transction should not reflect in this report.In short Excluding of Cancelled entry
    Thanks in Advance
    Parikshit
    SELECT  M.SlpName, M.Sales,  M.Collection
    FROM (SELECT T1.SlpName AS 'SlpName',SUM(T0.DocTotal) as 'Sales', 0 as 'Collection'
    FROM OINV T0 INNER JOIN OSLP T1 ON T0.SlpCode = T1.SlpCode
    WHERE T0.DocDate >=[%0] AND T0.DocDate <=[%1]
    GROUP BY T1.SlpName
    UNION ALL
    SELECT H2.SlpName AS 'SlpName', 0, SUM(H0.DocTotal) as 'Collection'
    FROM ORCT H0 INNER JOIN OCRD H1 ON H0.CardCode = H1.CardCode
    INNER JOIN OSLP H2 ON H1.SlpCode = H2.SlpCode
    WHERE H0.DocDate >= [%0] AND
    H0.DocDate <=[%1] GROUP BY H2.SlpName
    )M

    SOLVED

  • Difference in Customer account statement and collections

    Kindly clarify my doubts about customer account steatement and Collections. basically whats the difference in the two and what are the standard T_codes for these two.
    thanks
    anya

    HI ANYA
    T-code:  F.27
    Definition
    An account statement and open item list are two types of correspondence. They differ with respect to the information they contain and the way it is displayed. Unlike an open item list, an account statement displays all items in a specified period along with the balance carried forward. The open item list merely displays the open items for a certain key date.
    Type of correspondence that your company sends to its customers.
    The system includes a SAPscript form that you can use for customer account statements for the Philippines, form F140_CUS_STAT_P1. You can modify this template to meet your company's requirements. To do so, from the SAP Easy Access screen, choose Tools ® Form printout ® SAPscript ® Form.
    Structure
    The following information is displayed in the template for the customer account statement:
    Account balance at the start of the selected period
    Open item list as of the key date, including the total
    It is sorted by transactions with or without special G/L indicators, currency, posting date, and document number.
    Account balance at the end of the selected period
    Cleared item list between selected key dates
    It is sorted by currency, posting date, and cleared item document number.
    Withholding tax list between selected key dates
    It is sorted by withholding tax type, posting date, and document number.
    Aging in 0, 30, 60, 90, and 120 days
    Integration
    You can print the customer account statement.
    Note the following restrictions regarding customer statements:
    You cannot create statements for one-time customers.
    In the case of customer head offices with local branches, customer statements contain the address of the head office and not that of the branch.
    The account statement can be created for your customers or vendors is an extract from the customer account which enables him to check the items there or is merely for information purposes. The account statement displays the balance carried forward, all items in the chosen period and the closing balance of the account.
    The open items list is a special form of account statement. It is also sent to the customer for verification or information purposes. Occasionally, the list is also used as a reminder letter. The open items up to the chosen key date are displayed in this list.
    Both letters contain the document number or reference document number, the document date, the document type, the currency and the amount for every item as well as the balance of the open items at the key date. The account statement may also contain the clearing document number. If branches were included in the letter of a head office, their addresses are listed at the end of the letter.
    The layout of the letter is determined via a form. Depending on the form used, the letter may also contain, for example, the days in arrears per item at the key date or other information. The form must be defined and stored in the system.
    Printing Customer Account Statements
    Use
    Printing of customer account statements is based on correspondence type SAPP3. Correspondence type SAPP3 is preconfigured to run the RFKORDP3 print program, which is delivered with report variant SAP&SAPP3. You can modify SAP&SAPP3 to meet your company's needs. For example, you can change the aging period and the number of the aging column.
    To modify or define a new report variant for the RFKORDP3 print program, in Customizing for Financial Accounting, choose Financial Accounting Global Settings -- Correspondence -- Assign Programs for Correspondence Types. Select correspondence type SAPP3 and choose Environment -- Maintain variants.
    Procedure
    Printing Individual Account Statements:
    Request correspondence type SAPP3 . To do so, from the SAP Easy Access screen, choose Accounting -- Financial Accounting --Accounts Receivable --Account -- Correspondence --Request.
    Issue the correspondence request by choosing Accounting -- Financial Accounting -- Accounts Receivable -- Periodic processing -- Print correspondence -- As per request.
    Print the customer account statement from the spool file by choosing System -- Own spool requests. Select your spool request and choose print.
    COLLECTIONS
    Collection is the settlement of receivables due, in particular, bills of exchange.
    Collection Account
    Definition
    A G/L account that the system uses to record checks receivable that you have presented to banks for collection. It denotes that a check has been sent to a bank and is awaiting clearing
    Reward if useful to u
    narendran vajravelu

  • How the freight cost are transferred from condition type of shipment cost document to service entry sheet and collected in service PO item

    Dear Experts:
    could you please share with me the knowledge for below topic:
    How the freight cost are transferred from condition type of shipment cost document to service entry sheet and collected in service PO item, because these three objects use three different pricing procedures, and different condition type.
    how did the condition type of service entry sheet know to copy the value of whcih condition type in the pricing procedure of shipment cost document?
    Is this SAP standard function OR there need an enhancement to do that?
    I didn’t find related condition value copy setting in background, could you please share related setting with me? Thank you very much for your kind help!
    Best regards,
    Andy

    Hi, Gopi,
    Glad to see your feedback, but i still have question on your feedback:
    which condition type in the pricing procedure of service entry sheet should know to capture the net value of shipment cost doc? becasue there are so many condition types,
    And i have checked the corresponding condition type (PRSX) of service entry sheet pricing procedure in my SAP system, this is a self-defined condition type, but NO any calculation routine maintained for the condition type (PRSX), how did the condition type (PRSX) know to copy the total cost of shipment cost document?
    Below is the example and another question:
    what the relationship between the pricing procedures at service PO item level and service line item level?
    1. The freight cost in shipment cost document—including used condition type and pricing procedure
    The pricing procedure of shipment cost document
    2. The freight cost in service entry sheet—including used condition type and pricing procedure
    The pricing procedure of service entry sheet--the pricing procedure at service line item level
    3. The freight cost in service PO item—including used condition type and pricing procedure:

  • Organizer and Collections in Acrobat X

    Had I read some of these comments before I bought X, I would never have done so.  I used the organizer daily, and the collections several  times a year as I prepared for trade shows.  If it was taken out because people are using Acrobat on Blackberry, smartphones, etc. perhaps it would be better to create a lesser version for those applications and give those of us who use it on desktops the ability to use the organizer and collections.

    The organizer plugin (and the reliant history menu) were removed from the Acrobat X Family for a number of practical reasons, not least that they were extremely hard to keep on track given the many new ways users access their files (cross-platform network storage, cloud servers, Sharepoint, etc.). People were noticing the plugin was increasingly unreliable, and it was better to remove it than ship something that didn't work properly.

  • Import Previews and Collections Only

    GOAL: to export the Previews and Collections info ONLY on an old Lightroom catalog/computer and apply that info to same photos on a new Lightroom catalog/computer.
    I'm moving my Lightroom Catalog from one computer that utilized multiple external drives to a new computer where everything will be on a single internal drive.
    I copied over all of the photos to the new computer and did some re-organizing to group everything better.
    I left the file structure within each Lightroom folder intact (eg., if I had sub-dvided photos into ten folders on the old Lightroom computer, those ten folders are the same, but I have put all ten into a new folder to enclose them all).
    Ideally, I'd like to just bring in the previews and collection info and apply it to the photos on the new Lightroom computer. Since there are over 20,000 photos, I'd like to avoid having to export as a catalog with all of those originals. Is there a way to export ONLY the previews and collections info and then import that to the new Lightroom computer?
    Thanks!

    Chris G. wrote:
    I cannot seem to get images to appear in the Import Window's preview pane, and thus cannot import them.
    Any pointers as to what the problem might be?
    I have occasionally had this problem and found either waiting a while or cancelling the Import and then retrying the Import (and being patient) works.
    The workflow I use includes giving a custom master/version name to the appropriate images from the camera, such as "Judy in the Garden", importing those pics of Judy, and then supplying another master/version name, such as "Punch Drunk" for the appropriate images of Punch, importing those, and so on. So it can take many iterations to pull all the images in. Often the imports work as you would expect but then suddenly, nothing appears to happen and cancel and I redo it. My suspicion is Aperture is busy doing some housekeeping or other (or hung) but since a retry or two does the trick, I don't worry about it.

  • Splitting and Collecting Messages

    Hi,
    I have a scenario in which I get a message from SAP. In this message their are multiple item structures and 1 header structure. Now I have to sent these items to a WS seperately and collect the messages  from the WS response in one message with a header.
    Something like:
    Receive Message -> split message (message mapping) -> send all to WS / receive response for everyone -> collect messages from response in a new message -> send the new message to another WS
    How can I do this in BPM?

    Hi Chris,
    Your design should be like this:
    Start --> Receive --> Transform1 (Do the split and multimapping) -->  Send Step1 (Synchronous) --> Send 2 (Send Response from send1 to the output) --> Stop.
    Regards,
    ---Satish

  • Customer Credit and Collection options

    Hello,
    There is a "Credit and Collection" section under Customer Account Profile. I want to understand about all the options, another word, how all these options works, specially RISK code , Credit Rating and Credit Clafication....How do they came into picture when we ran credit check processor?
    Please advice or help me out to get some doc/link that i can go through.
    Thanks

    Hello,
    Oracle Receivables integrates with Oracle Credit Management to automatically put customers on credit hold, or release customers from credit hold, depending on the outcome of a credit review.
    You can reference this documentation for details on the Collectors region and the Credit Classification -
    Oracle® Credit Management User Guide Release 12.1 (Part No. E13502-04)
    http://docs.oracle.com/cd/E18727_01/doc.121/e13502.pdf
    See Chapter 2 Implementing Oracle Credit Management
    Page 2-12
    Sections -
    Updating Customer Profile Classes
    Assign Customer Credit Classification Program
    Regards,
    Deborah Bourgeois, Oracle Customer Support

  • Saving to and collecting data from a database

    I am working on  a small project where 3 forms need to interact with each other. Form 1 should be completed then the information saved to a database then form 2 called and because of common fields between the 2 forms...data should be populated from the database to form 2 (data that was entered from form1).
    How is this done? Whats the javascript solution for this issue? the code used to save information from a text field, combobox and to retrieve it to populate another?
    Thanks in advance

    This is typically implemented as a LiveCycle orchestration:
    Form 1 is completed and submitted to a LiveCycle orchestration on the server
    The orchestration saves the submitted data to the database and then uses it to pre-populate Form 2
    Form 2 is sent to the user
    Common options for these steps include:
    Submission by email using a LiveCycle email end-point or secure, seamless submission by HTTPS to a web component (e.g. servlet or ASP.NET page) that calls the orchestration as a web service using the LiveCycle SOAP end-point
    Form Pre-population is performed using Forms Data Integration (FDI) or LiveCycle Forms
    Form is sent to user either by email or streamed back in same session if using HTTPS
    Avoka Technologies provides a pre-built web component Process Invoker that makes it easy to implement the HTTPS submission option.
    Of course, if the forms are filled out by the same user, you could merge them into one form and collect all the data on the client side before submitting to the server. You can even use show/hide to give the user the experience of filling out multiple forms if that is desired.
    Ben Walsh
    www.avoka.com

Maybe you are looking for

  • Windows 7 64 bit USB external hard drives lose its connection and stops working.

    This is a very serious error for users of WIN 7 64 bit only. I have read hundreds of posts about this problem an not a word about it from MS. We have tested this problem on four different computers and three different external hard drives using Win 7

  • Mail v3 on leopard crashing

    I cant run mail. It starts up, and crashes. I am getting the below output in terminal mode. Can someone offer some help. I would like to have this app running smoothly. Thanks Pete Last login: Wed Jul 9 17:18:31 on ttys000 You have mail. /Application

  • How can i get my ringtones onto my new itunes

    ok i got a new iphone 5 as well as a new mac book. i cant figure out how to get my new phone to sync with my new  mac and get all my music i downloaded as well as my ringtones on my new phone, i even downloaded a new song on my phone but cant get it

  • Creating A hierarchy on a characteristic.

    Hi, I am in process of creating a hierarchy. the problem I face is with number of hits getting displayed in the input help. I have got an overall of morethan 1500 entries, but the input help is giving me only 500 hits at a time. How can I get the ful

  • Is there a way to RECREATE the Page Flow Overview in BEA Workshop 4WL?

    BEA Workshop foe weblogic makes JSP development a lot simpler, and the auto generated Page Flow Overview is a nice feature - as long as your page flows are relatively small and simple. It doesn't take much to completlly confuse the tool though and yo