Background job getting CANCELLED

i have  a background job scheduled for a report is getting cancelled and giving the following error:
You attempted to change, delete or create a line in the       
internal table "???", but no valid cursor exists              
for the table.                                                
Possible reasons:                                             
1. The relevent ABAP/4 statement does not include the addition
   "...INDEX...", although the statement is not               
   inside a "LOOP...ENDLOOP" loop processing this table.      
2. The relevent ABAP/4 statement was called from within a     
   "LOOP...ENDLOOP" loop after a DELETE "???".                                                                               
what could be the reason?

it is also giving following error message:
Caution: Program has changed
Caution: At time of termination,  Active source code no longer available  and after above two statements its giving sign "?" before every statement in below manner:
024300 ?     lit_ekpo_dummy1[] = it_ekpo[].                     
024310 ?     DELETE lit_ekpo_dummy1 WHERE ebeln NE tab1-ebeln.  
024320 ?     DESCRIBE TABLE lit_ekpo_dummy1 LINES count01.      
024330 ?                                                        
024340 ?     REFRESH lit_ematn_dummy[].                         
024350 ?     lit_ematn_dummy[] = lit_ematn[].

Similar Messages

  • Background Job get Cancelled when executing the report. Reason?

    Hi All,
    I have scheduled a Back ground Job and executed Immediately.
    when checking transacion SM37 the job get canceled.
    How to find out the problem for the Job Cancellation.

    After scheduling back ground job ( give a time laps of 2 min )
    then go to sm37 ( at this moment , the job is not yet started) .
    select ur job in sm 37 and when job starts processing , type JDBG as the command and press enter.
    Now it will go to the debugging screen, where u will find system program . Now set a break point at the stements used in ur program from the debugging screen itself.( menu - breakpoint- breakpoint at - statement ) and press F8 .
    Now you can start debug ur code.
    Revrt back if any issues.

  • Report program when run in background job getting cancelled immediately

    When i run a program in foreground i am able to see the output. But when run in background not able to run the job successfully. The job is getting cancelled immediately.
    I am using the below function module for output display. Should i need to pass any parameters in the below function module so that i can run the program in background  successfully.
            IS_LAYOUT         = IS_LAYOUT                    
            I_SAVE            = 'A'                        
            IS_VARIANT        = GS_VARIANT                   
            IT_FIELDCATALOG   = IT_FIELDCATALOG               
            IT_OUTTAB         = BLOCKED_STOCK_TAB_ALV[].     
    Please suggest.
    Thanks and regards
    Rajani Yeluri

    Hi Rajani.
      ALV require the DRYPOR(screen) for display but incase you run in back ground which have to write to spool but in spool we can only write in format of LIST REPORT not inter-active report like ALV. That why
    system cancelled your process immediately.
    Hope it helps.

  • Background Jobs getting Cancelled

    Hi SRM Gurus
    we are working on SRM  4.0  and follow a classic scenarios.
    We have schedulled following background jobs
    Which were running successfully however from yesterday this all jobs are showing status cancelled.
    Can any one throw some light as to why this jobs are getting cancelled or how to check the reaons for the cancelling of jobs.
    Nimish Sheth

    Hi Nimish,
    for how long where they running ?
    They might be cancelled because of time out (ex: R/3 system not available temporary).
    Do you have traces in SM21 in the same time fence ?

  • Standard Background Job getting cancelled

    Hello Guru ,
    In my BI dev server one standard event periodic job is geting cancelled due to following reason
    cancelled error
    No alerts in configuration range
    Internal error:
    Job cancelled after system exception ERROR_MESSAGE
    can anybody help me in this regards

    Run the job once again and lets see what happens... sometimes system cancels the job....check in ST22 if there is short dump.

  • Background job getting cancelled : Choose at least one scope of list

    Hello to all,
    I am trying to Run on Z report in background which conatins SUBMIT statement to standard progarm for MB5B .This report already programmed to call a report in background.It takes stocks for given period,I am taking the values using "import memory-id" statement.It gives an error log in SM37 as:
    Choose at least one scope of list
    Message no. M7829
    Can we call a submit stmt in a report that is to run in background?? or pls provide any alternative for this problem??
    Thnax & Regards

    Hi Sonal,
    1. This is happening because there are some checkboxes on the selection screen
       which are ticked by default when we run in fore ground
       and are blank when run in  background.
      Hence the system gives the error meaning to select atleast one of them.
    2. We can simulate this error in foreground also.
       There is one button on selection screen in the middle frame.
       "> Category"
       Just push it.
       Some checkboxes will appear now.
       Untick all of them and run the report. You will get the same error
    Choose at least one scope of list
    3. So while doing SUBMIT in the z report, you can pass the values of those checkboxes (which ever you require) as 'X'.
    report abc.
    submit RM07MLBD
    with matnr = '3'
    with pa_wdzer = 'X'.
    4. The checkboxes field names are:
    PARAMETERS : pa_wdzer    LIKE AM07M-MB5B_XONUL
                              modif id liu.
    PARAMETERS : pa_wdzew    LIKE AM07M-MB5B_XONUL
                              modif id liu.
    PARAMETERS : pa_wdwiz    LIKE AM07M-MB5B_XONUL
                              modif id liu.
    PARAMETERS : pa_wdwuw    LIKE AM07M-MB5B_XONUL
                              modif id liu.
    PARAMETERS : pa_wdwew    LIKE AM07M-MB5B_XONUL
                              modif id liu.
    PARAMETERS : pa_ndzer    LIKE AM07M-MB5B_XONUL
                              modif id liu.
    PARAMETERS : pa_ndsto    LIKE AM07M-MB5B_XONUL
                              modif id liu.
    amit m.

  • SAP  Back ground Jobs getting cancel automatically

    Hi All,
    All schedule Background jobs getting cancel  automatically in ECC 5 server. Also not getting any job log in respective schedule job. please help me out with expert suggestions.

    1)Are the bgd workprocess free in the system currently?Check if there are any long running jobs holding them.
    Bgd Work process are free but with error code 373,223,007 etc for all 5 bg wp
    error reports from work directory as per work process:---
    wp 22 :Fri Sep 25 15:07:04 2009

    A  ABAP/4 Program SAPLSYDB                                .
    A  Source LSYDBU27                                 Line 7.
    A  Module  $Id: //bas/640_REL/src/krn/runt/abexsql.c#5 $ SAP.
    A  Function DsqlErrorHandler Line 1986.
    A  COMMIT/ROLLBACK error on "DEFAULT" database connection..

    M  ***LOG R68=> ThIRollBack, roll back () [thxxhead.c   12289]
    C  Rollback Work (0)
    M  *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c  252]
    B  ComRolHook(BEFORE_COMMIT, free_all) failed
    B  db_con_commit received an error return code in before-commit action
    M  ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c   12036]
    WP23: Fri Sep 25 15:06:05 2009
    B  dbtran INFO (init_connection '<DEFAULT>' [MSSQL:640.00]):
    B   max_blocking_factor =  50,  max_in_blocking_factor      = 255,
    B   min_blocking_factor =   5,  min_in_blocking_factor      =  10,
    B   prefer_union_all    =   1,  prefer_union_for_select_all =   0,
    B   prefer_fix_blocking =   0,  prefer_in_itab_opt          =   0,
    B   convert AVG         =   1,  alias table FUPD            =   0,
    B   escape_as_literal   =   0,  opt GE LE to BETWEEN        =   0,
    B   select *            =0x00,  character encoding          = STD / []:X,
    B   use_hints           = abap->1, dbif->0x1, upto->0, rule_in->0,
    B                         rule_fae->0, concat_fae->0, concat_fae_or->0
    M  ***LOG R68=> ThIRollBack, roll back () [thxxhead.c   12289]
    C  Rollback Work (0)
    M  *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c  252]
    B  ComRolHook(BEFORE_COMMIT, free_all) failed
    B  db_con_commit received an error return code in before-commit action
    M  ***LOG R38=> ThICommit3, db_commit98 ( 001024) [thxxhead.c   12036]
    wp 24:Fri Sep 25 14:33:10 2009
    M  *** ERROR => ThCallHooks: event handler rsts_before_commit for event BEFORE_COMMIT failed [thxxtool3.c  252]
    B  ComRolHook(BEFORE_COMMIT, free_all) failed
    B  db_con_commit received an error return code in before-commit action
    B  ***LOG BZY=> unexpected return code 32768      calling DBACDS     [dbacds#2 @ 1225] [dbacds  1225 ]

    *WP25: *** ERROR => BtcCleanUp: BtcLgAp-call failed (rc = 4) [btcjcntl.c   1308]*
    M  ThCallHooks: call hook >ITSP: EndOfSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >RtmClearSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >HttpClearSession< for event BEFORE_SESSION_CANCEL
    M  ThCallHooks: call hook >SpoolHandleHook< for event BEFORE_SESSION_CANCEL
    M  ***LOG R47=> ThResFree, delete (001009) [thxxmode.c   1284]
    M  ThCallHooks: call hook >ASTAT-collect commit handling< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_before_commit< for event BEFORE_COMMIT
    M  ThCallHooks: call hook >rsts_after_commit< for event AFTER_COMMIT
    M  ThCallHooks: call hook >ThNoClearPrevErr< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SpoolHandleHook< for event AFTER_COMMIT
    M  ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_TASK_SWITCH
    M  ThCallHooks: call hook >ImcResetPtr< for event BEFORE_TASK_SWITCH
    M  ThCallHooks: call hook >DbgBeforeTaskSwitch< for event BEFORE_TASK_SWITCH
    M  ThCallHooks: call hook >HttpResetPtr< for event BEFORE_TASK_SWITCH

    B Fri Sep 25 14:47:04 2009
    B  Disconnected from connection con_da={R/3*WORKFLOWTRACE,26000006,1}
    please let me know where i can send log file if req.
    2)Check for the sm21/sm50 bgd wp traces.
    Getting so may Tem se management errors.
    Some TemSe objects are stored in files. To do this, a path name is set up from the TemSe object name. To be able to use this path, TemSe management requires a directory. It attempted to create it itself. However, this did not succeed.
    3)Check if the filesystem is full as you suggest no logs are being written.
    File system having free space
    4)Check if the user who has scheduled the job is locked ?
    user unlocked
    please help me to resolv this issue.
    Edited by: Gyan Prakash on Oct 9, 2009 10:02 AM

  • Job getting cancelled in background scheduling

        I have written a report  in the SAP HR system and it is to be scheduled in background. This program transfers the PERNRs from HR system to CRM system as partners in BUT000.The report works perfectly fine if it is run in foreground. When I run it in background the job gets cancelled and I get the job log having a message that it could not ascertain code page and the system exception ERROR_MESSAGE is raised. If anybody has any clues regarding this problem please help me.
    Thanks & Regards,

    I Guess you are using container controllers in the Report, and all container contols requires help from Sap Gui for execution. I guess that is the reason it is failing in background . Please check on that aspect as well.
    Hope this helps..

  • Job in background is getting cancelled

    Hi Abapers,
    I have created the program to display data. It works fine when I execute it from SE38.
    But when I execute the same program in background, It gets cancelled.
    Can any one give me the reason & what can we do for this?
    Hemal Shah

    Hi Hemanl ,
      Since you are executing the program ins background i assume that it is not an interactive ALV , so i would suggest you not to use a container on the screen and use the default screen provided by sap.
    Here is the steps you need to folllow
    1. Delete the Screen you created to display the ALV.
    2. As the screen in deleted so no custom container is required , hence remove the code to create the custom container .
    3: When you create grid object give the parent i.e. the parameter I_PARENT the value
    Rest of the coding with the gird as the original one .
    Make these changes and execute your program and see,

  • SM:SELFDIAGNOSIS background job getting failed in Solution manager

    Hi All,
    SM:SELFDIAGNOSIS background job getting failed in Solution manger server :
    Job Log:
    2-22-2012 16:44:02 Job started                                                                                00           516          S
    2-22-2012 16:44:02 Step 001 started (program RDSWP_SELF_DIAGNOSIS, variant &0000000000324, user ID BASISUSER)      00           550          S
    2-22-2012 16:45:07 Internal session terminated with a runtime error (see ST22)                                     00           671          A
    2-22-2012 16:45:07 Job cancelled                                                                                00           518          A
    ST22: Dump:
    Runtime Errors         ITAB_DUPLICATE_KEY
    Date and Time          02-22-2012 16:45:07
    Short text
    A row with the same key already exists.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_DSWP_SD_DIAGNOSE_CONSISTENTCP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    An entry was to be entered into the table
    (which should have
    had a unique table key (UNIQUE KEY)).
    However, there already existed a line with an identical key.
    The insert-operation could have ocurred as a result of an INSERT- or
    MOVE command, or in conjunction with a SELECT ... INTO.
    The statement "INSERT INITIAL LINE ..." cannot be used to insert several
    initial lines into a table with a unique key.
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    KIndly Suggest to resolve the above issue

    SAP EHP 1 for SAP Solution Manager 7.0
    SAP_ABA                701          0006    SAPKA70106
    SAP_BASIS              701          0006    SAPKB70106
    PI_BASIS               701          0006    SAPK-70106INPIBASI
    ST-PI                  2008_1_700   0002    SAPKITLRD2
    CRMUIF                 500          0004    SAPK-50004INCRMUIF
    SAP_BW                 701          0006    SAPKW70106
    SAP_AP                 700          0019    SAPKNA7019
    BBPCRM                 500          0016    SAPKU50016
    BI_CONT                704          0007    SAPK-70407INBICONT
    CPRXRPM                400          0016    SAPK-40016INCPRXRP
    ST                     400          0024    SAPKITL434
    ST-A/PI                01M_CRM570   0000         -
    ST-ICO                 150_700      0009    SAPK-15079INSTPL
    ST-SER                 701_2010_1   0002    SAPKITLOS2

  • Triggering  a job when the first job gets cancelled...

    From BMV0, we can trigger a job once the first job is completed using the 'After Job' option. Can u tell me if its also possible to start another job when the first job gets cancelled ?
    Message was edited by: Sushma Anuprava
    Message was edited by: Sushma Anuprava

    Go to the database view V_OP and check for the column 'STATUS' which gives the background job status , based on value from this column (cancelled status ) , start the new job with FM : 'JOB_START' .

  • LANDSCAPE FETCH job gets cancelled

    Hello Guru's,
    The  LANDSCAPE FETCH job gets cancelled on solution manager system due to the below mentioned error and in order to fix it
    we have already applied the SAP note 1335225 but, the issue still persists.
    Right now, we have come across the SAP note 1108071 which says the job will get cancelled "if you made adaptive computing
    settings in SMSY and the SLD is not accessible".
    can any one help me with how to check the adaptive computing settings in the header data of the system.
    Also, the SLD check from system via tcode:sldcheck is sucessfull and we could access the SLD via browser. Please find the
    details below.
    Properties of RFC destination SAPSLDAPI
    RFC host:
    program id:      SAPSLDAPI_MP0
    gateway host:
    gateway service:
    Testing the RFC connection to the SLD java client...
    RFC ping was successful
    SLD server access settings:
    host name:
    port number: 59000
    user       : SLDAPIUSER
    Use transaction SLDAPICUST if you wish to maintain the SLD server access d
    Launching the SLD GUI in a separate browser window...
    => Verify in the browser GUI that the SLD is in a healthy running state!
    Calling function LCR_LIST_BUSINESS_SYSTEMS
    Retrieving data from the SLD server...
    Function call returned exception code     3
    => Check whether the SLD is running!
    Immediate reponse is highly appreciated
    Best Regards,

    Could you include the Landscape_fetch error you mentioned in your message?
    I think the issue is still your SLD.  At the bottom of SLDCHECK it tries to retreive business systems in SLD. 
    If it is successfull you will see something like:
    Calling function LCR_LIST_BUSINESS_SYSTEMS
    Retrieving data from the SLD server...
    Function call terminated sucessfully
    List of business systems maintained in the SLD:
    Your SLD check shows that it cannot retrieve systems from the SLD:
    Calling function LCR_LIST_BUSINESS_SYSTEMS
    Retrieving data from the SLD server...
    Function call returned exception code 3
    => Check whether the SLD is running!
    Please make sure that you have configured your SLD according to the post-installSLD setup and configuration guide.  If you still have problems, follow this toubleshooting process...
    Best Regards.
    Edited by: Phil May on Sep 2, 2009 10:31 AM

  • Background job is cancelled dut o variant not exist

    Dear friends,
    In my program I have created a variant using FM 'RS_VARIANT_CREATE', and after the creation of variant , i'm submitting the job immediately, but the job  get canceled with error message, specified variant is not defined.
    when i checked the VARID table the variant gets updated, the time differnce is approximately 8 sec for both varaint creation and job start timre. Can any one face this type of issue, could any one help on this.
    Thanks for your time.
    Best regards

    Hi Kumar,
    Right after you create your variant use the statement COMMIT WORK AND WAIT.
    If it doesn't work you can do something like this
    While f_found = space.
    select * from varid
      where report = 'XYZ'
      and  variant = 'MYVAR'.
    if sy-subrc = 0.
      f_found = 'X'.
      wait up to 1 seconds.
    I still think try COMMIT WORK AND WAIT after calling RS_VARIANT_CREATE.
    Kind regards,

  • Delta uploading job get cancelled in SAP R/3

    question, during delta loading from SAP R/3 to BW, if the delta uploading job get cancelled twice for some reason, will I lost some delta data??
    Pls advise!
    Many Thanks!

    If your delta jobs are getting error out in BW then you don't need to worry about, because till that time your delta pointer in source system is not yet updated. But if you make any request green by chance in BW monitor then your delta pointer will get updated and you might loose some delta.
    You can request repeat delta multiple times without any issue.

  • Background job getting failed every day

    This background job getting failed every day.But this job was running fine initial periord.Please help me out this issue.

    If this is R/3, then none of the above jobs should exist in the system, if scheduled by default with other standard jobs, then these should be removed
    Note 1034532 - Changes for standard jobs
    Note 931436 - SLCA_LCK_SYNCHOWNERS standard job terminates

