Skip to Content
author's profile photo Former Member
Former Member

lauching webdynpro java application

hi gurus

our scenario is like this..

when employee fills the educational assistance form (customized webdynpro java application) and clicks on the submit button , it should go for approval..while manager opens the workitem it should lauch the same WD form in display mode with approve and reject button. and when he approves ..it should update the data base & it should sends a intimation mail to the employee that his application has been approved...

MY QUESTIONS :

1) how to trigger a event from WD java application to start this workflow ...

2) how the values can be passed from WD application container to workflow container .i got some ideas by reading some forums for this i want to use SAP_WAPI_READ_CONTAINER , where i want to use this function module

3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step, how it can be achieved ?

4)what all r the other settings i want to maintain .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2008 at 12:30 PM

    3) it is better to use the user decision step for the approval process ? . if i am using this then i want to send the form as a attachment in user decision step, how it can be achieved ?

    I would definitely prefer to open a form with "Approve" and "Reject" buttons instead of having it as an attachment in a user decision step. Especially if it is a application where a user never approves without opening the attachment. For example i may not prefer to approve a leave requisition without viewing it! In that case it will just be an overhead for the user to open the form manually everytime before approving. So make a decision on this based on the use of your application.

    Moreover it is not that tough either (atleast from a workflow perspective) to launch the webdynpro from UWL. Create a custom task and create appropriate entries in transaction SWFVISU (hope you are on or above ECC 5.0) to link your task and WD application. Thats it your application should be ready and shud be launched from UWL.

    But definitely in a custom application your webdynpro developers need to do a lot of work (as we did one in our previous projects) irrespective of whether it is launched directly as a task or as an attachment.

    Performacewise providing "Approve" and "Reject" will just increase one RFC call from your application (to complete your workitem).

    Thanks,

    Prasath N

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Not sure if this thread is still valid.

      whether i want to get all the data's back to workflow container then i can do the updating process via activity(background processing) or else directly we can update from WD coding in the data base via RFC calls,

      You need to write the data into container using RFCs only. Inside your RFCs you might call SAP_WAPI_WRITE_CONTAINER to write the data into the container. If the task is not synchonous then you might pass the data through the terminating event to the task and then to the workflow through binding. In either case you need to call RFC's from your webdynpro applications.

      Off-Topic

      and also i am favourite for ur blogspot . in that sampling technique is very impressive

      Oops! never thought i will get a comment on SDN about my personal blog 😊

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2008 at 09:47 AM

    Hi,

    1) From your web dynpro application you need to call a remote enabled function module (like always, if you want to interact with the backend) and in this function module you call either a function module that raises an event (which will then start the workflow) or starts the workflow directly. There is a standard function module for both cases.

    2) With both the function modules that I mentioned in answer for 1) you have a possibility to add data into "a container".

    3) This is really up to you, and the requirements. Maybe it will be better to develop a custom application for this, if you anyway need to show the "form" for the approver.

    4) If this a totally custom scenario, there will be LOTS OF custom development to be done. You'll need to build a custom BO or class, and methods/function to update the database, etc... Or other option is to build this with an ISR notification.

    These were just general guidelines. (To give you detailed instructions would take for ages...) I hope this helps.

    Regards,

    Karri

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi Karri Kemppi

      Thanks for u r immediate replay , sorry for late replay from my side .

      u have mentioned about ISR forms , our functional consultant's r working on that , i am very new to ISR . from our workflow side what all the things i want to note it . event trigeering mechanism is similar or different ? what is BOR i want to use for that ...

      regards

      surya

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.