Sequence creation for Super Type and Sub Type (Parent-Child)

Data Model is structured with Super Type-Sub Type Concept.When data is being inserted in the Super Type table, I will be using a sequence Supertype.NEXTVAL as Primary Key.Now the same sequence will be the Primary Key for Sub Type table also. Can I use Supertype.CURRVAL during insertion in Sub Type table?
If Yes, I have lot of records being created in Super Type table within a second. So before data is being inserted in Subtype table there may be chance of a row being inserted in Super Type table and if I use Supertype.CURRVAL it may lead to wrong data.
How can I make sure that Supertype Primary Key is being inserted as Primary key in sub type table?

What happens when you try it? Something like:
session1> select t_seq.nextval from dual;
   NEXTVAL
     40061
session2> select t_seq.nextval from user_objects;
   NEXTVAL
     40062
     40063
     40064
     <snip>
     40270
     40271
     40272
211 rows selected.
session1> select t_seq.currval from dual;
   CURRVAL
     40061john

Similar Messages

  • PGI for both main and sub items (Sales BOM)

    Hello SD friends,
    I'm trying to map some BOM scenario.
    Only main item should be relevant for princing.
    Here's what I've done :
    1. Create sales BOM via CS01
    2. Maintain item category group ERLA for main item and NORM for sub item MM01
    3. Maintain item category TAQ for main item and TAE for sub item VOV4
    When I wanna do PGI, system creates material document only for main item.
    Which means that PGI has not been done for sub items.
    Is there any way to make PGI possible for both main and sub items ??
    Regards,
    Bahia.

    Can you clear, that why you want to issue both Main item/Sub Item, where your pricing is @ main item level.
    in Main item level Pricing, Main item itself includes components. Once you issue the main item. from Inventory this main item wil be reduced.
    Eg:  In Case of Main Item- Computer (Assume Components - Monitor , Keyboard , CPU & Mouse)
    Price for Computer - $1200.   Component prices individually- $300 , $100, $700, $100 - These prices applicable only when you sell as BOM at Subitem level Pricing Or Seperately )-
    In SO: - Order Computer (System explodes Components to verify,which are the subitems consists in Main Item)
      DEL:-  Components will be copied in Delivery , but not for dispatch (Sch Line Cat:CT has these controls)
    Inv: Only Main item will be displayed for print.
    NOTE:  for your requirement, you can change the Schline Category from CT - CN- which is relevant for delivery with movement type i601 -in SO. Then you can dispatch components & these components will not copied into Invoice ,as they are not relevant for billing.
    If you want CN has to determined automatically, maintain Schline Category determination accordingly.
    Hope it helps,
    Any info, please revert

  • No log was created for object SDOK and sub-objekt QUEUEING

    Hi All,
    I am getting the error "No log was created for object SDOK and sub-objekt QUEUEING " while uploading the document.
    Error is triggered at the call of Function Module:
      CALL FUNCTION 'SDOK_PHIO_STORE_CONTENT'
    Kindly help with the solution.
    thanks,
    Arti.

    Hi Arti,
    Kindly take help from abap and resolve by following manner:
    Check sap note 1173675 and error 26296.
    Check entries and make the entries in table SDOKPROP.
    I hope this will resolve the query.
    Regards,
    Ravindra

  • Inspection lot creation for inspection type 05

    Hi Gurus,
    We have finished material FERT & semifinished material HALB.We have assigned insp. type 02 & 05 in material master of matl. HALB.When we create production order for FERT & confirm the order , inspection lot is generated for matl.HALB of inspection type 02.
    Now we are reversing the goods issue by movement type mb1a, movement 262.In customizing for movement 262 inspection lot origin 05 is assigned.
    My problem is that when i reverse the goods issue with mvmt.262, inspection lot is not created for insp. type 05. What should be the reason behind this? or are any changes to be done to above setting?
    Regards
    Ram

    Hi Ram,
    Just check the SPRO setting SPRO---> Quality Management ->Quality Inspection->inspection lot creation--->inspection for goods movement --->deactivate quality inspection for a movt type.
    Here against movt type 262 uncheck the QM not active tick.
    It will solve your problem.
    Cheers,
    Tushar

  • Same Query for both Main and Sub Report

    I have a report whichs works but I don't think i'm getting the data to both the Main Report and Sub Report in the most effcient manner...  I have a report that totals users call subject counts.  But then end user wishes to see all users total counts and the grand totals of call counts on the first page then then the breakdown of types of calls on subsuquent pages...  so I created a report with a subreport in the report header....  I use the same query in both the sub and main report... however it asks the user to enter the parameters once for the main report and once for the sub report... Parameters are both the same for each; month and year...  so it currently runs the query twice I want to run it once and use the data for both reports...  I group by name and then sum the call subject counts for the user totals... and in the sub report I hide the detail section and I'm just left with the sub total line for each user, then in the main report use the same grouping and suming again and I start a new page for every user... 
    Using CR 9
    Thanks for any advice
    Vincent

    i think you need to link the main report parameter with the subreport parameters inorder to pass the parameter values from main report to subreport. So right click on subreport and go to change subreport links and add parameter fields and select parameter fields from your subreport and un check the databse fields in subreport.
    Regards,
    Raghavendra.G

  • Super type hides child entity's synonym in Logical diagram

    Hi,
    I think that I found a bug:
    I created two entities: entity A and entity B.
    Entity A is super type of entity B.
    I created a synonym for entity B.
    When I select entity A it hides the synonym of entity B.
    When I create entity C and create a 1:N relation between synonym of entity B and entity C
    and move entity A (it contains entity B and its synonym) the relation's line is not moved, it is hanging in the air.
    My version: 3.0.0.665
    Java: 1.6.0_22
    Screenshot fragments:
    [url http://s4.postimage.org/262qg0w10/Screen_shot_2011_03_07_at_08_44_06.png]before moving
    [url http://s4.postimage.org/cswtio7hs/Screen_shot_2011_03_07_at_08_44_27.png]after moving
    Best regards.

    Hi,
    I logged bug for that.
    Philip

  • User status profiles for work orders and sub-orders

    Hi Experts,
    I have the following question regarding status profiles for SAP PM work orders (but I guess it relates to all user status profiles).
    Customizing
    A status profile is defined for order type "PM_A", which contains an authorization key "OP" for certain user states (to be set by the ordering party)
    Situation
    The ordering party A creates an order of type PM_A for contractor B, and B then creates a sub-order of type PM_A for contractor C
    Problem
    - If I assign the authorization key "OP" only to roles of party A, then party B can't set the user states reserved for the ordering party (correct for the order A->B, but not for the sub-order B->C)
    - If I assign the authorization key "OP" to roles of party A and party B, then B could set certain user states reserved for the ordering party in the order A->B, which is also wrong
    Question
    Is there a way to restrict sub-orders differently than "non-sub-orders", or do I have to create a "sub-order order-type" for each order type, in order to assign them different status profiles and authorization keys?
    Thanks a lot!

    hi
    since you have 3 roles to be assigned to the same order type with different authorization ,it is better you create an seperate order type for sub order and assign the user status with authorization for B and C
    regards
    thyagarajan

  • Serial Number assignment for main items and sub items

    Hi
    All, good evening, i need clarificaction on the serial number assignment. My client's requirement is to maintain the serial numbers, so in this regard when i am confirming production order in this i need some information how the serial numbers are picked and consumed for main items and the sub items.
    I need someone to help me in solving this.
    Regards
    Narsing

    dear Narsing,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/en/dd/f8c817b3f911d1896e0000e8284931/frameset.htm

  • Xcelsius, downloadDocument?, Slideshow and BI Widgets (Parent Child)

    Hi,
    Does anyone know if BI Widgets supports Xcelsius SWF files that have been created using the scaled method; i.e. Using a Parent SWF linked to Child SWFs which are loaded into the slideshow component using the documentDownload? URL and a selector.
    I am trying to access such a dashboard solution and deploy it onto the users desktop.
    The dashboard works when accessed through Infoview using both the below relative and actual URL's i.e.
    "../../../Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=AfYquYuuqxJPjbXesBEC6d4&sKind=Flash&CELogonToken="&$C$9
    Or
    "http://bo1:8066/Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=AfYquYuuqxJPjbXesBEC6d4&sKind=Flash&CELogonToken="&$C$9
    The problem is I can not get the child SWF to download into the Slideshow component in the Parent SWF when it has been published to the dashboard using BI Widgets.
    Questions:
    1. Does anyone know if BI Widgets supports SWF Parent/child u201Cscale upu201D solution
    2. If so what should the URL be to call the children into the slideshow??
    Thanks in advance.
    Pen.

    Hi Alan,
    Thanks for your response.
    I receive no error messages; when I try to load a child swf into the parent slideshow component I see only a 0% progress bar in the slideshow component. I have also tried also using the OpenDocuemnt.jsp and when I try this in the above aforementioned URLs I get a 100% progress bar - but nothing else. i.e.It never displays the child swfs and nor does OpenDocument.jsp work in Infoview.  The documentDownload? option does work in infoview but it does not work in BI Widgets.
    I have also visited the Flash settings manager site and set the Global Security options to u201CAlways allowu201D  and have added the BOE servers and my C:\ and Desktop to the u201Callow locationsu201D.
    When you say that Flash will not let you access files off the desktop what exactly do you mean? I'm not sure if this relates to me as I am trying to access files from BOE XI 3.1.
    Thanks for the advice; I will also post this issue on the Xcelsius forum.
    Regards,
    Penny.

  • NESTED Tables for Sub-types when creating table for Super-type

    If I create the following types, as an example:
    Person with subtypes: Employee and Customer
    Appointment
    CREATE OR REPLACE TYPE Person_OT AS OBJECT (
    person#                         NUMBER,
    personSurname                    VARCHAR2(50),
    personForenames               VARCHAR2(50),
    personDateOfBirth               DATE,
    personAddress                    Address_OT,
    ) NOT FINAL ;
    CREATE OR REPLACE TYPE Employee UNDER Person_OT (
    empSalary               NUMBER,
    empNoSales          NUMBER,
    makes               Appointment_List_OT
    ) FINAL ;
    CREATE OR REPLACE TYPE Appointment_OT AS OBJECT (
    some attributes
    CREATE OR REPLACE TYPE Appointment_List_OT AS TABLE OF REF Appointment_OT ;
    When creating the table to hold objects of Person type, how can the requisite nested table for representing 'makes' be declared? The below approach is not correct, however the table will not compile without naming the nested tables.
    CREATE TABLE Person_TBL OF Person_OT (
    Person#     PRIMARY KEY)
    NESTED TABLE makes STORE AS Appointment_List_NTBL;
    Advice very much appreciated!

    CREATE TABLE Person_TBL OF Person_OT(
    Person# PRIMARY KEY)
    NESTED TABLE TREAT(SYS_NC_ROWINFO$ AS EMPLOYEE).MAKES STORE AS Appointment_List_NTBL
    Table created.
    SQL> select * from user_nested_tables
      2  /
    TABLE_NAME                     TABLE_TYPE_OWNER
    TABLE_TYPE_NAME                PARENT_TABLE_NAME
    PARENT_TABLE_COLUMN
    STORAGE_SPEC                   RETURN_TYPE          ELEMENT_SUBSTITUTABLE
    APPOINTMENT_LIST_NTBL          SCOTT
    APPOINTMENT_LIST_OT            PERSON_TBL
    TREAT(SYS_NC_ROWINFO$ AS "SCOTT"."EMPLOYEE")."MAKES"
                           DEFAULT                VALUE                         N
    SQL>  SY.

  • Inspection lot creation for Movement type 531

    Dear experts,
    following is the procedure
    1) Material enter against purchase order SFG
    2) Quality checks that and send to unrestricted (its an sampling inspection)
    3) Issue this material against production order
    4) order is confirmed and GR is done for FG
    5) FG material goes to quaity for inspection
    6) At the time of inspection of FG it is found that FG is rejected because of vendor material
    so we keep that stock in blocked stock. now we create an salvage order by CO07 and issue FG and received SFG vendor material by 531 movement
    now my prob is i want to record the defect against vendor material because of which it is rejected and my clint wants the report on reson basis
    regards
    Sachin

    go to OMBS... Here you need to do two things..
    1. control reason..here u can mention reason for movement for 531 is requied or optional etc..
    2. reason for movement..here u need to maintain the reasons as per ur wish..
    like 101---damaged
    107--- scratched
    etc..
    If all these are set, then only you can enter the reasons in the MB11 screen and the same can be viewed in MB51 by adding the reason in the layout...
    karthick
    Edited by: karthick PP on Jun 4, 2009 5:21 AM

  • Error in transfer order creation for sto type-- bulk storage

    Hi ,
      Can someone help to solve the following issue, while doing the Transfer order -- " The error is --> Missing definitions for block storage control  ( B1 GB 04 ) "
    config settings done are
    1. in material master, view Wm-2, the LE qty--> 1, un --> to, SUT --> GB
    2. in material master, view Wm-1, stock removal strategies > 004 (bulk storage), stk plcmt strategies > 004 (bulk storage) and bulk storage-->04
       Thanks & Regards
    Amjad

    Hi
    Try with OMM4 for  block storage control, Also Check the  section check indicator in OMM4.

  • Vendor creation for different cities and different address in same city its

    hi all
                please go through my requirement bellow.
                    Problem of single Vendor with his presence in multiple cities. For e.g. a vendor ABC has office in Bangalore, Hyderabad and Chennai.
         Vendor is having multiple offices in a same city. For e.g. ABC may have 2-3 diff offices in Bangalore itself. Each of these offices may or may not be functionally similar
    Regards
    Ravi.

    yes i asked the same last week
    i got partner functions option,ok fine but for main vendor which partner roles i have to maitain in partner roles screen of vendor master
    ex:suppose my main vendor is 20000 and for my bangalore location i created one more vendor say20001,now in 20000 ,20001partner screens of vendor creation which functions i have to mention.
    Regards
    Ravi.

  • Page break for a group and sub group based on page length

    Hi
    I have a requirement where in I need to develop a report which has the following requirement. I am attaching the sample xml and rtf files for reference:
    1) There are 3 groups in the Data Model. G1, G2 and G3. G1 contains G2 and G2 contains G3. I need to display that data in that order in the rtf template. Pretty straight forward.
    2) The tricky part, however, is that the report needs to have a page break on the following conditions:
        a) When the value of col1 changes which is in G1
        b) On col3 (in G2), but only when there is not enough space on the page to accommodate the values present in G3, ie col5 and col6 alongwith the values in G2. This means when the value of col3, which is present in G2, changes and if there is not enough space to accommodate G2 and G3 on the same page, it should break and start on a new page. The table which should come together is marked in grey color in the RTF template.
    What I have done till now to achieve this?
    I have created a parent table with two rows. In the second row I have made sure that the row doesn't break across pages. This is true for all the subsequent tables in the report. Now, in that second row, I have col1 in a nested table within a repeating group G1. Inside G1 there is a nested table for G2 and within G2 I have another table for the group G3. The row is not breaking across pages for all the tables that have been created.
    I have tried all the permutations and combinations of nested tables, keeping G1, G2 and G3 in the same table but different rows, having G1 in one table and nesting G2 and G3 in another, keeping G2 and G3 in a separate table altogether, Keeping G1, G2 and G3 all of them in the separate table. All of them are apparently not working.
    Is there anyway where we can either get hold of the current position of the cursor and the total number of rows on that page? Or any other solution that is possible? Or if I can have to make changes in the data model?
    Thanks a lot in advance
    Sid

    Hello Sid,
    I have checked your report and XML Sample and you haven't linked the fields from XML Sample to your .rtf report.
    You can use <?for-each?> syntax for your groups to print the content.
    I recommend you to review our "Creating RTF templates" manual:
    http://docs.oracle.com/cd/E28280_01/bi.1111/e22254/create_rtf_tmpl.htm#BIPRD2354
    Regards,
    Liviu

  • Planned Order creation for Sales Order and Purchase Order

    Hi
    We have a following requirement.
    In normal scenario when we have demand for material  which was created by MD61 and in addition to that if there is Sales Order the 1st planned order gets revised.To better expalin this consider possible scenario
    You create plan via MD61 for 200 qty .The system creates Planned Order for 200.
    Now there is Sales Order for 150 peices.Then what happens is original  Planed Order of 200 is changed to 50 and another planned order is created for 150 peices.The requirement is not summed.
    Now in new scenario instead of Sales Order there is Intercompany Purchase Order of 150 peices.
    Now the system is not changing original Planned Order of 200,but it created another planned order of 150.So now there are 2 Planned Orders of 150 and 200.
    What I want to know is there any way wherein the system will reduce the original planned order (similar to Sales Order scenario)
    Regards

    Hi,
    Use Strategy 52 in urs case.
    PIR witll be created .
    None convertable planned order will be created.
    Once you get sales order for that material.
    New planned order will be created which will consume PIR( planned order ).
    Eg.
    PIR 10.
    Planned order 10 qty.
    Sales oder 6
    Planned order for SO 6 qty
    Planned order through pir will become 4 qty.
    Regards,
    Vishal

Maybe you are looking for