Maybe you are looking for

  • HT1449 Now that i have my iTunes backed up on iCloud and iCloud Match running, can I delete the music files from my MacBook Pro?  It is running out of hard drive space.

    When I started this request in the Support section, I did not realize I was typing a subject into a header.  Sorry. My MacBook Pro is nearly full and I would like to rely on iCloud for my music with the hope of freeing up space by deleting the music

  • Digital or analogue headphone jack

    I'm setting up my Powerbook Titanium G4 to be my music source for a nice stereo (plugging into my preamp). I think my only Powerbook audio out is my headphone jack. First, can anyone confirm this? Secondly, is the output in digital or analogue format

  • Setting up profile options

    Hi, in 11.5.10 how to : Setting up profile options 3 new system level profile values in the iProcurement setup section : n POR : Proxy Server Name - Proxy server name if the customer has a proxy setup n POR : Proxy Server Port - Proxy server port if

  • TS2972 Home sharing comes and goes

    I have installed the latest version of iTunes for the PC (Windows 7) and have a chronic problem of losing home sharing periodically.  Also, I am observing a pop-up message periodically that tells me that iTunes is experiencing some problems and needs

  • Default Value using Custom Library?

    In Custom Form A, in the global variables i have store the value , How to populate default value to Form B using in custom library. I tried using COPY, but its not working? COPY('GLOBAL.EXP_PRO',':IT_QF.PRO_NUM'); Is their any other way to do it? Tha