Please provide real time scenario for when we use object type in PL/SQL.

Hi Experts,
When we use this kind of code in PL/SQL block.
CREATE OR REPLACE TYPE sample_object IS OBJECT
(id       NUMBER
,name     VARCHAR2(30));
CREATE OR REPLACE TYPE sample_table IS TABLE OF sample_object;I have read some docs ,but I didn't get any information where exactly we use this.
Please provide one real time scenario with an example.
How this is different from record.
Thanks in advance.

Hi,
For an example please have a look at this....
CREATE OR REPLACE TYPE FML_DAT_ITEMS_OBJ AS OBJECT
                  (F_NAME VARCHAR2 (20), L_NAME VARCHAR2 (20));
CREATE OR REPLACE TYPE FML_DAT_ITEMS_FTAB AS TABLE OF FML_DAT_ITEMS_OBJ;
CREATE OR REPLACE FUNCTION GET_FML_ITEMS_DAT (PFML_NR IN NUMBER)
   RETURN FML_DAT_ITEMS_FTAB
   PIPELINED
AS
   OUT_REC   FML_DAT_ITEMS_OBJ;
BEGIN
   SELECT FML_DAT_ITEMS_OBJ ('peter', 'zwan') INTO OUT_REC FROM DUAL;
   FOR I IN 1 .. PFML_NR
   LOOP
      PIPE ROW (OUT_REC);
   END LOOP;
END GET_FML_ITEMS_DAT;To view the o/p:
SELECT * FROM TABLE (get_fml_items_dat (5));
F_NAME, L_NAME
peter,zwan
peter,zwan
peter,zwan
peter,zwan
peter,zwan Refer these links to know more about the topic...
http://www.oracle-developer.net/display.php?id=207
http://www.oracle-base.com/articles/misc/pipelined-table-functions.php

