Running in backGround Mode

Hi All,
              I executed the standard report in Background , then spool created sucessfully but i submit the same program with the same inputvalues in Function module for spool creation but it raise an exception................
exception:
selection-screen display selected with PNPTIMR2 by default, but actually i provided the input values like... PNPTIMR6 ( radio button selected) and provide the values for begindate and enddae in PNP- logical database but selection-screen display with PNPTIMR2 selected and no eneter the values for begda and endda (error message).
regards,
revoori

Have a look at the
VIA JOB job NUMBER number
addition of the SUBMIT statement. I think, this is what you are looking for, because all background jobs writing to standard output (usually LIST), will generate a Spool List.

Similar Messages

  • Error in BIM when running in background mode

    Hi,
    I am facing an error when running a BIM in sm35.
    The BIM runs fine with my userid in all three modes( foreground,display error mode, background mode)....but fails when the functional person is testing in background mode. The BIM runs fine in all other modes.
    It gives the message when running in background mode
    "No batch input data for screen SAPLMGMW 4008"
    What should I check or do to correct it.
    Please help.
    Regards
    Rashi

    The BIM runs fine in Foreground mode and in Display error mode even for the functional..It is giving error only for Background mode.
    I also did the following
    1.   Created the BIM in my id and tried running( in background) it using the other id ...it was successful
    2.   Created the BIM in other id and ran ( in background) using my id....it failed.
    I will check again for authorisations also.
    Regards,
    Rashi

  • How to DEBUG a function module running in background mode? Please help!

    Hi Experts,
       I am calling a function module in my ABAP code in background module using the following syntax:
      CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK
              TABLES
                itab_std_format_inv = itab_std_format_inv
                itab_snapshot_inv = itab_snapshot_inv.
            COMMIT WORK.
    If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.
    I cannot comment this  "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.
    So how to DEBUG a function module running in background mode? Please help!
    Thanks
    Gopal

    Hi,
    You could try to use the following trick:
    (1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.
      DATA:
        lx_exit_loop(1)     TYPE c.
      lx_exit_loop = ' '.
      DO.
        IF ( lx_exit_loop = 'X' ).
          EXIT.
        ENDIF.
      ENDDO.
    (2) Call your function module in background task
    (3) Call transaction SM50 and search for the background process.
    (3) Choose from menu Program/Mode -> Program -> Debugging
    Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).
    <b>Reward points</b>
    Regards

  • Not running in background mode 'N'

    hi experts,,,,,
    i have a  small issues in my BDC
    where i face problem when running in background
    if i update in 'A' mode its get updated
    whereas in background 'N' mode it doesnt take the changes
    and CHANGES NOT  GETTING REFLECTED/...
    can you pls help me out
    thanks in advance
    Rachel
    piece of my code as follows...
    ============================
    LOOP AT it_final INTO wa_final.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '1000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'RISA0-SERNR'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '/00'.
        PERFORM bdc_field       USING 'RISA0-MATNR'   wa_final-matnr.
        PERFORM bdc_field       USING 'RISA0-SERNR'   wa_final-sernr_in.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=EQUI'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-CHARGE'.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=T\01'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'EQBS-B_LAGER'.
        PERFORM bdc_dynpro      USING 'X' 'SAPMIEQ0' '0101'.
        PERFORM bdc_field       USING 'BDC_CURSOR'   'ITOB-SERGE'.
    if p_unpair is  initial .
        PERFORM bdc_field       USING 'ITOB-HERST'    wa_final-manf.
    *    PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-part.
        PERFORM bdc_field       USING 'ITOB-TYPBZ'    wa_final-model.
        PERFORM bdc_field       USING 'ITOB-MAPAR'    wa_final-part.
        PERFORM bdc_field       USING 'ITOB-SERGE'    wa_final-man_ser.
        PERFORM bdc_field       USING 'ITOB-HERLD'    wa_final-country.
        PERFORM bdc_field       USING 'ITOB-BAUJJ'    wa_final-year.
        PERFORM bdc_field       USING 'ITOB-BAUMM'    wa_final-month.
    else .
        PERFORM bdc_field       USING 'ITOB-SERGE'    ''.
    endif.
        PERFORM bdc_field       USING 'BDC_OKCODE'   '=BU'.
        CALL TRANSACTION 'IQ02' USING bdcdat
                               MODE pr_mode UPDATE 'A'
                               MESSAGES INTO it_messtab.
        CLEAR: bdcdat[], bdcdat.
        CLEAR: wa_final, wa_messtab.
      ENDLOOP .
    end-of-selection .

    Hi Rachel..
    While running the BDC in 'A' Mode check the message that come in the status bar. There could be any screen where just becuase u press enter it is going to the next screen. That is because of your intercation.
    But in the case of background this is not hapening and it fails..
    So make sure whether when u run in foreground you are pressing any additional enter which is not in your recording. This could be the only problem why it is not updating in background.
    Another reson could be that you dont have access to back ground jobs. Check that also..
    Regards
    Ansari

  • Script running in background mode

    hi,
         I am running the report HBRDARF0 in background mode, this report gives Sap Script(script name: HR_BR_DARF98) as the output while  viewing the spool data am unable found sapscript data in spool. 
    one more query, by using the fm: CONVERT_OTFSPOOLJOB_2_PDF  i trying to move spool data into pdf, it gives error message like....Spool Request contains no Sap Script data.
    if we get the sapscript data in spool the issue above two issues are closed.
    regards,
    Revoori

    thanks for your response,
                    as per your suggetion i debugged the Job by using JDBG, while debugginh the exception returned like.....more_params_needed_in_batch and returns SY_SUBRC = 8 by the function module OPEN_FORM and error message like UNOPEND sy-subrc = 1 by CLOSE_FORM .
    what are the parameter we provide as per the open_form function module in batch mode.
    call function 'OPEN_FORM'
           EXPORTING
                archive_index                   = p_archive_index----
    contains no values
                archive_params                = p_archive_parameters----
    is initial
                dialog                              = p_dialog----
    space
                form                                = p_form----
    HR_BR_DARF98
                options                            = l_options----
    contains values
           IMPORTING
                result                               = p_result
           EXCEPTIONS
                canceled                    = 1
                device                      = 2
                form                        = 3
                options                     = 4
                unclosed                    = 5
                mail_options                = 6
                archive_error               = 7
                more_params_needed_in_batch = 8
                others                      = 9.
      p_subrc = sy-subrc.
    here sy-subrc = 8. and the error message is more_params_needed_in_batch
    L_OPTIONS-TDCOPIES = 1
    L_OPTIONS-TDNEWID     = X
    L_OPTIONS-TDDATASET = LIST1s
    L_OPTIONS-TDLIFETIME = 8
    L_OPTIONS-TDCOVER     = D
    L_OPTIONS-TDRECEIVER = sy-uname
    L_OPTIONS-TDARMOD       = 1
    and remaining are initial
    regards,
    revoori

  • SM35 Re-processing of Incorrect/Error session in Background Mode

    Hi all,
    I am trying to reprocess a session in SM35 which is in Error status. Here I am a facing an issue, if I reprocess this session in background mode then it says that Batch input data is not available for a screen which is already processed. Ideally it should start from the screen where it threw error in the first run. If I select mode as Foreground or Display error then session is getting processed correctly.
    Note:
    If the session is in Ready to Process state then processing in background works perfectly fine. Has anyone came across this problem ?
    Has anyone tried reprocessing Incorrect Session in background mode ??????
    Regrads,
    Antony

    Thanks Sandra,
    Indeed I understood the problem. And the problem is that transaction KEBC is always executed correctly & since its processed correctly its removed from the BDC Queue
    Here transaction KEBC, sets a Memory Parameter, and transaction KEU2, first checks whether the memory parameter is initial, if found intial it pops-up a screen and makes the user enter it. In my case KEBC  always run successfully
    As you rightly suggested when session is in error, transaction KEBC is not getting called again to set the memory parameter & its throwing the pop-up from the transaction KEU2 to be entered by the user. ( BDCDATA currently dosent handle this Pop-up).
    I could have omitted the KEBC transaction, but handling this pop-up from transaction KEU2 becomes tricky since it will only pop-up if the memory parameter is initial. And unfortunately Pop-up is the first screen in the sequence for transaction for KEU2 & nothing can be done in coding level to call KEU2 with the pop-up in all scenarios(Even when Memmory varaible is set) !
    So I am kind of in a dilema, how to handle this? What I am suggesting to the Functional consultant is that let the session be only run in background mode (as it will be always in a new internal session memory variable will always be inital ) & I will record this pop-up in my BDC omitting transaction KEBC.
    Do you have anyother solution for this?
    Or is there any option to re process even the successfull transacations ?

  • Why can't we use GUI_Download in background mode...........

    Hi experts as per the requirement my program should run at specific time in background mode, it need to upload the Personal numbers from the input file and for those personal numbers extract the data from multiple tables. but this report shd run in background.
    and download the output in the form of flat file.
    as i'm running in background mode can't use the F.M GUI_Download and GUI_Upload.
    can any one guide me how to solve this issue and why can't we use these F.M. if we can't use then what is the alternative to run in background mode.

    A program that runs in background mode doesn't have any connection to a frontend. After all, you can schedule it to run at a time where your frontend computer is not running.
    In this case you have to load your files on the application server (or a mount point) and use the FMs C13Z_FILE_DOWN(UP)LOAD_ASCII(BINARY)
    Regards
    Frank

  • Using a report layout in background mode

    Is is possible to apply a saved report layout like you apply to the alv grid to a csv file run in background mode?

    Hi Cynthia ,
    I can figure out one way :
    SUBMIT ZREPORT TO SAP-SPOOL LAYOUT 'ZLAYOUT'
    VIA SELECTION-SCREEN
    DESTINATION 'locl'
    KEEP IN SPOOL 'X'
    IMMEDIATELY 'X'
    WITHOUT SPOOL DYNPRO
    AND RETURN.
    This will return the report in your layout to the spool and can be downloaded as well.
    Thanks
    Naresh

  • Not able to execute custom transaction in Background mode

    Dear All,
    There is a custom modele pool program to update the data in info type 9003. We have written a Z program in that we are calling this custom modele pool through CALL TRANSACTION with mode 'N' and update 'S'.
    Z Program is running successfully and updating data in 9003 info type when we run in foreground mode.
    But it is not updating when runs in Background mode.
    Am I need to take any other precautions when run in background mode for custom transaction?
    We are using 4.6C version.
    Thanks in advance.
    Regards,
    Abaper

    For custom transactions you shouldn't have a problem - unless you're trying to do something that needs dialog with the presentation server.
    Set an infinite loop in the custom transaction, launch your program in backround, then from Sm50, go to debug and find out what's going on.
    DATA: debug.
    WHILE debug IS INITIAL. " Debug from SM50 will get you here, change field DEBUG in the
    ENDWHILE.               " debugger to contain 'X', and the loop will end.
    Also, if your custom tx calls any standard SAP programs/FM, there is a chance that those programs work differently in background than foreground.

  • Bdc in background mode PA30

    hi,
         I facing issue in BDC for PA30, My BDC is working in foreground mode but not running in background mode. purpose of bdc is based on value of itab of previous day data update on next day in backgound.
    below code i m using in BDC :
    INITIALIZATION.
    ctu = 'X'.
    session = ''.
    nodata = ''.
    ctumode = 'N'.
    cupdate = 'L'.
    FORM processs_bdc_data .
      DATA: v_date LIKE sy-datum,
                  begda type pa9004-endda.
      DATA:
            endda(10) TYPE c,
            stime(5) TYPE c,
            etime(5) TYPE c,
            loaddat(10) TYPE c.
      SORT itab BY taskno pernr.
    LOOP AT itab.
        tabix = sy-tabix.
       begda = sy-datum.
          PERFORM open_group.
          PERFORM bdc_dynpro      USING 'SAPMP50A' '1000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                                '=INS'.
          PERFORM bdc_field       USING 'RP50G-PERNR'
                                                 itab-pernr.
          PERFORM bdc_field       USING 'RP50G-TIMR6'
                                     'X'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                         'RP50G-SUBTY'.
          PERFORM bdc_field       USING 'RP50G-CHOIC'
                                     'Employee Task  Monitoring'.
          PERFORM bdc_field       USING 'RP50G-SUBTY'
                                        '1'.
          PERFORM bdc_dynpro      USING 'MP900400' '2000'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                     'P9004-ZZREMARK'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                     '=UPD'.
          PERFORM bdc_field       USING 'P9004-ZSTATUS'
                                     'NEW TASK'.
          PERFORM bdc_field       USING 'P9004-ZPRIORITY'
                                     'MEDIUM'.
         PERFORM bdc_field       USING 'P9004-ZPERNO'
                                       itab-zperno.
          PERFORM bdc_field       USING 'P9004-BEGDA'
                                        begda.
         PERFORM bdc_field       USING 'P9004-STIME'  '083000'.
         PERFORM bdc_field       USING 'P9004-ENDDA'
                                         begda.
          PERFORM bdc_field       USING 'P9004-ETIME'  '082959'.
         PERFORM bdc_field       USING 'P9004-MNDAT'
                                          begda.
          PERFORM bdc_field       USING 'P9004-TERMN'
          PERFORM bdc_field       USING 'P9004-ZZTASK'
                                   itab-zztask.
          PERFORM bdc_field       USING 'P9004-ZZREMARK'
                                   itab-zzremark.
         call transaction 'PA30' using bdcdata mode ctumode  update cupdate messages into
                                                                         messtab.
    PERFORM messages.
    PERFORM close_group.
    REFRESH : messtab, bdcdata.
      ENDIF.
      ENDLOOP.
    ENDFORM.                    " PROCESSS_BDC_DATA
      What can be the possible reasons for not updating in backoground mode pls sugess me.
    Thanks in advance
    tarun

    Try the following:
    Replace your code
    call transaction 'PA30' using bdcdata mode ctumode update cupdate messages into messtab.
    with
    DATA: gs_options TYPE ctu_params.     "BIM Processing options
    * Set processing options.
      gs_options-dismode  = 'N'.        "N (back) A (Fore) / E (Error)
      gs_options-updmode  = 'S'.           "Synchronous update
      gs_options-defsize  = 'X'.           "Default screen-size (for texts!)
      gs_options-racommit = 'X'.           "COMMIT WORK
    * Perform the transaction 'PA30'
      CALL TRANSACTION 'PA30' USING bdcdata
                           OPTIONS FROM   gs_options
                           MESSAGES INTO messtab.
    Edited by: Rob Postema on Sep 6, 2010 11:00 AM
    Edited by: Rob Postema on Sep 6, 2010 11:00 AM
    Edited by: Rob Postema on Sep 6, 2010 11:00 AM
    Edited by: Rob Postema on Sep 6, 2010 11:01 AM

  • Running a Dynpro-based Report as a Job/in Background mode

    Hello,
    i've got a report which hasn't got a selection-screen as its startscreen, but a complex dynpro and is based on different start-buttons and not only the "basic" F8/Run-Button. the users still would like to be able to run the report in background mode and as an automated weekly job. moreover they want to use their own configuration/variant for date-fields etc., just like they are used from a selection-screen. is this possible "out of the box" with a dynpro-based report or how can i archive this through my own programming logic?
    thanks for your help,
    dsp

    Hi,
    I guess yes, but since you seem to have several processes possible at startup (those buttons), you will have to code a new bit of code at the start of your application. This to choose the correct process... you should have a new statement like
    IF sy-batch IS NOT INITIAL.
         "Perform batch process
    ELSE.
         "Perform normal run
    ENDIF.
    For the variant, I'm not sure to really get the idea... Do the users already use variants with the actual version? or is there no selection screen at all? If not, you should use one and set-up parameters to pre-fill your dynpro fields...
    Kr,
    Manu

  • When the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently.but in fact,when the app in background ,the app need data update to make the

    when the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently。but in fact,when the app in background ,the app need data update to make the function of  trajectory replay come ture。in fact, we have added function when the app  is in background mode。we have point out the point to them by email。but they still have question on the background mode,we are confused,does anyone can help me,i still don't know why do review team can't find the data update when  the app is in background and how do i modify the app,or what is the really problem they refered,do i misunderstand them?
    the blow is the content of the review team email:
    We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.
    We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.
    It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.
    For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.
    If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:
    "Continued use of GPS running in the background can dramatically decrease battery life."
    Additionally, at your earliest opportunity, please review the following question/s and provide as detailed information as you can in response. The more information you can provide upfront, the sooner we can complete your review.
    We are unable to access the app in use in "http://www.wayding.com/waydingweb/article/12/139". Please provide us a valid demo video to show your app in use.
    For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
    - complete details of your rejection issue(s)
    - screenshots
    - steps to reproduce the issue(s)
    - symbolicated crash logs - if your issue results in a crash log
    If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.

    Unfortunately, these forums here are all user to user; you might try the developer forums or get in touch with the team that you are working with.

  • How to run a BAPI in background mode?

    Dear friends,
    I have a requirement [In the UI user can choose two options - run online or run backgroud] to run a BAPI (BAPI_SALESORDER_CHANGE) in background mode (background job)  , does anybody know how to implement it?
    Thanks a lot!!

    Hi
    You can define 2 radio button one foreground and otherfor background then
    for background use FM BP_JOB_CREATE or BKK_UPT_DISP_JOBS_START  or DB2_SCHEDULE_JOB_IMMED
    Regards
    Shiva

  • Running Crystal Reports in background mode

    Ist there any way to run Crystal Reports against R/3 (ECC) in background mode instead of as a dialog user? We're having timeout issues since the dialog timeout is set to 30 minutes. We have several reports that run quite a bit longer than that.
    Update: I just answered my own question. Pages 58-59 of the install and configuration guide shows you how to do this.
    Edited by: Mike Garrett on Jan 22, 2009 4:57 PM
    Edited by: Mike Garrett on Jan 22, 2009 8:41 PM

    Hi,
    SIA should be all you need because it is starting the other processes as well. Keep in mind that if you do that that most likely all you reports will run in batch mode (also those called on demand.)
    Ingo

  • Options run vf11 in background mode

    Do we have an option to run VF11 in background mode? We have large invoices to be cancelled and VF11 gets timed out. BASIS defintely helps by extending the time out setting, but tryign to see any smarter options.
    Regards
    Vinod

    Per OSS  Note 400000 - FAQ: Transaction VF11: Cancellation of SD billing documents, you can't run VF11 in background.
    As you mentioned, you need to set out the timings as mentioned in OSS Note 25528 - Parameter rdisp/max_wprun_time to handle large volume of billing cancellation during online processing.
    Regards,

