Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Bapis for Workflows???

Former Member
0 Likes
744

Hi All,

I am a HR functional consultant and have absolutely no clue bout technical stuff..

so i have a doubt which i hope to clarify in this forum....

just like u have bapis/rfcs for certain infotypes...do u have bapis for standard workflows aswell?

actually the requirement is we have to use only bapis/rfcs to update SAP in our project...so how do we go about updating SAP for workflows

thanks in advance

HrBuddy

3 REPLIES 3
Read only

Former Member
0 Likes
486

Hi,

I don't understand your query properly. The business Objects that the workflow tasks in turn use, actually call some standard BAPIs only. A work flow is not basically for updating some sap data, but to represent a flow of business process.

Can you explain your query in more specific terms?

Regards,

Ravi

Read only

0 Likes
486

i am sorry for the ambiguity...the situation is we have a 3rd party tool which uses SAP as a backend. in which some workflows are in place...but they are not updating SAP directly...we have an administrator who manually updates SAP. thats because i am told that we dont have required Bapis.

so now inorder to completely automate and remove the role of an administrator...we are looking at some workarounds.

Read only

0 Likes
486

Hi,

Your query is not very clear. Still following are some points regarding Workflows as well BAPI both.

Workflows are meant to automate one complete scenario. Here automation more off means with or without involvement of people in organization, the scenarios can be automated. E.g. it can involve the approval process of a given scenario at different steps automatically. Also it can involve some defined steps to be carried out automatically on certain actions. E.g. on material create action, trigger workflow to inform inventory dept that new material is created.

Now coming to BAPIs, BAPIs are RFC enabled function modules. They are part of Business Object. Business Objects are used to trigger workflows by their events. So inurn both BAPIs & Workflows are always linked. It is just that you will have to add these BAPIs in your workflow tasks. And provide the necessary input parameters via workflow.

What all you will need is - 1. Plan out on which scenario of your business you want workflow

2. Is there is any standard workflow for that scenario. If yes then see if you can directly use this workflow. If yes, then your problem is sorted out.

But if you can't use std workflow then crate a custom workflow with super type as std workflow. Now add whatever extra functionality you want to add here.

3. If there are no std workflows then you need to create a custom workflow, which involve following steps -

a. Create a custom BOR Object using SW01.

b. Create an event in this BOR which will trigger the workflow

c. Create methods in BOR using BAPI as template function modules.

d. Raise this event on whichever action you want workflow to trigger using function module SWE_EVENT_CREATE. This may involve modification to std code if there are no exits available. If you are using exits, make sure you are using your method in update task mode.

e. Now create workflow using this BOR and its event.

Hope this should have cleared some points of yours.

PS If the answer solved your query, plz close the thread. Also plz reward points to everyone who responded you.

Regards