LSMW-Allocation Rule and Table creation.

Hi Team,
I need to create Allocation Rule and Table by using LSMW. I tried it using Recording method.
Here issue I am facing is, I need to define Header and Item structure. Upto creation of Header data everything works fine
For Allocation Rule, we require to upload multiple Customer or Sites with Quota as an Item data against one Base Site group  as in below format.
      SBELN  EKORG  EKGRP  SVBEZ     ARTKL        FILKLP           VQUOT 
H     0001   1000        A07       Test      246402648   DUMMYGRP
           FILNR   VQUOT 
D        500055   0
D        500103   0
D        500201   206
For Allocation table, we require to upload multiple customer/sites against single Article and same for next articles as in below format.
  AUFAR  EKORG  EKGRP   BEZCH VKSTP WEFDT     VKSTP  WVDAT       MATNR PMNGE FILKL ASTRA
H ZNLV     1000     A09          Test     D          03012014  D         21022014 0
        MATNR PMNGE FILKL ASTRA
D      1234     40         21
D      1234    40         23
D      12345  10        10
Could you please let me know, what changes I need to make in LSMW code so that it will read all Item data and update same at once.
Thank you in advance.
Regards,
Rahul

I went to SM30. But I dont <b>what to do there to make the field come in SE16</b>.In sm30 when I clicked on No restrictions and display, the field which was missing not able to see. But when I click on restrictions and display, the field is there.

