Debug background task in custom workflow for PO change

Hi,
We are on ECC 6.0 EHP7.
I have a custom workflow for PO object type(delegated to std object type BUS2012).
There is a background task which has some custom code written and I need to debug this code.
Can someone please let me know how to debug a background task?
Thanks.

As suggested by ronen we can debug through swo1 but we have to pass values manually for importing parameters, by using sm50 also we can do debug and there is one more way  to debug
if its custom task change background  task to fore ground and change business object method also change it to fore ground and activate the work flow.
now change any  po  then it will stop at that step now take that work item id in swi1 and go to swia and execute after putting break point in that method of business object.
But best way to debug  through infinite loop i.e sm50.
suri

Similar Messages

  • Custom workflow for manual merch projects

    Hi,
    Having issues in configuring custom workflow.
    In ATG10.0.3 created a custom workflow(editCommerceAssets.wdl) & configured with catalog import job (importing thru spreadsheet & creating a Merch project).This works successfully.
    I am trying to configure this custom workflow for manually created projects in BCC.
    In the following files I tried replacing commonWorkflow.wdl to editCommerceAssets.wdl.
    <localconfig>\atg\commerce\web\assetmanager\taskConfiguration.xml
    <localconfig>\atg\commerce\web\workflowActivities.xml
    But getting this error in pub console:
    10:13:23,195 WARN [ActivityManager] The workflow activity with ID /Common/commonWorkflow.wdl has been registered multiple times for the same workflow. Please verify your workflow
    configuration as this is not allowed.
    10:14:40,453 ERROR [ApplicationManager] There is no application configured with ID '/Common/commonWorkflow.wdl'.
    Any recommendations?
    Thanks!
    Mani
    Edited by: user11263665 on Oct 17, 2012 9:38 AM

    It is possible that the workflow has already been registered in db before you modified workflowActivities.xml.Did you try cleaning up workflow tables and restart the server??
    epub_workflow_info, epub_coll_workflow, epub_ind_wf,epub_wf_server_id tables
    Make sure there is only one entry for each workflow in epub_workflow_info. If there are multiple entries, then it may be coming from 2 different places and you need to disable one of them. Whenever you create custom work flow, copy the existing workflow and modify it and give it a different name. If you are importing programmatically, you really dont need to configure it in taskConfiguraiton.xml ( as it corresponds to settings related to which item-descriptors, tabs, security in BCC gui).
    -karthik

  • Workflow for organization change request

    Hi all,
    I need to develop a workflow for all changes done to organization structure.Whenever any change is done in the organization structure,a notification should go to the highest node user that what changes have been done to the nodes below.Is it possible to develop a workflow for this?
    If so,can some one explain me the tasks that will be involved and the Business Object type to be used?
    Thanks!

    Hi,
    Please check Alert customizing.
    Event Control for Organizational Management
    Use
    In this IMG activity, you can define whether the events of the event schema for the employee (DEPARTMENT_CHANGED and ADRESS_CHANGED) are to be used. These events are then triggered when the organizational unit or the address data of an employee is changed. Then, depending on the settings in the associated event schema, SRM Alert Management is used to trigger an alert, provided that you have entered the schema.
    You maintain this in the IMG activity Define Event Schema.
    You can change the event text under Define Events.
    Activities
    If you want to activate the event schema for the employee, enter the value for the business object Employee (BUS1006003) in the Event Schema field. The default value is MA.
    To deactivate it, leave the field empty.
    Regards,
    Masa

  • How can I customize Workflow for Organizational Change (WS01000014)

    Hi ti all!
    Let me know please, How can I customize Workflow for Organizational Change (WS01000014)?
    What steps must I do?
    Thank!

    Oracle Workflow home page is basically static HTML content rendered by Mod PLSQL code written in WFA_HTML.HOME procedure. There is no supported way of customizing this page.
    Thanks

  • Setting up workflow for bom change LO-ECH

    Hi all,
    I am trying to set up the workflow for BOM change.  I have followed the Preparation step for the setup and was stuck at the step 'Define the Organizational Plan for the Change Department (LO-ECH)', step number 6.
    <a href="http://">http://help.sap.com/saphelp_46c/helpdata/en/f1/499a34272a5f2ee10000009b38f83b/frameset.htm</a>
    5.  Select the object type SAP Organizational Object, and click .
    The Add SAP Organizational Object screen appears.
    6.  In the field SAP org. object type, enter one of the following organizational object types:
    TCC11
    Responsible for changes of this change type (master record)
    TCC13
    Responsible for object changes of this change type
    When I click on either TCC11 or TCC13, it give me the below error message
    "Method CREATE not defined for object type Person responsible for changes of this type.
    Message no. 5W003"
    I have debugged the program and seems like it error out because there is no entries for 'CREATE' in the table SWOTDV for objecttype = 'TCC13' or 'TCC11'
    May I know what am I missing here?
    Regards
    Khong Kiam

    But I find if I have as original media - one jpeg still, one 480 x 720 video clip
    480x720? Do you mean 720x420? And what CODEC? DV? Some odd whackball one like MPEG-4? Look at COMPRESSOR in the BROWSER in FCP.
    Stills you have to render...
    and are employing opacity, a filter like Blink,some color correction, etc. That I get minutes to render a 30 second clip.
    That is still adding a filter, and opacity..and color correction. That will require rendering.
    If you find that you drop a clip onto the timeline, and you instantly need to render, then something is wrong with your settings. You shouldn't have to render clips in the timeline. Not if they are captured or imported PROPERLY, meaning that they are codecs that FCP edits with.
    If you want to just grab random clips or use random codecs and throw them all into an application and begin editing, then you should look at another editing application, like Vegas or Adobe Premiere CS5.
    Shane

  • Custom Workflow for custom HCM form - reg

    Hi,
    We have a custom form designed and having a workflow for that. We have developed the workflow like any other workflow for appraisals for example or in SD. But here while test run of process we are getting error saying 'Work Item not found' though the work item is present in SWI1.
    We have below steps.
    Header
    Importing form container
    User Desicion (Approve/Reject)
    If approved update database.
    Can any one correct me if am wrong.
    Raj

    Hi,
    For workflows involving HCM forms, there some standard tasks which should be made use of:
    Task Group TG17900001: Components for HCM Processes & Forms
    Task Group TG17900002: Interactive Components
    Standard Task TS17900100: Edit Form
    Standard Task TS17900101: Approve Form
    Standard Task TS17900102: Form Is Edited Again by Author
    Standard Task TS04000018: Process PD Form
    Standard Task TS04000019: Approve PD Form
    Standard Task TS04000020: PD Form Is Edited Again by Author
    Workflow Template WS17900260: Save Form with Error Handling
    Workflow Template WS17900404: Draft for Process Start
    Workflow Template WS17900418: Forward: Process Start with Errors
    Task Group TG17900003: Background Components
    Standard Task TS17900106: Check Existence of PA Infotype
    Standard Task TS17900107: Check Form Data
    Standard Task TS17900108: Save Form Data
    Standard Task TS17900110: Import Field Value to WF Cont. Element
    You can use TS17900110, TS17900101/TS04000019 and TS17900107. Please make sure you read some documentation before you use these tasks.
    Let me know, whether this is helpful.
    Thanks,
    Sukumar.

  • Custom Workflow for sending Remainder mail in MS CRM 2013/2015 online

    Hi All,
    We have a requirement to send a remainder email before 5 days,3 days and on the same day of the M/TC date in lead form. To achieve this we tried using Custom Workflow. Below is the logic tried but in the highlighted line
    not able to retrieve the "M/TC date" value, this results in no output.
    Kindly suggest where we are going wrong or a best approach to do this.
    Parameters:
            [RequiredArgument]
            [Input("InputEntity")]
            [ReferenceTarget("lead")]
    public
    InArgument<EntityReference>inputlead
    { get;
    set; }
            [Output("TaskCreated")]
            [ReferenceTarget("task")]
    public
    OutArgument<EntityReference>
    taskCreated { get;
    set; }
    code:
                try 
                Entity lead
    = (Entity)service.Retrieve("lead",
    context.PrimaryEntityId, new ColumnSet(newString[]
    { "new_mtcdate" })); //  (unable to
    retrieve the mtcdate)            
                      Guid leadId
    = this.inputlead.Get(executionContext).Id;
                    if(lead.Contains("new_mtcdate"))
                      {  DateTime date
    = DateTime.Now;
                          DateTime mtcdate
    = (DateTime)lead["new_mtcdate"];
                          TimeSpan elapsed
    = date.Subtract(mtcdate);
                          double days
    = elapsed.TotalDays;
                          Entity task
    = new Entity();
                          task.LogicalName = "task";
                          if (days
    == 5)
                          {task["subject"]
    = "Five days more for the Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));}
                          if (days
    == 3)
                          {task["subject"]
    = "Three days more for the Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));}
                          if (days
    == 0)
                          {task["subject"]
    = "Today you have Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));
    Regards, Rekha.J

    Hi,
    Try with replacing
    Entity lead = service.Retrieve("lead", context.PrimaryEntityId, new ColumnSet(new string[] { "new_mtcdate" }));
    also make it confirm, you are getting EntityId.
    Also check  Link

  • Custom workflow for Fiori Approve Timesheets

    Hello All,
    I am investigating complexity of adding custom workflow to Approve Timesheets.
    There is BADI SRA010_BADI_TIMESHEET_APV.
    Any experiences/advices  ?

    Hi Lukasz,
    How do you change approver using data from Ztable in the current system?
    If you are talking about workflow approver determination logic, it is a job for Workflow Engine and not for Fiori.
    Regards, Masa
    SAP Customer Experience Group - CEG

  • Custom Workflow for User Requirment

    hi ,
    i am creating a workflow for which is custom .
    i have 1 module pool program where i have 7 fields.
    User can create the data and save it .
    once he save the Data the workflow should trigger.
    i have created a Z business object wherein i have created 4 key fields and 3 attributes according to data in the custom table
    the BO has no supertype. and created 1 event save
    now my question is where should i write the code for triggering the workflow on the save of the entries in the module pool program. and i am also i am responsible for showing the approver in the table after the decision is taken in workflow activtiy
    please suggest
    Thanks on advance
    Chitis

    Hi,
    Even i haven't worked on such requirement.
    I know how to trigger a workflow or start a workflow through customization.
    But i like to know in case of module pool programming where I am supposed to write the code?
    Whether in PAI or PBO or anywere else?
    Let us know.
    Thanks,
    Raj

  • Custom Workflow for Shipping Execution

    Hi All,
    We have a requirement to cater approval on issuance i.e. at the time of shipping execution. For this purpose we have used Oracle Workflow Builder to cater the requirement. The workflow is working fine for approval but not for rejection. If we approve the shipping execution, the transaction is working fine but if we rejects it, the shipping transaction got stuck with exception and if we resolve the exception manually, we are unable to re send it for approval or even shipping.
    I will be grateful if anyone can help me out and advise me on how to setup of workflow for rejection.
    Thanks in advance.
    Regards,
    Zulfiqar Ali Mughal

    It is possible that the workflow has already been registered in db before you modified workflowActivities.xml.Did you try cleaning up workflow tables and restart the server??
    epub_workflow_info, epub_coll_workflow, epub_ind_wf,epub_wf_server_id tables
    Make sure there is only one entry for each workflow in epub_workflow_info. If there are multiple entries, then it may be coming from 2 different places and you need to disable one of them. Whenever you create custom work flow, copy the existing workflow and modify it and give it a different name. If you are importing programmatically, you really dont need to configure it in taskConfiguraiton.xml ( as it corresponds to settings related to which item-descriptors, tabs, security in BCC gui).
    -karthik

  • Standard Workflow for ESS changes.

    Hi Experts,
    We have a requirement where we need to change the Employee personal data and it has to be approved by the manager and then update the database.
    We can do it by custom workflow, but is there any standard workflow template for this process and any standard screens for Manager approval process.
    Kindly help. Thanks in advance.
    Regards
    Vijay.

    go to swo3 and find related bo, then go to swe2 to find workflow according to bo

  • Workflow for material changed

    Hi Gurus,
    I would like to implement a workflow with a mail which wil be triggered whenever a material is changed.
    I have created a workflow using SWDD..How can I link this workflow to Material change transaction(MM02)..
    I am new to this workflow...Pls help me...
    Thanks in advance...
    Regards,
    Saj

    Hi,
    you need to create an event for your change document  BOR 1001006 thru SWEC.
    create a similar event in your BOR Event and use this event in the Basic Data of your WF.
    So whenever a material is changed your event would trigger your WF.
    Hope I am clear,
    any issues reply back to this thread.
    Aditya.
    P.S
    just a suggestion, could you put in your name instead F1 (as I like referring to names, though I just address all by initials) offcourse no hard n fast rule,
    but since its a <b>wonderful Forum</b>, lets know each other .
    Well my friend I still have no issues with your Display Name, it was just a thought.

  • LPM Custom URL for Force change password

    Hi All,
    I have configured LPM in OAM Identity Server, In the password policy i have given the custom URL of my application for the change password screen after resetting the password.
    The issue here is... When the user tries to login with the new password (resetted password) it is not redirecting to the force change password page...

    I am having a similar issue with getting this feature to work.
    I have the Force Change Password on Next Login checked, and I'm using (just for testing purposes) the amadmin account as the Bind DN.
    Then when I configure a secret question for a user account, and change the password, then log in with the new password, I go to the configured "Default Success URL", and I am never forced to change my password.
    Does anyone know what the expected functionality is when this does work?
    I'm working with Identity 6.1 on a Solaris box.
    Thanks for your time.
    chris

  • Workflow for salary changes

    Dear All,
    Do we have workflow process for element entry changes?
    Regards
    Stalin G

    Hi Stalin,
    Element entries cannot be entered/updated by employees, so there's no WF on entries.
    But there is one for Salary change(based on Salary basis).
    Cheers,
    Vignesh

  • Customized report for BOM changes

    Hi PP Gurus,
    My client is not having ECM. he want to create one Z report for BOM changes. I checked tables MAST, STKO, STPO, CDPOS and CDHDR. In CDPOS I can see replaced component and replced quantity. But if I deleted any component or inserted any new component I can not see this in any table. Please suggest me how can I track such changes without ECM.
    Jayesh Narvankar
    SAP PP

    Dear ,
    You can try to develope a report with the help of you ABAPer with following FM /BAPI :
    CSAP_MAT_BOM_MAINTAIN
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN
    CSAP_MAT_BOM_CLOSE
    Refer this experts theards on this issues : Deletion of BOM item using BAPI/FM
    If you need to go ahead with ECM , you refer  our earlier posting in the same issue :
    Changes in Production Orders
    Regards
    JH

Maybe you are looking for