Skip to Content
0
Former Member
Aug 30, 2007 at 07:28 PM

approve/reject writing values to database

19 Views

Hi experts,

Has anybody done workflow set up when the ESS user modifies his family/dependent data through portal?

below are my observations, i am not sure whether workflow configuration is really possible or web dynpro service has to be enhanced!

The business object FAMILY has a method APPROVE.

we are trying to configure workflow for Object Type FAMILY. The Object Type FAMILY has a method APPROVE: unlock family. This contains the API function : BAPI_FAMILY_APPROVE. I do not know whether I can use the method APPROVE to get Approve/Reject outcomes. we see the following outcomes in tab OUTCOMES,

<b>1. Operation performed successfully

2. Operation performed with errors

3. Instance does not exist

4. Processing obsolete</b>

as possible outcomes of step. Are these coming from BAPI_FAMILY_APPROVE?

I want to create two links Approve and Reject in the step so that HR Admins approves it through UWL. So, when APPROVE link is accessed, changes on HR family members are written to database. reject means no writing. the above outcomes can be used for this functionality?

Below is the documentation for BAPI_FAMILY_APPROVE.

-


You can use this method to unlock a Family/Related Person record (0021).

It enables you to implement the "double verification principle" in conjunction with the REQUEST method. According to this principle, at least two users must take part in writing an active record to the database. One user creates a locked record using the REQUEST method. The other user unlocks or 'activates' this record using the APPROVE method.

Notes

Messages are transferred to the RETURN parameter. The relevant parameter documentation contains the return values and their meanings.

The key fields used by the method are described in the parameter documentation.

You can use this method only if you have called the ENQUEUE method of the business object EMPLOYEE beforehand. For more information on the ENQUEUE method, read the documentation on the function module BAPI_EMPLOYEE_ENQUEUE.

For more information on the REQUEST method, read the documentation on the function module BAPI_FAMILY_REQUEST.

Parameters

EMPLOYEENUMBER

SUBTYPE

OBJECTID

LOCKINDICATOR

VALIDITYBEGIN

VALIDITYEND

RECORDNUMBER

NOCOMMIT

RETURN

Exceptions

Function Group

PFAM

-


Any helpful answers will be greatly appreciated