Setting Breakpoint for WF-BATCH

Hi All,
I am working on BBP_DOC_CHANGE_BADI and need to set up a breakpoint in this BADI while Shopping cart gets converted to Purchase order. Previously the break point was working fine and suddenly, i coudlnt stop at this BADI ( while S/C gets to PO ). I checked user setting of WF_BATCH and couldnt find any change. Can anyone tel me how to set break point here and
what is the issue in WF-BATCH ?
Thanks in Advance.

Hello Siva,
It is not possible to debug with break-point for WF-BATCH user as WF-BATCH user is not a dialog user: he is a system one.
If previously, you were able to debug with WF-BATCH, this means his type was switched from system to dialog user.
Regards.
Laurent.

Similar Messages

  • How do I create a data set ready for a batch input session

    Hi:
    I don't know how to create a data set ready for an BATCH-INPUT SESSION.I know that with the function BDC_INSERT make de input online, but my requirement is that generate the data set and left to the user get in de SM35 transaccion and decide to him if it's execute or not. I have all the information in a BDCDATA table.
    Any clue would be great!!

    You just have to do:
    BDC_OPEN_GROUP (Open new batch)
    BUILD BDC DATA (Your own code)
    BDC_INSERT (Insert BDC data you have built in step 2)
    BDC_CLOSE_GROUP (Close batch)
    This will just create a new batch and it can be processed in SM35.
    To build BDC data:
    LOOP AT your_input_table.
    <<here you have to use the code generated from recording in  trasaction SHDB>> (i.e. bdc_dynpro and bdc_field performs)
    ENDLOOP.

  • Can U set breakpoint within a batch job and look at variables?

    Hello friends,
    I am trying to solve a problem that occurs within a program / transaction which can only be executed in background. The transaction in question is FPCOPARA and apparently this program cannot be executed in foreground.
    If I understand well, we cannot set breakpoints within a background job and as a result we cannot inspect variable etc. during job execution. So the question is how to achieve the same goal within a batch job? How did you do it? As this is a standard SAP transacrtion, no program modification can be applied.
    Your help is greatly appreciated.

    Hi......
    After u have executed ur batch job..
    go to sm37 >>select ur job using checkbox>>enter 'JDBG' in transaction box and press enter
    now debugger will start ..initial it will go through system code..after after a while the debugger will reach to your code and den you can debug the remaining report....
    all the best
    regards
    vivek

  • Setting breakpoints for unloaded classes.

    How do I set a breakpoint for a particular line in a class that has not been loaded?
    how do I get the Location to use createBreakpointRequest with out having the class loaded?

    Hey Jason,
    After spending over a year developing a java debugger using the JPDA, it's my opinion that the best way to build a debugger using the JPDA is by creating Manager classes.
    Being able to let the user set breakpoints before a reference type is prepared (notified by a ClassPrepareEvent), or even before the target VM is started (notified by a VMStartEvent) involves having to maintain a list of all the breakpoints the user would like.
    In my debugger, the user can click on any line of source code, and in the mouseClicked event handler code, I record the line number and file of the line of source code that was clicked on.
    I have something like ..
    public void mouseClicked(MouseEvent mouseEvent)
         int row = this.sourceCodeTable.getSelectedRow();
         int lineNumber = row + 1;
         if (BreakpointManager.hasBreakpointRequest(file, lineNumber))
              UnpreparedBreakpointRequest ubr = BreakpointManager.getBreakpointRequest(file, lineNumber);
              if (ubr.isEnabled()) ubr.disable();
              else ubr.enable();
         else BreakpointManager.createBreakpointRequest(file, lineNumber);
         ...Whenever you make a graphical debugger, expect a lot of GUI programming. Getting breakpoint glyphs to change involves a bit of work.
    Whenever a ClassPrepareEvent is served from the EventQueue, I pass the ClassPrepareEvent to the BreakpointManager. The BreakpointManager gets the ReferenceType from the ClassPrepareEvent, and from the ReferenceType, the source file is retreived (through the use of referenceType.sourceName(), and VirtualMachine.classPath()). With the source file, I retrieve the list of user-defined breakpoints from a HashMap looked after by the BreakpointManager and iteratively, retrieve the locations using the lineNumber stored in each of the user-defined breakpoints, accessing the location from referenceType.locationsOfLine().get(0), and then creating a "real" BreakpointRequest using the EventManager.
    It took me a lot of work to just handle being able to create, disable, enable, and delete breakpoint requests both online and offline. But again, the real lesson learnt is that without using the Manager software pattern for all types of events (BreakpointManager, WatchpointManager, et cetera), expect to get a lot of design problems later on.

  • Setting up of WF - BATCH for invoices released through workflow

    Hi all,
    i have set up the standard workflow for the Invoice Park and post which is working perfectly for the invoices. From the inbox the invoice is released by executing the work item. when i check the invoice document, the document is not getting posted, i believe there is a need to set up the user WF-BATCH, Could any body please advise as to how to set up the WF-BATCH so that the invoices get posted in the background.
    Thanks a lot in advance....

    Martin,
    Thanks for your reply. But, my question is, what and how can we tackle the witems that are struck.
    For example, in my case, the user has already taken decision from Portal side and he got a message that the approval task was successful and the witem is gone from his UWL. But, during this time, WF-BATCH was locked and so the "Result Processing" step that was done at the end of every witem execution, didn't happen. And hence the next witem also was not generated. But, if you see the wflow log, the witem status says, "COMPLETED". But if you expand the log for this step, then only we can see that the "Result Processing" was not completed by WF-BATCH.
    In this situation, will the SWPC be useful in troubleshooting the COMPLETED witems ? Pl clarify. I don't have access to SWPC right now and will definitely explore this.
    My biggest concern on this is, let us say, we have somany TRIP's in the middle of the approval process and the managers have already approved from their end. But, if the WF-BATCH is locked and no one noticed for a while, then it'll be a big task to identify each of these witems and Re-process them, even with SWPC,Right ?
    Please update on this.
    Thanks
    venu

  • How can I set the number of batch process for DTP globally?

    Hi guys,
    How can I set the number of batch process for DTP in system globally?
    For eg. set the number to 1
    Any hint is appriciated!
    Regards,
    Liying

    Hi,
    In DTP screen also you can view batch settings. Check the Settings menu, you will find Batch.
    Reg
    Pra

  • BADI/User Exit for MIGO Batch Split

    Hello,
    Im trying to find BADI or user exit, so i can set batches/or split amount to batches via program.
    As far i found user exits: MBCFC010 - EXIT_SAPMM07M_010 and MBCFC003 - EXIT_SAPMM07M_003.
    But they only raise when i press "Check" button.
    Is it any where i can set batches when i press Batches button or Split button?
    Regards,
    Temo Chutlashvili

    Hi,
    first - this is propoably a totally wrong thread to post this question.
    But may be the following helps you anyway ;-).
    There are only 2 ways to load a badi.
    Method CL_EXITHANDLER=>GET_INSTANCE - for old BADIs
    or
    Statement "Get Badi" - for new BADIs.
    The unfair detail about this is that many old-fahsioned programmers already
    instantiate their BADI objects on load of program.
    So what often helps is, before entering the transaction you want to search
    for BADIs, activate the debugger (/h) and create breakpoints
    for the method and the statement. - Then it will stop each time BADI is used.
    Now start your transaction and check the BADI names passing through.
    Regards, Marcel

  • Process Order creates Multiple Inspection for Same Batch

    Hi Guys,
    Expert opinion is needed to have this issue fixed.
    Issue:When a new Process Order is created it automatically creates in storage location A.  There are times when a process order needs to be created into another storage location B.  When the Process Order is created and then is changed from A to B  it will  create two inspection lots for one batch, one for each storage location.  From the plant perspective they only need one Inspection lot as they will not create two set of samples for testing since it is the same batch it just went into a different storage location then it was originally created for.  Is there a way to change SAP  so that it only creates one Inspection lot per batch.
    Control InspLot field in QM view for Insp Type 04 is X
    We had different scenarios with same Batch
    SCENARIO #1:  Sloc is changed to B prior to Release, in CRTD status of order Sloc was A
    So there are 2 Insp. Lot created one for A & another for B after GR in Sloc B
    SCENARIO #2:  Sloc is changed to B after  Release
    IL is created after Release of order with Sloc A, after changing Sloc B in process order and performing GR, new IL is created for Sloc B
    Business scenario is certain times of the year where one creates a PO with one Sloc and then it needs to be GR into a different Sloc.
    They are generating a lot of IL’s that are not used and it seems like every year they need to get UD’s made on IL’s for finance to close out the year which is cumbersome.
    Please suggest way out, objective is one process should have one IL per Batch irrespective of Sloc
    Regards
    Nitin Desai

    There are several things that come to mind.
    First and foremost, get the planning right so that the process orders are created properly the first time around.  This is a business issue.  Yes.. I don't know your business.. no, you really aren't all that different then the thousands of other businesses using SAP.  The root cause of this is you don't know what is going where when you order it or in the case of process orders, where you intend to make it or store it.  That's a basic planning problem.
    2 - you must have early lot creation turned on, "Y".  You can't be using "X".  X would only create an 04 lot when you do the GR so if you change the storage location prior to the Process order being released I'm not sure how you are generating two lots.  Are you sure all the lots in question are 04 lots? Are you maybe seeing an 03 lot?  Or possibly an 08 lot?  Something doesn't sound right here.
    3 - If you receive into two storage locations from one process order, you will get two inspection lots.  No way around this.  There is stock associated with these.  You could use customization to suppress the second receipt but that stock would go right to UR with no inspection.
    4. Don't change the storage locations  in the process orders at all.  You can use the stock posting screen in the UD and change the storage location when you make the UD.
    5.  Another option is to again, don't change the storage location in the PO but use QAC2 transaction to transfer the inspection lot into the proper storage location.
    You need to explain your scenarios better cause I really don't see how you are getting the two lots when you make all your changes in the process order prior to releasing the process order.  That doesn't make any sense at all.
    Craig

  • The parameters supplied for the batch are not valid.

    Error:The parameters supplied for the batch are not valid
    Stored Procedure is as follows
    CREATE PROCEDURE [dbo].[Usp_TrackVehicleDetails] 
    @reg_Number     NVARCHAR(25)
    AS
    BEGIN
    SET NOCOUNT ON;
        DECLARE @Imei_Number    NVARCHAR(25),
    @Imei_Table
    NVARCHAR(MAX),
    @Latitude_Val
    NVARCHAR(MAX),
    @Longitude_Val  NVARCHAR(MAX),
    @Imei_PK
    NVARCHAR(MAX),
    @result         INT
    -- Tracking Device by means of Latitude and Longitude
    SELECT @Imei_Number=Imei_No FROM MapDevice_Vehicle WHERE Vehicle_No=@reg_Number;
    SELECT @Imei_Table='Imei_'+@Imei_Number
    SET @Imei_PK='SELECT(MAX(CAST(Imei_Id AS NVARCHAR(MAX)))) FROM dbo.'+@Imei_Table;
    SET @Latitude_Val='SELECT Latitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
                SET @Longitude_Val='SELECT Longitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
                EXEC @result= sp_executesql @Imei_PK,@Latitude_Val,@Longitude_Val
                SELECT @result
    --RETURN @result
       BEGIN TRY
    BEGIN TRANSACTION T1
    -- Returning Values based on Vehicle_Number
    SELECT ISNULL(@Latitude_Val,'')[latitude],
      ISNULL(@Longitude_Val,'')[longitude]
    IF @@ERROR!=0
    BEGIN
    ROLLBACK TRANSACTION T1
    END
    ELSE
    COMMIT TRANSACTION T1 
    END TRY
    BEGIN CATCH
    SELECT ERROR_MESSAGE() AS ErrMsg, ERROR_LINE() AS ErrLine,ERROR_PROCEDURE() AS ErrProc
    END CATCH
    END 

    Your construct is not correct....
     EXEC @result= sp_executesql @Imei_PK,@Latitude_Val,@Longitude_Val --These
    should be  parameters/....
    Please try the below(The longitude and latitude to be included...)
    /*Test script*/create table MapDevice_Vehicle(vehicle_no nvarchar(25),imei_no nvarchar(25))
    Insert into MapDevice_Vehicle Select 'KL8P8234','KL'
    create table Imei_KL(Imei_Id nvarchar(25))
    Insert into Imei_KL Select 'KL8P8234'
    exec [Usp_TrackVehicleDetails] 'KL8P8234'/*Test script*/
    CREATE PROCEDURE [dbo].[Usp_TrackVehicleDetails]
    @reg_Number NVARCHAR(25)
    AS
    BEGIN
    SET NOCOUNT ON;
    DECLARE @Imei_Number NVARCHAR(25),
    @Imei_Table NVARCHAR(MAX),
    @Latitude_Val NVARCHAR(MAX),
    @Longitude_Val NVARCHAR(MAX),
    @Imei_PK NVARCHAR(MAX),@paramdefs nvarchar(MAX),@result INT
    -- Tracking Device by means of Latitude and Longitude
    SELECT @Imei_Number=Imei_No FROM MapDevice_Vehicle WHERE Vehicle_No=@reg_Number;
    SELECT @Imei_Table='Imei_'+@Imei_Number
    SET @Imei_PK='SELECT(MAX(CAST(Imei_Id AS NVARCHAR(MAX)))) FROM dbo.+@Imei_Table';
    SET @paramdefs = N'@Imei_Table nvarchar(255)';
    --SET @Latitude_Val='SELECT Latitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
    --SET @Longitude_Val='SELECT Longitude FROM dbo.' +@Imei_Table+' WHERE CAST(Imei_Id AS NVARCHAR(MAX))='+'('+@Imei_PK+')';
    EXEC @result= sp_executesql @Imei_PK,@paramdefs,@Imei_Table = @Imei_Table
    SELECT @result
    --RETURN @result
    BEGIN TRY
    BEGIN TRANSACTION T1
    -- Returning Values based on Vehicle_Number
    SELECT ISNULL(@Latitude_Val,'')[latitude],
    ISNULL(@Longitude_Val,'')[longitude]
    IF @@ERROR!=0
    BEGIN
    ROLLBACK TRANSACTION T1
    END
    ELSE
    COMMIT TRANSACTION T1
    END TRY
    BEGIN CATCH
    SELECT ERROR_MESSAGE() AS ErrMsg, ERROR_LINE() AS ErrLine,ERROR_PROCEDURE() AS ErrProc
    END CATCH
    END

  • Setting breakpoint on any method call of a class

    Using the new (or old) debugger, is it possible to set a breakpoint that will stop on any method invocation of a class?
    I am debugging the processing of a purchase order and want the debugger to stop on any method call to CL_PO_HEADER_HANDLE_MM, which has 113 methods, so setting a breakpoint in each method is way too tedious.
    Do you know of a way to do this in one go?

    Activate Layer-Aware Debugging for class CL_PO_HEADER_HANDLE_MM, and then set breakpoint on statement CALL METHOD.
    I tried for CL_GUI_ALV_GRID, and it worked. I am on 702 release.

  • How to update for single batch id in one a table by using mutiple parametrs

    Hi Everyone,
    I need simple pl/sql logic to update one table using with some parametrs.I need a logic for single batch_id there will be 100 of records are there .how do i update my custom table ? how do i show how many records have been updated for each batch ? how to handle excpetions while updating ?Som body could help me it will be great.
    -- Sample Code
    PROCEDURE UPDATE_table (P_IN_BATCH_ID IN Number,
    P_IN_TRANS_ID IN number,
    P_IN_TRANS_STATUS IN varchar2,
    P_IN_ERROR_MSSG IN varchar2
                                                 ) is
    cursor
    select*from xx_cust_table
    BEGIN
    UPDATE xx_cust_table
    SET TRANSMISSION_ID=P_IN_TRANS_ID
    TRANSMISSION_MSG=P_IN_TRANS_STATUS     
    PROCESSED_FLAG=P_IN_ERROR_MSSG
    where BATCH_ID=P_IN_BATCH_ID
    END UPDATE_table;

    PROCEDURE UPDATE_table (P_IN_BATCH_ID IN Number,
    P_IN_TRANS_ID IN number,
    P_IN_TRANS_STATUS IN varchar2,
    P_IN_ERROR_MSSG IN varchar2
    ) IS
    BEGIN
    UPDATE xx_cust_table
           SET TRANSMISSION_ID=P_IN_TRANS_ID
                  TRANSMISSION_MSG=P_IN_TRANS_STATUS
                   PROCESSED_FLAG=P_IN_ERROR_MSSG
      WHERE BATCH_ID=P_IN_BATCH_ID;
    DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT||' rows updated!');
    --EXCEPTION
    --  WHEN DUP_VAL_ON_INDEX THEN
    --    DBMS_OUTPUT.PUT_LINE('Duplicate value');
    --  WHEN OTHERS THEN
    --   <display sqlcode and sqlerrm>
    END UPDATE_table;

  • Goods issue for the Batch

    Hi all ,
      We have stock 974 Kg of X material at plant AB01 and stor.loc XY01 , 100Kg at Batch 123456 . physically the stock is not avilable.
    So our user wants to remove from the SAP . We want to scarp the stock for 551 mov.type .  When we process the 551 mov.type , it is accepting for the 100Kg only for the combiantion of plant , stor.loc and batch . when I do 551 mov.type for  remaining 974 Kg .. for the combiantion of plant , stor.loc and batch .. System displays the "Deficit of BA Unrestricted-use 974 KG" .
    Please help us .
    Regards,
    Amara

    If your material is batch managed, then you cannot just have stock at storage location level without a batch, except it is not unrestricted use stock.
    And if you have stock without batch and then you cannot change the material to become batch managed.
    So you either did something to make the material batch managed while there was stock, which I would call  an illegal action that causes an inconsistency now.
    Or your stock is NOT unrestricted use stock, e.g. it was received into GR blocked stock. GR blocked stock does not allow batches.
    Or you just have not set the flag for "show batch stock" at MMBE selection screen, but this would not explain the error message.
    Best you clarify your situation to get he best help.
    Check the stock situation directly with SE16 in table MARD and table MCHB.

  • Setting breakpoints/debug using the HTTP Analyzer web development

    I wonder if there is any way of setting breakpoints in a Web service class. For instance the method in the class shown in the tutorial "Building a POJO Annotation-Driven Service":
    package annotation;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService(serviceName = "HelloService")
    public class HelloService{
    public HelloService() {
    @WebMethod
    public String sayHello (String s) {
    return "Hello " + s;
    That is, while you run the HTTP Analyzerl, the code can be debugged by setting breakpoints etc.

    Hi, I'm just using the default setup for HTTP Analyzer and having no problem using it.
    Just make sure to run the HTTP Analyzer first before running or starting your app server (Integrated weblogic Server).

  • Can't rasterize in an action for a batch

    I have a number of files (AI) that were put into an Indesign document for PDF print. These same PDF's were later used in a CD format of the book. However, the AI images are either coming up slowly, bad re-draw, or are causing the program to crash. Changing all images to PSD would work other than the fact that all of the images have to be hand-placed again in the InDesign documents as the link does not remember the same placement-the images come in way out of place. The thought was to retain the AI format but rasterize in AI so as to loose layers/points,paths and cure the bad re-draw in the CD format of the book. The problem is I can't seem to be able to run a batch that recognizes"rasterize" in the action. I am using CS2. Any thoughts? DO I need a script?If so, any suggestions for someone who knows very little about scripting? Any alternatives?

    As for setting up the action, I created a new set, started a new action in the set by opening up a file out of th home folder of vector images, then rasterized under Object (300 resolution, transparent background, art optimized), then "saved as" in a separate folder, then closed the file and stopped the action.
    As for the batch, I have overide open and overide save commands checked. I have chosen the correct set and action, the correct source and destination folders. I am using CS2. It just pops up a window that says that rasterizing is unavailable.

  • LabView for fed-batch control

    Does anybody use LabView for the control of bioprocesses, e.g., for
    fed-batch fermentations? I am interested in control algorithms for
    substrate addition, etc. .
    Karsten.

    With visa properties/modem line settings you can easily select the line setting you need and watch for the other line to change state. use property write and read.
    succes
    I don't know how immediate the line will change state but you can measure this yourself with an oscilloscope.
    greetings from the Netherlands

Maybe you are looking for