Purpose of job SWWCOND

Hi All,
Can anyone pls tell me the detail of what the job SWWCOND is for?
In my production system, this job cost about 30 minutes every time. How to optimize is? My SAP_BASIS SP is SAPKB70018 release 700.
Thanks,
Wang

Hi Wang,
Please make sure you use conditions and if not then stop this job.
There are several notes to improve the perforamnce of SWWCOND. Please do a search in Service Marketplace and you should find them. I have listed a few below but I am not sure what release you are on so they may or may not be valid.
894503
1024505
1353037
835341
1133793
1439371
1397793
1170600
Regards,
Eddie

Similar Messages

  • E-Mail for background Job

    Hi All,
    We need to schedule a Job in background in every 30 min or 1 hr, which will monitor all the other Jobs running in background.
    If any job is running more than 30000 sec, it should trigger an email.
    Please guide me how to achieve this( i'm ABAPer).
    Regards
    VEnk@

    see the following t.code may be it will use
    SWWCLEAR_INSERT
    Workflow: Background Job 'SWWCLEAR';
    Workflow: Hintergrundjob 'SWWCLEAR';
    Workflow : job arr.-plan 'SWWCLEAR';
    Workflow: achtergrondjob 'SWWCLEAR'
    Workflow: Background Job 'SWWCLEAR'
    SWWCOND_INSERT
    Workflow: Background Job 'SWWCOND';
    Workflow: Batchjob 'SWWCOND';
    Workflow : job batch 'SWWCOND';
    Workflow: achtergrondjob 'SWWCOND'
    Workflow: Background Job 'SWWCOND'
    SWWD
    Maintain Work Item Error Monitoring;
    Workitem-Fehlerüberwachung pflegen;
    Gérer surveillance erreurs WI;
    Workitem-foutbewaking verzorgen
    Maintain Work Item Error Monitoring
    Edited by: Krupaji on Feb 17, 2010 12:45 PM

  • Automatic workflow customizing :Schedule background job for condition evalu

    Hai,
    I have one problem in automatic customizing SWU3(Maintain runtime environment)-Schedule background job for condition evaluation.
    How to turn  green tick from red cross? All other steps are OK in SWU3 except this problem.
    Please give me some tips.
    -Jaheer
    _______Thanks in terms of BIG points_______________________

    Hi Jaheer
    If the only red cross is next to the condition evaluation job, I suppose you could just schedule up the job automatically in SM36. Just be sure that the RFC Destination is correctly configured.
    The program that you need to schedule is <b>RSWWCOND</b>. The SAP default is to call the job SWWCOND and schedule it to run every 30min. That should get rid of the red cross. And if not, you might find along the way why the Auto-Customising didn't work.
    Cheers
    Lyal

  • Why should we go for job instead of trigger

    hi all,
    whats the exact purpose of job n trigger?
    why should we go for job instead of trigger?
    any one pls help me regarding this
    thnaks in advance.

    When you have code that is to be called, implementing it with a trigger leaves the process synchronous. In other words: the code is executed within the same transaction as the invoking code. This means real-time, but it makes your transaction heavier. Implementing it with a job, makes it asynchronous. In other words: the code gets executed in another session. Now it is not real-time anymore, but since it is executed in the background, nobody cares anymore how long it takes (to a certain point of course).
    Regards,
    Rob.

  • Job pricing - Import survey provider data

    Hi everyone,
    I´m starting to work with Job pricing, I have no idea of how this modukle work and I need to do a little demo. I can not find a file to be upload and have information of one provider in the system. If any one could tell me where I can find a file or files to start to test how it works, it would be great.
    Thanks

    For Demo purposes identify jobs to be matched against survey jobs in your Dev system. Even one provider file with matching jobs should suffice. Follow the steps and you be good to go:
    1. Run transaction PECM_START_JPR_BSP- Start Job Pricing to get into the web application.
    2. Get into Provider Data Workset. Create Provider for demo purposes with unique Provider Code  a Provider Name and a URL link to the provideru2019s web site and Save the Provider.
    3. Get into Survey Job Catalog. Select Provider and click on Job Catalog tab for the specific job and review the Market data/ aged market data for a job and review/change the job descriptions.
    4. Get into Import Data workset to upload job-related data from the survey provider to make external salary comparisons between what your organization and other similar companies. Select the data type for import from - Survey Job Catalog/ Survey Job Descriptions/ Survey Market Data. Use Browse function to select the file with the survey data and choose Upload. Select Next Step and Match the fields from the imported file -Provider Field Name Versus Field Name in SAP. Thereafter import the data. and review it thoroughly before saving it to your SAP database tables. key fields to match are Job Code and Job Level(if present).
    5. Get into Job Matching workset to match your  internal jobs which you have identified with those of the survey provider. In Create Job Matches screen  Internal Jobs and Survey Jobs showup.. Select your identified internal job to match with survey job and  the system displays the data for this job and any existing job matches. Evaluate how closely the survey job matched your internal job and specify matching percentage and the weighting factor in the appropriate fields information purposes. Save the results.
    6. If aging functionality needs to be shown then get into the workset else skip it. In this workset aging of the survey provider's  data can be carried out either by Market movement rate or by  Aging  factor
    7. Get into Creating a Mass Composite Result  workset  create market composites(in your case only one provider) for your identified jobs.
    8. Get into Salary Structure Adjustment  workset to compare your internal salary structure to the market salary structure finally. As a prereq have Planned Comp for the identified. Get into Current Salary Structure tab to displays the current salary structure for review, Market Data tab to compare with internal salary structure. and select a composite result,  Planned Salary Structure tab to select an existing plan structure from the corresponding dropdown box or from the result created in the Market Data. You could also overwrite the values of this plan structure directly or change the Difference % columns and select Recalculate.
    9.  Final step is to save the updated salary structure in Planned status and as a process after management/board approvoval run the report Update of Pay Grade Amounts from Market Data to activate the new structure.
    I hope it helps.
    Thanks
    Praveen G

  • Processing clusters and job segmenting

    Hi all,
    I consider myself fairly experienced with Compressor, and encoding in general, but I've never have the time to teach myself how to set up a cluster. Now, for the first time in a long time, I have 2 instances of compressor running side-by-side on decent machines, on a pretty fast LAN. I suppose this question goes out to my Compressor shepherds BenB, David M. Brewer, and Russ H: Can you recommend some sort of primer to get me started on cluster processing? Also, I am confused about the purpose of job-segmenting and how it relates to clustering: it makes sense that a segmented job could be distributed to nodes of a cluster, but I understand that one can segment a job on a local machine, using multiple "instances" of Compressor. What is the utility of doing this?
    Thanks everyone!
    Eric D
    System:
    iMac ca. April 2013
    3.4GHZ Intel Core i7
    16GB RAM
    NVIDIA GeForce GTX 680MX 2GB
    OS 10.9.1
    FCP 10.1
    Compressor 4.1

    Thanks Russ,
    Here are the two images and the "Setup" dialogue of one of the codecs that shows that job segmenting is checked (sanity check on that image, more than anything):
    I'm still mystified but understand that it could be an error between seat and trackpad or that Compressor has a 'ghost in the machine'.
    Regards,
    Lawrence

  • Wait step in leave workflow wait for 20 min

    hi friends
      I have designed a multilevel ESS leave workflow. After 1st approver the status need to change from approved to sent after that i am using a wait step with condition REQ.STATUS = SENT. This condition is met immediately but it still waits there nearly 15 to 20 min after that only it goes to the next approver. I dont no y its happening even after the condition is met. There is background job SWWCOND is directly related to this wait step. I have scheduled this job for every 3 min. But its long time to execute. If i remove the wait step its shows dump. How to minimize the time of execution of the wait step.
    Regards
    vijay

    Hello,
    Let me know if I've understood the problem correctly.
    You have a workflow with two wait steps.
    These wait steps rely on the running of SWWCOND
    to check if the conditions have been satisfied.
    The workflow takes 15-20 mins to pass the first condition, even
    when already true, but takes little or no time to pass the second
    condition.
    SWWCOND is scheduled to run every 3 mins and doesn't run for more
    than a couple of minutes.
    My questions:
    - Are you absolutely certain SWWCOND runs every 3 minutes?
      Do you see that happening in SM37 while your workflow is waiting?
    - You've said that the first condition is REQ.STATUS = SENT,
      what is the second condition?
    - Is REQ.STATUS a virtual attribute?
    - Where is REQ.STATUS set to SENT? Outside of the workflow?
      Does it do so without an error? Is a commit work done?
    regards
    Rick Bakker
    Hanabi Technology

  • Transporting of scenario with BPM

    Scenario:
    Syncronous webservice call -> XI -> BPM (SYNC/ASYNC BRIDGE) -> Async IDOC posting
    Guys I have transported the above scenario into my QA system, but I am unable to execute the scenario now successfully.
    The adapter engine is showing -
    Received XI System Error. ErrorCode: SYSTEM_FAILURE_INTERNAL ErrorText:   ErrorStack: An internal error has occurred
    Returning synchronous error notification to calling application: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapter:SYSTEM_FAILURE_INTERNAL:.
    Transmitting the message using connection http://xi-dev.mycompany:8002/sap/xi/engine?type=entry failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapter:SYSTEM_FAILURE_INTERNAL:.
    and
    Error Category     XI_J2EE_ADAPTER_XI_HANDLER
    Error Code                     CALL_CONSUMER_ERROR
    TRANS# SXMB-MONI - RED LIGHT
    <SAP:Code area="BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</SAP:Code>
    Is anyone able to point me in the general direction, Ive had a look in visual admin. and there doesnt appear to be any errors there. None of the error's I am seeing a pointing me in any real direction.
    thanks

    Hiiii
    A bit generic error. So many things could be checked:
    1. In sxi_cache, check the status of ur IP, it should be 0.
    2. In SWWL, delete the earlier running instances before running the new scenario.
    3. Reimport the IP in ID again. Save, activate and try running ur scenario again.
    4. In tcode sxmb_adm_bpe - Automatic BPM Customizing, check for the error.
    Call transaction SWF_RFC_DEST and then give background user as WF-BATCH
    and password .
    Exceute it then SWU3 will be turned from Red to Green Automatically.
    OR
    The program that you need to schedule is RSWWCOND. The SAP default is to call the job SWWCOND and schedule it to run every 30min. That should get rid of the red cross. And if not, you might find along the way why the Auto-Customising didn't work.
    I hope this will resolve your problem
    Cheers

  • Updated Latest End Time in workflow builder but change not taking place

    Hello everyone,
    In our existing leave application workflow (working fine for many years), we have set a deadline monitoring of Work Item Creation (WIS) + 10 days to send an email back to the applicant if his or her leave application wasn't acted upon by his/her supervisor.
    Recently we have made some changes to the leave program and are required to test this deadline monitoring. In development environment instead of waiting for 10 days, we updated the Time field in the Latest End tab to 3 mins and then we generate and activate the workflow (through the Activation submenu in the Workflow menu).
    Problem 1: But when the leave program generate the work item, inside the work item the Latest End date and time still show as WIS + 10 days, instead of WIS + 3 mins. We have already run SWU_OBUF and also refresh the organizational environment through SWUS but still to no avail.
    Problem 2: When we change the Latest End date of the workitem to trigger the deadline monitoring, nothing happens even though the deadline monitoring batch job (SWWCOND & SWWDHEX) is already running successfully every 3 mins. In the executed action it just show 'Deadline reached' and the work item is in READY status.
    In our work flow we have the process control to set the work item to obsolete. Really appreciate for any advice. Thanks.

    Hi Rick,
    Sorry, wrong choice of word. What i'm trying to say is as we don't have a workflow expert on our site, me and my colleague were a bit hesitant to manually change the work item deadline. But i see the benefit in doing that. At least now we know that changing the work item deadline would not affect the triggering of the deadline monitoring.
    Hi Viji,
    We haven't tied the changed workflow template to any transport request yet as we wanted to test it out in development environment first.
    Sorry but how do i check if the outcome is active?
    Hi Rob,
    We didn't do any import. Since we're testing the changes in dev, we're directly changing the workflow template and activating it without tagging it to any transport request. But thanks for letting us know about table HRS1205, will give it a look tomorrow afternoon.
    And also we're generating new work item for our testing. That's why we were surprise the new work item is still not picking up the WIS+3 mins latest end date.

  • 중복 WIP COMPLETION TRANSACTION에 대한 확인 방법

    제품 : MFG_WIP
    작성날짜 : 2006-05-30
    중복 WIP COMPLETION TRANSACTION에 대한 확인 방법
    =======================================
    PURPOSE
    Discrete Job에 대해, MTL_MATERIAL_TRANSACTIONS table에 중복
    발생한 Transaction data를 Check하고자 한다.
    Explanation
    아래의 Script를 통해 Duplicatie Completion transaction들을
    Check할 수 있습니다.
    select wdj.WIP_ENTITY_ID||'|'||wdj.quantity_completed||'|'||
    wdj.START_QUANTITY||'|'||wdj.QUANTITY_SCRAPPED||'|'||
    sum(mmt.transaction_quantity) SUM
    from mtl_material_transactions mmt, wip_discrete_jobs wdj
    where wdj.wip_entity_id = mmt.TRANSACTION_SOURCE_ID
    and mmt.TRANSACTION_SOURCE_TYPE_ID = 5
    and mmt.TRANSACTION_TYPE_ID in ( 44 , 17)
    and mmt.TRANSACTION_ACTION_ID in ( 31, 32)
    and wdj.quantity_completed < (select sum( mmt.transaction_quantity)
    from mtl_material_transactions mmt
    where wdj.wip_entity_id =
    mmt.TRANSACTION_SOURCE_ID
    and mmt.TRANSACTION_SOURCE_TYPE_ID = 5
    and mmt.TRANSACTION_TYPE_ID in ( 44 , 17)
    and mmt.TRANSACTION_ACTION_ID in ( 31, 32) )
    group by wdj.WIP_ENTITY_ID , wdj.quantity_completed,wdj.START_QUANTITY,
    wdj.QUANTITY_SCRAPPED ;
    만약, duplicate data가 존재하는 경우, data가 현재 어떤 단계에 있는지
    확인하고 중복data에 대한 삭제를 고려하셔야 합니다.
    Example
    Reference Documents
    Bug 3580094

  • TRANSACTION을 ROLLBACK SEGMENT에 할당하는 방법(SET TRANSACTION USE)

    제품 : ORACLE SERVER
    작성날짜 : 2003-04-04
    TRANSACTION을 ROLLBACK SEGMENT에 할당하는 방법
    ==============================================
    (SET TRANSACTION USE ROLLBACK SEGMENT)
    Purpose
    Batch job 등을 사용할 때 특별히 크게 만든 rollback segment를 사용하도록
    할 수가 있다. transaction에 특정한 rbs를 지정하는 방법을 알아보자.
    Explanation
    Oracle은 다음과 같은 규칙에 의해 각 Transaction이 사용하는 Rollback
    segment를 결정한다.
    1. Active Transaction의 수가 가장 작은 Rollback Segment에 할당한다.
    2. 만약 1의 조건에 만족하는 Rollback segment가 하나 이상이면, 가장
    마지막에 할당된 rbs 다음의 rbs를 할당한다. 이것은 undo 기능을 더
    오래 지속시키도록 해 준다.
    그러나, Application이 큰 rollback segment가 필요하다면 위와 같이
    자동적인 rollback segment의 할당이 아닌 Manual하게 특정 rollback
    segment를 할당 가능하다.
    다음의 방법을 사용한다.
    1) 큰 rollback segment를 만든다. 큰 rollback segment 를 만들기
    위해서는 rbs tablespace에 영역이 충분히 커야 하므로 필요할 경우
    tablespace를 확장하는 작업을 한다.
    <tablespace 확장>
    $ sqlplus system/manager
    sql> alter tablespace rbs add datafile '?/rbs1SID.dbf' size 100m;
    <rollback segment 생성>
    sql> create rollback segment big_rbs storage(initial 10m next 10m)
    tablespace rbs;
    sql> alter rollback segment big_rbs online;
    2) Transaction 를 assign 한다.
    <sqlplus>
    SQL> set transaction use rollback segment big_rbs;
    <pro*c>
    exec sql commit work;
    exec sql set transaction use rollback segment big_rbs;
    <forms>
    dbms_transaction.use_rollback_segment('big_rbs');
    이와 같이 지정하면 이후에 commit 또는 rollback이 일어날 때까지
    한 transaction에만 해당된다.

  • Installed itunes 11 no "in the store" under album view

    Hi there. I`ve installed itunes 11 and in album view when i expand the album, there is no "Songs" "in the store" options on the right? Any ideas? Many thanks.

    This happened to me too. Both on my Mac Pro where I installed iTunes 11 from the downloaded installer, and also on my wife's iMac where we updated to iTunes 11 via the App Store. So I figured it must not be a corrupt installation.
    Finally noticed in iTunes Preferences under the Store tab, the last checkbox that says "Share details about your library with Apple" must be checked, or the "In the Store" button won't appear in Albums view. I thought we both already had that preference checked in iTunes 10, although I wouldn't swear to it. If so, though, it may be iTunes 11 is somehow unchecking that box during installation. I do know for sure I had Genius turned on in iTunes 10 on my Mac, but it was turned off by the iTunes 11 installation.
    I must say, though, I am unhappy that you can no longer get song recommendations from just clicking on a song in one of your playlists. That used to be how I most often tried to find new music. In Albums view, you can't get suggestions based on a single track anymore, at least viewed within the context of your own local music library, and that is a step backward. To do so now, you have click on the song track within Albums view, then click "View in iTunes Store" which jumps you clear out of your library and into the store just to see the suggestions.
    The problem with that is, you can't hit the "back button" in the iTunes store to get back to the album's tracks in your library to click another track to get suggestions for. Nor can you click on a different track on the same album in the iTunes store to get suggestions either. Instead you have to go back to your library, then scroll all the way back down to the album you were just looking at to click another song in the album to get suggestions for that one. Click, click, click, click, click, click, for Pete's sake.
    This is progress? One step forward with iTunes 11, and about two or three back, for my purposes. Jobs has been gone one year, and already we're starting downhill with usability. :-(

  • We use our Iphones with the icloud to set up scheduling of jobs. Multiple phones share the same icloud for this purpose. We recently had a change in leadership. How do I completely delete the icloud account? Or do I just create a new one/forget old 1

    Multiple phones share one Icloud account. We use it to schedule jobs and crew leaders read the cloud to get the information of the job that needs to be done. However, we recently had a change of leadership and we think this person might have logged into or put our cloud on his phone to sabotage our business. I changed the password but that didn't fix the situation. I could put a job on the cloud with an old phone that was logged in with the old password and everyone with the new password would still see the job. I have since created a whole new cloud account which seems to have eliminated the "future" issue of sabotage however I would like to completely eliminate that old account...any advise?

    Everyone needs to go to Settings (or System Preferences)>iCloud and click 'Delete account' or 'Sign out' as applicable (it's the same thing). Then they can sign into the new account you have created and proceed from there. You can't actually delete the old account from the server but you can just ignore it.

  • Can someone help me synce my old G5 Motorola to my snow leopard laptop so I can use Quitktime with video screen capabilities for demo purposes and a job I have with a major website? Thanks!

    Is there anyway that I can sync this Motorola G5 dual, OS 10.5.8 with my ibook OS 10.6.8 so I can use the quicktime application on the Mororola? I need to network the two computers and if someone could kindly tell me how to do this with either wifi, USB, orFirewire, I'd be very grateful. My ethernet connection is in use and I only have one and no hub. Doing this will give me the ability to work for a site that needs my expertise in recording but I have old equipment right now on the recording end. No chance to upgrade at this point as we're broke and I'm severly injured, so I am trying to find a workaround that will let me access this copmuter, with snow leapord to work with the old one with (Motorola G5 dual w/10.5.8). It means a few bucks to us if I can make it happen, and my family really need to dough. It  will keep me from having to convert things to a youtube format, take the extra time involved to do that, when, instead, I could just take screen recordings instead. Unfortunately, I don't have Pro Tools on this computer or all would be fixable.
    I'm really hoping that you or someone else can help me get these two macs synced so I can do this. DO you think you can help me? Thanks so much! Scotty Goldberg

    Thanks so much for your reply but that won't help in my current situation. Maybe I didn't make it clear. The latest version of Quicktime as new as it sounds doesn't support screen recording on a powermac G5 Motorola chip with OS 10.5.8 which is the highest os I can go with that machine. If I can sync the two computers so I can get the application to record from my newer computer then I'm ok. I just don't have the recording application for audio that I'm using to demo for the website on the laptop as it's about 10,000 dollars. So, I have to use the older computer to do the audio presentation and try to get the newer computer synced to it so I can use the new version that works on snow leopard to record a screen shot that will hopefully appear on my laptop instead of the old machine. Hope that makes sense. It's a bit confusing but in a nutshell it's like this:
    1. I am a Pro Tools Instructor which is the state of the art application and recording device for audio and movie scoring and I have a new job where I make small snippets of tips using Pro Tools which I'd like to record with quicktime on screen as they happen
    2. the best version of Quicktime Pro available for the Power Mac, OS 10.5.8 will not do screen recording on it.
    3. I can use the Quicktime application from my newer laptop but I need to sync it to the old machine
    4. I'm hoping but I don't know, if I do this, that I can record Pro Tools in action from my new machine buy seeing it on this laptop screen and then recording it with the new quicktime.
    5. If I can sync the two computers, I'm hoping this can happen but I can't use my ethernet connection as I have it used to connect to my recording console and can't afford to buy anything new like an ethernet hub yo connect the two so I'm hoping that there's another way to connect them.
    I hope that makes sense and that possible you or someone else can help. Thanks so much! Scott

  • How to schedule a job in another system.

    Hi,
    Now i have an ABAP program, which run in system ABC, client 001. i want to schedule a job in the program, with the function modules JOB_OPEN, JOB_SUBMIT, and JOB_CLOSE. But this job should run in ABC/002.
    How to write code?
    Who can help me on the requirement, or provide me another new solution except event trigger?
    Thanks & Best Regards,
    Johnney

    Here is the code. It works fine..
    FUNCTION Z_F_TRIGGER_REPORT.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_PROG) TYPE  D010SINF-PROG
    *"     VALUE(I_VARIANT) TYPE  VARIS-VARIANT
    *"     VALUE(I_MODE) TYPE  CHAR01
    *"  EXPORTING
    *"     VALUE(E_SUBRC) TYPE  SYST-SUBRC
    *"     VALUE(E_MSG) TYPE  CHAR80
    Functio ID :  Z_F_TRIGGER_REPORT
    TITLE      :  Report Trigger Tool
    Create Date:  15.03.2004
    Author     :  Denis Vieira
    Ownership : For the exclusive use of the Procter & Gamble Company
    Description:
    The purpose of this function module is to trigger programs
    requested remotely.
    AUTHORIZATION CHECKS
    OBJECT               AUTHORITY FIELDS         ABAP FIELDS
                     |                       |
    CHANGE HISTORY                                                      *
      DATE      |  Name  | Description                       | Reference *
    29.Jun.2006 | BA4513 | Unicode conversion and upgrade    | SPK290606
                |        | to My SAP ERP                     |
    **eject.
    Check if selected program exists in the destination file
      SELECT SINGLE  SUBC
             FROM    D010SINF
             INTO    D010SINF-SUBC
             WHERE   PROG    EQ  I_PROG
             AND     R3STATE EQ  C_A.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                                               TO E_SUBRC.
        MOVE 'Report does not exist in destination system'(M01) TO E_MSG.
        EXIT.
      ENDIF.
    Check if program request is an executable program
      IF D010SINF-SUBC NE C_1.
        MOVE  C_2                                               TO E_SUBRC.
        MOVE 'Report is not an executable program'(M02)         TO E_MSG.
        EXIT.
      ENDIF.
    Check if selected variant exists in the destination file
      SELECT COUNT( * )
           FROM  VARIS
           INTO  W_COUNT
           WHERE REPORT  EQ I_PROG
           AND   VARIANT EQ I_VARIANT
           AND   DYNNR   EQ C_1000.
      IF W_COUNT EQ C_0.
        MOVE  C_2                                                TO E_SUBRC.
        MOVE 'Variant does not exist in destination system'(M03) TO E_MSG.
        EXIT.
      ENDIF.
      IF I_MODE EQ C_B.
        PERFORM 0100_BACKGROUND USING     I_PROG I_VARIANT
                                CHANGING  E_MSG  E_SUBRC.
      ELSE.
        PERFORM 0200_FOREGROUND USING     I_PROG I_VARIANT
                                CHANGING  E_MSG  E_SUBRC.
      ENDIF.
    ENDFUNCTION.
    *eject
    *&      Form  0100_background
    Executes Selected program in BackGround Mode VIA JOB
    *Block commented from here SPK290606
    *FORM 0100_BACKGROUND USING     L_PROG L_VARIANT
                        CHANGING  L_MSG  L_SUBRC.
    *Block commented till here SPK290606
    *Block added from here SPK290606
    FORM 0100_BACKGROUND USING    L_PROG    LIKE D010SINF-PROG
                                  L_VARIANT LIKE VARIS-VARIANT
                         CHANGING L_MSG     TYPE  CHAR80
                                  L_SUBRC   TYPE  SYST-SUBRC.
    *Block added till here SPK290606
      CONCATENATE C_AREA
                  C_UND
                  L_PROG
                  C_UND
                  SY-DATUM
                  C_UND
                  SY-UZEIT
                  INTO W_JOBNAME.
    Create a JOB and Get the Number for further execution
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                JOBNAME  = W_JOBNAME
           IMPORTING
                JOBCOUNT = W_JOBCOUNT.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                       TO L_SUBRC.
        MOVE 'Error opening job'(M07)   TO L_MSG.
        EXIT.
      ENDIF.
    Submit program
      SUBMIT (L_PROG)
        USING SELECTION-SET L_VARIANT
        VIA JOB W_JOBNAME NUMBER W_JOBCOUNT
        AND RETURN.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                        TO L_SUBRC.
        MOVE 'Error Submitting Job'(M06) TO L_MSG.
        EXIT.
      ENDIF.
    Closes job to start its processing
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                JOBCOUNT  = W_JOBCOUNT
                JOBNAME   = W_JOBNAME
                STRTIMMED = 'X'.
      IF SY-SUBRC NE C_0.
        MOVE  C_2                       TO L_SUBRC.
        MOVE 'Error closing job'(M08)   TO L_MSG.
        EXIT.
      ENDIF.
      MOVE  C_0                                          TO L_SUBRC.
      MOVE 'Program Submitted in Background Mode'(M09)   TO L_MSG.
    ENDFORM.
    *eject
    *&      Form  0200_foreground
    Executes Selected program in ForeGround Mode VIA Submit
    *Block commented from here SPK290606
    *FORM 0200_FOREGROUND USING     L_PROG L_VARIANT
                        CHANGING  L_MSG  L_SUBRC.
    *Block commented till here SPK290606
    *Block added from here SPK290606
    FORM 0200_FOREGROUND USING    L_PROG    LIKE D010SINF-PROG
                                  L_VARIANT LIKE VARIS-VARIANT
                         CHANGING L_MSG     TYPE  CHAR80
                                  L_SUBRC   TYPE  SYST-SUBRC.
    *Block added till here SPK290606
      SUBMIT (L_PROG) USING SELECTION-SET L_VARIANT
             EXPORTING LIST TO MEMORY AND RETURN.
      IF SY-SUBRC EQ C_0.
        MOVE  C_0                                 TO L_SUBRC.
        MOVE 'Report submitted successfully'(M04) TO L_MSG.
      ELSE.
        MOVE  C_2                                 TO L_SUBRC.
        MOVE 'Error submitting report'(M05)       TO L_MSG.
      ENDIF.
    ENDFORM.

Maybe you are looking for

  • Opening Word document with OLE

    Hello, I must have a case of own-code-blindness, could anyone see what the problem is? A blank document is created but I can't get it to load the file... <snip> app := CLIENT_OLE2.CREATE_OBJ('Word.Application'); CLIENT_OLE2.SET_PROPERTY(app, 'Visible

  • 5.1 Sound Sys

    I have an old Creative 5. speakers and the Creative sound blaster li've sound card. Recently I'm thinking of changing to a new sound card. To what extecd? or Which sound card I can use for my old 5. speakers? Please advise. Thank you. Eric

  • Issue with Data Load Table

    Hi All,        i am facing issue with apex 4.2.4 ,using the  Data Load Table concept's and in this look up used the       Where Clause option  ,it seems to be not working this where clause ,Please help me on this

  • Appcrash itunes when opening pictures (need help)

    every time i open my ipod -pictures itunes crashes.. any ideas? tried reinstalling, resetting, deauthorized and re authorizing itunes. the problem only affects pictures. i have a ipod touch bought it yesterday, problem details below (in norwegian) Na

  • What would you most like to see in a future version?

    I'm pretty sure the DSC development team looks at these posts so what would you most like to see in the future? For me, I'd like to be able to dynamically add tags without shutting down the engine. Regards, Robert