Debugg VL10 transaction in background mode

Hi,
I want to know how to debugg VL10 transaction in background mode. Since the control does not go to the breakpoint when clicked on background.

Hi,
Try this option..
In classical debugger ..Click settings and check the last option,In back ground task.
Cheers,

Similar Messages

  • 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.

  • Transaction in background mode

    Hi experts,
    is it possible to execute transaction VT01N in background mode ?
    This doesn't seem to work with ERP2005 ...
    CALL TRANSACTION 'VT01N' USING bdcdata MODE 'N' UPDATE 'S'
    Thanks for support.
    David.

    HI,
    yes it is possible.
    for more information please check out the link below it will help you
    http://www.s001.org/ABAP-Hlp/abapcall_transaction.htm
    ***********please reward points if the information is helpful to you************

  • Call Transaction in background mode

    Hi everyone,
    What I am currently trying to do is to perform a 'call transaction' while forcing the 'background processing' mode even when the user is running the program in online mode; this allows me to retrieve a lot more messages that are useful to the user than the messages generated in online mode.
    As long as I have seen there is no field for that in the options table that can be passed to the 'call transaction' sentence. The only way to see that behavior while in online mode is by 'playing back' a recording thru the SHDB transaction and checking the 'Simulate background' option.
    My first attempt was to set the SY-BATCH flag before doing the call transaction but it doesn't work, the flag seems to reset itself with the correct value during the call.
    Any comments on this would be greatly appreciated.
    Regards,
    Sergio

    You would have to create a job on the fly to do this.  This example shows how to kick off a background job via an ABAP program.
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    * Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    * Open Job
      l_jobname = 'ZRICH_0005'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    * Submit report to job
      submit zrich_0005   
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    * Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                strtimmed = 'X'

  • BDC VA01 in background mode error

    Hi ,
    I am psoting data into VA01 using BDC call transaction in background mode for two cases.
    For one it is running successfully and for the other it is not.
    I have compared the data in the table BDCDATA for both the cases and it is same.
    Then I tried debugging in foreground mode and the same case which was not running earlier is running in foreground mode.
    Please advice what could be the problem?

    >
    ABHI wrote:
    > I am getting the following messages:
    >
    >
    >
    > TCODE     DYNAME     DYNUMB     MSGTYP     MSGID     MSGNR     MSGV1     MSGV2     MSGV3     ENV
    > VA01     SAPMV45A     4001     W     VU     1          Purchase order date          CTU
    > VA01     SAPMV45A     4001     W     V1     221     5/27/2010               CTU
    > VA01     SAPMV45A     103     I     V1     81                    CD
    > VA01     SAPMSSY3     131     S     0     344     SAPMSSY3     131          CTU
    Hello ABHI,
    The problem is because of some breakpoints created by you. So it is entering it to debugger in the background mode which cannot be handled by the BDC. Delete all your breakpoints before testing or open a new logon session to test it in background.
    Hope this solves your problem.
    Regards,
    Karthik D

  • How to debugg in background mode

    Hi ,
         I have problem while running in background ,
    in mm01 transaction while crating a material in forground it is getting created ,and its perfect .but at the same time while trying to run the BDC in the background
    the same thing is going for dump,so i need to debugg in the background mode .
    can any one help me out on this how to debugg on the background mode.
    Thanks in advance ,
    vinay .

    Hi srinivas,
        Below is the dump iam getting .
    Error analysis
        A RAISE statement in the program "CL_GUI_TEXTEDIT===============CP" raised the
         exception
        condition "ERROR_CNTL_CREATE".
        Since the exception was not intercepted by a superior program
        in the hierarchy, processing was terminated.
        Short description of exception condition:
        For detailed documentation of the exception condition, use
        Transaction SE37 (Function Library). You can take the called
        function module from the display of active calls.
    How to correct the error
        You may able to find an interim solution to the problem
        in the SAP note system. If you have access to the note system yourself,
        use the following search criteria:
        "RAISE_EXCEPTION" C
        "CL_GUI_TEXTEDIT===============CP" or "CL_GUI_TEXTEDIT===============CM002"
        "CONSTRUCTOR"
        or
        "CL_GUI_TEXTEDIT===============CP" "ERROR_CNTL_CREATE"
    "CL_GUI_TEXTEDIT===============CP" "ERROR_CNTL_CREATE"
    or
    "SAPMMG01 " "ERROR_CNTL_CREATE"
    If you cannot solve the problem yourself and you wish to send
    an error message to SAP, include the following documents:
    1. A printout of the problem description (short dump)
       To obtain this, select in the current display "System->List->
       Save->Local File (unconverted)".
    2. A suitable printout of the system log
       To obtain this, call the system log through transaction SM21.
       Limit the time interval to 10 minutes before and 5 minutes
       after the short dump. In the display, then select the function
       "System->List->Save->Local File (unconverted)".
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, select the Editor function "Further Utilities->
       Upload/Download->Download".
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.
    Thanks,
    vinay

  • Call transaction KB21N processed by a program in background mode

    Hi to all,
    I call transaction KB21N using BDCDATA in a custom program. If I process this program in foreground mode all it's OK, but if I process the program in background mode, I have a runtime error with DUMP: RAISE EXCEPTION with exception condition CNTL_ERROR. This program has to be executed in background so a bapi exist to use instead of call transaction or something else?
    Thank you very much,
    regards
    Antonio

    HI Antonio,
    The transaction you are dealing with is an SAP Enjoy transaction and for such transactions it is not recommended to do a BDC. YOu should search for  a BAPI for the same as you have already identified. Basically the enjoy transactions uses GUI controls which cannot be handled by BDC.
    BAPI_ACC_ACTIVITY_ALLOC_POST may serve your purpose.
    Regards,
    ravi
    Message was edited by:
            Ravi Kanth Talagana

  • VL10 - To create DO in background mode

    Can anyone advise what's the setting to execute VL10 to create DO in the background mode?  It's always showing up as listing in SM37.
    Thanks
    Peter

    I never saw a person, who was successful doing it..

  • 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

  • Execute one thread in background mode.

    hello ,
    I have an application where the user can shows dialogs to displays, adds, modify and delete rows of one tale inside some JTextFields.
    I have a problem to use this application, when one same dialog is showed more then one time....
    Exactly: not problems come the first time the dialog is showed, but the second time, the time to wait because the performance is executed is very long..., and further, ....when the dialog at last was is shoved, no data of the table are in the JTextFields.
    I get errors too when at last the dialog was shoved, and the errors not aways said the same reason..., but all the errors are referred to the impossibility (in the performances that followed the first) to have a suitable resultset containing the data.
    Some error are "null pointer exception" to read the resultSet, other error is "Impossibils get a block in the required time" ...
    I read documentation and I understand that the fault, probably, could came from the Event Dispach Thread that had the task to manage the creation of the ResultSet.
    Now I am trying to solve (at this moment without success) the problem in this direction, ...as well I have not experience about to manage the use of SwingWorker class.
    I should like hear what it is wrong in that I am doing...
    Initially my code was this
         * Create a resultSet, for the current table       
        private void createResultSet() {
                statement = dbconn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                currentResultSet = statement.executeQuery("Select * from " + tableName);
                boolean validateState = currentResultSet.last();
                regsNmbrOnTheTable = currentResultSet.getRow();
                System.out.println("Numero attuale di records = " + regsNmbrOnTheTable);
                // here come the exception:
                // Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            } catch (SQLException ex) {
                reportErrors.checkingSyntaxInInputTags("metodo createResultSet(): Errore nel creare il resultSet");
    //            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        } // createResultSetrecently I modified it in order to put the creation of the ResultSet in background....
         * Create a resultSet, for the current table
        private void createResultSet() {
            (acquiresResultSetInBackground = new AcquiresResultSetInBackground()).execute();
            currentResultSet = acquiresResultSetInBackground.doInBackground();
        } // createResultSet
      // inner class to manage the performance in background mode.
      class AcquiresResultSetInBackground extends SwingWorker <ResultSet, Void> {
            ResultSet resultSet;
            @Override
            protected ResultSet doInBackground()  {
            try {
                statement = dbconn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                  resultSet = statement.executeQuery("Select * from " + tableName);
            } catch (SQLException ex) {
                reportErrors.checkingSyntaxInInputTags("metodo createResultSet(): Errore nel creare il resultSet");
            return resultSet;
    }How I said I get again the same behavior that was before......
    thank you
    Regards
    tonyMrsangelo

    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 is not working in background mode and working fine in Foreground mode

    Hi Experts,
    I have created a BDC in SHDB for the transaction code:CWBQM for creating and deleting the record and converted the BDC recording into the program using call transaction. It is working fine in both foreground and background. When I given the same program for users testing one for the user was able to delete the records but Creation is not working in the same BDC. He is able to create the same records in another PC and the problem is only in that PC and only during the creation of the record. When I change the mode to 'A' mode for testing and request the user to execute and it is working fine the records created successfully. What could be the issue ?
    Thanks,
    Hema

    Hello,
    While recording BDC in SHDB try setting "Simulate background mode" flag and give a try.
    Cheers,
    Nag

  • Create Quality Management view for a Material in background mode

    I want to know if there is a way to create a Quality Management View (Quality Management tab) on Material Master (material already extended to plant ) in background mode.
    The requirement is to add inspection setup data for a material extended to a particular plant in background. I tried using 'BAPI_MATINSPCTRL_SAVEREPLICA' to add the data and it works perfect as required. Now the problem is this BAPI is creating the inspection setup data only for the material which has QM tab in MM02 for e.g. I manually created the inspection setup for a Material from MM01 and then deleted it , now the BAPI works fine for this material because when I created an inspection setup from MM01 it created the QM tab and after i deleted the entry the tab was still there with no entry in inspection setup.
    I want to create inspection setup for a material which does not have QM tab.
    I have to create everything is background mode. BDC is one option which I am list interested in.
    Thank you for helping in advance.

    Thank you for looking into my issue. I have to do the inspection setup in background without using any front end transaction.

  • Error in batch session processing in background mode

    Hi ,
    I am trying to do data transfer using batch session for transaction FD32.
    Here the batch session is executing when I am processing the session in foreground.
    Whereas in background mode it is failing.
    Please check and assit.
    Regards
    Kishore

    Hi Kishore,
    Probably it will be some information or warning message which is coming in the background execution of the session.
    That is the reason your session is going into error. Run the errored out session once again in foreground mode. You will get to know the reason of failure.
    Please let us know of any doubts.
    Cheers
    VJ

  • 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 ?

  • Add a New Field to Selection Screen of VL10 Transactions problem

    Hello,
    i have tried to add a selection field in the VL10G. I have used the docu from Gaurav Jagya (Thanks to Gaurav) an followed the steps. Here you can find the docu: Link: [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e07c282f-e2b4-2c10-e4b3-a314fc17b6a1]
    In the Step 2 , Point 4 i declare the Select option ST_MTART and use it later in Step 5  in the form USEREXIT_SELECT_OPTIONS_TRANSF.
    Step 2.
    4. Write the declaration of new select-option inside include ZV50RSEL_MTART.
    DATA: V_MTART TYPE MARA-MTART.
    SELECT-OPTIONS: ST_MTART for V_MTART.
    Step 5. Transfer values from selection screen to range.
    For this step, again an access key is required to modify include V50R_USEREXIT_TRANSF.
    1. Open include V50R_USEREXIT_TRANSF in change mode. It will ask for an access key. Enter the same and proceed.
    2. Write following line of code inside form USEREXIT_SELECT_OPTIONS_TRANSF:
    CX_SELECT_OPTIONS-MTART = ST_MTART[].
    When i start the VL10G it works fine, but when i start another VL10* transaction i get a dump. Example VL10:
    Runtime Errors         SYNTAX_ERROR
    Date and Time          20.04.2010 13:54:00
    Short text
         Syntax error in program "RVV50R10C ".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLV50R_PRE" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         The following syntax error occurred in program "RVV50R10C " in include
          "V50R_USEREXIT_TRANSF " in
         line 18:
         "field "ST_MTART unknown. .."
    It dumped, because the form V50R_USEREXIT_TRANSF is used in EVERY VL10* transaction and the select-option is declared ONLY in my Z-include.
    Is the someone out there, who has solved the problem? Is the an error in the docu or am i wrong?
    Thanks!
    Andreas

    Has there been any further information on this issue in this or any other threads. I am encountering the same issue as identified by Andreas.
    Thanks,
    Brian

Maybe you are looking for