To Check whether Background Job ran or no

How can we programatically check in a program whether a background job ran or not for a particular output type of invoice ?? Pls help me out

Hi,
  This will probably work.
report zkiran_0001 .
data: xtbtco type   tbtco .
parameters: p_job type tbtco-jobname.
start-of-selection.
  clear xtbtco.
  select single  * from tbtco
          into xtbtco
                     where jobname = p_job
                       and status = 'R'.  " running
  if sy-subrc = 0.
    write:/ 'Job', p_job, ' is currently running'.
  endif.
Statuses....
Status of background job
The following statuses are possible:
<b>Scheduled:</b> Job defined, but not yet eligible to run even if the start condition has been fulfilled.
<b>Released:</b> Job eligible to be started as soon as the start condition with which it was scheduled is fulfilled.
<b>Ready:</b> Job waiting to start. The job has been released and the job's start condition has been fulfilled.
<b>Active:</b> Job is currently running and can no longer be deleted or reset to scheduled.
<b>Finished:</b> Job has been successfully completed. All job steps completed successfully.
Note: the background processing system cannot always determine whether an external job step was successfully completed. In this case, the system assumes successful completion.
<b>Terminated:</b> Job was ended abnormally either through user action or through an error in running a job step.
Internal codes for these are as follows.
  btc_running       LIKE tbtco-status VALUE 'R',
  btc_ready         LIKE tbtco-status VALUE 'Y',
  btc_scheduled     LIKE tbtco-status VALUE 'P',
  btc_released      LIKE tbtco-status VALUE 'S',
  btc_aborted       LIKE tbtco-status VALUE 'A',
  btc_finished      LIKE tbtco-status VALUE 'F',
  btc_put_active    LIKE tbtco-status VALUE 'Z',
  btc_unknown_state LIKE tbtco-status VALUE 'X'.
refer
https://forums.sdn.sap.com/click.jspa?searchID=4369376&messageID=1681128
Regards
Message was edited by:
        Kiran Sure(skk)

