Returnable Packaging Movment Type

Dear Guru's ,
There is a requirement to transfer material from special stock "returnable packaging with customer" (special stock indicator - V)
Was planning on using 411 movement for this however there is no 411V movement type available. Is there any solution for this.
Any assistance would be really appreciated
Regards,
Shehan

Hi
Returnable packaging consists of materials that are stored at the customer location but which remain the property of your company. The customer is only required to pay you for the returnable packaging if he does not return it to you by a specified time. Using this function you can, for example, process euro-pallets. You can also use it to resell returnable packaging to a third party. Since stocks of returnable packaging form part of your valuated stock even when they are at the customer site, you must manage them in your system.
However, stocks of returnable packaging must be Managed separately from the rest of your stock so that you know exactly what stock is stored at the customer location  Managed separately for each customer
If the customer returns the returnable packaging to you, you record the transaction in the system by creating a returnable packaging pick-up order (order type LA). As a result, the system carries out the following actions:
When goods issue is posted, the relevant quantity is deducted from the customeru2019s special stock and is added back into your regular stock at the plant where the goods are returned. Your total valuated stock remains the same since the returned stock was regarded as part of your own inventory even while it was at the customeru2019s premises.
This transaction is not relevant for billing
If not clear please explain what you want to do excatly.

Similar Messages

  • How to call functions that return package local types?

    Hi everyone, I have a Pl/Sql function in a package that returns a package-local type.
    I would like to call this function from Java, but I don't know what to pass to "statement.registerOutParameter()"
    (it gives this error:
    Unable to resolve type: "XDRIVE_B2B.TEST1.MYTYPE)
    Here's the simple version with one package:
    package TESTPKG IS
    TYPE MYTYPE IS VARRAY(1) OF INTEGER;
    FUNCTION FCT2 RETURN MYTYPE;
    end;
    package body testpkg IS
    FUNCTION FCT2 RETURN MYTYPE IS
    BEGIN
    RETURN mytype(55);
    END;
    end;
    and here's the java code:
    void javatest(OracleConnection conn)
    throws SQLException
    String sql = "{ call ? = testpkg.fct2() }";
    OracleCallableStatement st =
    (OracleCallableStatement) conn.prepareCall(sql);
    st.registerOutParameter(1, OracleTypes.ARRAY, "MYUSERNAME.TESTPKG.MYTYPE");
    st.execute();
    and as I said above, the java code fails with:
    java.sql.SQLException: Fail to construct descriptor: Unable to resolve type: "MYUSERNAME.TEST1.MYTYPE"
    I can't really have this type live outside of a package because in the real case, it's not a VARRAY(1) of integer, it's a VARRAY(1) of MYTABLE%ROWTYPE, which only seems to compile inside a package.
    thanks for any opinions,
    george moudry
    null

    JDBC, JPublisher, and SQLJ do not support PL/SQL-only types. This includes PL/SQL index tables and record types.

  • Movement type: moving the returnable package from one customer to another

    Hello,
    I would like to know if there exists any predefined movement type (in transaction MIGO) which would allow to move the stock of the returnable package (material type LEIH, pallets etc.) from one customer to another IN ONE STEP (now we do it in 2 steps: first we return the stock from the customer to the our location and then move it to another customer). When we sell material to the customer, the stock type for the returnable package has the mark for special stock type (''V'').
    I tryed types 301V and 309V, but the customer had to be the same. It only allows to move the pallets between different plants for the same customer.
    Best regards,
    Mojca Kukman

    Hi
    There is no such movement type. Customers always look for one-step transactions and the only way to achieve this is through ABAP!
    Normally I do this:
    Create a Z-txn for customer input and on saving create 2 material documents (as in 2-step process).
    Best regards
    Ramki

  • Sales of returnable packaging material

    Dear Experts,
    Greetings!
    My issue is how do I make a sell of returnable packing material? We are receiving the materials in forms of Bales(packagint unit).Now with those bales we get a wires as well.We may say it is a "Bailing wire".How do i get those bailing wire in stock so that I can sell it to the customer?
    Plz advice.
    Best Rgds
    Nitin

    I can understand the process, I just asked what this has to do with returnable packaging?
    you dont have to return this to the vendors, you dont expect it returned from your customer. So why is it returnable packaging then?
    I would not use returnable packaging material type for at least 2 reasons: it is a material type for a speical process in SAP, and you confuse the users putting materials in that material type but using then a different process.
    In general you can sell anything. The big question is just how you want the material to be in your system.
    should it be stock managed or not? should it be valuated or not.
    if stock managed, then you have to create the stock yourself as you never ordered it. this can be done either with 501 movement, or as already mentioned by others with 202 movement, (561, 552 and inventory movement 70* are as well possible)

  • Configuration of Returnable packaging materials

    Hi Experts,
    Can anyone provide me with detail configuration guide of returnable packaging material step by step.
    Thanks.
    KIK

    I can understand the process, I just asked what this has to do with returnable packaging?
    you dont have to return this to the vendors, you dont expect it returned from your customer. So why is it returnable packaging then?
    I would not use returnable packaging material type for at least 2 reasons: it is a material type for a speical process in SAP, and you confuse the users putting materials in that material type but using then a different process.
    In general you can sell anything. The big question is just how you want the material to be in your system.
    should it be stock managed or not? should it be valuated or not.
    if stock managed, then you have to create the stock yourself as you never ordered it. this can be done either with 501 movement, or as already mentioned by others with 202 movement, (561, 552 and inventory movement 70* are as well possible)

  • Material type for Vendors Returnable packaging material

    Dear all,
    I have a scenario where in i am recieving co2 gas from my vendor against a PO.
    He is supplying it with cylinders i want to keep track of the cylinders and afetr using the gas want to return the cylinder to vendor.
    Now the doubt arises, under which material type should I create this cylinder.
    Doubt 1
    I thougt of creating under the material type : LEIH, but this material type also contains the purchasing, accounting, sales view and same time in the config of the material type LEIH, value updating is not ticked, which is making me confuse.
    Doubt 2
    What I felt is, LEIH should be used for the our owns company returnable packaging material , which will go to the customer , but again for this also, these material should be valuated, since they belongs to our own stock , so why in standard SAP, value updation is not there.
    Doubt 3
    Keeping above 2 points in mind, what should be material type for vendor's returnable packaging material , where I want only qty tracking.
    Regards
    Nitin

    You can copy LEIH and create your own Materia Type say ZLEI. For this material type you can have only General Plant / Storage Data1 view enabled.
    Remember, there are 2 materials here:
    1. Gas
    2. Returnable packaging (cylinder)
    You can receive gas on unit basis if you dont want exact tracking (ie in KG). Use any procurement material type.
    When you create the PO only mainitan Gas as the material.
    When you do the goods receipt against this PO, Click on RTP button, this will create a new line item, automatically and will suggest movement type 501+M. Here enter the no. of cylinders.
    You will be able to track the movement of cylinders.

  • Inspection type for customer return of returnable package material

    Hi Guys,
             I send the returnable package to the customer , while reciving that material to my stock (when the customer return to me ) i want to create outbound delivery with out order refference .
    I want system to create inspection lot after doing PGR of the outbound delivery .
    The inspection lot sould have the option of result recording and stock posting when i do usage decission
    This requirement not met by inspection type 06 , i want to create new inspection type to met above mentioned all requirement .
    please provide the steps to be performed to met the same.
    Thanks and regards
    Thamizhchelvan G

    Hi,
    The 06 - Inspection type is not stock relevant and also it is not possible to change because it is SAP std.
    1. If you want inspection for Customer with stock, active 05 - Inspection type in Material Master, and move the stock from customer return to QI by using MB1B with Movement type 457 Stock transfer returns to QI. After that system will create the Inspection lot in 05 Inspection type.
    2. If don't want stock for inspection and directly post to Unrestricted using MB1B with movement type 453 Transfer posting to returns from customer to Unrest.
    3. Customer return to Blocked stock using MB1B with mvt type 459 Stock transfer returns to blocked
    Case2.
    Inspection type 05 is a stock relevant inspection type.
    To use 05 you must assign the 05 inspection type to the delivery item in configuration.
    Follow this path.
    Tcode vov6 - there will be schedule line category DN.
    go to details of DN.In Business data, check which movement type is assigned here.
    I think in your case it will be 651.
    Change it to 655 and try now.
    hope it will work.
    Thanks
    Vinay

  • Good Receipt (movment type : 161) for a PO (PO with Return items) -- Error

    Hi,
    When i post a good receipt (movment type : 161) for a PO (PO with Return items), i have this Error Message :
    " Account 61522200 requires an assignment to a CO object "
    Note : in this GR i have already : Profit center, Funds center and Order (CO objects)
    So please what could be the reason ? and how to resolve it ?
    Please advise
    Regards.

    Please check first the field status of the account in FS00. If this account requires CO object as mandatory then check whether a cost element is created or not , this error normally occurs when CO object is mandatory but relevant cost element is not created.
    (or)
    Goto OKB9 :   The u201CChage View u201CDefault account assignment: Overviewu201D appears. Enter the company code, cost element, and default cost object. The cost object could be a cost center, internal order or profit center.
    Edited by: m_n_novice on Sep 2, 2009 5:51 PM

  • Returnable packaging-vendor and customer sides

    Dear Experts,
    I have searched through the internet as well as on this forum but I was not able to find the information I am looking for.
    I have the following issue concerning the Returnable packaging process in SAP:
    I need to gather overall information concerning the returnable packaging.
    The process is as follows:
    My vendor provides me with some materials that come with returnable packaging (e.g.Pallet01) -> Assuming I am just a middleman, I sell the goods to my customer and also send them on the same Pallet01 (one day my customer must return the pallet to me and I must return it to the vendor).
    - What are the settings I must set in customizing and in material master?
    - How would the process look like in the system (for example are there specific settings I must make to be able to see the packaging per customer in MB58 (I have set item category group LEIH in material master - is this the only setting to assure this, plus I am not sure if the field where I should put LEIH is General item category group or Item category group - both on Sales: sales org.2 tab in material master; Plus is there any way I can control what settings does item category group have? When I go to SPRO Sales and Distribution->Sales->Sales Document->Sales Document Item->Define Item Category Groups - there is no option to click inside the certain group))?
    - In what report I can see how many Pallets I owe to the vendor and how many Pallets each customer should return to me (is there one report that would show everything or do I have to use separate reports)?
    - How do I proceed if the vendor decides to invoice me for the pallets or I decide to invoice my customer (I would like to know the best practices)?
    I tried to enter packaging from vendor to special stock type M (with move 501 M added to the goods receipt for PO), than it's working to see it in the stock report assigned to that particular vendor. But what if (and this is the case) I am selling the goods on the same packaging to my customer? Cause I am not able to add the pallets from special stock M to the outbound deliver.
    Thank you in advance,
    Krystyna

    Dear Vikram Shukla,
    In fact, my question is more related to how to link the returnable packaging with the vendor - raw materials combination (PIR), which for my understanding is more related to sourcing part.
    Anyway, could you please advice how could I transfer my question to MM forum?
    Many thanks in advance and best regards-
    Mengyu

  • How to enter a returnable packaging material during inbound delivery?

    Hi,
    How do you add a returnable packaging material from vendor as a line item in the inbound delivery? When I try to add a LEIH type material as a line item in the inbound delivery (VL32N), the following error is displayed:
    "No item category exists (Table T184L EL VERP  ELP)"
    Thanking you in advance,
    Sreelakshmi

    HI.
    Please reffer the below link.
    ERROR : No item category exists (Table T184L LB VERP  )
    Error while creating I/B delivery: No item category exists (Table T184L EL)
    1) EL = is the delivery type you are using for Returns to Vendors
    2) VERP = is the Item Category Group in the material master of
    3) ELP= Item Usage
    You have to add the missing configuration as follow:
    IMGLogistics ExecutionShippingDeliveriesDefine Item Category
    Determination in Deliveries(Transaction 0184).
    Create a new entry or copy from an existing one for VERP. NOTE: The Delivery Item Category RLLN is the standard defined by SAP, be
    sure you enter the one defined in you company.
    Thanking you

  • Returnable packaging in customer consignment process

    I have this scenario:
    I have returnable packaging (drums) that have been setup as non valuated materials in SAP. The item category in deliveries in YB10.
    These drums have serial numbers. Since some maintenance needs to be done on these drums from time to time, therefore, equipment's need to be created for the drums. The equipment number and serial number are the same and the serial number profile is setup in such a way that the equipment is created automatically when the serial number is created
    When the drums are in stock, the status is ESTO
    Now, in the normal order to cash process, this is what happens:
    1) Sales order - order is created for a material
    2) Delivery - The drums are added to the delivery along with the material through a packing proposal. A serial number is specified for the drum and the order is PGI'ed to the customer
    At this point, the status of the equipment/serial number changes to ECUS
    3) Billing - normal billing (drums are billed)
    4) Return delivery YBG5 - the empty drum is accepted back into warehouse
    After PGR, the status of the serial number changes back to ESTO
    During the customer consignment process, this is what is happening:During the consignment fill up when stock goes from warehouse to customer, the status of the serial number is changing to ECUS
    During consignment issue, since we can only issue whatever material is there, the same serial number that was used during fill up is being used
    However, when we do a delivery against the consignment issue, we are getting an error that the status of the serial number is ECUS and it is not suitable for movement
    Since consignment stock is still owned by the company until an consignment issue is done, I am wondering whether SAP is behaving correctly by changing the status of the serial umber to ECUS after the consignment fill up.
    Is there a way to use the same serial number in the consignment issue as the consignment fill up?
    Please reply urgently

    Try the following
    Go to OMWB transaction and simulate the posting using your plant, material and movement type
    The simulation will show the standard postings based upon goods movement
    E.G. 601 GBB VAX valuation class, account
    Identify your accounts assigned to both sides of the posting and then you should be able to re-assign the g/l accounts to the appropriate modifier string within OBYC
    Hope it helps
    Steve

  • Returnable Packaging

    Hi Gurus,
                 Could any one send me materials regarding Returnable Packaging and Individual Purchase Order Configuration to [email protected]?
    Regards,
    Sarosh

    hi,
    Returnable packaging:
    Configuration settings: create Material master by specifying material type returnable packaging
    Maintain Data 1: Description
    General Item category group=LEIH
    Material group of packaging material=G010
    Sales General/Plant:
    Packaging material type : V075-Skeleton Box
    Go to Oms2
    Check quantity updating for LEIH
    Save it and go back
    Go to MB1C  and initialize the stock
    Save it and go back
    Scenario1:
    Go to VA01 and raise a sales order
    Then go to VL01N
    Select line item –specify returnable packaging material
    Select two line items-Edit-Pack-Packs
    Go back and carry out PGI
    Go to VF01 and raise the Invoice
    Go to VA01 and specify the document type=AT
    Item category=LAN
    Schedule Line=F3
    Movement type=622
    Save it
    Go to VL01N and carry out inbound delivery
    Select PGR
    Save it
    Go to MMBE and check the balance
    pls reward points if the answer is helpful
    Regards,
    Murali

  • Returnable packaging - vendor related

    Hello SAP Gurus,
    In my current project, I meet following situations regarding vendor related returnable packaging:
    1. Packaging belongs to vendor;
    2. Packaging belongs to us (purchaser);
    3. Packaging is rent by us (purchaser).
    Our current solution is to use "Transport Equipment" - 501/M to receive such packaging when do GR of materials. But the constrains here is that warehouse stuff needs to know which material requires returnable packaging when do MIGO. And they have to manage this manually in an excel file: what material requires returnable packaging.
    Now my question is: how could we link this returnable packaging with the materials + material vendor.
    1. Possible to manage in PIR then flows to PO? (If not considerring development).
    2. If consider to generate 2nd line in PO:
    1) Again, how could Purchase Order creator know this material is required to generate 2nd line for returnable packaging?
    2) For packaging belongs to vendor, which is non-valuated and account assignment will be required;
    Many thanks in advance for your precious input and with best regards-
    Mengyu

    > 1. Packaging belongs to vendor;
    > 2. Packaging belongs to us (purchaser);
    > 3. Packaging is rent by us (purchaser).
    >
    > Our current solution is to use "Transport Equipment" - 501/M to receive such packaging when do GR of materials. But the constrains here is that warehouse stuff needs to know which material requires returnable packaging when do MIGO. And they have to manage this manually in an excel file: what material requires returnable packaging.
    >
    > Now my question is: how could we link this returnable packaging with the materials + material vendor.
    > 1. Possible to manage in PIR then flows to PO? (If not considerring development).
    > 2. If consider to generate 2nd line in PO:
    > 1) Again, how could Purchase Order creator know this material is required to generate 2nd line for returnable packaging?
    > 2) For packaging belongs to vendor, which is non-valuated and account assignment will be required;
    Hi,
    In the 1st case, Packaging belongs to Vendor:
    This is Non-valuated but stock update material type (you can maintain this exclusively for Vendor ownership & Rented since these are not your company owned)
    501-M is fine with this type. To track this in WM to identify for returns you can give a code description to be easily identifiable to trace it for the return. You/user dont have to add a second line item in the PO, but can directly enter in 501M
    In the 2nd case, packaging belongs to your own company, you can define a material type with value and qty update which can also be managed in MIGO. For this I presume you must have issued the materials to vendor before MIGO which can be received in MIGO as company's own stocks.
    Hope this helps
    Shiva

  • Returnable Packaging as a delivery line item

    Hi,
    I have this requirement:
    Whenever certain materials are purchased, they always come with returnable packaging. I have setup packing proposal and created packing confition records using packing determination type RCPT and key Material.
    When I create an inbound delivery (type EL) for a purchase order for a material, I am able to determine the packing material as a Handling unit.
    However, I want to add the packing material as a separate line item in the delivery.
    I have maintained the Item category determination: EL + LEIH + PACK = ZELN.
    <removed by moderator>
    Message was edited by: Jürgen L

    HI.
    Please reffer the below link.
    ERROR : No item category exists (Table T184L LB VERP  )
    Error while creating I/B delivery: No item category exists (Table T184L EL)
    1) EL = is the delivery type you are using for Returns to Vendors
    2) VERP = is the Item Category Group in the material master of
    3) ELP= Item Usage
    You have to add the missing configuration as follow:
    IMGLogistics ExecutionShippingDeliveriesDefine Item Category
    Determination in Deliveries(Transaction 0184).
    Create a new entry or copy from an existing one for VERP. NOTE: The Delivery Item Category RLLN is the standard defined by SAP, be
    sure you enter the one defined in you company.
    Thanking you

  • ORA-04044: procedure, function, package, or type is not allowed here

    Hi,
    I am trying to build an object hierarchy.The object hirarcy is for a multi division, multi department, multi cost center and multi operation Organisation.Multiple department can store into multiple divisions, multiple cost center can store into multiple departments, multiple operations can store into multiple cost centers.
    The structure I try to built like this:
    create type div_obj_new as object
    (id number,
    divdesc varchar2(100)
    create type div_obj_tab as
    table of div_obj_new
    create type dept_obj_new as object
    (id number,
    deptdesc varchar2(100),
    dept_div number
    create type dept_obj_tab as
    table of dept_obj_new
    create type cctr_obj_new as object
    (id number,
    cctrdesc varchar2(100),
    cctr_dept number
    create type cctr_obj_tab as
    table of cctr_obj_new
    create type oper_obj_new as object
    (id number,
    operdesc varchar2(100),
    oper_cctr number
    create type oper_obj_tab as
    table of oper_obj_new
    ==========================
    create type div_obj_type as object
    (divid div_obj_tab)
    NOT FINAL
    create type dept_obj_type under div_obj_type
    (deptid dept_obj_tab)
    NOT FINAL
    create type cctr_obj_type under dept_obj_type
    (cctrid cctr_obj_tab)
    NOT FINAL
    create type oper_obj_type under cctr_obj_type
    (operid oper_obj_tab)
    NOT FINAL
    =======This Table creation is not working=================
    create table organisation
    (div div_obj_type,
    dept dept_obj_type,
    cctr cctr_obj_type,
    oper oper_obj_type)
    nested table div store as division_table
    nested table dept store as department_table
    nested table cctr store as costcntr_table
    nested table oper store as operation_table
    nested table oper store as operation_table
    ERROR at line 9:
    ORA-22912: specified column or attribute is not a nested table type
    =========================================================
    Then I try to insert record into the div_obj_type instead of organisation table as it was not working.
    The insert script is as follows:
    ===================================
    insert into div_obj_type values
    div_obj_tab
    (div_obj_new(01,'Division 01'),
    div_obj_new(02,'Division 02'),
    div_obj_new(03,'Division 03'),
    div_obj_new(04,'Division 04')
    dept_obj_tab
    dept_obj_new(10,'Department 10',1),
    dept_obj_new(11,'Department 11',1),
    dept_obj_new(12,'Department 12',2),
    dept_obj_new(13,'Department 13',3),
    dept_obj_new(14,'Department 14',4),
    dept_obj_new(15,'Department 15',5),
    dept_obj_new(16,'Department 16',6),
    dept_obj_new(17,'Department 17',7)
    cctr_obj_tab
    cctr_obj_new(100,'Cost Center 100',10),
    cctr_obj_new(101,'Cost Center 101',11),
    cctr_obj_new(100,'Cost Center 102',12),
    cctr_obj_new(100,'Cost Center 103',13),
    cctr_obj_new(100,'Cost Center 104',14),
    cctr_obj_new(100,'Cost Center 105',15),
    cctr_obj_new(100,'Cost Center 106',16),
    cctr_obj_new(100,'Cost Center 107',17),
    cctr_obj_new(100,'Cost Center 108',10),
    cctr_obj_new(100,'Cost Center 109',11),
    cctr_obj_new(100,'Cost Center 110',12)
    oper_obj_tab
    oper_obj_new(1000,'Operation 1000',100),
    oper_obj_new(1000,'Operation 1001',101),
    oper_obj_new(1000,'Operation 1002',102),
    oper_obj_new(1000,'Operation 1003',103),
    oper_obj_new(1000,'Operation 1004',104),
    oper_obj_new(1000,'Operation 1005',105),
    oper_obj_new(1000,'Operation 1006',106),
    oper_obj_new(1000,'Operation 1007',107),
    oper_obj_new(1000,'Operation 1008',108),
    oper_obj_new(1000,'Operation 1009',109),
    oper_obj_new(1000,'Operation 1010',110),
    oper_obj_new(1000,'Operation 1011',101),
    oper_obj_new(1000,'Operation 1012',102),
    oper_obj_new(1000,'Operation 1013',103),
    oper_obj_new(1000,'Operation 1014',104),
    oper_obj_new(1000,'Operation 1015',105),
    oper_obj_new(1000,'Operation 1016',106),
    oper_obj_new(1000,'Operation 1017',107),
    oper_obj_new(1000,'Operation 1018',108)
    insert into div_obj_type values
    ERROR at line 1:
    ORA-04044: procedure, function, package, or type is not allowed here
    Actually I want to create an object view or object table with all the details of division, department , cost center and operation and it will store depending upon the respective upper level hirarcy 's id.For eg. department details can be fetched through division id etc..
    So I can't figure out what to do for this kind of structure and how to do that.
    I am running Oracle Release 2 (9.2.0.1.0) for Windows 2000.
    Any help , advice or suggestions will be appreciated.
    Thanks & Regards
    Nihar

    Hi Cameron,
    Thanks for your great suggestion.Actually what you have suggested is correct and it was tested by me correctly.But actually I want to store records in the multiple objects hirarcy depending upon the respective upper level hirarcy 's id.For say how can I retrive all records related to divisionID which is in the top level hirarchy? So by selecting divisionID=01, how can I easily select all depts,cost centers and Operation details?
    Again I have another problem , when try to retrive record using PL/SQL I got some problem.
    Structure as created above.Again I am giving here.
    create type div_obj_new as object
    (id number,
    divdesc varchar2(100)
    create type div_obj_tab as
    table of div_obj_new
    create type dept_obj_new as object
    (id number,
    deptdesc varchar2(100),
    dept_div number
    create type dept_obj_tab as
    table of dept_obj_new
    create type cctr_obj_new as object
    (id number,
    cctrdesc varchar2(100),
    cctr_dept number
    create type cctr_obj_tab as
    table of cctr_obj_new
    create type oper_obj_new as object
    (id number,
    operdesc varchar2(100),
    oper_cctr number
    create type oper_obj_tab as
    table of oper_obj_new
    create table organisation
    (div div_obj_tab,
    dept dept_obj_tab,
    cctr cctr_obj_tab,
    oper oper_obj_tab)
    nested table div store as division_table
    nested table dept store as department_table
    nested table cctr store as costcntr_table
    nested table oper store as operation_table
    insert into organisation values
    div_obj_tab
    (div_obj_new(01,'Division 01'),
    div_obj_new(02,'Division 02'),
    div_obj_new(03,'Division 03'),
    div_obj_new(04,'Division 04')
    dept_obj_tab
    dept_obj_new(10,'Department 10',1),
    dept_obj_new(11,'Department 11',1),
    dept_obj_new(12,'Department 12',2),
    dept_obj_new(13,'Department 13',3),
    dept_obj_new(14,'Department 14',4),
    dept_obj_new(15,'Department 15',5),
    dept_obj_new(16,'Department 16',6),
    dept_obj_new(17,'Department 17',7)
    cctr_obj_tab
    cctr_obj_new(100,'Cost Center 100',10),
    cctr_obj_new(101,'Cost Center 101',11),
    cctr_obj_new(100,'Cost Center 102',12),
    cctr_obj_new(100,'Cost Center 103',13),
    cctr_obj_new(100,'Cost Center 104',14),
    cctr_obj_new(100,'Cost Center 105',15),
    cctr_obj_new(100,'Cost Center 106',16),
    cctr_obj_new(100,'Cost Center 107',17),
    cctr_obj_new(100,'Cost Center 108',10),
    cctr_obj_new(100,'Cost Center 109',11),
    cctr_obj_new(100,'Cost Center 110',12)
    oper_obj_tab
    oper_obj_new(1000,'Operation 1000',100),
    oper_obj_new(1000,'Operation 1001',101),
    oper_obj_new(1000,'Operation 1002',102),
    oper_obj_new(1000,'Operation 1003',103),
    oper_obj_new(1000,'Operation 1004',104),
    oper_obj_new(1000,'Operation 1005',105),
    oper_obj_new(1000,'Operation 1006',106),
    oper_obj_new(1000,'Operation 1007',107),
    oper_obj_new(1000,'Operation 1008',108),
    oper_obj_new(1000,'Operation 1009',109),
    oper_obj_new(1000,'Operation 1010',110),
    oper_obj_new(1000,'Operation 1011',101),
    oper_obj_new(1000,'Operation 1012',102),
    oper_obj_new(1000,'Operation 1013',103),
    oper_obj_new(1000,'Operation 1014',104),
    oper_obj_new(1000,'Operation 1015',105),
    oper_obj_new(1000,'Operation 1016',106),
    oper_obj_new(1000,'Operation 1017',107),
    oper_obj_new(1000,'Operation 1018',108)
    ===============
    declare
    div number;
    divdesc varchar2(100);
    divdetails varchar2(100);
    dept number;
    deptdesc varchar2(100);
    deptdetails varchar2(100);
    cctr number;
    cctrdesc varchar2(100);
    cctrdetails varchar2(100);
    oper number;
    operdesc varchar2(100);
    operdetails varchar2(100);
    cursor c_div is
    select d.id , d.divdesc from table(select div from organisation) d
    where d.id=1;
    --union
    cursor c_dept is
    select dp.id , dp.deptdesc "Dept Details" from table(select dept from organisation) dp
    where dp.dept_div=1;
    --union
    cursor c_cctr is
    select cc.id , cc.cctrdesc "Cctr Details" from table(select cctr from organisation ) cc
    where cc.cctr_dept=10;
    --union
    cursor c_oper is
    select op.id , op.operdesc "Oper Details" from table(select oper from organisation) op
    where op.oper_cctr=100;
    TYPE oper_type IS RECORD
    (oper_no NUMBER,
    oper_desc VARCHAR(50));
    TYPE cctr_type IS RECORD
    (cctr_no NUMBER,
    cctr_desc VARCHAR(50),
         oper_detl oper_type);
    TYPE dept_type IS RECORD
    (dept_no NUMBER,
    dept_desc VARCHAR(50),
         cctr_detl cctr_type);
    TYPE div_type IS RECORD
    (div_no NUMBER,
    div_desc VARCHAR2(50),
    dept_detl dept_type);
         division_rec div_type;
    begin
    for i_div in c_div%rowcount
         loop
         exit when c_div%notfound;
         division_rec.div_no:=i_div.id;
         division_rec.div_desc:=i_div.divdesc;
         dbms_output.put_line('Division details = ' || division_rec.div_no || division_rec.div_desc);
    --end loop;
    for i_dept in c_dept%rowcount
         loop
         exit when c_dept%notfound;
         select dp.id , dp.deptdesc ,
         into
         division_rec.dept_detl.dept_no, division_rec.dept_detl.dept_desc
         from
         table(select dept from organisation) dp
         where dp.dept_div=division_rec.div_no;
    -- division_rec.dept_detl.dept_no:=c_dept.id;
    -- division_rec.dept_detl.dept_desc:=c_dept.deptdesc;
         dbms_output.put_line('Department details = ' || division_rec.dept_detl.dept_no ||      
    division_rec.dept_detl.dept_desc);
    --end loop;
         for i_cctr in c_cctr
              loop
              exit when c_cctr%notfound;
              select cc.id , cc.cctrdesc
              into
              division_rec.dept_detl.cctr_detl.cctr_no ,           
    division_rec.dept==_detl.cctr_detl.cctr_desc
              from
              table(select cctr from organisation ) cc
              where cc.cctr_dept=division_rec.dept_detl.dept_no;
    -- division_rec.dept_detl.cctr_detl.cctr_no:=c_cctr.id;
    -- division_rec.dept_detl.cctr_detl.cctr_desc:=c_cctr.cctrdesc;
         dbms_output.put_line('Cost Center details = ' || division_rec.dept_detl.cctr_detl.cctr_no ||
         division_rec.dept_detl.cctr_detl.cctr_desc);
    --end loop;
              for i_oper in c_oper%rowcount
                   loop
                   exit when c_oper%notfound;
              select op.id , op.operdesc
              into
              division_rec.dept_detl.cctr_detl.oper_detl.oper_no,           
    division_rec.dept_detl.cctr_detl.oper_detal.oper_desc
              from
              table(select oper from organisation) op
              where op.oper_cctr=division_rec.dept_detl.cctr_detl.cctr_no;
    -- division_rec.dept_detl.cctr_detl.oper_detl.oper_no:=c_oper.id;
    -- division_rec.dept_detl.cctr_detl.oper_detal.oper_desc:=c_oper.operdesc;
         dbms_output.put_line('Operation details = ' ||
    division_rec.dept_detl.cctr_detl.oper_detl.oper_no ||
    division_rec.dept_detl.cctr_detl.oper_detal.oper_desc);
    end loop;
    end loop;
    end loop;
    end loop;
    end;
    for i_div in c_div%rowcount
    ERROR at line 46:
    ORA-06550: line 46, column 14:
    PLS-00999: implementation restriction (may be temporary)
    ORA-06550: line 46, column 1:
    PL/SQL: Statement ignored
    New version of PL/SQL bloc
    ==============================
    declare
    div number;
    divdesc varchar2(100);
    divdetails varchar2(100);
    dept number;
    deptdesc varchar2(100);
    deptdetails varchar2(100);
    cctr number;
    cctrdesc varchar2(100);
    cctrdetails varchar2(100);
    oper number;
    operdesc varchar2(100);
    operdetails varchar2(100);
    cnt_div number;
    cnt_dept number;
    cnt_cctr number;
    cnt_oper number;
    cursor c_div is
    select d.id , d.divdesc from table(select div from organisation) d
    where d.id=1;
    --union
    cursor c_dept is
    select dp.id , dp.deptdesc from table(select dept from organisation) dp
    where dp.dept_div=1;
    --union
    cursor c_cctr is
    select cc.id , cc.cctrdesc from table(select cctr from organisation ) cc
    where cc.cctr_dept=10;
    --union
    cursor c_oper is
    select op.id , op.operdesc from table(select oper from organisation) op
    where op.oper_cctr=100;
    TYPE oper_type IS RECORD
    (oper_no NUMBER,
    oper_desc VARCHAR(50));
    TYPE cctr_type IS RECORD
    (cctr_no NUMBER,
    cctr_desc VARCHAR(50),
         oper_detl oper_type);
    TYPE dept_type IS RECORD
    (dept_no NUMBER,
    dept_desc VARCHAR(50),
         cctr_detl cctr_type);
    TYPE div_type IS RECORD
    (div_no NUMBER,
    div_desc VARCHAR2(50),
    dept_detl dept_type);
         division_rec div_type;
    begin
    /*select count(*) into cnt_div from table(select div from organisation) d
    where d.id=1;*/
    for i_div in c_div
         loop
         exit when c_div%notfound;
         division_rec.div_no:=i_div.id;
         division_rec.div_desc:=i_div.divdesc;
         dbms_output.put_line('Division details = ' || division_rec.div_no || division_rec.div_desc);
    --end loop;
    /*select count(*) into cnt_dept from table(select dept from organisation) dp
    where dp.dept_div=i_div.id;*/
    for i_dept in c_dept
         loop
         exit when c_dept%notfound;
         select dp.id , dp.deptdesc
         into
         division_rec.dept_detl.dept_no, division_rec.dept_detl.dept_desc
         from
         table(select dept from organisation) dp
         where dp.dept_div=division_rec.div_no;
    -- division_rec.dept_detl.dept_no:=c_dept.id;
    -- division_rec.dept_detl.dept_desc:=c_dept.deptdesc;
         dbms_output.put_line('Department details = ' || division_rec.dept_detl.dept_no ||      division_rec.dept_detl.dept_desc);
    --end loop;
    /*select count(*) into cnt_cctr from table(select cctr from organisation ) cc
    where cc.cctr_dept=division_rec.dept_detl.dept_no;*/
         for i_cctr in c_cctr
              loop
              exit when c_cctr%notfound;
              select cc.id , cc.cctrdesc
              into
              division_rec.dept_detl.cctr_detl.cctr_no ,           division_rec.dept_detl.cctr_detl.cctr_desc
              from
              table(select cctr from organisation ) cc
              where cc.cctr_dept=division_rec.dept_detl.dept_no;
    -- division_rec.dept_detl.cctr_detl.cctr_no:=c_cctr.id;
    -- division_rec.dept_detl.cctr_detl.cctr_desc:=c_cctr.cctrdesc;
         dbms_output.put_line('Cost Center details = ' || division_rec.dept_detl.cctr_detl.cctr_no ||      division_rec.dept_detl.cctr_detl.cctr_desc);
    --end loop;
    /*select count(*) into c_oper from table(select oper from organisation) op
    where op.oper_cctr=division_rec.dept_detl.cctr_detl.cctr_no;*/
              for i_oper in c_oper
                   loop
                   exit when c_oper%notfound;
              select op.id , op.operdesc
              into
              division_rec.dept_detl.cctr_detl.oper_detl.oper_no,           division_rec.dept_detl.cctr_detl.oper_detl.oper_desc
              from
              table(select oper from organisation) op
              where op.oper_cctr=division_rec.dept_detl.cctr_detl.cctr_no;
    -- division_rec.dept_detl.cctr_detl.oper_detl.oper_no:=c_oper.id;
    -- division_rec.dept_detl.cctr_detl.oper_detl.oper_desc:=c_oper.operdesc;
         dbms_output.put_line('Operation details = ' || division_rec.dept_detl.cctr_detl.oper_detl.oper_no || division_rec.dept_detl.cctr_detl.oper_detl.oper_desc);
    end loop;
    end loop;
    end loop;
    end loop;
    end;
    declare
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 64
    I hope you might have the solutions.
    Thanks & Regards
    Nihar

Maybe you are looking for

  • Not able to get the data in custom search help.

    Hi , sorry was not aware of how to post a new thread. I am working on web UI and i need help asap. I want f4 help whose value depends on the other fields drop down.somhow i managed to get the values in local table and passed it to static attribute of

  • Have connection, but no internet

    I have an iBook (OSX 10.4.3, airport (Great signal) and installed an airport update several days ago and since then my internet connection has been very sketchy. I connect using Airport and several other people are successfully using the signal, my m

  • Address in "To" field not auto completing

    When I type a contact name in the "To" field that is in my address book, the e-mail address is not auto completing. I had this happen before and figured it out but this time my memory isn't working. Thanks. Clint

  • Hi all, please help me

    Hi Every one, I am Narasimha, i am new to XI can any one send me materials on XI & PI , Some faqs, This is my mail id [email protected] I would be very great to me if any one can send me some documents. Thanks and Regards, Narasimha Reddy

  • Migration work - BaseSQLException: ResourceException ConnectionFactoryImpl.

    Hi I'm migrating a sample and Login module is working fine. But it throughs error in create employee application. I guess that I have done mistake in DB (WAS SP15 server + max db) connection pool.Here you go the stack trace. Please let me know the so