Similar Messages

  • Can Oracle 9i enable schema/table creation to be transacted?

    If anyone can help with this, that would be much appreciated.
    So - the server has disabled autocommit and commits/rollbacks are handled by the application. Even though this is the case, Oracle 9i is not rolling back changes that have (i) created schemas/users and/or (ii) tables.
    Worse still, it seems to be performing a partial rollback - some tables in a schema are left with data and others are not.
    Now, this may be caused by our server creating tables for indexing while adding data to some existing tables - that is the table definitions have auto-committed the transaction to date, also committing the table insertions/updates.
    After some delving, the JDBC driver has the following method: dataDefinitionCausesTransactionCommit - for Pointbase and other databases, this returns false - for Oracle it returns true.
    The questions are therefore:
    1) Is there a solution with Oracle 9i that enables schema and table creation to be transacted?
    2) Does Oracle 10g allow definition clauses to be transacted?

    Actually I believe there is a limited way to make DDL statements transaction based via the CREATE SCHEMA command.
    From the 9.2 SQL manaul >>
    Use the CREATE SCHEMA to create multiple tables and views and perform multiple grants in a single transaction.
    To execute a CREATE SCHEMA statement, Oracle executes each included statement. If all statements execute successfully, Oracle commits the transaction. If any statement results in an error, Oracle rolls back all the statements.
    <<
    This may be of some limited use to you, but your process should probably be changed to track of the DDL and to undo (drop) any created objects if a rollback is issued.
    HTH -- Mark D Powel --

  • Dynamic Internal Table creation and population

    Hi gurus !
    my issue refers to the slide 10 provided in this slideshow : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae
    My example is gonna sound dumb, but anyway: I want to dynamically select from a table into a dynamically created itab.
    Letu2019s use only EKPO, and only field MENGE.
    For this, I use Classes cl_abap_elemdescr, cl_sql_result_set and the Data Ref for table creation. But while fetching the resultset, program dumps when fields like MENGE, WRBTR are accessed. Obviously their type are not correctly taken into account by my program.
    Here it comes:
    DATA: element_ref             TYPE REF TO cl_abap_elemdescr,
          vl_fieldname               TYPE string,
                 tl_components         TYPE abap_component_tab,
                 sl_components         LIKE LINE OF tl_components_alv,
    linetype_lcl               TYPE REF TO cl_abap_structdescr,
    ty_table_type            TYPE REF TO cl_abap_tabledescr,
    g_resultset             TYPE REF TO cl_sql_result_set
    u2026
    CONCATENATE sg_columns-table_name '-' sg_columns-column_name INTO vl_fieldname.
    * sg_columns-table_name contains 'EKPO'
    * sg_columns-column_name contains 'MENGE'
    * getting the element as a component
    element_ref ?= cl_abap_elemdescr=>describe_by_name( vl_fieldname ).
    sl_components-name  = sg_columns-column_name.
    sl_components-type ?= element_ref.
    APPEND sl_components TO tl_components.
    * dynamic creation of internal table
    linetype_lcl = cl_abap_structdescr=>create( tl_components ).
    ty_table_type = cl_abap_tabledescr=>create(
                      p_line_type = linetype_lcl ).
    u2026
    * Then I will create my field symbol table and line. Code has been cut here.
    CREATE DATA dy_line LIKE LINE OF <dyn_table>.
    u2026
    * Then I will execute my query. Here itu2019s: Select MENGE From EKPO Where Rownum = 1.
      g_resultset = g_stmt_ref->execute_query( stmt_str ).
    * Then structure for the Resultset is set
      CALL METHOD g_resultset->set_param_struct
        EXPORTING
          struct_ref = dy_line.
    * Fetching the lines of the resultset  => Dumpu2026
      WHILE g_resultset->next( ) > 0.
        ASSIGN dy_line->* TO <dyn_wa>.
        APPEND <dyn_wa> TO <dyn_table>.
      ENDWHILE.
    Anyone has any clue to how prevent my Dump ??
    The component for MENGE seems to be described as a P7 with 2 decimals. And the resultset wanna use a QUAN type... or something like that !

    Hello
    I have expanded your sample coding for selecting three fields out of EKPO:
    *& Report  ZUS_SDN_SQL_RESULT_SET
    *& Thread: Dynamic Internal Table creation and population
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1375510"></a>
    *& NOTE: Coding for dynamic structure / itab creation taken from:
    *& Creating Flat and Complex Internal Tables Dynamically using RTTI
    *& https://wiki.sdn.sap.com/wiki/display/Snippets/Creating+Flat+and+
    *& Complex+Internal+Tables+Dynamically+using+RTTI
    REPORT  zus_sdn_sql_result_set.
    TYPE-POOLS: abap.
    DATA:
    go_sql_stmt       TYPE REF TO cl_sql_statement,
    go_resultset      TYPE REF TO cl_sql_result_set,
    gd_sql_clause     TYPE string.
    DATA:
      gd_tabfield      TYPE string,
      go_table         TYPE REF TO cl_salv_table,
      go_sdescr_new    TYPE REF TO cl_abap_structdescr,
      go_tdescr        TYPE REF TO cl_abap_tabledescr,
      gdo_handle       TYPE REF TO data,
      gdo_record       TYPE REF TO data,
      gs_comp          TYPE abap_componentdescr,
      gt_components    TYPE abap_component_tab.
    FIELD-SYMBOLS:
      <gs_record>   TYPE ANY,
      <gt_itab>     TYPE STANDARD TABLE.
    START-OF-SELECTION.
    continued.

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • AME can i create a Rule type List Creation and category For Your Info?

    Hi,
    I have created two rules.
    1st rule create the list of approvers to approve the leaves i.e. supervisor then department head.
    Till this every thing is going fine transaction are getting approved by both approvers and leave is crated in Application.
    Now I create 2nd rule to send FYI notification to HR Administrator.
    When employee Appling for leave it shows the list of approvers correctly i.e. supervisor, department head as approvers and HR Administrator FYI notify.
    Now HR Administrator opens the notification and close the notification and Approvers approved the transaction. PPROBLEM IS Transaction is not getting close and hence leave is not getting create in application._
    Edited by: SHEIKHG on Aug 28, 2009 9:11 PM

    No I have not customized the workflow. becuse the notification have all details if the rule is list creation. But if rule type is post-chain-of-authority approvals or pre-chain-of-authority approvals then the notificaiton has no useful info.
    Thats why I want to use Rule Type List creation for FYI notification. But when i do so my transaction is not getting complete.

  • CHECKDB found 0 allocation errors and 1 consistency errors in table 'sys.syscolpars' (object ID 41)

    Msg 2511, Level 16, State 2, Line 1
    Table error: Object ID 41, index ID 1, partition ID 281474979397632, alloc unit ID 281474979397632 (type In-row data). Keys out of order on page (1:187), slots 9 and 10.
    CHECKDB found 0 allocation errors and 1 consistency errors in table 'sys.syscolpars' (object ID 41).
    CHECKDB found 0 allocation errors and 1 consistency errors in database 'db_name'.
    repair_rebuild is the minimum repair level for the errors found by DBCC CHECKDB (adv_tvs).
    Help required on the above error mentioned

    Hi Rapunzel,
    The minimum repair suggested is repair_rebuild you can try that. As per mssage there is corruption in your database and it can only be corrected by either repairing or Restoring from known good backup.For doing repair the database must be in single-user
    mode.
    Please read
    dbcc checkdb repair_rebuild option
    Since DBCC CHECKDB with any of the REPAIR options are completely logged and recoverable, Microsoft always recommends a user use CHECKDB with any REPAIR options within a transaction (execute BEGIN TRANSACTION before running the command) so that the user can
    confirm he/she wants to accept the results of the operation. Then the user can execute COMMIT TRANSACTION to commit all work done by the repair operation. If the user does not want to accept the results of the operation, he/she can execute a ROLLBACK TRANSACTION
    to undo the effects of the repair operations.
    REPAIR_REBUILD does not repair errors involving FILESTREAM data.
    How big is database. If it is small and backup also is corruption free you should consider restoring from backup
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Is it possible to customize the ARUN table (J_3ABDBS) and delivery creation program (transaction VL04) in SAP?

    I am a student, pursuing MBA and currently doing internship with a big fashion and lifestyle company in India. I am stuck at a place where i need help.
    We are planning to give customer the control over the time of delivery of their orders as per their convenience. For that I am exploring the possibility of modifying the ARUN table in such a way that an extra column is added into the ARUN table. this field will contain a flag value (1/0) where '0' will indicate that the customer wants to block delivery for the specific items.
    at the time of delivery creation, transaction VL04 should check this flag value for every item. So when we try to create delivery for a whole order in one go, the delivery for the items with '0' flag value shouldn't be created.
    basically, my whole purpose is to enable our SAP system to create delivery on item level instead of on order level.
    Ques:
    1. Is it at all possible to do what i am thinking of?
    2. has any company customised the ARUN table and delivery creation program before?
    3. If we go ahead with this customisation in-house, will the SAP pull back the maintenance support on account of tempering with base programs?
    4. Also, please suggest other ways to do what i am trying to do?

    you can use the Tables SRRELROLES and IDOCREL
    if it is inbound delivery the use the business object BUS2015(outbound use LIKP)
    first get the ROLEID using the Delivery number as Objectkey(business obecjt BUS2015/LIK) from the SRRELROLES,
    then pass the ROLEID to the table IDOCREL to ROLE_A , get the ROLE_B,
    use this ROLE_B supply to ROLEID of SRRELROLES table(business object as IDOC, )
    get the objkey which is nothing But IDOC.

  • Is Retail Tcodes and Tables

    HEllo
    I would like to know from where we can get the list of Tcodes and Tables related to IS Retail
    Regards
    Mohammed

    Hi ,
    Pl find below list of Retail TCodes :
    R11 Merchandise Related Master Data
    Transaction code transaction text
    SU3 Maintain User Profile
    MM41 Create Article
    MM42 Chang Article
    MM43 Display Article
    WSL11 Evaluation of listing condition
    WSO7 Display Assortment Module Assignment to Assortment
    MASS_MARC Logistic/replenishment Mass Maintenance
    REFSITE Reference Sites Mangement
    WSL1 Listing conditions
    MR21 Price Change
    MB1C Enter Other Goods Receipts
    MB1B Enter Transfer Posting
    MB03 Display Transfer Posting
    RWBE Stock Overview Generic Articles
    R12 Retail Pricing
    Transaction code transaction text
    SU3 Maintain User Profile
    VKP5 Create Price Calculation
    WPMA Direct Request For POS Outbound
    WMB1 Create Price Entry
    WKK1 Create Market-basket Price Calculation
    SPRO Assign Price Point Group to Org. Level/Merchandise Category
    WVA3 Display VKP Calcultion Sur
    WVA7 Display VKP Calcultion Sur
    WEV3 Display Ret. Markup SP Ca
    MEKE Conditions By Vendor
    ME21N Create Purchase Order
    V-61 Create Customer Discount Condition
    V-64 Display Customer Discount
    VK13 Display Condition Records
    V/LD Execute Pricing Report
    VA01 Create Sales Order
    MEI4 Create Automatic Document worklist
    BD22 Delete Change Pointers
    WVN0 Generate Pricing Worklist
    WVN1 Release Worklist
    R13 Assortment Management
    Transaction code transaction text
    SU3 Maintain User Profile
    WSOA3 Assortment Display
    WSOA1 Assortment Create
    WSOA2 Assortment Change
    WSOA6 Assortment Assignment Tool
    REFSITE Reference Sites Mangement
    WSL5 Modules In Assortment
    MM41 Create Article
    MM42 Chang Article
    WSL1 Listing conditions
    WSP4 Create Individual Listing Material / Assortment
    WSO1 Assortment Module Create
    WSO5 Maintain Assortment Module assignment to Assortment
    SE38 ABAP Editor
    WLWB Space Management: Layout Workbench
    WPLG Display Article In Layout Module
    WLCN Delete All Listing Conditions From Layout Module
    WSOA1 Assortment Create
    WSK1 Assortment Copy
    WSPL Display / edit article master segments that cannot be generted
    WSL0 Merchandise Categories – Article Assortments Consistency Check
    WSP6 Delete Individual Listing Material/Assortment
    WSM8 Reorganize Listing Conditions By Merchandise Category
    WSM4A Automatic Relisting Via Change to Assortment Master Data
    WSL11 Evaluation of listing condition
    WB02 Site Change
    MB1C Enter Other Goods Receipts
    WSE4 Article Discontinuation( Article / Site Discontinuation)
    WSM9 Deletion of Obselete Listing Conditions
    SE16 Data Browser
    R21 Procurement of Replenishable Merchandise
    Transaction code transaction text
    SU3 Maintain User Profile
    MM42 Chang Article
    MP30 Execute Forecast: Initial
    MP33 Forecast Reprocessing
    MD21 Display Planning File Entries
    MD03 Requirements Planning Single-Item, Single-Level
    MD05 RP List
    MD04 Stock/Requirements List
    MB01 Enter Other Goods Receipts
    ME01 Maintain Source List
    ME51 Create Purchase Requisition
    ME52 Change Purchase Requisition
    ME59 Automatic Creation of Purchase Orders from Requisitions
    ME21N Create Purchase Order
    MIGO Goods Receipt for Purchase Order
    ME13 Display Info Record
    ME31K Create Contract
    ME33K Display Contract
    RWBE Stock Overview
    MB1C Enter Other Goods Receipts
    WWP1 Planning Workbench
    WWP3 Planning Workbench
    SPRO Maintain Rounding Profile
    WB02 Site Change
    MK02 Change Vendor
    MD04 Display Stock/Requirements Situation
    WLB1 Determining Requirements for Investment Buying
    WLB6 ROI-Based PO Proposal for Purchase Price Changes
    WLB2 Investment Buying Analysis
    WLB13 Automatic Load Building
    WLB4 Results List for Automatic Load Building Run
    WLB5 Combine a Number of POs to Create a Collective Purchase Order
    ME2L Purchasing Documents per Vendor
    ME23N Display Purchase Order
    ME61 Maintain Vendor Evaluation
    ME63 Calculate Scores for Semi-Automatic and Automatic Subcriteria
    ME64 Evaluation Comparison
    ME65 Ranking List of Vendors
    ME6B Ranking List of Vendor Evaluations Based on Material/Material Group
    R22 Procurement of Non-replenishable Merchandise
    Transaction code transaction text
    SU3 Maintain User Profile
    MM41 Create Article
    MM42 Chang Article
    WSL1 Listing conditions
    MR21 Price Change – Overview
    ME51 Create Purchase Requisition
    ME41 Create RFQ
    ME47 Maintain Quotation
    MB1C Other Goods Receipts
    ME49 Price Comparison List
    ME1E Quotation Price History
    ME48 Display Quotation
    ME4M Purchasing Documents for Article
    ME21N Create Purchase Order
    ME28 Release (Approve) Purchasing Documents
    MB01 Goods Receipt for Purchase Order
    ME2L Display Purchasing Documents per Vendor
    ME23N Display Purchase Order
    SPRO Maintain Rounding Profile
    MD03 Single Item, Single Level
    MD04 Stock/Requirements List
    RWBE Stock Overview
    WLB13 Automatic Load Building
    WLB4 Results List for Automatic Load Building Run
    WLB5 Bundle multiple orders logically
    ME63 Calculate Scores for Semi-Automatic and Automatic Subcriteria
    ME61 Maintain Vendor Evaluation
    ME64 Evaluation Comparison
    ME65 Ranking List of Vendors
    ME6B Ranking List of Vendor Evaluations Based on Material/Material Group
    R23 Fresh Items Procurement
    Transaction code transaction text
    SU3 Maintain User Profile
    WDBI Assortment List: Initialization and Full Version
    WDFR Perishables Planning
    MB1C Other Goods Receipts
    MIGO Goods Receipt Purchase Order
    WF30 Merchandise Distribution: Monitor
    VL06O Outbound Delivery Monitor
    MB0A Goods Receipt-PO Unknown
    WDFR Perishables Planning
    VL10B Fast Display Purchase Orders,
    MB01 Post Goods Receipt for PO
    RWBE Stock Overview
    ME61 Maintain Vendor Evaluation
    ME63 Calculate Scores for Semi-Automatic and Automatic Subcriteria
    MEKH Market Price
    ME64 Evaluation Comparison
    ME65 Ranking List of Vendors
    ME6B Ranking List of Vendor Evaluations Based on Material/Material Group
    R25 Subsequent Settlement
    Transaction code transaction text
    SU3 Maintain User Profile
    MEB3 Display Rebate arrangement
    MEU2 Perform Comparison of Business Volumes
    MEB4 Create Settlement Document Via Report
    MEB3 Create Service Notification-Malfn.
    MEB1 Create Agreement
    ME21N Create Purchase Order
    MB01 Goods Receipt for Purchase Order
    ME81 Analysis of Order Values
    MIRO Enter Invoice
    MEB8 Detailed Settlement
    SECATT Generating business volume with CATT
    SECATT Generating business volume with CATT
    R26 Invoice Verification
    Transaction code transaction text
    SU3 Maintain User Profile
    ME21N Create Purchase Order
    MB01 Goods Receipt for Purchase Order
    ME81 Analysis of Order Values
    MIRO Enter Incoming Invoice
    MIR4 Display Invoice Document
    MIR7 Park Invoice
    MIRA Enter Invoice for Invoice verification in Background
    WC23 Invoice Verification-Background Check
    MRRL Evaluated Receipt Settlement (ERS)
    ME22N Retroactive Price Changes in Purchase Order
    MRNB Revaluation with Log. Invoice Verification
    MIR6 Invoice Overview-Selection Criteria
    MRBR Release Blocked Invoices
    R31 Sales Order Management
    Transaction code transaction text
    SU3 Maintain User Profile
    VV32 Change Export Billing Document
    VV31 Create Export Billing Document
    MB1C Enter Other Goods Receipts
    ME21N Create Purchase Order
    VV32 Change Export Billing Document
    RWBE Stock Overview
    VV31 Create Export Billing Document
    VA01 Create Sales Order
    MM42 Chang Article
    VA03 Display Sales Order
    RWBE Stock Overview
    VL01N Enter Other Goods Receipts
    LT03 Create Transfer Order for Delivery Note
    LT12 Confirm Transfer Order
    ME5A Displaying Purchase Requisition
    ME81 Analysis of Order Values
    MIRO Enter Invoice
    VA02 Change Sales Order
    SECATT Backorder Processing
    WFRE Distribution of Returns Among Backorders
    V_V2 Rescheduling sales and stock transfer documents
    VA05 List of Sales Order
    V_R2 Rescheduling of sales and stock transfer documents
    SECATT Generating Processing Document(s) via CATT
    VF01 Create Billing Document
    VF05 List of Billing Documents
    VF02 Change Billing Doc
    VF04 Maintain Billing Due List
    V.21 Log of Collective Run
    F-29 Post Customer Down Payment
    F-39 Clear Customer Down Payment
    VL02N Outbound Delivery Single Document
    VF31 Output from Billing
    MB1B Enter Transfer Posting
    VL06O Outbound Delivery Monitor
    VBO3 Displaying the Status of Rebate Agreement
    VBO2 Settlement of the Agreement
    VBO1 Creating Rebate Agreement
    VBOF Update Billing Documents
    LT03 Create Transfer Order for Delivery Note
    LT12 Confirm Transfer Order
    VA02 Releasing Credit Memo Request for the Partial Rebate Settlement
    VL01N Create Outbound Delivery with Order Reference
    VA01 Create Sales Order
    VA03 Display Sales Order
    VA41 Create Contract
    VA43 Display Contract
    CV01N Create Document
    MM42 Chang Article
    MM43 Display Article
    WWM1 Create product catalog
    XD02 Customer Display
    OVKK Define Pricing Procedure Determination
    SPRO Maintain Pricing Procedures
    WWM2 Change Product Catalog
    WAK2 Promotion Change
    R32 Instore Customer Relationship Management
    Transaction code transaction text
    SU3 Maintain User Profile
    SICF HTTP Service Hierarchy Maintenance
    ME5A List Display of Purchase Requisitions
    ME21N Generating a Purchase Order on the Basis of the Purchase Requisition
    MIRO Entering an Incoming Vendor Invoice
    VF01 Create Billing Document
    VF02 Change Billing Doc
    R33 Service - Return ProcessingTransaction code transaction text
    SU3 Maintain User Profile
    WPMI POS Outbound:Initialization
    WPMA Direct request for POS ountbound
    WPER POS Interface Monitor
    WPMU Creating Change Message
    WE02 Displaying Created IDocs in POS Monitor
    MM42 Chang Article
    VD02 Customer Change
    WB60 Creating Site Group
    WB66 Maintain Assignment of Sites
    WAK1 Create promotion
    WE02 Displaying Idoc
    WDBI Initialization and Full Version
    WDBM Manual Selection Assortment List
    RWBE Stock Overview
    MB1C Other Goods Receipts
    WPUK POS Simulation:Selection
    WPUF Cash Removal
    FB03 Displaying Accounting Document
    FAGLL03 Displaying Clearing Account
    WPCA Execute Settlement
    F-06 Post Incoming Payments:Header Data
    WVFB Simulation Store Orders:Header Data Selection
    WE02 Displaying Confirmation Order
    VL10B Fast Display Purchase Orders,
    VL02N Outbound Delivery Single Document
    WPUW Goods Movements
    MB0A Returning Goods to Vendor
    MB1B Posting Goods to ‘Unrestricted Use’
    ME23N Displaying Purchase Order
    MIRO Invoice Verification
    WR60 Replenishment:Parameter Overview
    ME27 Create Purchase Order
    WRP1 Replenishment:Planning
    VL02N Change Outbound Delivery
    LT12 Confirm Transfer Order
    RWBE Stock Overview
    WB02 Site Change
    MB1C Enter Other Goods Receipts
    MI01 Create physical inventory document
    MI31 Selected Data for Phys. Inventory Docmts W/O Special Stock
    MI02 Change physical inventory document
    WVFD Send physical inventory document
    WVFI Simulation:Store Physical Inventory/Sales Price Change
    MI03 Display physical inventory document
    MI20 List of Inventory Differences
    MIDO Display Physical Inventory Overview
    WPUW Goods Movements
    WPUS Simulation:Inbound Processing
    WE19 Test tool for IDoc processing
    MM41 Create Article
    VBG1 Create Article Grouping
    VBK1 Create bonus buy
    R34 Store Business online
    Transaction code transaction text
    SU3 Maintain User Profile
    SICF HTTP Service Hierarchy Maintenance
    WB02 Site Change
    WSOA6 Assortment Assignment Tool
    WSM8 Reorganize Listing Conditions By Merchandise Category
    WDBI Assortment List:Initialization and Full Version
    WA01 Create allocation table:Initial
    WA08 Follow-On Document Generation Allocation Table
    VL02N Change Outbound Delivery
    WAK1 Create Promotion
    WAK5 Promo. Subsequent processing
    WPUK POS Simulation
    MM42 Change Article
    VL10B Fast display Purchase Orders
    VL02N Change Outbound Delivery
    WMBE Stock Overview
    MB1C Enter Other Goods Receipts
    VKP1 Change Price Calculation
    VKU6 Revaluation at Retail
    R35 Promotion Management
    Transaction code transaction text
    SU3 Maintain User Profile
    RWBE Stock Overview
    MB1C Enter Other Goods Receipts
    WB60 Creating Site Group
    WB66 Maintaining Site Group
    WA21 Allocation Rule Create
    WAK1 Create promotion
    WAK5 Promo. Subsequent processing
    WAK2 Change Promotion
    WA08 Follow-On Document Generation Allocation Table
    VL06O Outbound Delivery Monitor
    MB0A Goods Receipt-PO Unknown
    WAK15 Promotions per Site
    WAK14 Promotions per article
    VA01 Create Sales Order
    VL01N Create Outbound Delivery with Order Reference
    VL06P Outbound Deliveries for Picking
    VL06C Confirming Transfer Order and Post Goods Issue
    VL03N Display Outbound Delivery
    VF01 Create Billing Document
    R41 Distribution Center Logistics with Lean-WM
    Transaction code transaction text
    ME21N Create Purchase Order
    VL31N Creating Inbound Delivery
    WAP2 Create Purchase Order
    VL41 Create Rough Goods Receipt
    WAP2 Create Purchase Order
    MB0A Goods Receipt – PO Unkown
    MB03 Display Article Document
    MBRL Enter Return Delivery
    MB02 Change Article Document
    MB90 Output from Goods Movements
    VL01NO Create Output Delivery Without Order Reference
    LT03 Create Transfer Order for Delivery Note
    LT12 Confirm Transfer Order
    VL02N Posting Goods issue
    VL01NO Create Outbound Delivery Without Order Reference
    VL35 Create Piching Waves According to Delivery Compare Times
    VL06P Outbound Deliveries for Picking
    LT42 Create TOs by Mult.Processing
    LT25N Transfer Order for Each Group
    VLSP Subsequent Outbound-Delivery Split
    VL06G Outbound Deliveries for Goods Issue
    MI01 Create physical inventory document
    MI31 Selected Data for phys.Inventory Docmts W/o Special Stock
    MI04 Enter inventory count
    MI20 List of Inventory Differences
    MIDO Display Physical Inventory Overview
    VL06O Outbound Delivery Monitor
    VL37 Wave Pick Monitor
    VLLG Rough Workload Estimate
    R42 Distribution Center Logistics With Lean Warehouse Management
    Transaction code transaction text
    SU3 Maintain User Profile
    RWBE IM Stock Overview
    LS26 WM Stock Overview
    SPRO Assign Processor to Queues
    ME21N Create Purchase Order
    VL31N Creating Inbound Delivery
    WAP2 Create Purchase Order
    VL41 Create Rough Goods Receipt
    MB0A Goods Receipt – PO Unknown
    LT06 Create Transfer Order for Article Document
    LT12 Confirm Transfer order
    LRF1 Resource Planning with the RF Monitor
    LM00 Mobile Data Entry
    LRF1 Monitoring with the RF Monitor
    MB03 Display Article Document
    MBRL Enter Return Delivery
    MB02 Change Article Document
    MB90 Output from Goods Movements
    LB12 Process Article Document
    LP21 Replenishment for Fixed Bins in WM
    LB10 Display Transfer Requirement: List for Storage Type
    VL01NO Create Outbound Delivery Without Order Reference
    LT03 Create Transfer Order for Delivery Note
    LRF1 Resource Planning in the Monitor for Mobile Data Entry
    LRF1 Monitoring from the Mobile Data Entry Monitor
    VL02N Posting Goods Issue
    VL35 Create Picking Waves According to Delivery Compare Times
    VL06P Outbound Deliveries for Picking
    LT42 Create TOs by Mult. Processing
    LT25N Transfer Orders for Each Group
    VLSP Subsequent Outbound-Delivery Split
    VL06G Outbound Deliveries for Goods Issue
    LX16 Carry out Continuous Inventory
    LI11N Enter Inventory Count
    LI14 Start Recount
    LI20 Clear Differences in WM
    LI21 Clearing of differences in Inventory Management
    LX18 Statistics for Inventory Differences
    LX25 Inventory status
    LL01 Warehouse Activity Monitor
    VL06O Outbound Deliveries for Picking
    VL37 Wave Pick Monitor
    VLLG Rough Workload Estimate: Total Overview
    R43 Merchandise Distribution
    Transaction code transaction text
    SU3 Maintain User Profile
    ME21N Create Purchase Order
    ME31K Create contract
    WA21 Allocation Rule Create
    WA01 Create Allocation Table
    WA11 Allocation Table Message Bundling / Notification Creation
    WA04 Create Notification
    WA08 Create Follow-On Documents
    MB01 Goods Receipt for Purchase Order
    WF10 Create Collective Purchase Order
    MB01 Create Purchase Order
    WF30 Adjusting Distribution and Generating an Outbound Delivery
    VL06O Outbound Delivery Monitor
    VL02N Outbound Delivery Single Document
    WF50 Adjusting Distribution
    WF70 Creating Distribution Order
    LT23 Display Distribution Order
    WF60 Generating Outbound Delivery
    WA01 Create allocation table:Initial
    R50 ECR-Compliant Procurement Processes
    Transaction code transaction text
    PRICAT Initial Screen: Price Catalog Maintenance
    PRICATCUS1 Change View "Assignment of ILN-Vendor-Purchasing group": Overview
    PRICATCUS2 Change View "Assignment of ILN-merch.catgry-SAP merch.catgry": Ove
    PRICATCUS3 Change View "Assignment of SAP merchandise category - purchasing group"
    WE19 Test tool for IDoc processing
    WE20 Partner profiles
    ME21N Create Purchase Order
    WE02 Idoc list
    ME23N Display Purchase Order
    MB0A Goods Receipt - PO Unknown: Initial Screen
    MIR4 Display Invoice Document
    WVM2 Transfer of Stock and Sales Data
    Regards,
    ManiKumaar

  • Cost Allocation Flexfield with Table Value Sets

    Hi
    I am setting up Costing for Payroll. I have a requirement where I want to use Table Validated value sets for Cost Allocation Flexfield. In the Administrator Guide it is written that we should not use Table validated value sets for any KFFs.
    I still tried the same (defining Table validated value sets) and my process errored out. It was giving following error
    Value 381 for the flexfield segment Cost Center does not exist in the value set
    SJR_COST_CENTER_LIST.
    invalid code combination:
    381SJR_COST_CENTER_LIST is name of the value set.
    Then I changed the value set and keep the code and meaning in the value set table as same and my process worked fine.
    Now I want to know that should I use Table validated value set or not. As Oracle does not support these in KFFs

    Hi Thierry
    Thanks for the reply
    have you used cross validation rules?I am not sure about cross validation rules and how we can use in my case.
    An other thought: there is an action parameter available parameter_name=COST_API_IMODE
    Set the parameter_value = 'Y'In my case my costing process is working fine, even when I define my table validated value sets. My question is should we define table validated values sets or not as Oracle does not support it now? Oracle use to support this for KFFs some time back but now they are saying they does not support.
    Are there any known issues if we use Table validated value sets? Why Oracle does not support it for KFFs?

  • Slow table creation after upgrade from 10.2.0.3 to 11.2.0.1 using DBUA

    I've recently completed a database upgrade from 10.2.0.3 to 11.2.0.1 using the DBUA.
    I've since encountered a slowdown when running a script which drops and recreates a series of ~250 tables. The script normally runs in around 19 seconds. After the upgrade, the script requires ~2 minutes to run.
    By chance has anyone encountered something similar?
    The problem may be related to the behavior of an "after CREATE on schema" trigger which grants select privileges to a role through the use of a dbms_job call; between 10g and the database that was upgraded from 10G to 11g. Currently researching this angle.
    I will be using the following table creation DDL for this abbreviated test case:
    create table ALLIANCE  (
       ALLIANCEID           NUMBER(10)                      not null,
       NAME                 VARCHAR2(40)                    not null,
       CREATION_DATE        DATE,
       constraint PK_ALLIANCE primary key (ALLIANCEID)
               using index
           tablespace LIVE_INDEX
    tablespace LIVE_DATA;When calling the above DDL, an "after CREATE on schema" trigger is fired which schedules a job to immediately run to grant select privilege to a role for the table which was just created:
    create or replace
    trigger select_grant
    after CREATE on schema
    declare
        l_str varchar2(255);
        l_job number;
    begin
        if ( ora_dict_obj_type = 'TABLE' ) then
            l_str := 'execute immediate "grant select on ' ||
                                         ora_dict_obj_name ||
                                        ' to select_role";';
            dbms_job.submit( l_job, replace(l_str,'"','''') );
        end if;
    end;
    {code}
    Below I've included data on two separate test runs.  The first is on the upgraded database and includes optimizer parameters and an abbreviated TKPROF.  I've also, included the offending sys generate SQL which is not issued when the same test is run on a 10g environment that has been set up with a similar test case.  The 10g test run's TKPROF is also included below.
    The version of the database is 11.2.0.1.
    These are the parameters relevant to the optimizer for the test run on the upgraded 11g SID:
    {code}
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_capture_sql_plan_baselines boolean     FALSE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      11.2.0.1
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    optimizer_use_invisible_indexes      boolean     FALSE
    optimizer_use_pending_statistics     boolean     FALSE
    optimizer_use_sql_plan_baselines     boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     8
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     8192
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    SQL> column sname format a20
    SQL> column pname format a20
    SQL> column pval2 format a20
    SQL> select sname, pname, pval1, pval2 from sys.aux_stats$;
    SNAME                PNAME                     PVAL1 PVAL2
    SYSSTATS_INFO        STATUS                          COMPLETED
    SYSSTATS_INFO        DSTART                          03-11-2010 16:33
    SYSSTATS_INFO        DSTOP                           03-11-2010 17:03
    SYSSTATS_INFO        FLAGS                         0
    SYSSTATS_MAIN        CPUSPEEDNW           713.978495
    SYSSTATS_MAIN        IOSEEKTIM                    10
    SYSSTATS_MAIN        IOTFRSPEED                 4096
    SYSSTATS_MAIN        SREADTIM               1565.746
    SYSSTATS_MAIN        MREADTIM
    SYSSTATS_MAIN        CPUSPEED                   2310
    SYSSTATS_MAIN        MBRC
    SYSSTATS_MAIN        MAXTHR
    SYSSTATS_MAIN        SLAVETHR
    13 rows selected.
    {code}
    Output from TKPROF on the 11g SID:
    {code}
    create table ALLIANCE  (
       ALLIANCEID           NUMBER(10)                      not null,
       NAME                 VARCHAR2(40)                    not null,
       CREATION_DATE        DATE,
       constraint PK_ALLIANCE primary key (ALLIANCEID)
               using index
           tablespace LIVE_INDEX
    tablespace LIVE_DATA
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          4           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          4           0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 324
    {code}
    ... large section omitted ...
    Here is the performance hit portion of the TKPROF on the 11g SID:
    {code}
    SQL ID: fsbqktj5vw6n9
    Plan Hash: 1443566277
    select next_run_date, obj#, run_job, sch_job
    from
    (select decode(bitand(a.flags, 16384), 0, a.next_run_date,
      a.last_enabled_time) next_run_date,       a.obj# obj#,
      decode(bitand(a.flags, 16384), 0, 0, 1) run_job, a.sch_job  sch_job  from
      (select p.obj# obj#, p.flags flags, p.next_run_date next_run_date,
      p.job_status job_status, p.class_oid class_oid,      p.last_enabled_time
      last_enabled_time, p.instance_id instance_id,      1 sch_job   from
      sys.scheduler$_job p   where bitand(p.job_status, 3) = 1    and
      ((bitand(p.flags, 134217728 + 268435456) = 0) or
      (bitand(p.job_status, 1024) <> 0))    and bitand(p.flags, 4096) = 0    and
      p.instance_id is NULL    and (p.class_oid is null      or (p.class_oid is
      not null      and p.class_oid in (select b.obj# from sys.scheduler$_class b
                               where b.affinity is null)))   UNION ALL   select
      q.obj#, q.flags, q.next_run_date, q.job_status, q.class_oid,
      q.last_enabled_time, q.instance_id, 1   from sys.scheduler$_lightweight_job
      q   where bitand(q.job_status, 3) = 1    and ((bitand(q.flags, 134217728 +
      268435456) = 0) or         (bitand(q.job_status, 1024) <> 0))    and
      bitand(q.flags, 4096) = 0    and q.instance_id is NULL    and (q.class_oid
      is null      or (q.class_oid is not null      and q.class_oid in (select
      c.obj# from sys.scheduler$_class c                          where
      c.affinity is null)))   UNION ALL   select j.job, 0,
      from_tz(cast(j.next_date as timestamp),      to_char(systimestamp,'TZH:TZM')
      ), 1, NULL,      from_tz(cast(j.next_date as timestamp),
      to_char(systimestamp,'TZH:TZM')),     NULL, 0   from sys.job$ j   where
      (j.field1 is null or j.field1 = 0)    and j.this_date is null) a   order by
      1)   where rownum = 1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.47       0.47          0       9384          0           1
    total        3      0.48       0.48          0       9384          0           1
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: SYS   (recursive depth: 1)
    Rows     Row Source Operation
          1  COUNT STOPKEY (cr=9384 pr=0 pw=0 time=0 us)
          1   VIEW  (cr=9384 pr=0 pw=0 time=0 us cost=5344 size=6615380 card=194570)
          1    SORT ORDER BY STOPKEY (cr=9384 pr=0 pw=0 time=0 us cost=5344 size=11479630 card=194570)
    194790     VIEW  (cr=9384 pr=0 pw=0 time=537269 us cost=2563 size=11479630 card=194570)
    194790      UNION-ALL  (cr=9384 pr=0 pw=0 time=439235 us)
        231       FILTER  (cr=68 pr=0 pw=0 time=920 us)
        231        TABLE ACCESS FULL SCHEDULER$_JOB (cr=66 pr=0 pw=0 time=690 us cost=19 size=13157 card=223)
          1        TABLE ACCESS BY INDEX ROWID SCHEDULER$_CLASS (cr=2 pr=0 pw=0 time=0 us cost=1 size=40 card=1)
          1         INDEX UNIQUE SCAN SCHEDULER$_CLASS_PK (cr=1 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 5056)
          0       FILTER  (cr=3 pr=0 pw=0 time=0 us)
          0        TABLE ACCESS FULL SCHEDULER$_LIGHTWEIGHT_JOB (cr=3 pr=0 pw=0 time=0 us cost=2 size=95 card=1)
          0        TABLE ACCESS BY INDEX ROWID SCHEDULER$_CLASS (cr=0 pr=0 pw=0 time=0 us cost=1 size=40 card=1)
          0         INDEX UNIQUE SCAN SCHEDULER$_CLASS_PK (cr=0 pr=0 pw=0 time=0 us cost=0 size=0 card=1)(object id 5056)
    194559       TABLE ACCESS FULL JOB$ (cr=9313 pr=0 pw=0 time=167294 us cost=2542 size=2529254 card=194558)
    {code}
    and the totals at the end of the TKPROF on the 11g SID:
    {code}
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          4           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        3      0.00       0.00          0          0          4           0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       70      0.00       0.00          0          0          0           0
    Execute     85      0.01       0.01          0         62        208          37
    Fetch       49      0.48       0.49          0       9490          0          35
    total      204      0.51       0.51          0       9552        208          72
    Misses in library cache during parse: 5
    Misses in library cache during execute: 3
       35  user  SQL statements in session.
       53  internal SQL statements in session.
       88  SQL statements in session.
    Trace file: 11gSID_ora_17721.trc
    Trace file compatibility: 11.1.0.7
    Sort options: default
           1  session in tracefile.
          35  user  SQL statements in trace file.
          53  internal SQL statements in trace file.
          88  SQL statements in trace file.
          51  unique SQL statements in trace file.
        1590  lines in trace file.
          18  elapsed seconds in trace file.
    {code}
    The version of the database is 10.2.0.3.0.
    These are the parameters relevant to the optimizer for the test run on the 10g SID:
    {code}
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.3
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    SQL> show parameter db_file_multi
    NAME                                 TYPE        VALUE
    db_file_multiblock_read_count        integer     8
    SQL> show parameter db_block_size
    NAME                                 TYPE        VALUE
    db_block_size                        integer     8192
    SQL> show parameter cursor_sharing
    NAME                                 TYPE        VALUE
    cursor_sharing                       string      EXACT
    SQL> column sname format a20
    SQL> column pname format a20
    SQL> column pval2 format a20
    SQL> select sname, pname, pval1, pval2 from sys.aux_stats$;
    SNAME                PNAME                     PVAL1 PVAL2
    SYSSTATS_INFO        STATUS                          COMPLETED
    SYSSTATS_INFO        DSTART                          09-24-2007 11:09
    SYSSTATS_INFO        DSTOP                           09-24-2007 11:09
    SYSSTATS_INFO        FLAGS                         1
    SYSSTATS_MAIN        CPUSPEEDNW           2110.16949
    SYSSTATS_MAIN        IOSEEKTIM                    10
    SYSSTATS_MAIN        IOTFRSPEED                 4096
    SYSSTATS_MAIN        SREADTIM
    SYSSTATS_MAIN        MREADTIM
    SYSSTATS_MAIN        CPUSPEED
    SYSSTATS_MAIN        MBRC
    SYSSTATS_MAIN        MAXTHR
    SYSSTATS_MAIN        SLAVETHR
    13 rows selected.
    {code}
    Now for the TKPROF of a mirrored test environment running on a 10G SID:
    {code}
    create table ALLIANCE  (
       ALLIANCEID           NUMBER(10)                      not null,
       NAME                 VARCHAR2(40)                    not null,
       CREATION_DATE        DATE,
       constraint PK_ALLIANCE primary key (ALLIANCEID)
               using index
           tablespace LIVE_INDEX
    tablespace LIVE_DATA
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.01          0          2         16           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.01       0.01          0          2         16           0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 113
    {code}
    ... large section omitted ...
    Totals for the TKPROF on the 10g SID:
    {code}
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.02          0          0          0           0
    Execute      1      0.00       0.00          0          2         16           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.02          0          2         16           0
    Misses in library cache during parse: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       65      0.01       0.01          0          1         32           0
    Execute     84      0.04       0.09         20         90        272          35
    Fetch       88      0.00       0.10         30        281          0          64
    total      237      0.07       0.21         50        372        304          99
    Misses in library cache during parse: 38
    Misses in library cache during execute: 32
       10  user  SQL statements in session.
       76  internal SQL statements in session.
       86  SQL statements in session.
    Trace file: 10gSID_ora_32003.trc
    Trace file compatibility: 10.01.00
    Sort options: default
           1  session in tracefile.
          10  user  SQL statements in trace file.
          76  internal SQL statements in trace file.
          86  SQL statements in trace file.
          43  unique SQL statements in trace file.
         949  lines in trace file.
           0  elapsed seconds in trace file.
    {code}
    Edited by: user8598842 on Mar 11, 2010 5:08 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

    So while this certainly isn't the most elegant of solutions, and most assuredly isn't in the realm of supported by Oracle...
    I've used the DBMS_IJOB.DROP_USER_JOBS('username'); package to remove the 194558 orphaned job entries from the job$ table. Don't ask, I've no clue how they all got there; but I've prepared some evil looks to unleash upon certain developers tomorrow morning.
    Not being able to reorganize the JOB$ table to free the now wasted ~67MB of space I've opted to create a new index on the JOB$ table to sidestep the full table scan.
    CREATE INDEX SYS.JOB_F1_THIS_NEXT ON SYS.JOB$ (FIELD1, THIS_DATE, NEXT_DATE) TABLESPACE SYSTEM;The next option would be to try to find a way to grant the select privilege to the role without using the aforementioned "after CREATE on schema" trigger and dbms_job call. This method was adopted to cover situations in which a developer manually added a table directly to the database rather than using the provided scripts to recreate their test environment.
    I assume that the following quote from the 11gR2 documentation is mistaken, and there is no such beast as "create or replace table" in 11g:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_9003.htm#i2061306
    "Dropping a table invalidates dependent objects and removes object privileges on the table. If you want to re-create the table, then you must regrant object privileges on the table, re-create the indexes, integrity constraints, and triggers for the table, and respecify its storage parameters. Truncating and replacing have none of these effects. Therefore, removing rows with the TRUNCATE statement or replacing the table with a *CREATE OR REPLACE TABLE* statement can be more efficient than dropping and re-creating a table."

  • Table creation - order of events

    I am trying to get some help on the order I should be carrying out table creation tasks.
    Say I create a simple table:
    create table title (
    title_id number(2) not null,
    title varchar2(10) not null,
    effective_from date not null,
    effective_to date not null,
    constraint pk_title primary key (title_id)
    I believe I should populate the data, then create my index:
    create unique index title_title_id_idx on title (title_id asc)
    But I have read that Oracle will automatically create an index for my primary key if I do not do so myself.
    At what point does Oracle create the index on my behalf and how do I stop it?
    Should I only apply the primary key constraint after the data has been loaded as well?
    Even then, if I add the primary key constraint will Oracle not immediately create an index for me when I am about to create a specific one matching my naming conventions?

    yeah but just handle it the way you would handle any other constraint violation - with the EXCEPTIONS INTO clause...
    SQL> select index_name, uniqueness from user_indexes
      2  where table_name = 'APC'
      3  /
    no rows selected
    SQL> insert into apc values (1)
      2  /
    1 row created.
    SQL> insert into apc values (2)
      2  /
    1 row created.
    SQL> alter table apc add constraint apc_pk primary key (col1)
      2  using index ( create unique index my_new_index on apc (col1))
      3  /
    Table altered.
    SQL> insert into apc values (2)
      2  /
    insert into apc values (2)
    ERROR at line 1:
    ORA-00001: unique constraint (APC.APC_PK) violated
    SQL> alter table apc drop constraint apc_pk
      2  /
    Table altered.
    SQL> insert into apc values (2)
      2  /
    1 row created.
    SQL> alter table apc add constraint apc_pk primary key (col1)
      2  using index ( create unique index my_new_index on apc (col1))
      3  /
    alter table apc add constraint apc_pk primary key (col1)
    ERROR at line 1:
    ORA-02437: cannot validate (APC.APC_PK) - primary key violated
    SQL> @%ORACLE_HOME%/rdbms/admin/utlexcpt.sql
    Table created.
    SQL> alter table apc add constraint apc_pk primary key (col1)
      2  using index ( create unique index my_new_index on apc (col1))
      3  exceptions into EXCEPTIONS
      4  /
    alter table apc add constraint apc_pk primary key (col1)
    ERROR at line 1:
    ORA-02437: cannot validate (APC.APC_PK) - primary key violated
    SQL> select * from apc where rowid in ( select row_id from exceptions)
      2  /
          COL1
             2
             2
    SQL> All this is in the documentation. Find out more.
    Cheers, APC

  • Purchase Order and Invoice creation

    Hi All,
    I am having some fields related to Purchase order and Invoice creation, i have to find out the tables to which tables these fields belongs to.
    Below are the Header fields:
    Wrbtr  Tcode - MIRO,
    Lfsnr   Tcode - MIGO,
    Evertn Tcode - Me32k,
    Kbetr  Tcode - Me32k,
    Kschl  Tcode - Mek1,
    Selkz  Tcode - Mek1,
    Werks Tcode - Mek1,
    Evart   Tcode - Me31k,
    Frgco  Tcode - Me35k,
    Sddat  Tcode - Me35k,
    Below are the Detail fields:
    Kbetr   Tcode - Mek1,
    Konwa Tcode - Mek1,
    Lgobe  Tcode - Me21n,
    Planloc Tcode - Me31k,
    Datab   Tcode - Mek1,
    Datbi    Tcode - Mek1,
    Fromdate  Tcode - Me31k,
    Todate      Tcode - Me31k,
    i have to retrive all these fields from tables, so plz anybody give me exact tables to use in the select quries to retrive these fields.
    Thanks in advance,
    Balu.

    Hi,
    U can get the req fields as follows:
    Below are the Header fields:
    1)Wrbtr Tcode - MIRO- table rseg ,field-wrbtr
    give belnr (invoice no ) & BUZEI(item)  if known, else, give ebeln,ebelp.
    2)Lfsnr Tcode - MIGO,-table mkpf,give mblnr (mat doc no ) & ZEILE(item) field-xblnr  or give ebeln,ebelp
    3)Kbetr Tcode - Me32k,
    table:konp or konv.
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH  in 1 of the tables- konp or konv,wil get kbetr.
    4)Kschl Tcode - Mek1,
    Pass ebeln,ebelp to table ekpo, get mwskx(taxcode), u will get condition type kschl from FM -FI_TAX_GET_CONDITION_TYPES.
    or
    table:konh or konp or konv.
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV   as KNUMH in 1 of the tables-konh or konp or konv, wil get kschl.
    5)Werks Tcode - Mek1,-table-ekpo, field-werks(give ebeln,ebelp)
    Below are the Detail fields:
    1)Kbetr Tcode - Mek1,
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables- konp or konv,wil get kbetr.
    2)Konwa Tcode - Mek1,
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in 1 of the tables- konp or konv,wil get konwa.
    3)Lgobe Tcode - Me21n,give ebeln.ebelp in table ekpo, get lgort.pass lgort to table t001l, u wil get lgobe.
    4)Datab Tcode - Mek1,table-konh,field datab
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH  in - konh ,wil get datab.
    5)Datbi Tcode - Mek1,table-konh,field databi
    Pass ebeln to ekko, wil get KNUMV.Pass KNUMV as KNUMH in  table- konh,wil get databi.
    Hope its useful to u.

  • Access migration - handling really silly field and table names

    Hi All,
    I'm working through migrating an ** interesting ** Access database that has been hacked together over the years by a number of ... talented amateurs.
    I've noticed a difference in the way the migration wizard translates some of the really silly names it's got, between creating the table script and creating view scripts.
    It seems to manage the silliness better when creating the tables, but it doesn't quite catch up when creating the views.
    For example the main table in this application is called (believe it or not):
    "T - This Appn Detail - MAIN TABLE"
    Note that it's 33 characters long as well as including spaces and hyphens.
    The table creation script creates a table called T___This Appn_Detail___MAIN_TA (which works)
    But the translation of a query off this table to a view is looking for a table named T___This Appn_Detail___MAIN_TABL
    Which is (a) different and (b) too long
    It does a similar thing with our exciting field names. We have a field in the Access database called "Net Rate (twin share)"
    The table script calls this "Net Rate _twin share_" but the view script sticks with "Net Rate (twin share)" - which causes "FROM keyword not found where expected"
    Does anyone know if there's a way to nudge the view creation process in the right direction?
    I guess the most sensible thing is to go into Access and correct the field names, but I don't want to spend a great deal of time updating the Access database so all the references to the fields get fixed, when I'm about to ditch it anyway.
    Thanks,
    Greg H

    Hi Greg,
    The Access SQL translator should be referencing the SQL Developer Migration Workbench repository to find the correct migrated name of your tables, columns. Thereby producing PL/SQL which references the correct table name. :(
    I have logged this as a bug to be fixed in our next release.
    6647344: ACCESS VIEW TRANSLATION REFERENCES OLD OR INCORRECT TABLE NAMES
    I can try and replicate your issues as described, but would it be possible for you to send in your access databases so we can test it here?
    You may delete the data if you wish, its the schema of the database I'm interested in.
    Unfortunately this is not an offer to complete the migration :)
    But it would better help us understand the exact issues you are experiencing and help us better our product.
    Thanks
    Dermot.
    Message was edited by:
    dooneill

  • How to create monthly table creation?

    Hi Mates,
    Unable to create table by month in analytic database but load the data to the previous table continuous as attached screenshot, Schema user has the creation privilege. We are using Webcenter interaction 10gR4.
    How to create monthly table creation please?
    Thanks,
    Katherine

    Hi Trevor,
    Thanks for your help.  We were able to create table and load data till Apr as attached.
    However the analytic user privilege has been modified on Apr due to server operation.
    Since then, there was a message saying there is no permission to create tables in the analytic log,
    analytic user privilege has been granted after checked this message, As I suspected, the issue occurred after modifying analytic user privilege.
    Currently, analytic users are granted with all privilege.
    Any idea please?
    Thanks,
    Kathy

  • PO creation Date and Invoice creation Date

    Hi,
    Can any one help me regarding which table I can look for PO creation date and Invoice creation date. I require these fields for my reporting requirement.
    Thanks in advance,
    Arvind.

    Thanks for your response Bala.
    I got the Table which I require. I have one more question on this.
    Can you tell me Invoice Creation Date is RBKP-BLDAT(Document Date in Document) or RBKP-BUDAT(Posting Date in the Document) and PO creation Date is EKKO-AEDAT(Date on which the record was created) or EKKO-BEDAT(Document Date in Document).
    Points already rewarded.

Maybe you are looking for

  • While importing XML from iMovie...

    Whenever I import an XML file from iMovie and then put it in the timeline, it will not play. I render it so that the bars above the video are gray and everything appears to check out, but the when i click the play button, it will not play and a littl

  • How to display a "Transaction in progress" screen

    Is it possible to replace (in ITS) the current waiting screen (a moving ball or something like that) with something else? We have a transaction that takes a long time to display. It's not a problem in the ITS, it's just how the transaction is - assum

  • Error while configuring KVStore

    Hi, I am trying to install Oracle NoSQL release 2.0.26. I have created just two storage nodes for the time being. While I am trying to create a topology, I see an error - "Can't build an initial topology with 0 shards. Please increase the number or c

  • Does not load

    when i click on creative cloud it opens the has a white screen and a load symbol and loads and does that forever

  • Email error message

    I'm trying to set up a live.com email account on my phone. After putting the email address and password I get a error message (failed). if I go through a search engine, the security asks my for the last four numbers of my phone number. It works that