Maybe you are looking for

  • Problem with inbound ichats

    We are having a problem with inbound video ichats to our domain. It doesn't happen all the time but it happens enough to where it is a problem. The users can type back and forth, but when they go to ichat it fails. Here is the error log: Date/Time: 2

  • How to put Final Cut Pro Videos on Ipad

    I bought my iPad for one use, to show my clients my videos when i do meet and greats. Yet for some reason i have had the hardest time being able to do this. I have tried exporting my videos ever which way but get the same warning that iPad can't play

  • New hard drive and mac OS installation question- tiger?

    I have arrived at the sad conclusion that my iBook is needing a new hard drive. No better time for an upgrade. I have the iBook Dual USB, 800mHZ. I noticed that OS Tiger requires a DVD player to install correctly? If so, what am I going to do? I only

  • Nokia 3710 fold: List of "last Used contacts" does...

    I have a Nokia 3710. When I send an SMS I want to pick a contact from the "last used contacts" (Senast använda in swedish). This list is not updated since some time. I have search through most menues and can not find a setting to change it (if there

  • Inadvertently dropped package WB_RT_MAPAUDIT_UTIL - how to recover ?

    OWB seems to create a number of objects in the schema being used as the target schema for the datawarehouse. Package WB_RT_MAPAUDIT_UTIL being one of them. Others include tables WB_RT_EXCEPTIONS, WB_RT_PLATFORM_CONFIG and WB_RT_POSTLOAD_EXCEPTIONS. D