Hi regarding parrelel processing of the program

Hi Experts,
       1.I have 2 records in one file which are processing by one program.
       2.This program is calling one function module ,this function module is processing the records.
       3.In that function module,there is one user exit where we have written code to process the record.
       4.The flow is like below ,
           Program> RFC Function module>Userexit.
       5.After control passed to function module, the program is processing another record.
          but still the user exit in the function module may not complete the processing of first record.
          Because of this , sometimes, 2 records are running the user exit at a time.
          But the 2nd record processing depends on first record result.
          Because of this sometimes  2nd record is getting incorrect result.
          How can i let the user-exit code  wait not to process the 2nd record before completion of first record.
           Thanks&Records  
           Ramakrishna L

Thanks everybody for valuable suggestions.
Actually i used the functiuon module :
data : prg type INDX-SRTFD value 'ZTEST1_CHECJ'.
if count ne 1.
endif.
do.
CALL FUNCTION 'ENQUEUE_ESINDX'
EXPORTING
   MODE_INDX            = 'E'
   MANDT                = SY-MANDT
   RELID                = 'ZZ'
   SRTFD                = prg
  SRTF2                =
  X_RELID              = ' '
  X_SRTFD              = ' '
  X_SRTF2              = ' '
  _SCOPE               = '2'
  _WAIT                = ' '
  _COLLECT             = ' '
EXCEPTIONS
   FOREIGN_LOCK         = 1
   SYSTEM_FAILURE       = 2
   OTHERS               = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
exit.
ENDIF.
like above till sy-subrc = 0. i can let the program wait .
I guess it will work.
Finally here they have changed the design itself, to avoid dependency records.
So no issues
Thanks
Ramakrishna L

