Help required in Background Job

Hi Experts,
My client is scheduling background job for creating Cost Document. The job creates cost document and PO simultaneously.
The requirement is, i need to change the validity start and end date of the PO with the price date of the cost doc.
I am not aware of background job. Can someone let me know how this can be done.
Thanks in advance.
Regards
Balu

Hi Balu,
From this Thread, my understanding is that you are not aware of the SAP Background Job scheduling Concepts and it's implementation. Have a look at the follwing links for how to schedule a Background Job in a SAP System.
http://help.sap.com/saphelp_nw04/helpdata/en/ef/2c513897110872e10000009b38f889/frameset.htm
http://help.sap.com/saphelp_wp/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c8/6a56389f64246fe10000009b38f889/frameset.htm
Hope this will help.
Thanks,
Samantak.
Edited by: Samantak Chatterjee on Oct 23, 2009 11:15 AM

Similar Messages

  • Help Required Regarding - SAP Job names using R3 data flows

    We are calling a set of SAP Jobs using R3 data flows in data services. When ever a job fails we first kill the active SAP jobs by logging into SAP and then restarting the Jobs.
    There are about 100 odd SAP jobs that we call using these Data services Jobs so we wanted to kill the jobs using a reusable code on the SAP side by passing the Job name just before every R3 flows just incase its still in active status.
    So wanted to know if there are any short cuts to retrive the set of associated SAP job names because it will be a tedious process to hardcode the SAP job names and pass them as parameters for all the 100 + SAP job names in the custom defined resuable code.
    Any help or advice on this please !!

    The program is not meeting the expectations
    and the problem is due to reflection.Do we know this for certain?
    ... my application gets the class name, field name
    etc. from an XML file so i don't know their method names
    beforehand .
    Now since every class instance corresponds to a row
    in the database and i have to call get and set
    methods of each class instance so the performance
    keeps on degrading as the number of columns and rows increase .
    Can somebody suggest some improvement regarding this
    and regarding creating multiple instances of the same object Class.forName() will be using a hash already, so there is probably not much room for improvement.
    Class.newInstance() probably does not take significantly more processing than a simple "new Fubar();".
    Umpteen reflective method invokations (one per column) for each row/instance - Are you saying these are the problem?
    You can test this easy enough.
    If you comment out the reflective method invocations and leave the rest of your code untouched,
    does your application processing speed up significantly?

  • Immediate help required with this job scheduling scenario

    I have a job that needs to run a procedure hourly but not between 6:00 AM to 8:00 AM and 6:00 PM to 8:00 PM.
    Can anyone help me with how to schedule this job.

    If you use a window the job would only execute if the window opens. If for some reason the window did not open then the job would not execute.
    Windows should be used to specify which resource plan should be active for the time interval.
    In this case you are better off using FREQ=DAILY; BYHOUR=; and specify the hours.

  • Hi friends need some help while creating background job

    I need to run a batch report in background in SM36 when any cancellation of sales order is done in VL09.
    i.e when a cancellation of sales order is done i have to run a batch report which will call an IDOC outbound generation function module that will create the IDOC.....
    Please tell me how to do this.....

    Hi,
    To submit backgroud jobs.
    Call Function 'Job_Open'.
    SUBMIT <report name>
    WITH <input variants>
    USER sy-uname
    VIA JOB <job name>
    AND RETURN.
    If sysubrc eq 0.
    Call Function 'Job_Close'.
    Reward if helpfull.

  • Schedule Background Job whenever new message WVINVE

    Hi All,
    I have following requirment:-
    Schedule Background Job with a ABAP program,
    whenever new message type WVINVE posted in SAP inbound.
    I am confused in "Event" which i select in SM36.
    Or, is there any other method to trigger a background report, whenever WVINVE03 IDOC posted in SAP system & create physical Inventory document.
    regards
    Umesh

    For triggereing a background job, when ever a message type WVINVE is posted. You need to create a
    Background Job with the the program and mark the Job Event periodic. Secondly you need to trigger that event from the Inbound processing program or Function module which processes the message type using the Function module <b>BP_EVENT_RAISE</b>. so when ever a message type is processed it will trigger the event which inturns trigger the Job.
    Hope this will Help.

  • Error in triggering background job

    HI, I've been facing an error which a background job is being scheduled. The scenario is something like this ...
    1) A third party schedulling system triggers a SAP job and monitors the progress
    2) In SAP, the master job is been copied with a different user name and then released for processing.
    3) There are multiple jobs which get triggered but there is one job which is causing a problem.
    4) The job makes a copy an stays in a scheduled status without getting released. While i try to manually release the job it give me an error that cannot create record in the database.
    5) Upon checking the system log it gives me this -  Error: INSERT background sched. table(job $$$$).
    There is already an entry for the specified job in the table TBTCS.
    6) While checking the TBTCS table i've found multiple entries out there. Should this table be empty or have information about the runtime of this job.
    Please help as this background job is causing concerns in archiving processess defined.
    Thankx in advance for your help.
    Arvind.

    the earlier problem of background job was solved by changing the  output device assigned to user wf-batch .
    regarding the transport request :
    when i was trying to execute the step : "Schedule bakgrd for missed deadlines " MANUEL it was giving me an option of SAVE AND SCHEDULE . which was creating the transport request . but when i executed it automatically it worked fine without asking a request to me ... i don't know why )-: ... probablly we can specify a different interval then the standard of three minutes and which will be transported (it's just a guess) . i have  executed it  automatically ...
    well thanks all for u r help

  • Data capturing in background job scheduling

    HI,
    I hava a specific requirement in background job scheduling.
    in my layout i have to show <b>pagenumber / total number of page numbers.</b>
    for that iam useing a variable with value '$$$' and iam replacing this variable with total number of pages..
    when we run in foreground it is working fine. but in background the variable is not being replaced..
    how can i modify the data in spool..

    REPORT ztest no STANDARD PAGE HEADING
                                     MESSAGE-ID zfi
                                     LINE-COUNT 65(1)
                                     LINE-SIZE 165.
    DATA:        v_sum(3)  TYPE c VALUE'$$$'.
    CONSTANTS:  c_slash    TYPE c VALUE '/'.        "Stores /
    parameters : p_1 type c.
    START-OF-SELECTION.
      WRITE : 'Hi'.
      SKIP 80.
      WRITE : 'Helloo'.
    END-OF-SELECTION.
    *To print the total no. of pages in report heading.
      PERFORM f_replace_totpage.
      TOP-OF-PAGE
    TOP-OF-PAGE.
    Display Standard Report Header
      PERFORM f_report_header.
    *&      Form  f_replace_totpage
         To print the total no. of pages in report heading.
    FORM f_replace_totpage .
      DATA: l_tot_page(3) TYPE c,
            l_pgcnt TYPE i,
            l_licnt TYPE i VALUE '3'.
    Assign value of total number of pages into l_tot_page.
      l_tot_page = sy-pagno.
    To replace the value of v_sum ($$$) by total number of pages after
    reading the content of fourth line of each page.
      WHILE l_pgcnt LE l_tot_page.
        l_pgcnt = l_pgcnt + 1.
        READ LINE l_licnt OF PAGE l_pgcnt.
        REPLACE v_sum WITH l_tot_page INTO sy-lisel.
        MODIFY LINE l_licnt OF PAGE l_pgcnt.
      ENDWHILE.
      CLEAR: l_tot_page,
             l_pgcnt,
             l_licnt.
    ENDFORM.                    " f_replace_totpage
    *&      Form  f_report_header
          Report Header display
    FORM f_report_header.
      FORMAT COLOR 1 INTENSIFIED ON.
    Text-246 - Page:
    WRITE:/1 text-247, 45 text-241, 110 text-242, 150 space.
    WRITE:/1 text-243, sy-repid, 110 text-244, sy-datum, c_slash, sy-uzeit,
             150 space.
      WRITE:/1 text-245, sy-uname, 110 text-246, sy-pagno,c_slash,v_sum,
             150 space.
      FORMAT COLOR OFF.
      ULINE.
    ENDFORM.                    " f_report_header

  • Scheduling a background Job with gaps in dates

    Hi Experts,
    I am having a requirement : A background job has to be scheduled for running a program every 15 minutes and for every month.But this job should not run from date 10th to 15th of every month.For example,In july month Job should start run from 01.07.2014 to 31.07.2014 excluding 10.07.2014 to 15.07.2014.
    Can we achieve this without a custom program and using SM36?
    Regards,
    Arun.

    Hello Arun,
    is it possible to define a factory calendar to you in the system, if you can define one then you can define the 10-15 the of every month as holiday.
    We can select the factory calendar above defined in the job. This can be found by clicking on the restrictions button in the start condition screen.
    in that start date restrictions, you can find 5 options in those you can pick the do not execute the periodic job on sunday and holidays.
    but this will effect the sundays which are falling in 1-10 th & 15-31st of each month, will that be OK ?
    if you do not want to try out the above all steps, then you can simply create 2 job running for each month
    1st one for 1-10th of every month.
    2nd one for 16th to end date.
    Let us know in case of any concerns on the same.
    thanks,
    Bhaskar

  • Background job requirement  in Systems like GRC

    Hi All,
    We will like to know periodic background job requirements in systems like GRC. May be rough volume of these jobs (defination) will help.
    Do these systems have process chains like BI and APO systems.
    Also do these systems have some interfaces with ECC / R/3 systems to transfer the data. (for e.g. in APO we have CIF interface)
    Thanks a lot for all your help.
    Best Regards,
    Vithal

    Hi all,
    I think I have some commun issues with Vithalprasad about scheduling GRC Control Access background jobs (especially the FireFighter jobs) with an external scheduler (we are also using SAP CPS).
    I have to specify that for now we are using the internal job scheduler of GRC to schedule both ABAP and Java jobs which are dependant the one from the others.
    But we would like to schedule all of them in SAP CPS: it is possible for the ABAP programs, but not (?) for the Java jobs (we have not any NetWeaver Java Scheduler, since we have the 7.0 version of NetWeaver).
    Please feel free to ask me precisions.
    Have anyone an idea about the way to make this work ?
    Thanks for your help,
    Regards,
    Yi Jiang

  • Background job requirement  in Systems like MDM

    Hi All,
    We will like to know periodic background job requirements in systems like MDM. May be rough volume of these jobs (defination) will help.
    Do these systems have process chains like BI and APO systems.
    Also do these systems have some interfaces with ECC / R/3 systems to transfer the data. (for e.g. in APO we have CIF interface)
    Thanks a lot for all your help.
    Best Regards,
    Vithal

    Hi Zanwar,
    my apologies for wrong answer.
    as per my knowledge, i only know these things.
    1. Periodic background job requirements in systems like MDM may be.
    Ans: - seeing for MDM server heartbeat
            - Import & Syndication server start/stop process
            - MDM server performance
           - maintaning & cleaning log files
    etc.
    2. Do these systems have some interfaces with ECC / R/3 systems to transfer the data. (for e.g. in APO we have CIF interface)?
    Ans: yes, MDM have Generic extractor (mdm_clnt_extr) and MDMGX to extract data from R3 systems.
    - also you can use custom scenarios using XI as middleware
    like: Proxies, Idocs.
    - Abap apis is another method to integrate R3-MDM.
    3. Do these systems have process chains like BI and APO systems?
    Ans: i think mdm have but nort sure.
    BR,
    Alok
    Edited by: Alok Sharma on Jan 30, 2008 12:35 PM

  • 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

  • Getting Message as "File not open", when I ran background Job

    Hi,
    I developed a Migration Program, Which reads the data from Application serever and procced with further process in back ground mode.
    Same program is workind fine in Development System in Back ground mode (SY-BATCH = 'X', Scheduled a batch Job). So I transported to Quality system.
    Now When I run the program in background mode (SY-BATCH = 'X', Scheduled a batch Job), getting Message as "File is not Open" at Quality system. So I debugged the Batch job  through "JDBG", and found file opening and reading the content sucessfully.
    But its not working without debugging mode and getting message as "File not open".
    Is there any Authorizations required for background mode (without debugging).
    So can you please help me on this how to solve this issue.

    Try this code:
    DATA: PATH_NAME(80) TYPE C,
            LV_FILENAME TYPE STRING.
      DATA: LW_XSTRING         TYPE XSTRING,
            X_LEN             TYPE I.
      DATA: FILE_AUTH_ERR TYPE REF TO CX_SY_FILE_AUTHORITY,
            FILE_OPEN_ERR TYPE REF TO CX_SY_FILE_OPEN,
            FILE_OPEN_MODE_ERR TYPE REF TO CX_SY_FILE_OPEN_MODE,
            FILE_CLOSE_ERR TYPE REF TO CX_SY_FILE_CLOSE,
            FILE_CONVERSION_ERR TYPE REF TO CX_SY_CONVERSION_CODEPAGE,
            FILE_TOO_MANY_ERR TYPE REF TO CX_SY_TOO_MANY_FILES,
            MESS TYPE STRING,
            W_TEXT TYPE STRING.
      DATA: L_RC TYPE INT4.
    concatenate pathname lv_filename into lv_filename.
    TRY.
          OPEN DATASET LV_FILENAME FOR INPUT IN BINARY MODE MESSAGE MESS.
        CATCH CX_SY_FILE_OPEN_MODE INTO FILE_OPEN_MODE_ERR.
          W_TEXT = FILE_OPEN_MODE_ERR->GET_TEXT( ).
          L_RC = 1.
        CATCH CX_SY_FILE_AUTHORITY INTO FILE_AUTH_ERR.
          W_TEXT = FILE_AUTH_ERR->GET_TEXT( ).
          L_RC = 2.
        CATCH CX_SY_CONVERSION_CODEPAGE INTO FILE_CONVERSION_ERR.
          L_RC = 3.
          W_TEXT = FILE_CONVERSION_ERR->GET_TEXT( ).
        CATCH CX_SY_TOO_MANY_FILES INTO FILE_TOO_MANY_ERR.
          L_RC = 4.
          W_TEXT = FILE_TOO_MANY_ERR->GET_TEXT( ).
        CATCH CX_SY_FILE_OPEN INTO FILE_OPEN_ERR.  "File already open
          L_RC = 5.
          W_TEXT = FILE_OPEN_ERR->GET_TEXT( ).
      ENDTRY.
      IF L_RC = 0.
        L_RC = SY-SUBRC.
      ENDIF.
      IF L_RC <> 0 OR SY-SUBRC NE 0.
    Issue Error message in open file.
       CONCATENATE MESS 'Open dataset failed'  w_text INTO MESS SEPARATED BY SPACE.
       message Exx(yyy) with mess.
          ELSE.        "file exists and can be opened
      ENDIF.

  • Program works but background job for that program fails....

    I have a requirement where I have to collect the details of the purchase order and put the details in XML file format and FTP the XML file to an external third party FTP Server.
    To realize this I developed a report program which follows following logic.
    1)     First I collected the PO details by calling the BAPI BAPI_PO_GETDETAIL1.
    2)     Then using the following link "/people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach
    I converted these PO details to the XML file format that the third party people accept.
           In the code I used u201CCALL METHOD cl_gui_frontend_services=>gui_downloadu201D and in this process first the XML file is generated and is getting stored on my deskytop.
    3)     Then I called HTTP_SCRAMBLE, FTP_CONNECT, FTP_COMMAND , FTP_DISCONNECT and RFC_CONNECTION_CLOSE.
    This works perfectly well and each time I execute the report the file is getting FTPu2019ed to the third party FTP server.
    Now I tried to schedule a batch job for this and the batch job fails with follwing errors
    02/25/2009 15:08:47 Error in Control Framework
    Message Class  = FES         
    Message Number = 022  
    Message Type   = E
    02/25/2009 15:08:47 Job cancelled after system exception ERROR_MESSAGE 
    Message Class  = 00        
    Message Number = 564  
    Message Type   = A                
    Can some one tell me what is going wrong. My report works perfect in front end but fails if I try to schedule a background job for it in SM36.
    Can you please tell me whatz going wrong with batch job? Any Help is highly appreciated.
    Regards,
    JEssica SAm

    Robert...Thanks for the reply...
    I am using follwing code
    l_xml_size = l_ostream->get_num_written_raw( ).
        CALL METHOD cl_gui_frontend_services=>gui_download
          EXPORTING
            bin_filesize = l_xml_size
            filename     = FILEPATH
            filetype     = 'BIN'
          CHANGING
            data_tab     = l_xml_table
          EXCEPTIONS
            OTHERS       = 24.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    Now what changes should i make..where should i store my XML file then instead of my desktop?
    and whih Function Module should i Use..

  • Schedule a Background Job to Available Free Application servers

    Hi,
        There is a requirement to develop a Wrapper program,which needs to schedule Background jobs by checking all the available free application servers and assigning it to them.
    For Eg: If there are 5 application servers in LIVE system,Then this program needs to find free application server's which will submit the job to that particular free server
    Appreciate Your Inputs!!
    Thanks
    Rakesh

    Look at some documentation like [Scheduling Background Jobs |http://help.sap.com/erp2005_ehp_04/helpdata/EN/c4/3a7f87505211d189550000e829fbbd/frameset.htm] (look for "system load balancing")
    Regards

  • Background Job Scheduling Status

    Hi All,
    I have a requirement in which I want to schedule background jobs using SUBMIT for different Company Codes.
    Consider there are 3 company codes (U001, U002 and U003). In this case there will be a main job for U001 and another job for U002 is dependant on the first job (U001) and this U002 will get executed immediately the U001 is completed successfully. If unsuccessful, next job need not to be run. Also I have to keep the main program active till all jobs finishes.
    Kindly help me with getting the status of the job run which will decide the next job run.
    Thanks
    Natasha Garg

    SUBMIT ZXXXX AND RETURN. "main job for U001
    IF SY-SUBRC = 0.    "means job is success.
        SUBMIT ZXXXX AND RETURN. " job for U002
    ENDIF.
    NOTE:
    We can not keep the success fully finished job as active for the next job to get succed.
    To do Same, we can create a job using JOB_OPEN and make the same run in different steps. So the second step (U002) runs if the first step (U001) is success. It suits for your requirement.
    Edited by: Thomas Zloch on Dec 20, 2010 10:33 AM - please use code tags for code only

Maybe you are looking for

  • SELECT query taking long time

    Hi All, I am trying to run one SELECT statement which uses 6 tables. That query generally take 25-30 minutes to generate output. Today it is running from more than 2 hours. I have checked there are no locks on those tables and no other process is usi

  • Line item line no in ml11

    hi all, i developed a bdc for ml11 transaction.(multiple line items.) program is working fine line items are populating corresponding to line nunbers my data is populating in line no 9. but i want it to be in 10. is there any settings to do for that.

  • Prelude CC will not update?

    I am using Adobe Creative Cloud and Prelude CC keeps getting an "unable to extract the downloaded files." when I try to update?

  • How to post on SSL

    I get a error java.lang.NoClassDefFoundError: javax/net/SocketFactory even though this class is available in weblogicaux.jar file           

  • I downloaded a video from youtube and to play it on Quicktime Player but is says the file is not recognised

    I need a video for an assigment from youtube, but when i download it, it says that the file is not recognised What can i do? Tips? Help? Marcus