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

Leave Request Create --RFC or BAPI

Former Member
0 Likes
1,551

Hi Experts,

I need a RFC or BAPI for create the leave request and that will trigger the workflow. Is there any standard RFC or BAPI, please mention me ASAP. That too the input Parameter is Pernr, Absence type and date.

Thanks in advance,

Regards,

Kiruba.R

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,306

Hi,

1. You need to assign a work shedule to the employee.

2. Before calling the BAPI, enqueue the employee using BAPI_EMPLOYEE_ENQUEUE and at the end BAPI_EMPLOYEE_DEQUEUE.

BR\Manas

10 REPLIES 10
Read only

Former Member
0 Likes
1,306

Hi Kiruba,

Try these BAPIs:

1. BAPI_PTMGRATTABS_MNGCHANGE or

2. BAPI_PTMGRATTABS_MNGCREATION

it may be helpful to you.

Regards,

Sourabh

Read only

0 Likes
1,306

HI Batwara,

When I execute the RFC am getting the following return messages.

I HRTIM00WS 009 Generate period work schedule FLEX for 2/06/01 in 04/2009

E PG 184 Employee/applicant is not locked yet

any idea pls.

Regards,

Kiruba.R

Read only

Former Member
0 Likes
1,306

This message was moderated.

Read only

Former Member
0 Likes
1,306

Hi

BAPI_ABSENCE_CREATE

Regards,

Naveen

Read only

Former Member
0 Likes
1,307

Hi,

1. You need to assign a work shedule to the employee.

2. Before calling the BAPI, enqueue the employee using BAPI_EMPLOYEE_ENQUEUE and at the end BAPI_EMPLOYEE_DEQUEUE.

BR\Manas

Read only

0 Likes
1,306

Hi,

First I execute the enque RFC, BAPI -No 000 Next I executed the BAPI_PTMGRATTABS_MNGCREATION .

I have received the return message as Attendance/Absence record transferred to posting without errors.

But the workflow is not yet triggered. I have checked in outbox.

Need a help regarding this issue.

Regards,

Kiruba.R

Read only

0 Likes
1,306

Kiruba,

Did you ever figure this out, we our having the same problem.

Thanks-OCUA

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,306

Did you use BAPI_TRANSACTION_COMMIT?

Read only

0 Likes
1,306

For BAPI_TRANSACTION_COMMIT what value do you use for the "wait" Parameter? and for the RFC target system?

Thanks-OCUA

Read only

0 Likes
1,306

BAPI_TRANSACTION_COMMIT was the final piece of the puzzle. Thanks for the information Tamas. The webservice now creates the absence.

Thanks-OCUA