Workflow Dialog Step from WD ABAP.

Hi Friends,
I want to display User Decision steps / Dialog Step (where user can approve/reject )from my WD application . I was trying with the FM "SWL_WI_EXECUTE" and "SWL_WI_DISPATCH" but both are giving Null Pointer Dump. I debug and found that there is some problem which it generating HTML file .Has anybody any idea .
Thanks In Advance.
Satya

Hi Satya,
I am using the same FM SAP_WAPI_DECISION_COMPLETE for approving/rejecting from within my WDA application. I dont see as to why this should not be working for you.
CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
    EXPORTING
      workitem_id          = im_workitem_id
      language             = sy-langu
      decision_key         = im_decision_key
   IMPORTING
      return_code          = ex_return_code.
Here the decision key is a value which my workflow consultant had provided me. (In my case its like 0001 for approval, 0002 for rejection & 0003 for sending back the form to the initiator.)
Regards,
Uday

Similar Messages

  • PO Release workflow: mail and Sub workflow/Dialog step related issue

    Dear All,
    I have crated a two step work flow for release of  purchase order with two release code X & Y.Creator C1 creates PO.A mail is trigger to X&Y .In first step  X release the PO.
    Then Notification send to C1 & Y that the Release of 1st step is effected.Then Y releases it and a mail of completions is sent to C1 .(Structure is as follows: Po creation ->Mail to XY->
    X releases(PO release)->Mail toC1 &Y->Y Releases->Mail to C1&X->Workflow complete).My workflow works fine but have following problems.
    1) System gives the three stages mail properly.But after completions also generates 2nd stage mail(Mail toC1 &Y).I have used "process control"at the end but
    still the mail reoccurs.How to control it?
    2) Two types of messages appears in the SAP business w/p of user.Sub work flow and dialog step.4 mesgs appears in the sap inbox of X & Y .2 of
    Sub work flow & 2 of Dialog step.How can i control it .Can i set 1 out of them?
    3) After completion ,work flow log shows two Graphical Workflow Log.One is completed and other up to stage ->Mail to XY-> How to clear this
    4) Organization plan is always must? or w/o that we can proceed?
    Pls Guide
    Regards
    Sachin

    Hello Rick,
    Sorry for any inconvenience caused.Intension is only to get quick focus from experts.
    I have redrafted my query .Please check
    I have crated a two step work flow for release of purchase order with two release code X & Y.Creator C1 creates PO.A mail is trigger to X&Y .(Structure is as follows: Po creation ->Mail to XY->X releases(PO release)->Mail toC1 &Y->Y Releases->Mail to C1&X->Workflow complete).My workflow works fine but have following problems.
    1) Reoccurring of 2nd stage mail.How to avoid this?At the end i  used"process control" with "outcome name=work flow completed.
    2) Two "work item type" message apeears in the out box of PO creators(sub)work flow and Dialog Step.Is this a standard or I need to correct it?
    3) After completion ,work flow log shows two Graphical Workflow Log.One is completed and other up to stage ->Mail to XY-> How to clear this
    4) Organization plan is always must? or w/o that we can proceed?
    Sachin

  • Purchase Order Workflow - dialog step not receiving terminating event

    Hi,
    We have a scenario wherein based on the release groups and release strategies, different peope need to release the PO's.
    I have been able to develop the workflow for this successfully, but here is where I am facing an issue.
    After the PO has been created, based on the release group and strategy, it gets routed to the appropriate 1st approver. On their approval, the PO gets routed to the 2nd approver. Once the 2nd approver approves, the dialog step doesnt get completed and is still waiting for the terminating event. Event trace shows that the event is getting published, but there is no workitem to receive the terminating event. I am not sure why this is occuring for only 2nd approver onwards whereas for the 1st approver, the terminating event is received by the workitem.
    I am using start conditions for my workflow to ensure only 1 instance of the workflow is triggered for a rel groups and rel strategy and release code, else I am multiple instances each time an approver approves the PO. I am not sure if the start conditions are causing this issue with the terminating events not being received with the workitems.
    Any assistance is welcome.
    Thank you,
    Satish

    From the information provoided it seems you are using PO that is subjected to Release of PO for multiple Release Code and each Release Code Release is being done by one approver. If that is the case then I think the Terminating event should get caught. Please check whether the Terminating event that is getting triggered is specific to the Release Code or not.
    Thanks
    Arghadip

  • Workflow approval step from mobile

    Hi,
    The requirement is to create a mobile application which user will launch from mobile desktop and within this application they can navigate to the functional component. eg. SAP workflow inbox . and further incorporate screens in the application.
    I am totally starter so I am looking for basic steps / useful links / any inputs.
    thank you in advance,
    B

    Hi,
    I have found some useful blogs and I am following [link1|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0baafd6-52fa-2910-c6a8-fbb9399cb4ab?quicklink=index&overridelayout=true] and [link2|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1042d3cb-dff0-2910-19bf-bd87be307999?quicklink=index&overridelayout=true]
    But here, I dont know how to install MI Client
    Could anyone please provide input how to get the setup file and installation steps ?
    thank you
    B

  • Workflow Dialog step

    Hi,
    Can anyone help me with this design?
    I want to be able to send a workitem to a user, which contains links to two different transactions, with an adobe form attachment.
    Is this possible at all?
    Cheers
    Michael

    Hi Michael,
    It is possible.
    You can give as many attachments as you want which will take you to the required transaction.
    1, Open the task (acitivity step) which is used to send workitem (TSXXXXXXXXX).
    2. Go to CONTAINER tab, and add the business object (BUSYYYY) which you need as attachment. This business object should also be present in your workflow.
    3. In the binding of task container with workflow container. Pass the business object from workflow container(BUSYYYY) to task container (BUSYYYY).
    4. If you add 2 business objects in task container and do correct binding you will see 2 attachments for a workitem.
    5. Forms are attached to attachobjects.
    Try this out and let us know if you face any problem or let us know if you get any solution.
    Regards,
    Gautham Paspala

  • Calling separate LSMW steps from ABAP program

    Hai all,
    anybody know if I can call sepearte LSWM step from a ABAP programm,
    I only need to:
    Specify Files
    Import Data
    Convert Data
    Create Batch Input Session
    Run Batch Input Session
    Need this steps so i can provide backoffice user a tool which imports data using  predefined  LWSM.
    Grtz
    Richard
    Edited by: Richard van Veen on Jun 7, 2010 1:15 PM

    I made a lsmw and after completing all steps i tested step 080/100/300 and 310 from se37, it seems to work fine, i will update when completed
    010      Maintain Object Attributes       OBJ     /SAPDMC/LSM_OBJ_ATTRIBUTES
    020      Maintain Source Structures      OBJ     /SAPDMC/LSM_OBJ_SOURCE_STRUCS
    030      Maintain Source Fields OBJ     /SAPDMC/LSM_OBJ_SOURCE_FIELDS
    040      Maintain Structure Relations     OBJ     /SAPDMC/LSM_OBJ_STRUCT_RELATNS
    050      Maintain Field Mapping and Conversion Rules OBJ     /SAPDMC/LSM_OBJ_FIELDMAPPING
    070      Maintain Fixed Values, Translations, User-Defined Routines    RUL            /SAPDMC/LSM_RUL_ADMINISTRATION
    080      Specify Files    OBJ     /SAPDMC/LSM_OBJ_FILES_SPECIFY
    090      Assign Files      OBJ     /SAPDMC/LSM_OBJ_FILES_ASSIGN
    110      Import Data     EXE     /SAPDMC/LSM_EXE_READPROG_RUN
    120      Display Imported Data DSP     /SAPDMC/LSM_DSP_READ_DATA_SHOW
    130      Convert Data   EXE     /SAPDMC/LSM_EXE_CONVPROG_RUN
    140      Display Converted Data           DSP     /SAPDMC/LSM_DSP_CONV_DATA_SHOW
    300      Create Batch Input Session      EXE     /SAPDMC/LSM_EXE_BI_PROGRAM_RUN
    310      Run Batch Input Session          EXE     /SAPDMC/LSM_EXE_BI_SESSION_RUN
    600      Frame Program for Periodic Data Transfer      EXE     /SAPDMC/LSM_EXE_INTERFACE

  • Dialog Step Number at SAP Workload Monitor (ST03)

    Hi.
    We want to get a number of today's dialog step from SAP.
    I know we can get a this number at ST03.
    If we want to get a number from outside SAP, Which function module at SAP can return this number ?
    Any idea ?
    Regards, Arnold.

    Hi,
    - goto ST03N
    - choose Expert Mode
    - on workload section (top left), choose you server (or you can choose total too) and period (on your case select day)
    - choose today
    - on the right, tab frontend, the first column (#steps) will show you the number of dialog step performed by each user/ terminal.
    - if you choose instance tab, the first column (#steps) will show you summary the number of dialog steps on that server (or total)
    from SAP Help (F1)
    description of #Steps field :
    SAP Workload: Number of Steps
    Number of transaction steps in the SAP System.
    In a dialog task, one transaction step corresponds to a screen change; a request executed by the R/3 System for a user.
    A background job can consist of one or more transaction steps, if several job steps are processed.
    An update request triggered by a call from the dialog or the background corresponds to one transaction step, even if several updates are processed.
    Several print requests are usually processed during one spool step.
    The R/3 kernel generates a statistical entry for each transaction step; you can analyze the entries using the business transaction analysis.
    hope it help you.
    rgds,
    Alfonsus Guritno

  • Dialog step

    hello,
       Do u know Dialog step ?
      Thank you.

    A dialog step from a program is assigned to a single work process for execution.
    The individual dialog steps of a program can be executed on different work processes, and the program context must be addressed for each new work process.
    A work process can execute dialog steps of different programs from different users.
    a work process must open a separate datables LUW for each dialog step. The work process sends a commit command (database commit) to the database at the end of each dialog step in which it makes database changes. These commit commands are called implicit database commits, since they are not explicitly written into the application program.
    Have a look at below link for details:
    [Application Servers|http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2e8a358411d1829f0000e829fbfe/frameset.htm]
    I hope it helps.
    Thanks,
    Vibha
    Please mark all the useful answers

  • Excute workflow from step 3 by abap code

    hI,
    i want to excute workflow from step 3 by abap program. My workflow send mail from approval at 3 step.When approval is made then it will go for further processing.
    please give me code if possible.
    Regards,
    Gurprit
    Message was edited by:
            GURPRIT BHATIA
    Message was edited by:
            GURPRIT BHATIA

    hi Guprit,
    based on my experience you must trace why your workflow is wait.
    is it because the workflow is waiting for certain events ?
    or is it because of an error occured in the step 3 of the workflow ?
    if the worfklow is waiting for certain events, you can force it to continue with triggering the events that workflow wait ( transaction code SWUE )
    if an error occured in the step 3 of the workflow, you need to trace it what kind of error .... and for certain case after you fix the error you can continue the workflow by using tcode SWPR and restart the workflow after error.
    but unfortunatelly based on my experience, some times the workflow just stuck in the middle of the process and no error occured
    it this happens, ussually i re-triggered the workflow
    hopes it helps
    cheers

  • ABAP OO class-based workflow, wait step

    Hello,
    I'm hoping someone is able to help me.  I've implemented a class which triggers a custom workflow through a custom event of the class.  At one point during the workflow I want to use a wait step that waits for another custom event to occur.  I've created my second event which I want to trigger from an ABAP ALV Grid report for users, that will allow them to select the specific workflows to trigger this event for.  My problem is, I am having trouble figuring out how to find the correct object instance of my class from within the ABAP program and trigger the event specifically for that instance, so that the workflow can continue and eventually complete.  I have implemented the IF_WORKFLOW interface and up to this point the workflow is functioning correctly.
    Thanks,
    Leslie

    Hello,
    Sorry, not sure where my brain was. Actually I do know: at two clients with projects going live this month, so apologies for a rushed and inaccurate response. It's CL_SWF_EVT_EVENT.
    Jocelyn's blog I referred to includes a code sample using the same class on how to raise an event with an object key.
    Regarding your second question: No you don't need to do any binding. Just use an instance of your object and it will wait for an event with the same key. The WF part is very straightforward and works exactly like BOR, it's just raising event that can't be done with the WAPI.
    Cheers,
    Mike

  • Call / trigger an ECC workflow step from PI ?

    Hi,
    For a flow "ext (file) -> PI -> ECC (workflow)", from PI, I need to run / execute / trigger () a workflow step in ECC, which already exist. I think that I can acheive this by creating an abap proxy in ECC in which I will call a Bapi or Method to run / execute / trigger () this workflow step. I don't know exactly how for the moment (in parallel I'm doing search about it), but that's not the matter.
    before to waste time by searching in this way, what's the best solution to call an ECC workflow step from PI ?
    Many thanks.
    Mickael
    (*) maybe I don't use the good terminology. Sorry.

    hi Shabarish,
    I'm confortable with web service, IDoc, RFC/bapi and abap proxy (and ...), but here, I prefer to use abap proxy (asynch + sxmb_moni in ecc) except if there is another better approach
    else as in PI we have ccBPM, so a workflow , as in ECC we have also workflow , does my approach (abap proxy & call method) is the good one ? or is there a better way between these two workflow tools: PI + ECC ? like a standard "workflow module" or a workflow "connexion" ? (I fear I know the answer but I would prefer to be sure),
    Note: I'm in PI 7.11 SP06 and ECC 6.0.
    Regards.
    Mickael

  • Trigger an workflow from webdynpro abap.

    hai
    gurus!
        iam new to webdynpro.iam femilier with workflow . can anybody explain me with an clear example, how to trigger an workflow from webdynpro abap.
    regards
    rose

    Hi Rose
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click</a> Here, to know the step by step procedure of using Webdynpro in Workflows
    Use SAP_WAPI_START_WORKFLOW RFC
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • Formula to calculate SAPS from dialog step

    Hi All
    Can anyone let me know the formula to calculate SAPS from dialog steps
    Regards
    Brijesh Prasad

    Hi
    you may use material quantity calculation to achieve this. Have a look at the help files: http://help.sap.com/saphelp_erp60_sp/helpdata/en/05/603bc6462311d182b50000e829fbfe/frameset.htm, then Process Orders > Material List Components > Material Quantity Calculation. See the "Example: Calculating Product and Component Quantities".
    Good luck
    Eivind

  • Workflow for restart from a step

    Hi,
    I have created workflow. I have decision step and after decision step one more method calling BDC .if error occurs in BDC
    i want to restart from decision step .
    How to achieve this .
    Can any one help
    Regards,
    Madhavi.

    Hi Madhavi,
    You can try the transaction code SWPR - it doesn't restart the workflow, it resumes from where it stopped.
    Else, you can also start new workflow through SWUS with the same object key and change wf_initiator accordingly.
    Thanks,
    Anusha

  • Creating a Step for Background Job from within ABAP Program

    Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)
    Step-2:  Trigger a Unix Command to ftp the file to other server.
    Both Step-1 & Step-2 can be done from SM36. 
    Another Scenario:
    Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.
    Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom.    [ Here lc_unixcom has the External Command ].
    Any ideas??? Appreciate help.

    Hi,
    For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.
    For external commands, this should be done only by calling JOB_SUBMIT function module.
    Sandra

Maybe you are looking for