Fetching records in a block(db) for mass processing

My user interface inputs commit frequency for intermittent commits. We reference this to # of records processed & then issue commit. [whilst processing against millions of records]
Now, we want to process all records belonging to set of data blocks to avoid contention issues (gc/ other locking issues) & then issue commit.
So the question is, how do I query records belonging to a particular block OR identify those blocks that hold my data.
Any pointer is greatly appreciated.
thanks
Kiran.

kkulkarn wrote:
This is needed for a DW instance wherein we select recordset from a OLTP instance running 4 node RAC. The user then inputs a condition based on which the records are selected.
We are commiting based on parameters defined by DBA's - the commit frequency. This increases contention especially if the records are stored in contiguous location. Add to this the RAC, the GC traffic is huge.
So what we want to do is to grab all the records in a particular block & read the whole block & then process to DW. I was looking at a query that can get me the block# involved in this process.
Could you clarify:
Is it the OLTP that is on RAC, or the DW, or both ?
Which type of contention - can you show us the critical wait information - and is this on the OLTP or RAC system, and is it the OLTP or RAC system where the GC traffic is huge ?
You seem to be asking how you can specify a query in an OLTP system that is going to visit many table blocks - but "pre-sort" the data in some way so that it visits each table block only once, and visits the table blocks in order so that you don't revisit the same table block and run the risk of extra interconnect traffic on the OLTP system. Is this a correct interpretation of your requirement ?
Does your transfer process do something like:
counter := 0;
for r in (select from OLTP system) loop
    insert into DW system values (r.thing....);
    counter := counter + 1;
    if counter = {limit} then
        commit;
        counter := 0;
    end if;