Similar Messages

  • Please send me real time scenarios for plsql developer..

    hello xperts..
    please send me real time scenarios for plsql developer..it wiil be greatful to me .my mailid: < email address removed by moderator >

    Almost a duplicate of this thread: hi..everyone..plz share realtime unix shellscript commands
    and just as badly requested.
    Read: Re: 2. How do I ask a question on the forums?
    +Locking this thread+

  • Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • Real time scenario for AXIS framework in SOAP adapter

    Hello,
    Can anybody please suggest some real time scenario where AXIS framework can be used
    and what are the advanteges and disadvantages of using AXIS framework
    regards,
    Loveena

    Hi !
    have a look on these links
    Using the Axis Framework in the SOAP Adapter
    http://help.sap.com/saphelp_NW04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    Have a look at this Pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b092777b-ee47-2a10-17b3-c5f59380957f
    Thanks !
    Abhishek

  • Real time scenario for sales order types

    Hi gurus,
    could u plz explain realtime scenario, where we will use the following order types.
    1. Manual Order
    2. Dir dispatch order
    3.loose packs order
    4. manual return order
    5. dir dispatch return order.
    Plzzzz help on this.
    Urs
    Manasa

    Hi Manasa
    As these are not standard order I can't explain accurately, but I will try:
    Consider a shopping mall in this case.
    1. Manual Order : Customer came to shopping mall, collected the items and ordered for them.
    2. Dir dispatch order: Customer called shopping mall employee and booked the order and order directly dispatched for customer.
    3.loose packs order : May be for "handle with care" kind of material.
    4. manual return order : return of manual order.
    5. dir dispatch return order. : return of Dir dispatch order.
    better you compare these order with standard order, that will help you.
    try.

  • I want bapi real time scenario ? please help to me

    hai friends,
       I want bapi real time scenario.please help in bapi.
       my id :[email protected]
    regards,
    siva

    hi siva,
    for full information on BAPI's, check these links.....
    http://help.sap.com/saphelp_47x200/helpdata/en/7e/5e12224a1611d1894c0000e829fbbd/frameset.htm
    this link as everything like how to use bapi, code examples etc..
    reward me if useful......
    Harimanjesh AN

  • TS1559 I bought my iphone 4s in usa apple store but when i write my serial number to support center i see warning like that. What is the problem ? Our records indicate that this product has been replaced. Please provide the serial number for your replacem

    I bought my iphone 4s in usa apple store
    ihave trouble with my iphone wifi that is gray and cannot connect any wifi network.
    i want to support for this issue.
    but when i write my serial number to support center i see warning like that. What is the problem ?
    Our records indicate that this product has been replaced. Please provide the serial number for your replacement product to find the support and warranty coverage information. For more information, please contact us.

    Nobody here would know.  Contact Apple and ask them

  • Is Ardence RTX required when I use PCI-7831R with labview real-time module for RTX target

    I am new in the labview real-time field. I want to use labview real-time module for RTX target on only one desktop. My card is PCI-78331R.  Is Ardence RTX necessary? Why I cannot find my card in the MAX after I configured the RTX?
    Thank you very much.

    Hi Ziaozhongda,
    You must have the RTX runtime engine installed before the LabVIEW Real-Time RTX module will install.  Additionally, you should follow the instructions in the "Using the NI PCI-7831R with the LabVIEW Real-Time Module for RTX" section of Getting Started with the NI 7831R (page 8).
    Please see Configuring Hardware for Use with RTX.
    Also useful is "How Can I Validate That My PC Will Run RTX?

  • Regarding PSA real time scenarios and things

    Hai
    I knew abour PSA therotically . But i want in detail real time scenarios concering about PSA . Like , if data laoding is failed then how to look at PSA and after identifying how to update to corresponding datatarget like this ......
    So please tell in detail some real time scenarios about PSA and also send some documents or weblogd or old forums to [email protected] now
    I ll assign the points for thanks
    bye
    mohammed

    hi chakri, go through this.
    1.The Persistent Staging Area (PSA) is the inbound storage area for data from the source systems in the SAP Business Information Warehouse. The requested data is saved, unchanged from the source system. Request data is stored in the transfer structure format in transparent, relational database tables in the Business Information Warehouse. The data format remains unchanged, meaning that no summarization or transformations take place, as is the case with Info Cubes.
    2. The data records in BW are transferred to the transfer structure when you load data with the transfer method PSA. One TRFC is carried out per data package. Data is written to the PSA table from the transfer structure, and stored there. A transparent PSA table is created for every transfer structure that is activated. The PSA tables each have the same structure as their respective transfer structures.
    3. The number of fields is limited to a maximum of 255 when using TRFCs to transfer data. The length of the data record is limited to 1962 bytes when you use TRFCs.
    4. Four types of updates a) psa and data targets parallel b)psa and data targets serially c) only psa with subsequent updates to data targets d) only data targets
    5.Since the data is stored in transparent tables in database we can edit the data in psa using  ABAP routines using PSA-API’s.
    6. u can delete the requests from the PSA  for the incorrect data provided that the concerned request data is not populated into data targets.
    7. table for PSA:There is only one table for all psa requests.One way to know the psa table name is by right click the psa node and 'maintain export datasource', you will see the table name is /BIC/B0000xxxx (System generated psa table name ) ('ExtractStru.') with se16 you can see the contents, each request no. displayed in field REQUEST.
    8. reporting:  We can not report directly on psa  as the  same data is coming form the source system we can see a report from the source sytem. How ever technically speaking we can have a report on that. You are creating an export datasource on it and report using a Remotecube. you could even create an ODS with the same structure of the PSA and push the PSA data into it with no data transformation and then report. When u create an export data soruce on psa it will start with 7 followed by ur  PSA name. The below link gives the reporting on psa document.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/968dab90-0201-0010-c093-9d2a326969f1
    Re: Reporting on PSA
    Reporting on PSA
    9.Changelog and PSA: If we delete data in changelog the data in psa will not be deleted. You have to delete the data in the PSA exclusively.The change log acts as the PSA for the data target if the ODS acts as a datasource. What I mean is if the ODS supplies to another cube/ODS then the source ODS's Changelog is the PSA for the target ODS/Cube.
    10.PSA as a data source:   create an export data source. The export data source starts with 7 followed by psa name.  Go to data marts in the info sources tab and replicate that data source.  Create an info source and assign this data source.  Activate transfer rules and communication structure Then create a data package  and schedule the load to the data target.
    11.PSA deletion:
      Re: PSA Deletion
    12. PSA data in EP:
    Re: urgent: PSA Data in EP?
    13.Deleting PSA data source:
    To delete the export data source
    Just go to RSA6 and find the your datasource in the node 'DM', click once (highlight it) and there is a delete icon on the standard icon bar, click on that you should be able to delete the datasource.
    Delete PSA datasource
      14.Debug load inpsa:
    Re: How to Debug a Load into PSA    
    to load data manually from psa to the data targets.
    1. go to rsal .ie administrator work bench
    2. under modelling tab choose psa option
    3.select your application component
    4. choose ur info soruce and expand the tree to see the requests
    5. double click on the psa icon
    6. a new screen will appear which asks for the no of records to enter give the number and press enter u can see the data in the psa
    7. to update psa data manually go to the context menu  of that request and select the optio "update date immeditatley" it will be  loaded to the data target/
    cheers
    ravi
    dont forget to assign points that is the way of saying thanks in sdn

  • Real time scenarios...

    hello ther ....i am simi .. iam new to sdn...i have my interview in sem bps..in a couple of days time..iam through with the theoritical bit ...my concerns are related to the questions that may arise about project scenarios....would be much obliged if someone could help me thru by providing some real time planning scenarios ....or may be some help with the tech specs,,.....thanx....favour will be returned....
    regards,
    simi..

    I have mentioned couple of real time scenario I know.
    [1] Down payment :
    When PO gets created and vendor asks for some portion of PO as an advance payment, accounts payable department creates down payment request for the purchase order using F-47 and enters PO number in it.automatic payment program pays for the down payment request made.
    <b>When automatic payment program makes payment, PO gets updated with Down payment amount, and purchasing department gets visibility against that PO and knows that certain amopunt has been paid as an advance payment.</b>
    When Goods is received and invoice is entered using MIRO for that PO accounts payable department gets notification that down payment exists towards  PO.
    and they clear down payment made for the PO againt the invoice.
    [2] AR/AP netting :
    Some times in business some customers are also vendors.
    SAP has given the functionality to set the Customer as a vendor scenario.
    it requires two settings in customer-vendor master record.
    For customer who is also vendor, cendor master record is created , in control tab customer number is entered in vendor master, same time in customer master record in control tab vendor number is entered for that customer.
    Check clear agaist customer-vendor in both master record.
    when payment is made to this vendor/customer another master record gets updated automatically.
    Assign points if helpful

  • Regarding REAL time scenarios

    can any one give me real time scenario . or real need of the following scenarios...
    1. webservice to RFC
    2.HTTP to RFc
    3.file TO RFC
    4.file TO database
    looking forward for your help..

    Hi,
    Real time scenario depends on requirement and client environment, some times same requirement will to with different ways, ie. source and target channels will be change.
    1. webservice to RFC
        Here source is web service (SOAP) and target is R3 system, this scenario will be configure when sender can provider web service else it is not possible.  At receiver end generally will upload data through IDOC, if we want sync communication will go for RFC
    2.HTTP to RFc
       This requirement is same as above but without webservice
    3.file TO RFC
      This requirement will come when source data is flat file or xml file and receiver is R3 above we discussed
    4.file TO database
    This requirement will come when source data is flat file or xml file and receiver is external data base like orcale, Msaccess etc databases
    Find below links will help you for configuration
    RFC-Webservice:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    Invoke Webservices using SAPXI
    Testing XI exposed Web-Services
    http://frprjsp2.prj.fr:8000/sap/bc/srt/rfc/sap/ZPM_CREDIT_CHECK_WSD3?wsdl
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/content.htm
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
    File 2 RFC:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29
    RFC Scenario
    Exposing BAPI as Web Services through SAP XI
    RFC Scenario using BPM --Starter Kit
    The specified item was not found.
    The specified item was not found.
    HTTP to RFC - A Starter Kit
    File to JDBC
    FILE to JDBC Adapter using SAP XI 3.0

  • Anyone used VisionNet system "designed to provide real-time streaming video feeds over the Internet"?

    I'm a Mac user and we only have Macs at home. My son just started preschool, which offers a VisionNet system--"a state-of-the-art system of cameras, servers, and software designed to provide real-time streaming video feeds over the Internet." However, on the VisionNet FAQ page, it specifies the following:
    "You need a web browser that is Java-enabled, perferably Microsoft Internet Explorer.  If you're running Microsoft Internet Explorer, it needs to be version 6.x or higher.  We recommend Internet Explorer 6.x as this is the latest and most up-to-date product release.  Some Windows XP and Windows XP Professional users will have do download a Java runtime environment in order to use the VisionNet system if they have not done so already."
    We don't have any PCs at home, so I  tried to log in using my MacPro desktop, my old MacBook Pro and my new MBP. Basically, for the last 3 weeks I've managed to access the site only ONCE from my desktop and after the time-out session, I wasn't able to log on ever again (I just cannot enter any keys on the Username and Password fields at login). If I hit the Logon button from the FAQ page, I get an "Unauthorized Access" pop-up message: "This site may only be entered from an authorized web site! Please enter this site from your childcare provider's web site." When I enter "OK" I immediately get a pop-up menu "Confirm Dialog Preference. Prevent this page from creating additional dialogs" but I still can't enter any keys at login. It does nothing!
    The "support guy" has NO knowledge of Macs, so I don't know where else to go. The fact that I had successfully logged on once makes me believe it's something I have to update/delete/add in my Preferences in Firefox (I've used Safari and Chrome with no success). I've also considered purchasing an inexpensive PC just for this lousy VisionNet system  but I want to see if anyone has any ideas or advice.
    Can anyone please help me?   Thank you in advance!

    Here is a link to the finished PSA at Vimeo. It is not an outstanding production or anything too special, but it is worth noting that while some of the stills were doctored in Photoshop, the entirety of the editing and motion graphics were done in Premiere CS6.02; and the timeline playback was RealTime thanks to the MPE Hardware Acceleration and a GTX 560 2GB.
    DUI PSA
    Happy Editing.

  • BAdI........How are they used in the real time scenario.

    Im a rookie in ABAP development and i was wondering that how we use the BAdI enhancement technique in the real time scenarios. Like do we get create them or we have few already built BAdI's which we work on? Can any body please explain how this works.

    Hi Ramana,
    Business add-ins are enhancements to the standard version of the system.
    Business Add-In is a new SAP enhancement technique based on ABAP Objects.
    They can be inserted into the SAP system based on specific user requirements.
    Each Business Add-In has:
    • at least one Business Add-In definition
    • a Business Add-In interface
    • a Business Add-In class that implements the interface
    In order to enhance a program, a Business Add-In must first be defined
    Subsequently two classes are automatically generated:
    • An interface with ‘IF_EX_’ inserted between the first and second characters of the BADI name.
    • An adapter class with ‘CL_EX_’ inserted between the first and second characters of the BADI name.
    The Application developer creates an interface for this Add-In.
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    Set flag field "Buffer trace"
    Remark: We need to trace also the buffer calls, because BADI database tables are buffered. (Especially view V_EXT_IMP and V_EXT_ACT)
    Push the button "Activate Trace". Start transaction VA02 in a new GUI session. Go back to the Performance trace session.
    Push the button "Deactivate Trace".
    Push the button "Display Trace".
    The popup screen "Set Restrictions for Displaying Trace" appears.
    Now, filter the trace on Objects:
    • V_EXT_IMP
    • V_EXT_ACT
    Push button "Multiple selections" button behind field Objects
    Fill: V_EXT_IMP and V_EXT_ACT
    All the interface class names of view V_EXT_IMP start with IF_EX_. This is the standard SAP prefix for BADI class interfaces. The BADI name is after the IF_EX_.
    So the BADI name of IF_EX_CUSTOMER_ADD_DATA is CUSTOMER_ADD_DATA
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    Have a look at http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    How to develop BADI
    Reward if useful.
    Thanks
    Aneesh.

  • Need SD,MM  real time scenarios

    hi everyone, Plz help me with SD real time scenarios with examples..
    regards,
    prashanth

    Business scenario that has to be mapped by you (SD consultant) -
    Company / client is a TV manufacturing company which sells TVs and provides TV repair sevices.
    1.  Sales orders for both (TV selling & services) must be done in one sales document type
    2. Delivery type must be set up ONLY for TV selling (as services do not need any delivery of goods!)
    3. For easy identification - bills should have different number ranges. For selling TV bill # must range from 1 to 1000, and for TV services from 90001 to 90099
    4. TV selling must be delivery related bill, TV service must be order related bill
    How shall you configure this in SAP SD? What are the important questions you will ask the client, for more information?
    Once you have attempted this we can go a step further (in to more functionalities)
    Edited by: Typewriter on Aug 14, 2011 2:35 PM

  • Documentation of SAP HR- Real time scenario

    Hi,
    Please can anyone give me some documentation on how the functioning happens in SAP HR real time scenario.
    The real time implementation for Organizational management, Payroll, time Management and personal administration.
    It would be great if the document be sent to .
    Thank you !

    This is a Crystal Reports forum. Please close the existing thread an post your question here:
    SAP ERP Human Capital Management (SAP ERP HCM)
    I would recommend to explain in more detail the business need behind your quesiton in the new posting.
    Regards,
    Stratos

Maybe you are looking for

  • Is there a way to expand the text area of the login/lock screen for the warning message?

    I put our company's standard warning message in the Security & Privacy system preference ("Show a message when the screen is locked.") and it overflowed the allotted text area for the warning message text on the login screen and lock screens.  It see

  • How do I delete photos in iphoto photo stream

    I cannot access my iPhoto photo stream to delete photos

  • Why lost my System Preference Display?

    After installing Lepord 10.7.4 I have lost the Display resolution except for 1920 x 1200 and 960 x 600.  Neither of these is acceptable for my iMac.  Before downloading 10.7.4 I had all kinds of resolutions shown in System Preference Display.  How ca

  • Toggle file extension with Automator

    I am looking for the easiest way to automate toggling a file extension between two options. It needs to be the easiest possible solution as it is intended for Architects (specifically working in Revit) who are not the most technically savvy users. My

  • How to export and import with settings intact?

    I noticed that my iphoto library folder in the finder is 2x the size of the 7GB that is displayed in the iphoto application. I then went to my iphoto folder in finder and see that photos that I have deleted long ago are still there (no wonder it's so