How to trigger n number of jobs by processing  using fetch cursor.

We have report which retrieves all the data from the master table using the open fetch cursor with the packet size 10,000
FOR EXAMPLE:
If there are 50,000 records(total)
For each 10,000 records it should trigger a job  (we are trying to call a common program and submit the program in background through the main program )  were all the validation will be done only through the program
Totally we are expecting 5 job's to be trieggered.
Purpose : we want all the records validation to be completed Simultaneously with fraction of difference.

Hi,
You might need to rethink on your scenario.
Where are the values for Vendor Region are getting stored for a PO? You might not be able to handle N number of Vendor regions for N number of Plants....You actually have to come to a 1:1 mapping.

Similar Messages

  • How to trigger an existing background job in ABAP program?which fm?

    Hi experts,
        how to trigger an existing background job( defined in SM36 ) in ABAP program?which fm?
        seems that FM 'JOB_OPEN' / 'JOB_SUBMIT' / 'JOB_CLOSE' can only create a new job.

    Hi,
        now my requirement is that sap has generated one job automatically, and then i will have a job name
    'XXX'. and then i want to schedule the job in abap program,. which function module could i use ?
    my expected fm is that the system will trigger the job after i give the job name and start condition.
    i have tried job_open, but it seems just to create a new job. any advice ?

  • How to set maximum number of jobs in oracle

    Could pls tell explain me about how to set maximum number of jobs in oracle....
    Regd,
    Mahi

    I don't think there is any limit on number of jobs that can be submitted to Oracle. However, there is a limit on the number of processes that would execute those jobs (governed by JOB_QUEUE_PROCESSES).
    Message was edited by:
    Satish Kandi
    Typo corrected.

  • How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_0

    How to Assigning the number ranges for Purchase Order using EXIT_SAPMM06E_001 using Functional Module NUMBER_GET_NEXT explain me ?

    Hi,
    First go thourh the FM import export parameters list.
    Try to create an internal table of type INRI-NRRANGENR for number ranges.
    We can provide the lower and higher values for this table so that what ever PO is created will be with that range.
    Try to create the ncessary ones using this FM.
    In the Exit, EXIT_SAPMM06E_001,
    the Export parameters are-
    EKKO-EBELN- the PO ios created with in that specified range
    Range as INRI-NRRANGENR - Here try to assign the Internal table that was populated in the FM.
    Try to code this in the Include provded and keep Breakpint and check the PO number generated.
    Reply if u need more help on this.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • How to trigger an ABAP program in a Process chain

    Hello Forum,
    1. In a process chain, if a program fails, how can we re-run it?
    2. If the process preceeding the ABAP program fails, how can we start the program?
    3. If an Infospoke fails in a process chain, how can we trigger that?
    Thank you,
    Its my pleasure to assign points,
    raj

    Hi,
    1. U have to first check whats the reason for the failure. check in the monitor screen details button, the error message will be displayed, check the error, correct it. and to proceed with further right click on the subsequent process use Repeat option , the loads will get continue.
    2. same here, if it fails check the reason, sometimes if two parallel process trying to access the same program Lock may occur, stop one process, once its done start the second process, use the transaction code SA38>select ur ABAP program, the corresponding variant->this is for running the ABAP program in the backgroud..if u want to run direct means Select the Process types Under the general services u find an ABAP program
    3. same here too u should find the reason why it fails, and rectify the error, and use the repaet option to proceed with further.

  • How to limit the number of TCP connections beeing used concurrently while a page is beeing loaded?

    We manufacture industrial small-footprint control modules with embedded web server. The resources of these modules are very limited, especially in RAM. We have problem, that FF opens 15 parallel TCP connections while loading a web page (main html page first, then all icons simultaneously). We can not handle such behavior because of lack of RAM memory needed for TCP buffers.
    Question is how to limit the number of concurrent TCP connections the browser will use? We need to do it somehow directly from the page, we can not push our customers to change the general settings of their browsers (they would not understand such things anyway).
    Do anyone have any suggestion?

    Sorry, one other thought. Many web designers now combine all icons into a single image and use CSS to clip the image so that only the desired portion is displayed. This minimizes the number of required connections and increases the probability that the image can be retrieved from cache.
    More info:
    * [http://www.w3schools.com/css/css_image_sprites.asp CSS Image Sprites - W3Schools]
    * [http://www.alistapart.com/articles/sprites/ A List Apart: Articles: CSS Sprites: Image Slicing’s Kiss of Death]
    * [http://coding.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/ The Mystery Of CSS Sprites: Techniques, Tools And Tutorials | Smashing Coding]
    No idea whether this is practical for your application.

  • How to modify a Procedure "select into" statement to use a cursor

    The below code fails with exception too many rows. How do I modify the Procedure's Select Into statement to use a cursor?
    CREATE OR REPLACE PROCEDURE Track_Asset(
       business_date IN NUMBER DEFAULT NULL,
       missing_table_name  OUT VARCHAR2)
    IS
       ln_business_date NUMBER;
        incorrectdateformat EXCEPTION;
    BEGIN
       IF business_date < 0
       THEN
          RAISE incorrectdateformat;
       ELSE
          DECLARE
            ln_business_date NUMBER;
          BEGIN
             SELECT MAX(business_date)
             INTO ln_business_date
             FROM sproof ;
          EXCEPTION
            WHEN NO_DATA_FOUND THEN
             dbms_output.put_line('NO MATCH FOUND');
            WHEN OTHERS THEN
            dbms_output.put_line('ORACLE ERROR :' || SQLERRM);       
          END;
          DECLARE
            missedfeedfnd EXCEPTION;
          BEGIN
             SELECT 'Missing Value : ' || table_name
             INTO missing_table_name
             FROM (
                SELECT UPPER(table_name) table_name
                FROM filespec
                WHERE data_table_name IN ('TABLE1','TABLE2','TABLE3')
                MINUS (
                SELECT DISTINCT UPPER(first_table_name)
                FROM dpca
                WHERE business_date = ln_business_date
                AND first_table_name IN ('TABLE1','TABLE2','TABLE3')
                GROUP BY UPPER(first_table_name) UNION
                SELECT UPPER(first_table_name)
                FROM dpca
                WHERE business_dt_num = TO_NUMBER( SUBSTR('201111', 1, 6) || '01' )
                AND first_table_name = 'TABLE4'
                GROUP BY UPPER(first_table_name) ));
                IF missing_table_name  IS NOT NULL THEN
                   dbms_output.put_line('Missing Value : '|| missing_table_name);
                   RAISE missedfeedfnd;
                ELSE
                  NULL;
                END IF;
          EXCEPTION
             WHEN TOO_MANY_ROWS THEN
       DBMS_OUTPUT.PUT_LINE (' SELECT INTO statement retrieved multiple rows');
              WHEN missedfeedfnd THEN
              raise_application_error ( - 20003, 'Missed Feed');
          END;
        END IF;
          EXCEPTION
       WHEN incorrectdatevalue
       THEN
          raise_application_error ( - 20001, 'Incorrect/Bad Date Entered');
    END;

    ok try this - OUT param will be populated with comma separated list of table names:
    PROCEDURE Track_Asset(
       business_date IN NUMBER DEFAULT NULL,
       missing_table_name  OUT VARCHAR2)
    cursor c_table_names is
    select datatablename
    from   ( select upper(datatablename) datatablename
             from   filespec
             where  data_table_name in ('TABLE1','TABLE2','TABLE3'                                 )
            MINUS
            ( select upper(first_table_name)
              from   dpca
              where  business_dt_num = [-- this date is retrieved by getting the MAX(business_date) from sproof table]
                     and fus_data_table_name in ('TABLE1','TABLE2','TABLE3'
              group  by
                     upper(first_table_name)
             UNION
              select upper(first_table_name)
              from   dpca
              where  business_dt_num = to_number( substr('201111',1,6) || '01' )
                     and first_table_name = 'TABLE4'
              group  by
                     upper(first_table_name)
    begin
       for rec in c_table_names
       loop
           missing_table_name  := missing_table_name  || rec.datatablename ||',';
       end loop;
       missing_table_name  := rtim(missing_table_name , ',');
    end ;HTH
    Edited by: user130038 on Dec 28, 2011 8:46 AM

  • How to trigger program into batch job

    Hi
    We are getting performance issue on below case.
    We are uploading some data from portal and that is triggering a method of class which is in WebDynpro.
    This program took all the resources and CPU utilization was 100%. Because of this production system went down.
    From Basis monitoring we understand this program running in fore ground (DIA mode).
    I want to check how this program triggered as a fore ground from portal and need information/steps how to configured this into background to resolve my issue.
    A <urgency removed> reply is very much helpful.
    Thanks,
    Umashankar.
    Edited by: Thomas Zloch on Mar 1, 2010 4:45 PM

    Dear Peter,
    Thanks for your update.
    I checked SM50 for my user ID but i couldn't find from where it is triggering from portal to SAP ABAP.
    It is running in 'DIA' Dialog mode.
    Can you please let me know how to check stak list.
    Thanks,
    Umashankar.

  • How to find out number of background work processe available in the system?

    Hi All,
    I have a FM that triggers a background job using JOB_OPEN, ABAP_SUBMIT and JOB_CLOSE. But the problem is if there are no background work processes available at that moment, it does not return error. Not sure whether the job is even scheduled!
    Is there a way to find out if there are any background work processes available in the system? I know a FM SPBT_INITIALIZE which gives info about dialog work processes. Is there any other FM similar to this which gives info about background wp??
    Regards,
    Shailesh

    your Job will remain in a queue by message handler. once workprocess is free, your job gets scheduled
    by the way, you can use the functionality used in FM TH_DISPLAY_WORKPROCESS_LIST to read the workprocesses
    the command which gets you the workprocess is:
    CALL 'ThWpInfo' ID 'OPCODE' FIELD OPCODE_WP_LIST
                      ID 'TAB' FIELD LIST_STATE_WPLST-TABL
                      ID 'CPU' FIELD LIST_STATE_WPLST-CPU.
    check how its written in include LSDEBF01, form SET_LIST_WPLST
    Edited by: Soumyaprakash Mishra on Dec 12, 2011 12:17 PM

  • How to limit the number of items from RSS using XSLT

    Hello,
    I am using plsql to read contents from RSS, basically a simple RSS reader.
    I would like to somehow want the feature to restrict the number of items in the RSS feed, say I would like to display only the first 5 items.
    How could I achieve this?
    Any help is highly appreciable.
    Thanks in advance.
    Regards

    Hi,
    According your post, I know you would like to set the item display limit in Status List web part.
    In the web part, the number of items to display is based on the view which you selected when configuring the web part. The default view for status list is status list view.
    However, I am not able to limit the items’ display number of the status list view. After changing the items limit, the list item displayed would not match the number specified by Item Limit. Thus, it is not possible to limit the number
    of items in the Status list web part.
    It could be a potential issue in SharePoint 2010.
    We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
    Appreciate your time and efforts.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to manage sequence number in PLD but not use LineNum()?

    Hi,All
    I want to show number in PLD.
    Probem, I can't use LineNum() because in some row in matrix that no price i will not show data.
    Now,if i use LineNum() when i print preview in column system will skip record that no have price.
    How to manage for get number order ascending sequence ?
    thank you
    Message was edited by: Frank Moebius

    Hi,
    Unfortunately I am not an expert in this area.
    I hope someone else can help you out though!
    However, I would like to draw your attention to the fact that the main purpose of this forum is around the SAP Business One SDK - and so appears to be the main expertise of the people participating here...
    ...this might be one of the reasons why it happens that you don't get an answer top your posts sometimes...
    Therefore I would like to advise you to use the "Implementation" Forum in the CPSN (Channel Partners Solution Network) to ask your questions.
    I hope you get more answers there + quicker.
    Sorry & Thanks for understanding,
    Frank

  • How to count the number of deleted rows processed

    Sybase ASE version: 15.7-SP52
    Hi all,
    I have a delete statement that will potentially delete millions of rows
    DELETE from TAB_A where COL_A='Y'
    The delete is long, at some point I'd like to know how many rows were deleted.
    If I do SELECT COUNT(*) from TAB_A where COL_A='Y', the query should be locked because of the exclusive-lock held by the DELETE in progress.
    If this is the case, how can I actually count the number of rows deleted so far?
    Thanks all
    Simon

    Simon
    For  deleting significant number of rows best practice is to delete rows in small batches of known size (e.g. 10 K) inside a while loop. 
    This keeps transaction log from filling up as well.
    Also between two iterations of delete you can give some wait to make sure that you do not monopolize the server. Sleep could be for a fixed number of seconds (e.g. 5) or for randomized number say from 1 to whatever makes sense.
    Typically "set rowcount " is used to set up the batch size and "waitfor delay" to sleep between iterations.
    Global variable @@rowcount gives yo actual rows deleted. For the last batch this may be lower than the batch size you set up.
    HTH
    Avinash

  • How to trigger the PAI in the POV (process value request)

    Hello everybody,
    On business agreement field in the POV, I developed a dropdown. This dropdown is working very well. When the user has chosen the business agreement in the dropdown, the corresponding address must be displayed in another field on the screen.
    The search on the adress is in the PAI.
    To see the address updated on the screen, the user must then press enter and that triggers the PAI.
    Is it possible to trigger the PAI in the POV so that the user can see immediately on the screen the address ?

    Hi everybody,
    Thanks for your help.
    I have tried with function 'DYNP_VALUES_UPDATE' with and without 'DYNP_GET_STEPL' before but it still doesn't work.
    Here are my code : if you find my error I recompense you very much immediately.  )
    Many thanks in advance
    Marie
    The name of the field to update on the screen is
    ZCRMT_0100_BTX_UI08-ZZADTXT.
    Here is my POV :
    module list_box_zzbuag_id input.
    Here is the piece of code for the dropdown
      perform read_activity_partner changing w_activity_partner.
      clear i_buag_id.
      refresh i_buag_id.
      select buag_id
             buag_text
             into table i_buag_id
             from  crmh_buag_search
             where partner eq w_activity_partner.
      sort i_buag_id by buag_id.
      delete adjacent duplicates from i_buag_id comparing buag_id.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield        = c_retfield_buag_id
          value_org       = c_value_org_s
        tables
          value_tab       = i_buag_id
        exceptions
          parameter_error = 1
          no_values_found = 2
          others          = 3.
    Here is the code to search the corresponding address
    Within this module, I fill the screen field
    zcrmt_0100_btx_ui08-zzadtxt with the address
    perform read_adtxt.
    Here I do my best to apply the solution you propose but without success
    Here are the declarations :
    data :
      w_step_line like  sy-stepl.
      i_dynpfields type standard table of dynpread,
      l_dynpfields like line of i_dynpfields.
      w_dyname like  d020s-prog,
      w_dynumb like  d020s-dnum,
      c_adtxt like screen-name value 'ZCRMT_0100_BTX_UI08-ZZADTXT',
    call function 'DYNP_GET_STEPL'
    importing
    povstepl = w_step_line
    exceptions
    stepl_not_found = 1
    others = 2.
    refresh i_dynpfields.
    clear l_dynpfields.
    w_dyname = sy-repid.
    w_dynumb = sy-dynnr.
    l_dynpfields-fieldname = c_adtxt.
    l_dynpfields-fieldvalue = zcrmt_0100_btx_ui08-zzadtxt.
    l_dynpfields-stepl = w_step_line.
    append l_dynpfields to i_dynpfields.
    call function 'DYNP_VALUES_UPDATE'
    exporting
    dyname = w_dyname
    dynumb = w_dynumb
    tables
    dynpfields = i_dynpfields
    exceptions
    others = 8.
    commit work and wait.
    endmodule.                 " list_box_zzbuag_id  INPUT

  • How to resubmit failed activity in a BPEL process using Java in 11g

    Hi All,
    In 11g, is there any API using which we can resubmit failed activity in BPEL using Java.
    Thanks,
    Vidya

    Hello
    To assign a header
    1. Create a variable of the correct type
    2. Click on the invoke/pick/reply or the receive
    3. Click on the header tab
    4. Select the header
    Validate the header after the receive
    5. Select the header the varaible and use a validate action.
    Best Regards Tristan Hayman

  • How to update  the restricted rows that were selcted using fetch

    Hi
    I have to fetch  one row at a time from my staging table using JDBC Sender Adapter,  which is configured against AS400 DB2 and push it to R/3.
    The select  SQL looks like this in JDBC Sender Adapter
         <b>select  jedata, oxruns from fxjrnep2 where oxsts=' '   fetch first 1 rows only</b>
                                       and
    update sql is
         <b>update suplib.FXJRNEP2 set OXSTS='SUC' where OXSTS=' ' </b>
    The problem here is my select gets one row, which is what i want, but my update actually updates all the rows that satisfied the where condition oxsts=' ' instead of one.
      I couldn't  use <b>fetch first 1 rows only</b> at the end of the update sql to update the selected row. DB2 does not allow  fetch in update sql.
    Can anyone suggest solution here or recommend alternative?
    Best Regards
    Venkat

    check for update query where u can club the select stmt u had used with udpate like:
    update suplib.FXJRNEP2 set OXSTS='SUC' where OXSTS = (select jedata, oxruns from fxjrnep2 where oxsts=' ' fetch first 1 rows only
    just need to try combinations of this type.
    if still this is not working use a bpm and get all the records where OXSTS is null and process record one by one within a block

Maybe you are looking for

  • FireFox upgraded automatically today and since then I can't launche it...it freezes up and I have to shut it off at the computer...I can access Internet Explorer

    FireFox automatically upgraded today. When I try to launche it, it only loads about half the page. (I use Google as my home page) It just gets stuck there. I try to close out the page and I get "this program is not responding". I can launche Internet

  • Steps for CO-PA data sources enhancement

    Hello Experts, I am planning to delete and re-create my CO-PA datasources to include a field from KEB0. What are the order of the steps to be followed. I know that I have to delete and recreate the data-source in KEB0. but when exactly do I have to f

  • Publishing Reports

    Hi I have just started using Crystal Reports recently and a whiloe ago purchased Crystal Reports 10 Developer edition. I have recently just finished creating my first report with the product. Now that I have finished it I want to allow other users to

  • Anyone else find Flex unusably bad?

    I love the concept of the flex tool, but so help me I can't make an edit in a vocal without causing a pop or horrible phasing. This is in monophonic mode. Anyone have any hints as to how to make tolerably good-sounding edits with this tool? Thanks -

  • Struts input forward using dispatch action

    I have a insert jsp and another update jsp but one action with the dispatch concept named daction.In case of errors i forward using input forward(), but in config file i have can specify only one path in <action input ="/insert.jsp"/> but in case for