Debug during background processing

Hey
i hav an doubt...
suppose to any Zprogram am executing in background mode and during this i want to debug..
is it possible  ??
I want to Debug my Bank Payment Advice Script as well as its Driver program used in Cheque Printing
can u tell me how to debug it ?
evenif am putting break-point its not happening..B'coz we are generating spool in F110 and its run in background mode...
Is there no solution to this ????
Thanks in Advance
SATYA

>
hari hara wrote:
> Hi,
>
> First you need to put break point in printprogram where ever you want to stop the execution.
>
> After in se71 give your formname and go to Utilities->ActivateDebugger
>
> Then go to your transaction like VF03(For invoice or credit memo ) to see the print preview execute it .
>
> When You execute it form debugging will get activated and you can see your form execution step by step .
Dear hari Hara,
i know this process
but it will not work in background processing
Edited by: Satyabrata sahoo on Oct 15, 2008 9:59 AM

Similar Messages

  • Error during background processing which is created by Std.program RFBIBL00

    Hi Gurus,
         I am using standard program RFBIBL00 to generate batch session for the Tcode FB01.
         My BDC is working fine , if i choose  foreground or display error only option in SM35.But when i process the same session in 
         background it is giving error  Field BSEG-DMBTR does exist in SAPMF05A 0302.
                                 One more thing i want to point out when i process the session in forground or in display error only option
                      there i am getting information message Field BSEG-DMBTR does exist in SAPMF05A 0302. But for background due to same message  i.e (Field BSEG-DMBTR does exist in SAPMF05A 0302)  session processing is failed.
                                    Actually through ZProgram  data being uploaded  to application server. Then i am executing std. program RFBIBL00 to generate session.And  when i go to SM35 & choose the just created session for background processing,then processin i failed.
                              We have recently upgraded from 4.7 to ECC 6.0. Previously RFBIBL00 program is working fine but after upgrade it is not working.
                   Please give your valuable suggession.
    Regards,
    S C Patil.

    How are you related to this almost identical problem?
    Field BSEG-DMBTR. does not exist in the screen SAPMF05A 0302
    Thomas

  • Error During Background Processing of BDC

    Hello Experts,
    I have a problem with the a BDC program running in background for transaction IW51 (Notification Creation) .I get a error message saying "Usage of one-time customers not supported" .When i process the same in foreground i dont get this message and the data gets created.
    We are using a one time customers for creation of Service Notification.i found a note 768010 which is same what we are trying to do.
    Wondering why the program fails in the background ! any pointers ?
    Regards,
    Mithun.

    SAP has provided note 1550899 to this issue
    Edited by: Mithun Shetty on Feb 24, 2011 11:46 PM

  • Hour glass during background process is going on

    Hi
    We are running some custom JSPs in R12.1.3.
    While the end user is running a process using custom JSPs and if it connects to database for further processing we want to show end users with a hour glass image instead of blank image
    We have code written for it but it does not in R12 but works in 11i.
    Could you please let us know if anyone has similar requirement?
    Thanks for your help

    Is there any framework you are using? Is this happening across which browsers exactly?
    Are there any javascript errors? warnings?
    Assuming you are using a methodology similar to this one:  javascript - Wait cursor over entire html page - Stack Overflow you can also use an image with an animated gif file, so when processing is finished and there is a redirect to another page, the user has the impression that processing is going on.
    In any case, need more details to tell with more certainty.
    Thanks,
    Gustavo

  • User exit during VF04 background process

    Hi ,
    I am creating billing through the background run of VF04.
    Before a billing document is created I have to check the following condition.
    If the payment terms of the relevant billing item not equal to 'X' then system shoudl check the billing date and only create billing document if the date is equal to system date.
    If the payment terms is equal to 'X' then billing document should be created.
    I am plannign to use the userexit RV60AFZC and in there
    FORM USEREXIT_FILL_VBRK_VBRP
    I tried to find out of this user exit was called during background processing of VF04 by putting ina breakpoint. It did not give any pop-up.During creation of billing through VF01 it gave me the breakpoint.
    I want to know if for my requirement this is the right place to put the logic.
    Regards
    BGS

    Hi ,
    We had to change the logic and the user exit because it was not possible to pull the item level data into the VF04 screen.
    We are trying to do the following with variant which looks for all billing items due in next 5 working days
    Before system gets data from VKDFS into VKDFIF we are trying to aplly the logic
    If Payment terms <>  direct debit the include in the list VKDFIF
    If Payment terms <> direct debit
    Check  IF Billing date <= system date
    Yes -include in VKDFIF
    No- Remove entry
    When I call the variant in try to display the billing due list It shows the correct value
    But when we run the same variant in backgorund it fails
    BADI used
    Include LV60AA93
    Badi badi_sd_billing methode:vbrk_vbrp_fill
    CALL METHOD l_sd_billing_item_exit->vbrk_vbrp_fill
    Any help wpuld be appreciated

  • Sy-batch value when debuggin a background process

    Hello All,
    I have a quick question. I am working with a background job and I have a doubt about the sy-batch value. I know it set to 1 when the process in run in background but if I turn the debuggin on [ via the infinite loop ] then will the sy-batch value change to SPACE ?
    In debugging I see its changed to space but I am wondering is it cause I am debuggin in background or is it because Its an update task ?
    can you please advise ?
    thanks,

    The SY-BATCH should come as "X" when you debug a background job via infinite loop. Have you called any code update task? If yes then it will be processed via dialog processing so here SY-BATCH will be initial.
    I just set this program in background and found that the SY-BATCH as "X" and it goes to infinite loop.
    REPORT ztest1.
    DATA: l_flag TYPE c LENGTH 1.
    DO.
      IF l_flag = sy-batch.
        EXIT.
      ENDIF.
    ENDDO.
    DATA: l_string TYPE string,
          l_final TYPE string.
    l_string =  'UPS Surface Collect #954365'.
    DATA: l_dummy1 TYPE string,
          l_dummy2 TYPE string.
    SPLIT l_string AT ' #' INTO l_dummy1 l_dummy2.
    CONCATENATE l_dummy1 l_dummy2 INTO l_final.
    WRITE:/1 l_final.
    Edited by: Sourav Bhaduri on Sep 29, 2008 2:47 PM

  • ERROR while uploading the data into ztable with background processing

    Hi gurus,
    i am trying to upload the data from excel file to internal table 
    its working fine ..
    but........
    if i try to upload the data with background processing , in sm37 it is saying "error during the upload of clipboard contents".
    Regards,
    Sri

    Hi,
    FM GUI_UPLOAD doesnt work in background, use dataset to upload it from application server.
    refer below code
    *--Local Variables
      DATA : l_file  TYPE string,
             l_line  TYPE string,
             l_index TYPE sy-tabix.
    *--Clear
      CLEAR : l_file.
      l_file = p_ipfile.
    *--Read the data from application server file.
      OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
    *--Error in opening file
        MESSAGE i368(00) WITH text-005.
      ENDIF.
    *--Get all the records from the specified location.
      DO.
        READ DATASET l_file INTO l_line.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT l_line AT cl_abap_char_utilities=>horizontal_tab
                          INTO st_ipfile-vbeln
                               st_ipfile-posnr
                               st_ipfile-edatu
                               st_ipfile-wmeng.
          APPEND st_ipfile TO it_ipfile.
        ENDIF.
      ENDDO.
    Regards,
    Prashant

  • Problem in background processing of a report

    Hey,
    I am facing a problem while executing a report in background. In foreground its running absolutely fine but in background the job get cancelled every time .
    can any body tell me how to find the cause of the problem and how can we debug the report  in background
    thanks
    bobby

    Hi Amole,
    following error is encountered  in background processing
    ABAP/4 processor: GETWA_NOT_ASSIGNED
    job cancelled
    thanks
    bobby

  • An error has occurred during report processing. (rsProcessingAborted)

    Access Web Databases and SSRS
    Issue:
    After creating an access web database, such as Contacts Web Database in SharePoint 2010 we receive the following error when trying reports. This only happens on the Address Book, Phone Book, and Contact List reports. The Contact
    Details and Printable Labels reports both work. The reports do not begin to error until data is added to the database (no errors initially).
    I have duplicated this across all of our environments with the same results and get similar results when adding a Projects Web Database.
    Environment:
    Prod:
    3 WFE Servers – SP 2010 sp1
    3 App Servers – SP 2010 sp1
    2 SQL Servers – 2012 sp1
    QA:
    3 WFE Servers – SP 2010 sp1
    3 App Servers – SP 2010 sp1
    2 SQL Servers – 2012 sp1
    DEV:
    1 WFE/App Server – SP 2010 sp1
    1 SQL Server – 2012 sp1
    Background
    SSRS was installed following recommended guidelines and can be verified to be working. http://blog.helloitsliam.com/Lists/Posts/Post.aspx?ID=66
    Error full text
    Microsoft SQL Server Reporting Services
    An error has occurred during   report processing. (rsProcessingAborted)
    The Group expression for the grouping ‘Group1’ contains an   error: Request for the permission of type   'Microsoft.Office.Access.Server.Security.AccessServicesPermission,  
    Microsoft.Office.Access.Server.Security, Version=14.0.0.0, Culture=neutral,   PublicKeyToken=71e9bce111e9429c' failed. (rsRuntimeErrorInExpression)

    Found the answer
    here.
    In short, SSRS 2012 installation missed a couple of config entries.  You'll have to add them yourself:
    Open C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\WebServices\Reporting\rsreportserver.config.  Search for the <Data> tag and add this entry:
    <Extension Name="ADS" Type="Microsoft.Office.Access.Reports.DataProcessing.AdsConnection, Microsoft.Office.Access.Server.DataServer, Version=14.0.0.0, Culture=Neutral, PublicKeyToken=71e9bce111e9429c" />
    Open C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebServices\Reporting\rssrvpolicy.config.
    Search for <NamedPermissionSets> and add this entry:
    <PermissionSet
    class="NamedPermissionSet"
    version="1"
    Name="ReportExpressionsDefaultPermissionSet">
    <IPermission class="SecurityPermission" version="1" Flags="Execution" />
    <IPermission class="Microsoft.Office.Access.Server.Security.AccessServicesPermission, Microsoft.Office.Access.Server.Security, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" version="1.0" Flags="CalculationCallback" />
    </PermissionSet>
    In the <CodeGroup>node, around line 70, find and change PermissionSetName from “Execution” to “ReportExpressionsDefaultPermissionSet”

  • Postprocessing - background processing - Still running!!!

    Hi All
    I think I am having a small problem with this task 'Postprocessing - background processing' during the Postprocessing Phase. Basically on previous runs, this task has finished quite quickly however during this next run it is taking hours. I have restarted this phase and it does not seem to finish.
    I have checked SM66 to see if anything is running and there is nothing there. All of the other processes have finished successfully, just not sure about this one.
    Has anyone had this issue before or can you give me an insight to what it is doing?
    Thanks in advance
    Phil

    >
    Phil Wade wrote:
    > The process that are involved in the task are:
    >
    > Reset Internal Header Tables After the Transfer - Complete
    > Postprocessing - background processing - This one has not completed
    > Transfer of Number Range Intervals - Complete
    > Reset Number Range and Table Buffers in Receiver System - Complete
    > Delete Generated Views - Complete
    > Adjust User Addresses - Complete
    > Update SAPOffice - Complete
    > Execute Initialization for POS Handling - Complete
    > Change Logical System Names - Complete
    > Unlock Users in Receiver System - Complete
    > Refresh Data Selection Cluster of Current Transfer - Complete
    > Phil
    "Postprocessing - background processing" is not actually a task, it is there only to group the sub-tasks (from "Transfer of Number Range Intervals" to "Change Logical System Names"). When you execute it, it will run all the sub-tasks (in the Standard View this complexity is hidden, so you don't even see there are sub-tasks).
    If the sub-tasks are all Complete then there is nothing left to do. It is normal that there is no State icon for that grouping task, or that Progress is 0. If you execute it again you are running all the sub-tasks once again (you probably received a pop-up to confirm that's what you wanted). In that case, the column "Exec No" in the sub-tasks probably shows that some were executed more than once (some are repeatable and some are not).
    Hope this helps,
    Rui Dantas

  • Background processing of Program

    Hi all,
    I have a requirement of background processing of a program which is called from another program.
    Requirement : during execution of Program A, Program B is Submitted to run in background with two field values from Program A.
    Is it possible ? I am able to explore it. Please help.
    Regards,
    Nibha

    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    System fields
    sy-subrc Meaning
    0 Background task scheduled successfully.
    4 Scheduling cancelled by user on the selection screen.
    8 Error during scheduling, i.e. when accessing JOB_SUBMIT internally.
    12 Error in internal number assignment.

  • Debugging of background scheduled job

    Hi guys,
    Can any one explain me 1 scenario why there is a need to debug background scheduled job..., rather then doing in background we can run the same job/report online and do normal debugging.
    thx in advance,
    Cheers,
    Harish

    Hi ARPAN,
    as long as the job is running, you can enter debuuger from SM50 process overview (program->debug) or SM37 Job Overview (Job->catch active Job).
    And to the initial question: Some messages are configured to be created when saving document (e.g. sales invoice). This will trigger a background process. If something goes wrong with smartform or sapscript form, it will cause an update error. This you may need to debug in background.
    Regards,
    Clemens

  • How tio debug a background job

    Hello Experts ,
    please tell me is there any way to debug a background job ( a report submitted in a background).

    You can debug batch jobs by going to 'SM37', type in 'JDBG' in the
    command line ( no '/' ), put the cursor on the job and press enter - will
    take you to the job in debug mode.
    You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job also sy-batch will set to 'X'.
    So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode.
    Steps
    1. Create variant called BACKGROUND for program to be debugged.
    2. Execute ZDEBUGBG (pgm code below) in background for immediate processing.
    3. Execute transaction SM50.
    4. Select process that runs ZDEBUGBG.
    5. Goto 'Program/Session' 'Program' 'Debugging'.
    A se80 debug session will open.
    6. Change variable W_EXIT to 'E'.
    7. Step thru (F6) until ZWBTEST comes up.
    1. Go to Transaction SM66 and find your work porocess.
    Select the line work process is on and click on the Debugging button.
    If this is a custom program, you can put a wait statement in the code to buy yourself sometime.
    2. Go to Transaction SM50. From the tool bar "Program/session"->Program->Debugging.
    goto SM37 and from Program menu(not sure.. try other menu's)
    -->Catchjob . it will goto the active job in debugging mode.
    1. select active job in sm37.
    2. type "jdbg" command in command field.
    No need to type /n or /o .
    3. Double click the job , it will go in debug mode.
    OR
    1. Go to sm50 .
    2. place the cursor on active job.
    3. goto program mode> program> Debugging.
    Check this
    http://jplamontre.free.fr/SAP/Debug%20background%20process.htm

  • Error during proxy processing An exception with the type CX_BBPX1_STD_MESSA

    Hello,everyone!
    My PI version is 7.11,SRM SUS version is 7.0,ECC version is 6.0 ,When I import XI SRM CONTEN,sending IDOC in ECC,there is a error some of the mesages:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIProxy</SAP:Category>
    <SAP:Code area="ABAP">DYNAMIC_CALL_FAILURE</SAP:Code>
    <SAP:P1>UNCAUGHT_EXCEPTION</SAP:P1>
    <SAP:P2>CL_BBPX1_SUSPO_IN</SAP:P2>
    <SAP:P3>EXECUTE_ASYNCHRONOUS</SAP:P3>
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Error during proxy processing An exception with the type CX_BBPX1_STD_MESSAGE_FAULT occurred, but was neither handled locally, nor declared in a RAISING clause Application Error</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Detialed error from SXMB_MONI,
    Error in XI interface: Exception occurredE:BBP_PD:147 -Enter a country for partner 0015111411 with type 'Vendor' I:R5:553 -'Different country' field contents deleted because identical to 'Country' E:BS:002 -"Create" is not allowed (SUS Purchase Order 7100076527 ) Program: CX_BBP_BD_ERROR===============CP; include: CX_BBP_BD_ERROR===============CM002; Line:
    This issue only ocuured for partner 0015111411, but we tried with other partner ID and those messages are processed sucessfully and PO is created.
    I have a doubt that, is there functionality in proxy to compare the country with partner in SRM system. Could please anyone help me one the same.
    Regards,
    Baskaran K

    HI,
    This is a standard proxy. I'm not sure how to debug the proxy with payload. Could you please tell me the steps.
    We have one more error message
    <FAULT_TEXT>Error in XI interface: Exception occurredE:BBP_PD:147 -Enter a country for partner XY91 with type 'Sold-to Party' E:BS:002 -"Create" is not allowed (SUS Purchase Order 7100076526 ) Program: CX_BBP_BD_ERROR===============CP; include: CX_BBP_BD_ERROR===============CM002; Line: 57</FAULT_TEXT>
    Is there any table to check these details like Sold-to Part, Vendor etc in SRM system?
    Regards,
    Baskaran K

  • BDC background processing

    Hi all,
       I've written a batch input data transfer program, into the internal table of which i upload some data from the presentation server using the GUI_UPLOAD function module . I am trying both session method and call transaction. I am being successful in uploading the data into the SAP system i,e into the database tables when i follow foreground processing for session method and 'MODE A'  in call transaction. The problem arises when i try to use the background processing option , the data is not getting uploaded into the SAP system. When i use the  foreground option the same data gets uploaded without problem.
       For the case of call transaction i tried looking into the message internal table during successful uploads, it'll have success message type and for the PROBLEM case of mine the internal table will be empty.

    hi,
    Yes. You can't run it in background if you are using GUI_UPLOAD.
    If the data is in application server, you can read it using OPEN DATASET.. and upload it to internal table in background.
    regards,
    Beena

Maybe you are looking for