Similar Messages

  • How to synchronise the job processing from the program.

    How to synbchronize the job processing when we are creating jobs from the program.
    Thanks,
    Ramana.

    hi,
    yes you can do this..
    try this
    create a two screen suppose 9000 and 9001..
    then right click on your program name...
    create a TCODE say TONE..
    in this give the screen number 9000..
    now again right click on the program name
    create a TCODE say Tsecond
    in this give the screen number 9001...
    hope this will help you..
    Regards
    Ritesh J

  • A few basic questions regarding Final Cut Studio & the programs it includes

    Ok..first of all..i'm new at video editing. Can a person learn how to use Final Cut pro, on their own? Is it user friendly like imovie?
    Secondly... what are the exact names of the programs that come with Fina cut studio?
    Are they?
    -Motion Pictures
    -Live Type
    -Cinema Tools
    -Final Cut Pro
    -Compressor
    Do these five programs make up Final Cut Studio? I have access to the above programs, but i'm not sure if its worth installing them or not. Are there any other files that come with these programs?
    I'm just wondering if it's worth my time trying to learn the programs or if i'm better off justing using imovie.
    Thanks

    Ok..first of all..i'm new at video editing. Can a
    person learn how to use Final Cut pro, on their own?
    Is it user friendly like imovie?
    It is not as user-friendly as iMovie, depending on how you define "user-friendly". What do you need to do with it? My friend made a very nice 30-minute short film on iMovie and I still use it for basic projects (wedding videos and slideshows). However, iMovie is just a "toy" compared to Final Cut's capabilities.
    Secondly... what are the exact names of the programs
    that come with Fina cut studio?
    Are they?
    -Motion Pictures
    -Live Type
    -Cinema Tools
    -Final Cut Pro
    -Compressor
    Actually, those are the programs included in Final Cut Pro itself (save Motion Pictures, which is actually just called Motion). The full package of Final Cut Studio includes Final Cut Pro, Motion, Soundtrack Pro and DVD Studio Pro. Go here for more info: http://www.apple.com/finalcutstudio/
    I'm just wondering if it's worth my time trying to
    learn the programs or if i'm better off justing using
    imovie.
    Again, what do you need to use them for? In general, I would recommend learning Final Cut Studio, if you have access to it. There is a learning curve from iMovie, but the Final Cut layout is very intuitive and easy to learn. If video editing is something you want to get into as a career choice, I'd say get crackin' on Final Cut.
    Good luck!
    ~Athen

  • Regarding background processing of the session

    Hi Gurus
       I have some records in my flat file.
    While i am doing uploading the file using tc, in foreground it is processing correctly and no issues.
    While in Background some of the records are not processing properly and in sm35 for those records I am getting the message :"InCorrect".
    What may be the reasons I am not getting.
    Can you please suggest me where may be the wrong exactly.
    Your suggestions are highly encouragable.
    Regards,
    kumar

    Hi Sree Ram,
    This is a very common problem faced in Mass upload of data. This mainly happens if the current transaction is dependent on the previous transaction. For e.g. transaction 2 has a dependency on sucessfull processing of transaction 1.This is due to the time taken by the transaction to update the database table.
    Put a commit statement after every transaction in your recording and this will ensure that the records are updated and you will not face any problem in background processing.
    Regards,
    Guru

  • My firefox installation is complete on my PC with Win XP, the icons are up, but the program will not start... no process or anything in task manager... any idea what is going on?

    bought a second hand laptop running Windows xp. When I go to download firefox, the installation goes seemingly smooth, but the program will not open. There are no firefox processes showing in task manager when I do this. I just downloaded chrome instead, but it sucks and I want firefox but my computer rejects it. This computer runs every other program I use without a hitch
    == This happened ==
    Every time Firefox opened
    == after installation ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    thanks chris for the reply back,i have solved the massive problem i have had with MF 3.6.3 it ws COMODO FREE FIREWALL i had a sneaking suspicion all a long it could have been that but was not sure?,my pc had slowed down since installing comodo i am pretty sure of that,there were lags and pauses ect ect on general usage of the pc even though cpu usage was ok?,so maybe if many pc users that have comodo firewall installed they might like to try a change to another firewall and see if it helps,i went back to OUTPOST FREE FIREWALL which i had for ages without ANY problems whatsoever.
    regards
    john
    mozilla firefox build 3.6.3

  • I have a problem in processing the program in background

    Hi,
    We have cloned the T'code V_V2 and added some additional functionality and when we try to run the program in background the error is blocking the process
    This is because, say example i am tring to process the sales order in production systen through my program ,in that time some one may chage the sales document . in trhis case my program should not blocked it should check the block before processing and then it should proceed.
    is there any FM to find the blocked sales order.
    Regards,
    Vijay

    Try using the FM:
    ENQUE_READ2
    Passing the follwing values:
    GNAME --> VBAK (Sales Order header table)
    GARG   --> The lock argument
                       (This will be a combination of client number anb Sales Order No.
                        Eg: '3001210000054' where the first three digit i,e 300 is the client No
                       and 1210000054 is the sales order no.)
    Regards,
    Firoz.

  • To start the process by external program.

    I'm using Guided Procedure
    I want to start GP Process from external program.
    I've tried Java API and it worked well.
    But, I'm looking for the other way that starts Process of GP (ex, Web Service, URL,,,?)
    Please let me know how to start processes.
    Best regards,
    Koji

    Hi,
    Yes. You can start a process through a web services that can be triggered from a method in a class or FM etc.
    You can refer this link that has a step by step process for the same.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/44/44c59fd7c72e84e10000000a155369/frameset.htm
    Hope this helps.
    Cheers,
    Mandrake

  • I want to run background process at plsql program based on the timeout

    Hi
    when it comes to ready state I want to run background process at plsql program based on the timeout
    Thanks and Regards
    ch saivikram

    Thanks dude
    This solution �start java TestClass� works fine �. But it does not solve my problem
    It opens another black window and that black window persist till the life time of my program
    Is it possible application run on complete background without opening another black window �as in Linux

  • Parallel processing of the IDOCs through the program RBDAPP01

    Hello All,
    We are prcoessing the inbound IDOCS using the program RBDAPP01 by scheduling but this processing is taking lot of time to process the IDOCs.
    Please let me know how do we improove the performance of this program RBDAPP01 by making use of
    parallel processing of IDOCS?I read some documentation in this forum but not understand clearly.
    Please give some info regarding this who have already done this requirement earlier.
    Regards
    Mahesh

    Hi,
    Thanks a lot for your quick reply just by giving the package size it will initiate parallel processing?
    in our partner profiles we have setting to trigger through back ground only.
    How to use parallel processing tab in the selection screen of the program RBDAPP01?
    Regards
    Mahesh

  • Regarding "Delete Index" process in the process chain.

    Hi Gurus
    In the process chain, I have Delete Index -> Load Info pacakge -> Create Index process in the above order.
    I am loading few records, so no need to delete indexes everytime. Can i remove the "Delete Index" process from the Chain without deleting the Create Index process. Or do I have to delete both.
    Could you please clarify my doubt if possible in detail.
    Thanks,
    Regards,
    aarthi

    With the numbers you provided, you probably don't need to have the steps.  With Oracle (not sure about all the other DB flavors) there are some other considerations:
    Not having the indexes when loading the data can improve the load time since the bitmap indexes are not very efficient with respect to inserts/updates. The more dimensions you have, the more indexes there will be and the more noticable the impact of having the indexes present when loading.
    The drop index process only drops the F fact table indexes.  If you compress your cubes regularly so that you don't have many uncompressed requests, the index rebuild time will remain small, but if you have many uncompressed requests in your cube, the index rebuild time can begin to exceed whatever time you might save on the load with indexes deleted.
    With bitmap indexes present, you can also occasionally receive a ORA-0600 deadlock error during the load process, and that can be prevented by dropping the indexes before loading or chose the load option packet by packet so that two packets are not trying to update the same index block at the same time.
    Another concern in shops where reporting on the cube might occur during the load process - if you drop indexes prior to a load, any one trying to run a query on teh cube could have poor query performance since all the indexes will be missing onthe F fact table, this agina becomes more apparent the more data you have in the uncompressed fact table.
    So it really comes down to your environment, but certainly drop the indexes any time you have large loads.

  • Firefox won't start properly. The process begins in task manager, but the program doesn't start.I have restarted the computor, and updated my plug-ins. Don't know what to do next. It will open in safe mode, but not regularly.

    When we click on the icon to start firefox even though the process opens in task manager, the program screen doesn't open

    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How to cancel the background job processing in ABAP programming?

    Hi,
    I have a requirement where i need to cancel the job depending on some constraint. My code is something like this:
    Select some data from the table.
    if sy-subrc = 0.
    Do nothing.
    Else
    Cancel the job
    call function 'BP_JOB_ABORT'
      exporting
       jobcount                         = number
        jobname                          = name
    EXCEPTIONS
       CHECKING_OF_JOB_HAS_FAILED       = 1
       JOB_ABORT_HAS_FAILED             = 2
       JOB_DOES_NOT_EXIST               = 3
       JOB_IS_NOT_ACTIVE                = 4
       NO_ABORT_PRIVILEGE_GIVEN         = 5
       OTHERS                           = 6
    The above code is cancelling the job but it is throwing an exception called CX_SY_DYN_CALL_PARAM_MISSING because i dint pass job count. How can we find the job count of next job that is going to run? Or How to handle the exception which it is throwing. Even if i try to handle that exception something like this:
    TRY
    call function 'BP_JOB_ABORT'
      exporting
       jobcount                         = number
        jobname                          = name
    EXCEPTIONS
       CHECKING_OF_JOB_HAS_FAILED       = 1
       JOB_ABORT_HAS_FAILED             = 2
       JOB_DOES_NOT_EXIST               = 3
       JOB_IS_NOT_ACTIVE                = 4
       NO_ABORT_PRIVILEGE_GIVEN         = 5
       OTHERS                           = 6
    RAISE EXCEPTION TYPE CX_SY_DYN_CALL_PARAM_MISSING.
    CATCH
    CX_SY_DYN_CALL_PARAM_MISSING.
    ENDTRY.
    It avoids the exception but it doesnt cancel the job.  I even tried with function modules like JOB_OPEN
    JOB_SUBMIT,BP_JOB_SELECT,BP_JOB_ABORT and tried to build some logic using status overview table (TBTCO) and TBTCP (Jobstep overview table).
    Can someone suggest me the right way to write this program ?
    Thanks in advance.
    Rashmi

    Hi,
    Problem is solved.
    Create an background job with 2 steps. The first step in the background job calls the program ZBACKJOB_STEP1.  In the variant we have a wrong material number
    If the material number is not found in Mara, the next step in the job should not get executed and the job should get cancelled..
    In the above posts i had asked how do I get the job count of the job that is currently triggering the program at the runtimeu2026..If u see the below code uu2019ll get to know.. We have to use the standard structure TBTCM which captures the properties/characteristics of the job.
    REPORT ZBACKJOB_STEP1.
    TABLES: MARA,TBTCM.
    PARAMETERS : MATNR TYPE MATNR.
    START-OF-SELECTION.
      SELECT SINGLE * FROM MARA WHERE MATNR = MATNR.
      IF SY-SUBRC IS INITIAL.
        WRITE / : 'This is the material selected on the selection-screen' , MARA-MATNR.
    ELSE.
            CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
          IMPORTING
            EVENTID                                    = TBTCM-EVENTID
            EVENTPARM                             = TBTCM-EVENTPARM
            EXTERNAL_PROGRAM_ACTIVE = TBTCM-XPGACTIVE
            JOBCOUNT                                = TBTCM-JOBCOUNT
            JOBNAME                                  = TBTCM-JOBNAME
            STEPCOUNT                              = TBTCM-STEPCOUNT
          EXCEPTIONS
            NO_RUNTIME_INFO                    = 1
            OTHERS                                     = 2.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'BP_JOB_ABORT'
            EXPORTING
              JOBCOUNT                                     = TBTCM-JOBCOUNT
              JOBNAME                                       = TBTCM-JOBNAME
            EXCEPTIONS
              CHECKING_OF_JOB_HAS_FAILED  = 1
              JOB_ABORT_HAS_FAILED              = 2
              JOB_DOES_NOT_EXIST                   = 3
              JOB_IS_NOT_ACTIVE                      = 4
              NO_ABORT_PRIVILEGE_GIVEN       = 5
              OTHERS                                         = 6.
          IF SY-SUBRC <> 0.
          ENDIF.
        ENDIF.
      ENDIF.
    Regards,
    Rashmi

  • I have a program that runs in Java Console. I need to run multiple copies of the program. I can't do this with tabs. Can I do it with separate windows/processes

    The program in question was implemented as a Java applet that runs in a browser. The developer says it must run under the Java Console and that I cannot run more than one copy of it in a given browser technology (e.g., Firefox); but I can run multiple copies if I use, eg, Firefox for one, IE 32 bit for another, Chrome for a 3rd and IE 64 bit for a 4th. I have tested this, and this does work.
    Why would it not be the case if I spawned a completely different Firefox instance/process? When asked this question, the developer said, no, you have to run a different browser implementation to get a distinct Java Console for each one.
    Does this make sense in general, or, more importantly, is it true for Firefox?
    Thanks,
    Dennis

    It is working for me if I open a second Firefox instance with its own profile by starting Firefox with the -no-remote command line switch.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Bypassing_the_Profile_Manager
    Use the -no-remote command line switch to open another Firefox instance with its own profile and to run different Firefox instances simultaneously.
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • I recently had to wipe my hard drive thanks to a download happy teen. In that process I lost my LR4 catalogs I was able to redownload the program but the catalogs are not there and not all of those pictures are on my external hard drive because same said

    In that process I lost my LR4 catalogs I was able to redownload the program but the catalogs are not there and not all of those pictures are on my external hard drive because same said teen decided they were going to borrow my external hard drive without telling me and "made room" on it. Is there a way to recover my catalogs? Please tell me there is because I was in the middle of working on a session when I had to wipe my drive and I would REALLY like to not have to go back and reshoot it. Any help would be wonderful!

    It depends on how you wiped your drive.  Depending on how you did it, only the directory was erased and the data can be found with drive recovery software.  Some are free, although there is a small charge for most of them (~$30).  You can usually download a trial version that shows if it will work and you have to pay to be able to save the found files.  Use Google to search for the software.  Different programs work differently and can find different things.
    Good luck.
    John

  • This regards Adobe Reader XI 11.0.07 and Adobe Acrobat Pro XI 11.0.07 running on Win 7. Copying text in a text callout (to paste into a text callout in another pdf document (3 instances of Adobe open) sometimes (only sometimes) causes the program to crash

    This regards Adobe Reader XI 11.0.07 and Adobe Acrobat Pro XI 11.0.07 running on Win 7. Copying text in a text callout (to paste into a text callout in another pdf document (3 instances of Adobe open) sometimes (only sometimes) causes the program to crash, losing unsaved work. Windows Task Manager shows only a small percentage of cpu used and plenty of memory available. What is causing this?

    scholtzkie wrote:
    "Please wait...If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.   You can upgrade ...  For more assistance....    Windows is either a registered trademark...."
    This usually occurs if you use a browser that uses its own PDF viewer, not the Adobe Reader plugin; see http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

Maybe you are looking for