end loop;
commit;Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Transaction for Mass processing of PM(Plant maintenance) orders

    Hi all,
    Pls let me know if there is any standard tcode for  for Mass processing of PM(Plant maintenance) orders
    I checked for COHV ,but it's appplicable only for produciton orders it seems
    Costing has to be recalculated for all the orders of order type PM02 for financial year 2008-09
    Awaiting eagerly for your reply
    Thanks,
    SVP

    Hello,
    Please try using IW38,IW39
    execute the screen and then you get the option for releaseing , teco etc
    Regards
    gajesh

  • I need block diagrams for audio processing effects such as echo,flanger,vibrato,chorus for implementing in labview?

    i need block diagrams for audio processing effects such as echo,flanger,vibrato,chorus  for implementing in labview? pls i need it very quickly........

    Hi komalamani,
    i need it very quickly...
    So you better start coding soon!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Function or tcode to tick delivery completed in PO item for Mass processing

    Hi All,
    Is there any Function or tcode to tick delivery completed in Mass Processing?
    Appreciate.
    Nies

    Hello,
    Please use transaction MEMASSPO to set delivery completion indicator for several PO lines together.
    Thanks,
    Venu

  • Issue in completing the block step for parallel processing

    Hi,
    i have created a workflow where in i have used a block step to send workitems to multiple agents.  I have used parallel processing in block step. Number of agents are determined in the runtime. Lets say i have two items in my multiple line container( two agent id). Now inside block statement i have put user decesion step. So at the same time workitems goes to the two approver for approval. When both approver take the decesion after that also command is not coming out of the block step. I want the command to be out of block step after this and goes to the next step of workflow.
    Please suggest any helpful solution for it.
    Regards,
    Smit Shah

    I think theremust be a binding problem , the binding must be some thing like the below
    &USERID[&_WF_PARFOREACH_INDEX&]& ----->&_USERID_LINE&
    of the block step from WF container to Block Conatiner. Because when I checked in my system it is behaving as you want., I also include one Decision step inside the block, and then hard coded the userid values int the table USERID and made the above binding and it ia working fine and in the Decision Agent I mentiond the EXPRESSION and assigned the value &_USERID_LINE&

  • Completing the block step for parallel processing

    Hello ,
    I"m  using a  ParForEach  block   .
    It works fine and  2   approves get their decision task  respectively ,
    I  want to end all parrallel  processes if one of the   approvers select the reject  option  .
    I  thought it could be done using the  End condition Option .
    I have defined an end condition    in  the tab  Parallel  Procesing  ,  the condition  is  an  element wf_result is set to REJECT
    was defined.
      But   nothing resulted and althogh i check  the container and the  element is correctly   assigned after one of the approvers
      rejects  the  other is still  sitting there.
    i  ran  the condiion evalate button  on  this step  with no   success .
    Please Advise

    Hi Rina
    In EHP4, there is the following workflows for Compensation:
    04000022 ECM_SUBMIT
    04000024 ECM_REJECT
    04000025 ECM_CREATE
    together with class CL_HRECM00_WORKFLOW_EVENT.
    There, the parallel processing is used.
    Best Regards
    Raquel

  • Approach for Mass processing sales orders

    Hi,
    Need pointers on the following:
    >>Can we change/save a sales order with out opening/going to the Sales Order overview page?
    If I try to get the entities using dynamic query object, I will get the result.
    In the same way, Is it possible to get the root/access objects in a custom component.
    This is because, once i get the access objects/entities , I will be able change the relevant properties.
    This should be  done for a set of salesorders  so,  navigating to the overview page for each order has to be skipped.
    The idea is to get an instance of the Root/Access objects and save/modify core accordingly.
    Is this possible?. If yes, pls provide some pointers.
    If this is not possible, the same can be achieved by calling RFC function module and execute the same using crm_order_save. But, this may take more time for processing, which will cause timeout for webui session.
    Also, please correct me if i'm  wrong in any of above assumptions.

    hi,
    ****you get root objects using GUID from get_root_entity method of cl_crm_bol_core class
    for example one order root object you will get like below..
    data: lr_core type ref to cl_crm_bol_core,
              lr_order type ref to cl_crm_bol_entity,
              lr_header type ref to cl_crm_bol_entity.
      lr_core = cl_crm_bol_core=>get_instance( ).
      lr_core->start_up( 'ALL' ).
    lr_order ?= lr_core->get_root_entity( iv_object_name = 'BTOrder'
                                                                    iv_object_guid = <<GUID>> ).
    lr_header ?= lr_order->get_related_entity( 'BTOrderHeader' ).
    <<<<logic comes to change and save the objects>>>>
    regards
    Ismail

  • CM40- Definition of parameters for mass processing

    Dear gurus,
    i run the transaction CM40 and i insert in the selection the parameter:
    JOB NAME
    Overall profile
    Redefine selection  x
    Dispatch
    Excute background job  at once,
    but in the sm37 the job is 0 sec but the planned order don't are dispatched.
    Are there others setting custimizing ? or activity in the CM40 ?
    Thansks a lot
    Daniele Pistilli
    PP TEAM

    ok

  • Fetching records in block

    hi guruz,
    i have requirement something like that in a table more than 3 lakh record are there.
    i want to fetch records in a block of 1000 . how can i achive this.
    i already implemented one way that fetch all records (3 lakhs) one time , and process those in internal table .
    But selecting 3lakhs records at one time abap application server giving timeout error.
    some cofigraution required or what.
    please guide me.
    warm regards.

    Hi,
    what about doing it package by package ( 1 package = 1000 rows) and process the int. table as you like:
    DATA: itab TYPE STANDARD TABLE OF SCARR WITH NON-UNIQUE
                     DEFAULT KEY INITIAL SIZE 10.
    FIELD-SYMBOLS: <FS> TYPE scarr.
    SELECT * INTO TABLE itab PACKAGE SIZE 1000 FROM scarr.
      LOOP AT itab ASSIGNING <FS>.
                ... process it
      ENDLOOP.
    ENDSELECT.
    Set the package size high enough that you have not many additional selects
    (10.000 or 50.000 should be also ok).
    Please be aware that the int. table is only defined inside the SELECT / ENDSELECT.
    bye
    yk

  • Mass processing for SOP

    Hi,
    I am able create sale plan through MC87 transaction by selecting the create sale plan through forecasting, when total consumption values are maintained in the material. But I want this to be done by MASS processing function. In other words I want to up date key figure sales in S076 table.
    There is one tcode MPBT which is to create total forecast in background. But this is happening only when unplanned consumption values are maintained in material. Is this behaviour is correct?
    Can u detail the configuration settings required for mass processing of SOP.
    Through help I came to now that mass processing can be done for forecasting. Is this forecasting and creating sales plan are same. Kindly brief.
    Thanks & Regards,
    N. Laxman

    you can refer the below link:
    [http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOLISPLN/LOLISPLN.pdf]
    configuration steps for SOP:
    1)Set parameter for Info structure and Key figure
    2)Maintain Transfer Profile
    3)Define Activity
    4)Define Key figure assignment
    5)Define copy profile.
    procedure of Standard SOP:
    1. Create Plan in inactive version
    2. Disaggregate product group plan & Check capacity
    3. Version Management
    4. Transfer Product group to planning
    procedure of Flexible Planning:
    1.Create Plan in inactive version
    2.Convert Plan in to Active Version
    3.Transfer to Demand management
    Master Data in SOP:
    1.Information Structure
    2.Planning Type
    3.Planning Hierarchy
    4.Product Group
    5.Resource
    6.Rough cut planning profile
    It's very helpful link & std procedures for SOP.
    SOP steps have 3 classifications
    1) STD SOP for Material
    2) STD SOP for Product Group
    3) Flexible Planning
    A) Now Let we take STD SOP for Material
    This will takes place in Material and Plant level
    so the charateristics will be Material and Plant
    The key figures are Sales,Production Qty,Targer stock level,.......etc
    Steps
    1) Create Planning for material MC87
    2) Copy to Active Version MC78
    3) Transfer to Demand Mangement MC74
    B) STD sop for Product Group
    Here also the Characteristics are same material->product group
    You have to maintain master data Product group
    steps:
    1) Create Product Group MC84
    2) Create Plan for Product Group MC81
    3) Disaggregate Product Group Plan MC76
    4) Copy to active version MC78
    5) Transfer to Demand Management mc75 for Pg or mc74 for material
    C) FLEIXIBLE PLANNING
    Here you can able to Define your own characteristics and Key figures
    Char like Sales org,Dis chann, Div,......
    Key figures like stock,invoice qty,....
    steps
    1) Create Info structute MC21
    2) Maintain Planning Parametes MC7F
    3) Create Planning Type MC8A
    4) Create Flexible Planning MC93
    5) Copy to active version MC8V
    6) Transfer to Demand managemet
    5) Create Std SOP Planning -MC
    6) Transfer to DM from change mode of Flex Plann with active version MC94
    if you want use the flexible planning info like SIS in std sop after the 4th step of above it will be like
    5) MC87 std sop there Sales data from SIS it will ask for info str and version then you can get it automatically then the std steps like
    6) Copy to Active Version MC78
    7) Transfer to Demand Mangement MC74
    Pls let me know any clarifications.

  • Mass processing Tcode for disaggregation of Prod group plan to Lower levels

    is there a TCode to mass disaggregate the sales plan to FG forecast. I am looking for 'Mass Processing' function of what MC76 can do 'Product Group by Product Group.
    Such processing should blow thro' intermediate level of Product group & then to next level which would be FERT materials.

    is there a TCode to mass disaggregate the sales plan to FG forecast. I am looking for 'Mass Processing' function of what MC76 can do 'Product Group by Product Group.
    Such processing should blow thro' intermediate level of Product group & then to next level which would be FERT materials.

  • Mass Processing for Forecast SOP

    Hi Experts,
    I have one requirement, I have to run Mass Processing for Forecast SOP in background Job based on consumption values updated in Material Master.
    I have followed all instruction give for doing this process (SAP SOP Mass Processing - SAPs'WORD - We SAP For Your Cause) but could not achieve.
    Can any one help to run in background job for Mass Processing for Forecast SOP.
    Thanks in Advance
    V.Sundeep

    Hello,
    Refer KBA    1778072 - Error message MA 653 when running mass processing forecast (program RMCP6BIN)
    Internal condition NOT IPRWA-VGVON IS INITIAL not fulfilled
    Internal condition NOT IPRWA-VGBIS IS INITIAL not fulfilled
    Forecast/historical period cannot be calculated MA 653
    Check your planning type which is used for your batch job. The number of historical periods in planning type (transaction MC8B) must not be smaller than the number of historical periods in forecast profile (transaction MC96). If the number of forecast period is maintained in the forecast profile (transaction MC96) the number of future period in the planning type must not be smaller than the number of forecast period in the forecast profile.
    A not appropriate entry in SOP User Settings (transaction MC79) in Number of periods in the planning horizon can have an effect on this also.
    Best Regards,
    R.Brahmankar

  • Mass processing for forecating in SOP

    Hi all
    I ma able to forecast a material online thru MC87 in standard SOP, but when I try to set up a variant for mass processing in the background the forecasting does not work. Has anybody encountered this issue?
    thanks a lot

    Tajuddin
    Thanks for your reply. I am reading the R/3 documentation and it talks about Mass processing of SOP forecasting ( R/3 documentation verbiage below) I am trying to follow these steps but it does not work. Isn't this mass processing supposed to be for forecasting in mass in background?
    Am i understanding this incorrectly?
    How to Run the Forecast with Mass Processing
    You can use SOP’s mass processing function to run the forecast. In this process:
    You create a forecast profile.
    You create a planning activity and include in it this action (the forecast profile).
    You create a mass processing job for this activity.
    You schedule this mass processing job.
    The results of the forecast will be different if the forecast is run at a high level and the results then disaggregated to the detailed level than if you carry out the forecast at the detailed level.

  • Ho to create Mass Processing and jobs for monthly process

    Hi Gurus,
                I had created all activities and jobs for background run and my question is 1. how to create for mass process ?
    2.Do i need to create process chains for background run for every month ?
    3. How to create parallel processing as well/
    Please let me know and thanks for your answers.
    Regards,
    Raj

    Hi Raj,
               Here is the link to saphelp documentation for <a href="http://help.sap.com/saphelp_scm50/helpdata/en/02/7650d6353611d398290000e8a49608/frameset.htm">mass processing</a>.
    You can use a process chain and it is much easier if you want to repeat that periodically and integrate with the process steps. You have the option of creating parallel processes in process chains as well.
    Here is the link to <a href="http://help.sap.com/saphelp_scm50/helpdata/en/81/ae653fac7ab21ae10000000a114084/frameset.htm">process chains</a>.
    Hope this helps.

  • Mass processing & Back jobs

    Hi Gurus
    Can any one give me different background jobs and mass processing available in R3.
    This is reqd urgent
    Regards
    Subbaraya

    Mass Processing of Production Orders
    Use
    Mass processing enables you to carry out functions for multiple orders.
    Features
    Functions
    The following lists contain the mass processing functions that are available:
    Order headers
    Material availability check
    Release
    Printing of shop floor papers
    Costing
    Scheduling
    Generate capacity requirements
    WM material staging
    Picking
    Set/delete user status
    Confirmation
    Technically complete
    Close
    Log display
    Operations
    Release
    Print shop floor papers
    Picking
    Set/delete user status
    Confirmation
    Log display
    Components
    Print shop floor papers
    Picking
    Log display
    Production resources and tools
    Printing of shop floor papers
    Log display
    Starting Mass Processing
    Mass processing can be started in the following ways:
    Triggering the execution of a function
    The execution of a function can be triggered as follows:
    Execute function immediately
    The functions are executed directly after mass processing has been triggered. This can take a long time for functions that require a lot of system resources. However, you can immediately check whether the function was successfully executed.
    Execute function with dialog transaction
    Further processing is controlled by a dialog that is specific to the function. This option is available for the following functions: Confirmation, Picking, Log display.
    Create a function request (refer to Processing Requests)
    First, requests are created without any further checks. The requests are created very quickly. Mass processing is actually executed with the program COWORKDISPATCH. As a result, it is delayed until the next time the program starts. You can decouple the function in terms of time, so that the main work takes place at night, for example. The end users create requests and system administration takes care of their execution.
    Execute function in the background
    First, requests are created without any further checks. Then a background process is started, which processes these requests immediately. Scheduling a background job does not create any administrative work and reduces the workload for the dialog.
    Parallel Processing
    For parallel processing, you define server groups for mass processing (COWORK-DIALOG, COWORK-BATCH). This enables you to speed up the execution of processing.
    Mass processing online/ in the background.
    You can either execute mass processing online or you can schedule it in a background job (no online steps are possible).
    Application Toolbar with Mass Processing Functions
    You can define that an application toolbar, with selected mass processing functions, is displayed in the list of the selected objects. You can use this application toolbar to execute the functions in the dialog.
    For more information refer to Display Application Toolbar with Mass Processing Functions.
    Test Run
    You can decide whether changes caused by a mass processing function are executed in the form of a test run only. Error messages that may occur are collected. No changes are updated to the database.
    You can use the test run for these functions:
    Close
    Set/delete user status
    Release
    Costing
    Generate capacity requirements
    Technically complete
    Scheduling
    WM material staging
    To test a function, select the option Test function without changes to data on the Mass processing tab page.
    Log
    Log records are written and saved as a function is being executed. They provide information about the execution of a mass processing function. If no log record exists, the function was executed without any problems. The log records are assigned to the order or the collective order
    Regards,
    nandha

Maybe you are looking for

  • Problems - application crashes on startup on iOS

    iphone 5 ios6.1, bought Photoshop Touch from itunes. when i try to start it remain freezed on the blue starting screen with the PS Photoshop Touuch logo. tried already to install again, to respring, but nothing happens...please help!

  • CPU upgrades, RAIDing system drive, and more

    Final Cut Studio user... editing on an iMac is murder... need more power Scotti! I intend to buy a Mac Pro next week, either BTO or retail, not sure yet! I know that CPUs on Mac Pro's are socketed and not soldered. Yipee! Is it confirmed that CPUs ar

  • Cannot open itunes. Alert message says I am missing MSVCR80.dll

    Help. Cannot open ITunes. Alert message says I am missing MSVSCR80.dll

  • How to refresh a page in apex, once it is loaded

    Hi friends, I need to refresh the entire apex page automatically, once after the page is loaded. How to achieve this in apex. Whether need to use any DA for the auto-refresh. If so, can you kindly help me with that guys. Thanks Brgds, Mini

  • App creation wizard fails to recognize Attribute association

    Hi friends, The application creation wizard is broken as it does not recognize the attribute association with the base dimension. Getting a message - Attribute dimension is associated with 0 base dimensions.It should be associated with one and only o