cancel
Showing results for 
Search instead for 
Did you mean: 

Employee approval before infotype is created

Former Member
0 Kudos

Dear all:

We would like to have an employee aproval before an infotype (objects in loa n) is created... We were thinking that the supervisor could create the blocked infotype throw MSS then the workflows sends the workitem to the employee where he/she approves it and the infotype is ublocked... would it be possible? Any other idea is also welcome

Any help will be greatly appreciated

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes this is possible. An alternative can be to create a Z table where you place all the entries created by the managers, and upon approval, the infotype records are created based on this Z table.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I think Workflow Approach is the best.

1. Create a Adobe form / Webdynpro Screen to enter Infotype(Loan) data.

2. Once Supervisor Submits, a workflow will be triggered. (You can use Workflow triggering function modules for this)

3. The next task in the workflow is Approval from the employee.

4. Once Employee approves then infotype data will be updated in the system.

Triggering workflow

Employee Approval

Database Update.

Hope this helps.

Pradeep.

Former Member
0 Kudos

Thank you! that was my first idea, the only problem is how to avoid that the infotype does not get created by the supervisor, he/she should create it blocked and then the employee would unblock it? how would you handle that part?

Former Member
0 Kudos

Hi,

If you use workflow, That will be Updated until employee approves the task.

That will work like this.

1. There will be 2 tasks in the workflow.

1. Approval Task --> Will be sent to the Employee

2. Update Task --> Will Update the infotype data in Database.

2. Workflow should be designed in such a way that if employee approves then only infotype data should be updated in the database otherwise it will not update the database.

No need to lock or unlock the records.

Other Approach would be like this. In this case no need to use workflow.

Steps.

1. Once Supervisor creates a record in infotype, then Infotype record will be created in the system with lock indicator(SPRPS) 'X'. And also System will send a notification to the employee.

2. We will create a report for the employee. That report displays the locked records of him from that infotype. In that report we will give him a provision to unlock that record/ delete that record.

3. After getting the notification, Employee executes the report and do whatever he wants meaning Unlock/Delete the displayed record.

From these two you can select which one you want.

Pradeep.

Former Member
0 Kudos

Thanks pradeep,

In the workflow approach, I dont think there is any workflow available to help me with, in the first task there should be a form where the supervisor enter the data, then in the second task I should create an abap logic or something so that that data creates an infotype?

Thank you again!

Former Member
0 Kudos

Correct..

Former Member
0 Kudos

Hi,

After entering the data in form when user saves the record create an Infotype record with field SPRPS equal to "X", This will create the locked record in infotype. The locked record won't be used for an y processing and neither it will be picked by LDP in any programs.

Once employee approves then set this field to space and that will unlock the record.

Thanks!

Former Member
0 Kudos

Thank you guys! any other idea to achieve this?

Best regards

former_member235056
Active Contributor
0 Kudos

Hi,

Create a workflow and plce it in abap sub-routine.

Please note that you need to have trigger created for calling event using function module for same and place this subroutine for relevant country grouping in a dynamic action for infotype.

Thanks,

Ameet