Background step in 'In Pocess'

Hi,
I am facing a problem at Background step, workitem status is not changing , it is in state 'In process'. if i made changes as foreground step it working fine,But not in background. even if i executing from SWI1 also status remains same.
In the mothod im executing a BDC fun.module.Please suggest.
Regards,
Rajkumar.

ls_opt-racommit = space
SAP help says that
" " (COMMIT WORK terminates processing), "X" ( COMMIT WORK does not terminate processing).

Similar Messages

  • Background step is 'in process' status in PRD system

    Hello All,
    I have a background step which uses function modules 'create_text' and 'SD_WF_ORDER_REJECT' to update the documents.
    This step is in 'in process 'state' for 2 days in prd system. I checked st22 & swu2.
    There is not errors found.
    How do i reprocess this background step in live system.
    In dev system it's working fine.
    Wat could be the reason? Any inputs will be appreciated.
    Thanks...

    OK.  Next step is to work out why.
    1)  Does the issue happen with all workitems, or just the one.
    2)  If just one, look at the container of the workitem and compare the data to what the process actually requires.  Also check if there is a possibility of the document object being locked due to some outside (of workflow) process.
    3)  If all, Try running the method in SWO1 in debug to ascertain what it is which makes the PRD system different to that in which you developed the workflow.  REMEMBER TO EXIT THE PROCESS BEFORE UPDATE as it is a production system.
    If neither helps, please post any messages from the detailed log for both the workflow F item and the background item, along with an extract of the method code where the issue occurs and we will see what else could be the cause.
    Regards
    Gareth

  • Background step in workflow remains in process: Workflow gets stuck up

    Hi Gurus,
    I have custom workflow for organization management. The workflow takes information from e-forms(notifications) and updates the infotypes.
    The step which updates infotypes is run as background step.However in some cases the workflow gets stuck up in this step.
    This happens irregularly (once or twice in a month).
    On processing these workflow instances using SWPC , nothing happens and the workflow remains stuck up in the same step.
    Also checked for dumps but nothing available under WF-BATCH.There is no regular pattern for occurance of these instances.
    Can you please suggest what can be the possible cause of them getting stuck up in the background task.
    Regards,
    Rohit

    Check ST22 shortdumps again. Look not only for WF-BATCH but also look for the intitator or the last processor's ID. Sometimes they would be the assigned the user to execute the step ecven if it's a background task.
    Also, I would suggest looking through the code of the method that is being executed carefully. Make sure there are no 'EXIT' or LEAVE' statements. This could also 'sometimes' cause the background process not to return correctly. In addition, check that you are not executing an ever lasting loop.
    If you have access in PRODUCTION, try to execute the method in debug mode to see where the program is inappropriately stopping (t-code SWO1).
    Derrick
    Banks & Company, LLC

  • Background step in error

    I have a background step at the end of workflow. after execution of dialog step, am using IMAGELINK> ASSIGNMETHOD to attach a scaned document to Business document. Sometimes this background step is in error, not all the times. I reran this step using SWPR. after that it executed successfully, am able to see attachment in the document.
    I do see below error >
    EXECUTE_METHOD_OBJECT_SYNC - Method container for workitem could n't be created
    EXECUTE_METHOD_BOR - Method container for workitem could n't be created
    Executing batch workitem - unable to instantiate object 'OBJECTREF'.
    When i check the log for task container, required all variables are filled. I don't see binding issues also. Not finding a clue, y is it executed when i reran using swpr.
    Inputs are appreciated. am using ECC 6.0.

    Hi Priya,
         As you mention the note NO : 1052861 if you apply , it would resolve the problem , plz update me. Because I am facing the same problem for background activity only.
    Thanks,
    Saurin Shah

  • Background step in progress

    Hi,
    A background step to collect the agent was working fine early. Some of the steps in SOST to send mail were pending for 2days. Due to this if run the workflow , it says "INPROGRESS" for long time. I tried to process manually in SWIA . As per the previous thread i used a function module , but it says type F and B. Not able to process.
    Since it was working fine early i dont think the problem in workflow. The binding also proper. I am seeing the Actual agent step blank in log???
    Help me to solve the problem.
    Thanks!
    Richard A

    Hi Arghadip,
    The design was perfect and was working fine before twodays. But i run it today , it goes "Inprogress" state.When i see the log , i could see one of the mailsend step was pending for the last 2 days. I have tried to complete it by using SWIA.  Huv can i kill the pending workitems?
    previously the actual agent for the step was filled. But it says no agent? What could be the problem?
    I have not changed the design anymore?
    Any basic configuration is missing? I have another doubt. What are the basic setting to be maintained in a new Client for workflow ?
    Richard A
    Edited by: Richard Antony on Jan 17, 2008 8:18 AM

  • Workflow stopped at background step

    Hi Experts,
    I have a background step in my workflow , when iam testing this workflow from SWUS the workflow is getting stopped at this background step the workflow is not going forward to next step. the workflow log shows ' task started in background'
    moreover i did't find any errors in the log for the same.and i checked SM37 there the relevent job is finished. please advice what canbe the problem?
    Thanks & Regards,
    Sarath.

    HI Sarath ,
    Just change yuor task from BAckgroung to foreground. Insert a break point in the code of the function module used in the task and execute your workflow. 
    Coz you cant debug a background task , you will never come to know wht is happening inside .
    By debugging get the problem in the code , rectify it and change the task again to the background  .
    Hope this will help.

  • Error while execution of Background step

    HI all,
    I have created a smart form attachment step.The step to be executed in Background.
    According step is set syncronous  with background execution.
    However i am getting folllowing error-
    The information displayed is -Execution will continue in backgroun with Status-Error
    Error details are as follows-
    Message Text         Error handling for work item 000000389208
    Exception            630
    Error Type           0
    Area                 SWF_RUN
    Message              630
    Variable 1           000000389208
    Please guide to resolve issue.

    Hi Sanjay,
      As Rick Suggested check the log, if still problem persists & if possible try making the step to dialog execution and check?
    Regards,
    Narin.

  • FIPP object, getting error while posting document in background step

    Hi Experts,
    Once approval is done we are posting document in background, but getting following error
    No batch input data for screen SAPMF05A 0607
    We have delegeted object FIPP to ZFIPP and added method zpost with same code as post with some initial validations.
    Your help in solving this error would be really appreciated.

    If you really haven't done any relevant changes to the SAP standard post method, I would look for an answer from OSS. And if not found, then ask from SAP. But if you have replaced the standard post method code with for example some BDC code, then you need to check this with your ABAP guys... I don't think that it has anything to do with workflow.
    Regards,
    Karri

  • Steps to Edit Pocess chain

    Hi Guru's,
    I want to edit my process chain but my development, quality and production systems are not in sync.So, I need to do the changes directly in Production system only.
    Please tell me the steps to edit the Process chain,I want to add wait time for a particular Process.Give me clear idea then i can proceed.
    Regards,
    Anand.

    Hi,
    For editing process chain go to edit mode of PC then you can add the required step you want.
    For wait time go to nelow thread
    [http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm]
    i.e
    wait time is used  only to debug a process run.
    Specify how long (in seconds) you want the delay to be between one event being triggered and the next process starting.
    You can capture the process by using transaction SM37 (Job Overview) or SM50 (Process Overview
    Thank,s

  • Explaination for background steps in MRP with example

    Dear SAP Guru's,
      I received the explaination for below steps in MRP.
    But, it wouid be better if i could get the explaination for step 2 with example, step 3 for lot size EX & step 5 also with example.
    1. Check planning File Entry
    2. Net requirements Calculation
    3. Lot size calculation
    4. Scheduling
    5. Source determination
    6. BOM explosion
    1. Check planning File Entry: An entry is made in the planning file as soon as any changes are done to the material which are relevent to MRP. Eg. Changing MRP type, Changing BOM Qty. System checks if there is an entry. chk sample planning file entry in md21.
    2. Net requirements Calculation: It checks the available stock of the materials. Required minus available = net required qty. availability check plays vital role in this.
    3. Lot size calculation: Depending on the lot size maintained in the material master, it groups the materials. eg. If you use lot size as FX(Fixed lot Size) with fixed lot size qty = 100, then system will create pld ord or PR for the material in fixed lot of 100 always.
    4. Scheduling: You can either carry out basic dates scheduling (values taken from MRP 2 view) or Lead time scheduling (values taken from routing) to this the floats are added and scheduling is carried out. By default it is backward scheduling. If the dates are going in past, today scheduling is done.
    5. Source determination: For externally procured materials, you can assign a fixed source (ME01). This vendor is assigned in PR during MRP.
    6. BOM explosion: For dependent requirements calculation, system explodes the BOM and plans the materials.
    Thanks in advance
    Regards
    Kalyan

    Kalyan,
    I do not see a business problem described in your email that I can assist you with.
    I suggest you read the standard SAP online help in this area
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/f4/7d27aa44af11d182b40000e829fbfe/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/420d29470a11d1894a0000e8323352/frameset.htm
    and associated topics.
    Rgds,
    DB49

  • Stuck with Foreground and Background processing in Workflow

    Hi All,
    I have a BDC that is acting as a method in the Business Object. The requirement is something like this: The scenario is in the Utilities System. When a customer pays a security deposit a PM (Plant Maintanence) Service Order has to get created automatically in the background. I have a BDC for creating the Service Order but the thing is that if I make that task which runs the BDC as foreground and give the agent assignment it works absolutely fine and the service order gets generated, but if I make the same task as background the Service Order does not get created. I am heavily stuck with this issue.
    Has anybody encountered the same issue ?
    Best Regards,
    Sudhi

    Sudhindra,
    Are you checking for errors after the BDC Call Transaction? What I normally do is to use the Messages into option of the BDC call and return the messages to the Task Container in case of errors.
    Reasons why the method does not work in background is possibly due to authorizations or the WF-BATCH user being not known to the PM system. For instance when I create PM notifications in WF in background, I have to translate the WF initiator's user id to their Personnel Number for the Resp. Person field. If in your workflow the prior step to creating order is a dialog step, you can also try the Advance with dialog option on the background step.
    Cheers,
    Ramki Maley.

  • Workflow step not executed...

    Hi,
    In my workflow requirement (for VA01), I want to record the status in a custom table as follows;
    Approver id     date   time    status
    ABC                                     Submitted for approval
    ABC                                     Approved (or) Rejected
    So I have created a step called 'update custom status' after the step that sends email to the approver agent whose details stored in another custom table. Then I associated a task with this step which is bound to a custom class / method which has the logic to write the status to the custom table.
    The issue is I do not see this step excuted. I checked in the log.
    What can be wrong ?
    Workflow steps are as follows;
    1. Read the document's net value and store in a variable.
    2. Read the custom table for agents list to whom the doc has to be sent for approval.
    3. Send email for approval.
    4. update custom status.
    In the graphical view, I can see the update custom status step being called (Green link from previous step to this step) but after that no progress.
    Am I missing passing some values ? Or is this step not giving any results ? Whats happening ?
    Details on this update custom status step are as follows;
    A custom task with terminating event set as _WORKITEM defined. (not synchronous)
    A step of type activity defined and bound to the above task with binding done.. (what values should I pass to record the above needed details.)
    In other words, how can I record the status in my custom table ?
    thnks

    Hi
    I think its a background step. If yes, then make it foreground and debug and see what is the problem. Also check for short dumps and turn on the event trace and see the terminating event is getting triggered.
    Vinoth

  • One Step in the Workflow

    Hi,
    When there is a change in the status of my sales order I need to place an entry in my application server.
    An event is triggered but I don’t want to create a workflow as this will be the only workflow in my system and i need to do configurations
    Is there any way I can put the receiver as a Function Module as my step is a background step.
    If so how do I capture the event and BO key .

    business transaction event... i am not sure if there is one for change in status of sales order...
    Well u might get one...

  • Transaction SWPC when scheduled in Background  is not working

    Hi All,
    I have scheduled the program RSWP_CONTINUE_WORKFLOWS_GRID  behind the transaction : SWPC daily at 11 : 00 PM system time.
    The creation date is selected as Creation date GE Sy-datum-1 dynamically and continue immediately option is also checked.
    However the background job is not  picking the list and restarting the workitems that are reported in system crash.
    When executed  the transaction in foreground , list is coming and I can able to restart the work items.
    Is there any other setting which I am missing or Please let me know your inputs  to solve the issue.
    Many Thanks !
    Thanks & Regards,
    Preethi G.

    Hi,
    I have chcked the ST22, there is no short dump and move over the step where the processing is stopped is a backgroung step.
    The same backgound step is execute fine for other workflow instances only few are getting strucked tp at this background  step.
    The Process :
    when MIGO is perfomed,  the euipments will be created.
    once equipement is created, the customer workflow gets triggred and euipment is updated.
    Suppose when MIGO is done 500 equipements gets created  based on the quantity and 500 times the workflow gets triggered for the updation of the equipments.
    sometimes, the backgroung job is working for around 495-497 , for remianing few euipments 2/3 , its getting struked up.
    For few indtances all the 500 euipements gets updated with out any issues.
    Only fews cases its getting down.
    Is this something related to performace of the system or performance of the code which is wriiten for the backgroung job.
    Please let me know your inputs.
    Many Thanks !
    Regards,
    Preethi.

  • Don't want Background Work Item as run as a tRFC

    I have a purchase requisition approval workflow.  My problem is that the purchase requisition is showing WF-BATCH as the user-id that did the release of the PR. 
    My workflow has a sync dialog user-decision step for the approve or reject.  If the user approves the PR then it calls a background synchronous release step.  I have the "Advance with dialog" check box on the background task. 
    When I look at the workflow log the background task starts with the dialog user-id, however it then creates a tRFC entry so the work item actually finishes under the WF-BATCH user-id.
    What setting(s) do I have to change so that the background work item doesn't execute as a tRFC?
    Thanks,
    Jeff

    Hi Jeff,
    I presume you are using the custom workflow and not the std one.
    If so, in your workflow, is the user who is approving the PR is supposed to release he PR or it is different authority who will release PR ?
    If it the same authority who acts on user decision and who should release the PR, I could not get the purpose of not using the step <i>Overall Release</i> similar to std PR release workflow as against using the decision and background release step.
    Because, in this step of std workflow, user will have to act and release the PR and then you will have his name under workflow log.
    As Glauco indicated, for background steps, you will always have name of WF-BATCH.
    Regards,
    Akshay Bhagwat

Maybe you are looking for

  • "Smart Quotes" not consistent with imported text

    I have a very long Pages document (400 pages). I wrote the text in an app called "Copy Write," exported the text to RTF, and pasted it into Pages for formatting and polish. In Pages, some of the quotation marks and apostrophes are "smart" (curvy), wh

  • Helping fixing a script

    I was looking for a script that would relink 18 images to 18 new images in a different folder. I ran accross this script but the file names need to be the same and I'm getting an error line 21 (placedFiles.push(placedItems[i].file.name);). Could some

  • Urgent Vendor Replication

    Hi all, We are trying to replicate vendors using the Vendor replication tc BBPGETVD in the test system.... Prior to replication we created the Vendor Root Org.. Maintained No ranges for the BPs and Vendor Lists etc.. In our case we are using the Opti

  • Mac Pro international power cable

    Hello everyone, I am currently abroad, but would like to purchase the Mac Pro via the UK online store to be able to profit from student discount (I study in the UK). I realize that if I order the Mac Pro in the UK store, it will come with a UK power

  • Arabic in Spark List

    iam trying to dislay arabic in spark list but the text wont appear what shoul di do (english text display correctly but arabic not ) if u test on emulator it works but on devices its wont - iam working on android