cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to trigger workflow from the html

Former Member
0 Likes
358

Hi Gurus & Experts,

I have to trigger a workflow through portal html. How can I do this?

My work scenerio is as follows ..

When an employee goes to an ess screen and opens the open enrollment form of benefits. he will be displayed with a list of insurance plans.

If he chooses a new plan which he is not enrolled, the screen throughs another screen showing to add the selected plan. Here

present situation is --- that screen directly updates the r/3 infotype through its server.

Required situation --- when the person adds the new plan a new pop up as to be triggerred with yes or no button. If he press yes, workflow as to trigger for an approval first then update the datbase infotypes in r/3

Can anyone help me with following questions

1. How to create a pop up in html

2. how to trigger a workflow when the employee press yes button in pop up window in html.

Please help me.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

I forgot to say one more thing that we use gui with html . sap 4.6c.

Coonecting to html screens is done through ITS server.

I dont know how do we pass data from html pop up screen to ITS Server to trigger a workflow.

How do I write coding for the POP Up window with two buttons yes or no to display in html when some one press on submit for enrolling into a new plan?

How do I receive the response and trigger my workflow for approval when some one press yes button in the pop up window?

martin_nooteboom
Active Contributor
0 Likes

Did you try posting these questions in the forum? I think you will have a better chance of getting your answer than here. I don't think there will be many HTML programmers in this forum.

Regards,

Martin

Former Member
0 Likes

I am not sure I am on the right track or not but I thought of posting this in case it helps. I did similar work few months back with help of portal team.. There are some WAPIs SAP_WAPI* . The WAPI SAP_WAPI_CREATE_EVENT can be used to trigger an event in R/3 and hence the workflow. Now how do Portal and R/3 talk to each other I am not sure may be thru XML files as Martin told us. this where the portal team came into the picture.

Hope this helps u in some way

Martin: Can you please share some material or useful links on the communication between R/3 and Portal ?

Regards,

Anuj Sethi

martin_nooteboom
Active Contributor
0 Likes

Hi Anuj,

What I am referring to is not based on communication between the Portal and R/3, but from outside of R/3 to R/3. So it could be any web application. When you use the WAPI from the portal I think it will use a RFC connection to communicate to R/3.

For more info on the XML communication check the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/9b/9f9138d380f50fe10000009b38f8cf/frameset.htm">SAPHelp</a>. Also check all the references in there.

In very short words you need to put a webtask in the workflow to receive the XML and activate the workflow_xml service in SICF to process the incoming XML. This is the solution with a very rough short-cut so there is more, but it is in the SAPHelp. Also some time ago there was a question about this communication, I don't know if there is more info in there but worth searching for.

Regards,

Martin

martin_nooteboom
Active Contributor
0 Likes

Hi,

I am not sure ho you could trigger it from HTML, but you could use another option. Update the infotype, but lock it. Then you can raise an event on the infotype and after approval unlock the infotype in the workflow.

The only way I know you could trigger a workflow is using an XML file which you send to the system. But then you need at least an WAS 6.20 and you need to configure a workflow so it could be started by a XML-file.

Either way it will be some work.

Regards,

Martin