Similar Messages

  • Error trying to check whether the job will be importing

    Hi,
    I am getting the below message error when I try to upload the data through webADI,is there any limit for loading the records that we can upload using web ADI? we tried to load near to 10,000 records and it's giving me an error on window and gets stuck without actually displaying the error message, when I check the Bne log I see the below message.
    BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    Note: When I tried to upload 1000 records , it's working good.
    Thanks,
    Bharat

    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneAsyncUploadPageParameters:processEvent() Start
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneUIMessages:clearAll() errors.size = 0 infos.size = 0 warnings.size = 0 confirms.size = 0
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneWebAppsContext:getValidContext() Start.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE Profile: BNE_ALLOW_SET_PARAMETERS = Y
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getExtraJDBCConnection assigned connection oracle.jdbc.driver.T4CConnection@e46a2
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneAsyncUploadPageBean.allowSetParameters true
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.isUPSCustomization start
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneAsyncUploadPageParameters:processEvent() End
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController.processPageEvent() end.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneAsyncUploadPage.renderPage Start.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneWebAppsContext:getValidContext() Start.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE Profile: BNE_DOCUMENT_LIFETIME =
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneSecurity.checkAccess(): checking access for INTEGRATOR: 20003:GENERAL_62_INTG
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneWebAppsContext:getValidContext() Start.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneSecurity.checkAccess(): a system administrator. return true
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 ERROR BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 ERROR BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneJDBCUtils.commit() current connection: oracle.jdbc.driver.T4CConnection@e46a2
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneDateUtils.getSYSDATE() Start
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneDateUtils.getSYSDATE() Start
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneJDBCUtils.commit() current connection: oracle.jdbc.driver.T4CConnection@e46a2
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController:getPage() Start
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController:getPage() Creating a page reference, for page = oracle.apps.bne.webui.pageflow.BneAsyncUploadPageSend
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController:getPage() class detail, name = oracle.apps.bne.webui.pageflow.BneAsyncUploadPageSend
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController:getPage() End
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneAsyncUploadPageSend:createPage() Start
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneAsyncUploadPageSend:createPage() End
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController.createPageBody() End.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController.handlePageHead() start.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController.handlePageHead() end.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBasePageController.handlePage() Done
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBajaServlet.setupResponse() Start
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneWebAppsContext:getValidContext() Start.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE Profile: ICX_CLIENT_IANA_ENCODING = UTF-8
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneBajaServlet.getRenderingContext() Response.setContentType = text/html; charset=UTF-8
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.getUserId() End, userId = 79087
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BnePerformanceStatistics - Wrote 0 of 3 statistics in 0 Milliseconds.
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneJDBCUtils.commit() current connection: oracle.jdbc.driver.T4CConnection@b3ea0f
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneJDBCUtils.commit() current connection: oracle.jdbc.driver.T4CConnection@e46a2
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE BneOracleWebAppsContext.releaseContext() Web Event Duration = 0.083(s)
    7/26/12 11:55 AM AJPRequestHandler-HTTPThreadGroup-3 TRACE Exit BneApplicationService.handleRequest()
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneCache.cacheSweeper: sweep starting ...
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE Cache Summary
    Cache Region: Default Cache , Size: 0 , hitRatio: 0 /0 , puts: 0 , removes: 0 , cleared: 0 , swept: 0 , hashCode: 0
    Cache Region: Generic SQL Statements , Size: 0 , hitRatio: 0 /0 , puts: 0 , removes: 0 , cleared: 0 , swept: 0 , hashCode: 0
    Cache Region: Web ADI Repository Objects , Size: 36 , hitRatio: 289 /310 , puts: 36 , removes: 0 , cleared: 0 , swept: 0 , hashCode: -144528918
    Cache Region: Web ADI Parameter Lists , Size: 12 , hitRatio: 15 /27 , puts: 12 , removes: 0 , cleared: 0 , swept: 0 , hashCode: 376128196
    Cache Region: Web ADI Parameter Definitions , Size: 28 , hitRatio: 69 /97 , puts: 28 , removes: 0 , cleared: 0 , swept: 0 , hashCode: -1860472108
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneWebAppsContext:getValidContext() Start.
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneContext:getBneDbcFilename() Start.
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneContext:getBneDbcFilename() Done, filename = /applmgr/ebsuat/inst/apps/ebsuat_ebs121v/appl/fnd/12.0.0/secure/ebsuat.dbc
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneWebAppsContext:getValidContext() Start.
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneJDBCUtils.commit() current connection: oracle.jdbc.driver.T4CConnection@e46a2
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneCache.cacheSweeper: Default Cache : 0 cleared, time: 0 mSecs
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneCache.cacheSweeper: Generic SQL Statements : 0 cleared, time: 0 mSecs
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneCache.cacheSweeper: Web ADI Repository Objects : 0 cleared, time: 0 mSecs
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneCache.cacheSweeper: Web ADI Parameter Lists : 0 cleared, time: 0 mSecs
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneCache.cacheSweeper: Web ADI Parameter Definitions : 0 cleared, time: 0 mSecs
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE BneCache.cacheSweeper: sweep done in 5 mSecs
    7/26/12 12:00 PM Web ADI Cache Sweeper TRACE Cache Summary
    Cache Region: Default Cache , Size: 0 , hitRatio: 0 /0 , puts: 0 , removes: 0 , cleared: 0 , swept: 0 , hashCode: 0
    Cache Region: Generic SQL Statements , Size: 0 , hitRatio: 0 /0 , puts: 0 , removes: 0 , cleared: 0 , swept: 0 , hashCode: 0
    Cache Region: Web ADI Repository Objects , Size: 36 , hitRatio: 289 /310 , puts: 36 , removes: 0 , cleared: 0 , swept: 0 , hashCode: -144528918
    Cache Region: Web ADI Parameter Lists , Size: 12 , hitRatio: 15 /27 , puts: 12 , removes: 0 , cleared: 0 , swept: 0 , hashCode: 376128196
    Cache Region: Web ADI Parameter Definitions , Size: 28 , hitRatio: 69 /97 , puts: 28 , removes: 0 , cleared: 0 , swept: 0 , hashCode: -1860472108

  • Searching FM for checking whether a job is active or not

    Hello,
    i am searching fo a FM which tells me if a job is already scheduled or is running.
    Does anybody know?

    Sorry.. i misread your question.. i thought of JOB in HR.
    Check this FM for BASIS JOBS.
    BP_IS_JOB_ACTIVE_IN_WP
    BP_JOB_CHECKSTATE
    BP_JOB_CHECKSTATE_SM37B
    BP_JOB_STATUS_GET
    BP_JOB_READ
    To explore more FMs look at FG BTCH
    Aman

  • FM for Background Job Check

    Hi,
    is there a function module that will check the background job status and will wait for it to finish before returning to the calling program?
    I have developed a program that triggers a background job at runtime, but i also need to make sure the job is finished, successful or not, before the output of the program. i'm currently doing a query in a job table inside a do enddo loop, but i believe this is not efficient.
    Any ideas?
    thanks.
    tyken

    I am not having the sample Code with me right now...
    But i'll help you to build the logic...
    after Write report.
    Use the Function module I told u...
    then...
    write a select query on  table tbtcp with job info you will get from FM.
    What is your objective after getting the Background Job details..?

  • Error in Background Jobs After Client Copy

    Hi,
    We had performed a system refresh from a production client(with client no 300) to a quality server (client no: 200). The post processing steps were performed ok. Later the client 300 on the quality server was dropped. However, the scheduled user jobs in the background on client 200 still refer to the original client 300 and abort.
    Is there any way of modifying there jobs(there are lots of them) so that the client(300 in this case) reference is modified to the existing client 200.
    Points will be rewarded for good answer.
    Thanks and Regards,
    Subodh

    Hi
    The reason for the jobs getting cancelled could be that they are
    client dependent jobs and inoder to resolve the issue, please
    reschedule the jobs in client 200 and check whether the job fails.
    Please let me know if all the jobs are failing or the issue is only
    with the client dependent jobs.
    Hope this information helps. Please get back to me if further
    assistance is required. I would be glad to assist you.
    venkat

  • Output after the background job finished successfully

    Hi All,
    We executed a Dunning job  in the background (sm37) and the job finished succesfully.  How to check whether the job has created an output ? Where to look for the output ?
    Regards
    Shiva

    You can check the spool request of your job via SM37 or SMX. Go to SM37 select your job and check the spool request.
    Regards
    Subhash

  • Standard background job is running after deleting a user also

    Hi Gurus,
    in my production system environment i observed below thing.
    1)Default standard background jobs were scheduled by earlier basis admin after some days he left and his id also deleted but still some jobs are running with his id and finishing also, how is it possible without having his ID in system?
    2) what is the standard procedure to schedule default standard bg jobs in SAP? either from sap* or DDIC or basis admin?
    one more question regarding Audit logs:
    1)can we activate audit log for selective ids and selective period?
    2)if we activate audit log is there any performance issues will come?
    Thanks in advance
    Venkat

    Hello Venkat,
    1)Default standard background jobs were scheduled by earlier basis admin after some days he left and his id also deleted but still some jobs are running with his id and finishing also, how is it possible without having his ID in system?
    - Please cross check whether multiple jobs are scheduled with that user in different time period. If that user is defined in step then only that job fails otherwise it runs without any issues.
    2) what is the standard procedure to schedule default standard bg jobs in SAP? either from sap* or DDIC or basis admin?
    - Please go through the note suggested by Juan. I recommend to schedule with DDIC or Basis Admin.
    Thanks,
    Siva Kumar

  • BWREMOTE background job canceled in sap r/3 system

    Hi my friends,
    Thanks for your help ahead.
    Today I checked the background job in SAP R/3 created by BWREMOTE via SM37. It showed me some jobs had been canceled.
    I displayed its log, the detail message is:
    ==========================================
    Step 001 started (program SBIE0001, variant &0000000083494, user name BWREMOTE)
    DATASOURCE = ZQM_NOT_SHFGRP
    Call up of customer enhancement BW_BTE_CALL_BW204010_E (BTE) with 1,593 records
    Result of customer enhancement: 1,593 records
    Call up of customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 1,593 records
    ABAP/4 processor: SAPSQL_INVALID_FIELDNAME
    Job cancelled
    ==========================================
    Then I displayed the "Long Text" of the job log. It is
    One of the field names in the SELECT clause was not recognized.
    Error analysis
    The SELECT clause was specified in an internal table at runtime.
    It contains the field name "TPR00", but this does not occur in any of
    the database tables listed in the FROM clause.
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "SAPLXRSA " in
    "EXIT_SAPLRSAP_001".
    The main program was "SBIE0001 ".
    Source code extract
    008840 concatenate 'TPR'
    008850 day_temp+6(2)
    008860 ' = '
    008870 ' ''' zshift '''' into
    008880 cond .
    008890 append cond to itab .
    008900 select schkz into i_not_shfgrp-zzschkz from t552a
    008910 where zeity = '2'
    008920 and mofid = 'CN'
    008930 and mosid = '28'
    008940 and ( schkz = 'SFTA' or
    008950 schkz = 'SFTB' or
    008960 schkz = 'SFTC' or
    008970 schkz = 'SFTD' )
    008980 and kjahr = day_temp+0(4)
    008990 and monat = day_temp+4(2)
    > and (itab) .
    009010 endselect.
    I guess that there is not a field named TPR00 in table t552a.
    Next, I opened the 'project management of sap enhancement' via CMOD, entering the project name and chosing 'Display'.
    Then Double click the Components 'EXIT_SAPLRSAP_001', we can see the function module 'EXIT_SAPLRSAP_001'. In the source codes, there is an include program, it is 'INCLUDE ZXRSAU01.'.
    Then, I double clicked the Include program and find the position program terminated. The source codes are:
    ZQM_NOT_SHFGRP *
    when 'ZQM_NOT_SHFGRP'.
    loop at c_t_data into i_not_shfgrp .
    l_tabix = sy-tabix .
    clear :mbatch ,zshift,cond ,zfield, zcharg, day_temp .
    refresh itab.
    if i_not_shfgrp-ausvn is initial.
    else.
    aa = '080000'.
    bb = '160000'.
    cc = '235959'.
    day_temp = i_not_shfgrp-ausvn.
    if i_not_shfgrp-auztv ge aa and
    i_not_shfgrp-auztv lt bb .
    zshift = 'MSHF' .
    elseif i_not_shfgrp-auztv ge bb and
    i_not_shfgrp-auztv le cc .
    zshift = 'LSHF'.
    else .
    zshift = 'NSHF'.
    day_temp = i_not_shfgrp-ausvn - 1.
    endif.
    concatenate 'TPR'
    day_temp+6(2)
    ' = '
    ' ''' zshift '''' into
    cond .
    append cond to itab .
    select schkz into i_not_shfgrp-zzschkz from t552a
    where zeity = '2'
    and mofid = 'CN'
    and mosid = '28'
    and ( schkz = 'SFTA' or
    schkz = 'SFTB' or
    schkz = 'SFTC' or
    schkz = 'SFTD' )
    and kjahr = day_temp+0(4)
    and monat = day_temp+4(2)
    and (itab) .
    endselect.
    endif.
    I found that we got a TPR00 during concatenation. In other words, day_temp+6(2) = 00. But I think it is impossible. I can not explain this.
    Any ideas, my friends. Many thanks.

    select schkz into i_not_shfgrp-zzschkz from t552a
    where zeity = '2'
    and mofid = 'CN'
    and mosid = '28'
    and ( schkz = 'SFTA' or
    schkz = 'SFTB' or
    schkz = 'SFTC' or
    schkz = 'SFTD' )
    and kjahr = day_temp+0(4)
    and monat = day_temp+4(2)
    <b>and (itab) .</b>  => doesn't make sense?!
    endselect.
    endif.
    it seems something got deleted between 'and' and '(itab)'... so, you'll have to recheck the requirements for your select to fill the 'and' statement further.
    so, it should look like
    and monat = day_temp+4(2)
    and <b><some kind of condition that needs to be fulfilled></b>.
    endselect.
    <b><some logic to fill a line in your internal table></b>.
    append cond to itab.
    endif.
    obviously <some kind of condition that needs to be fulfilled> needs to be replaced by a real condition
    and <some logic to fill a line in your internal table> needs to be replaced by some kind of formula
    I assume something like (otherwise it would be really weird to select that field):
    cond = i_not_shfgrp-zzschkz.
    or a formula using the i_not_shfgrp-zzschkz field.
    It would also be a lot better to replace your select ... endselect by a select single as you'll be selecting 1 record only anyways.
    Message was edited by:
            RafB

  • Mails are not generated in background Jobs and not shown in SOST.

    Dear All,
    I have facing issue regarding to system mails. I want to send mails the various reports automatically from SAP System to different recipients. So I scheduled that reports at background and in their spool list recipient I have added distribution list.
    But that mails are not generated, it is not shown in transaction SOST also. When I send mails manually it goes successfully to only our company domain recipients. But not other domains. How should I resolve this problem?
    Please help me out.
    Thanks in advance.
    Amit

    Hi Srihari,
    I have checked the background jobs they showed it finished. Following logs are shown in job logs. Is problem is due to 3rd log??
    18.03.2012 14:23:34 Job started    00           516          S
    18.03.2012 14:23:34 Step 001 started (program RFITEMAP, variant PDC FARMAR, user ID DEVELOPER1)      00           550          S
    18.03.2012 14:23:37 No items selected (see long text)                                              MSITEM         033          I
    18.03.2012 14:23:42 Spool request (number 0000026302) created without immediate output               SY           355          S
    18.03.2012 14:23:46 Job finished                                                                     00           517          S
    When I saw further details of 3rd log it following message.
    No items selected (see long text)
        Message no. MSITEM033
    Diagnosis
        No line items meeting your selection criteria could
        be for the following reasons:
        1.) No corresponding items have been posted.
        2.) You are not authorized to display this data.
        3.) The items have already been archived.
    Please help me out.
    Thanks
    Amit

  • TDMS background jobs

    Dear experts,
    I've met with following issue:
    When processing the phase of "Determine Tables to be Excluded from the Export" in shell creation, the status of the job is always displayed as green flag (Blank), which should be shown as "execution successfully completed".
    The actions I've taken:
    1. I've checked the background job via SM37, related backgournd job is released, however, it's always been delayed. Well, I'm not quite sure about the reason of delay...  So I deleted the job. However, the job is still shown as been scheduled in process tree.
    2. Then, I executed the report CNV_TDMS_13_SHELL_EXPORT_EXCTB mannually in SE38.
    3. After that, the status of job in process tree was shown as "execution successfully completed".
    The question is, can I take the above steps to accellerate the export job process?
    Besides, when I performed the next step "Export Exclude Tables", the same issue has been detected. However, job status cannot be shown as "execution successfully completed" in process tree after I've finished the mannual report execution.
    Thanks, Jett

    Hi Jett
    It is not recommended to execute the underlying reports (for concerned activities) directly, except by SLO consultant. This is so because execution of an activity does not only executes the underlying report but also handles many other actions like status, log handling etc, which may not happen if the report is executed direcly.
    General TDMS users are recommended to execute the activities from the process tree. Job being in the released state for long time may be system issue rather than a TDMS issue. So incase an activity is executed from the process tree but remains in the released state for long time without getting executed then we will recommend you to seek help from SAP support.
    Regards
    Pankaj.

  • Will background jobs effect memory?

    Hi,
    The SAP installation was running exceptionally slow so I checked the background jobs where two jobs were running one which was completed but the other called EU_REORG running.I deleted the background job.After this the performance did increase but the issue is that one day i see that the hard drive capacity was nearly 20GB but after a few days I see that it has come down to 2GB does the background job effect the way the hard drive memory is allocated? and in fact I am sole user of that SAP system so there r no chances that huge amount of documents are created overnight by itself..
    Thanks in advance
    sudhi

    Here is the description of EU_REORG from OSS Note 18023:
    EU_REORG:
    As mentioned above, the indices are automatically updated online by
    the tools. To keep the effort for updating these indices as low as
    possible, only the changes are logged, which means a reorganization
    of the complete index for each program is required from time to
    time. To avoid having this reorganization interfere with online
    work, job EU_REORG runs every night and performs this task. If job
    EU_REORG did not run one night, this simply means that the
    reorganization takes place more often online.
    I can't imagine that turning off EU_REORG would cause you to consume so much disk space.  I would make sure that you aren't get large core dumps or or types of trace files.  Depending on how much physical memory you have in your system, these files can be quite large.

  • Background job scheduler

    Hi,
    How to check the background job scheduler is running / activated ? Is it a Dialog process? where to see the program name? ( RSBTCSEXE ?)
    Thanks,
    Raj

    Hi Ruchit,
    Thanks..I have already gone through some of the OSS Note, including 923228. My problem is, I am unable to confirm, if my system is using program RSBTCSEXE or it is changed to dynamic scheduler per note-923228. I dont see entry in BTCOPTIONS table for dynamic scheduler.
    Which ID program RSBTCSEXE is running  and where to check?
    Thanks,
    Raj

  • Background job failing with license check error

    Hi Experts
    In our ERP 6.0 system ,all the background jobs are failing with license check error.
    Have checked the license in SLICENSE and the license is fine.
    There is no warning while users are loggign in ,but when any background job is runing its failing with error
    Job started
    Logon not possible (error in license check)
    Job cancelled after system exception ERROR_MESSAGE
    Also performed the license test which is failing
    F:\usr\sap\XX1\SYS\exe\uc\NTAMD64>saplicense -test pf=F:\usr\sap\XX1\SYS\profile
    \XX1_DVEBMGS00_host_xx
    Protocol saplicense test:
    Read sapsytem name
           ok, sapsytem name = XX1
    Read message server host
           ok, host = hostname
    Read message server service port
           ok, service port = sapmsXX1
    Connect to message server
           ok, connect done
    Read hardware key from message server
           ok, got hardware key
    Detach from message server
           ok, detached
    Check hardware key
           ok, hardware key = T0343073854
    Connect to database
           ok, connected
    Check license
           ok, check done
    Disconnect database
           ok, database disconnected
    test result: license test failed
    LICENSE system: XX1 hardware key: T0343073854 expiration_date:
            installation no:  key:
            userlimit: 0 productid: R3_BASIS
            system-nr:
    license expired ***
    Please suggest how to troubleshoot.
    Regards
    Ajay

    @Michael
    In SLICENSe the Hardware key field is not BLUE or BLACK and its showing the exact hardware key which i can see at OS level with saplicense -get command.
    @Jagadish
    Note is good refrence, i reiinstalled the Digitally signed license with saplikey command and it was successful.
    But still the license test is failing at OS Level..below is the command prompt output.
    ===================================================================
    F:\usr\sap\XX1\SYS\exe\uc\NTAMD64>saplikey -install C:\license_script_XX.txt pf
    =F:\usr\sap\XX\SYS\profile\XX_DVEBMGS00_mngsez148079
    SAP License Key Administration  -  Copyright (C) 2003 SAP AG
    2 SAP license key(s) successfully installed.
    F:\usr\sap\XX\SYS\exe\uc\NTAMD64>saplicense -test pf=F:\usr\sap\XX1\SYS\profile
    \MD1_DVEBMGS00_mngsez148079
    Protocol saplicense test:
    Read sapsytem name
           ok, sapsytem name = XX1
    Read message server host
           ok, host = host
    Read message server service port
           ok, service port = sapmsXX1
    Connect to message server
           ok, connect done
    Read hardware key from message server
           ok, got hardware key
    Detach from message server
           ok, detached
    Check hardware key
           ok, hardware key = T0343073854
    Connect to database
           ok, connected
    Check license
           ok, check done
    Disconnect database
           ok, database disconnected
    test result: license test failed
    LICENSE system: XX1 hardware key: T0343073854 expiration_date:
            installation no:  key:
            userlimit: 0 productid: R3_BASIS
            system-nr:
    license expired ***
    ============================================================
    @Juan
    The hardware key was changed and we requested a new license with new hardware key,system was runing fine for couple of weeks with all background jiobs for SPAM./SAINT Ok .We performed EHP4 on this system.
    But now this issue is here,so i guess we should troubleshoot.
    Please let me know any other pointers.
    Regards
    Ajay
    PS In SLICENSE new installed license is fine and all users can login.

  • Check background job

    Hi,
    Is there any function module in ABAP to check if a specific background job is already running?
    Thanks,
    Morten

    Hi Morten
    Please check Function Group: BTCH. We can find usefule function modules.
    Kind Regards
    Eswar

  • To check the status of a step inside a background jobs

    Hi All,
    i have a requirement where i have to check the status of a step(program)
    inside a background job.
    I tried with table TBTCP, but this will give the program status as P(scheduled)
    always.
    i know to find the status of a background job as whole, but how will we
    find out the status of a program inside a job.
    Could anyone please help?

    Use function module BP_JOBLOG_READ, result is an internal table of structure TBTC5,
    Analyze this internal table, looking for message S550(00) at the beginning of a step.
    Regards

Maybe you are looking for

  • Assigning another payment document to a cheque alredy assigned to pmnt doc.

    Hi Gurus, First let me explain the scenario which is as below: An user did the wrong invoicing for $ 10000.00 instead of the the correct amount $ 11000.00 through TN FB60 and then he made the payment to the vendor through TN F-58. This way the system

  • I do not get a readable or editable PDF file that has been converted to Microsoft Word.

    In the past I have been able to convert PDF files to MicroSoft Word, and Edit and Save the Documents. Now, the converted files are unreadable and uneditable. How do I correct this problem?

  • Hi,about rfc

    The receiver RFC adapter can also process messages with quality of service Exactly Once In Order (EOIO). They are mapped to transactional RFC calls (tRFC). the sentence above appears in the rfc adapter section of online help. i was confused for it..

  • Include report header for every new page.

    Hi expert, I have create a report with two buttons, 'previous page' and 'next page'. when i click the buttons, my report will go to another new page. I am using NEW-PAGE in my report. My problem now is, how can i include TOP-OF-PAGE for every new pag

  • Suse enterprise 9

    How to install guide for oracle 10g in suse enterprise 9