cancel
Showing results for 
Search instead for 
Did you mean: 

Leave request integration with Android using SAP PI

Former Member
0 Kudos

Dear Gurus,

Hope you all are good. I am suppose to work on one integration scenario. Basically, it is the integration of SAP ECC with android using SAP PI. The scenario is that a higher management person will enter his employee ID through mobile device. After entering it, all leaves, that are pending for approval or rejection, will be displayed to his mobile device. Than from mobile, he will reject or approve the leaves. The status will be updated in ECC and an acknowledgement will be sent to his mobile.

All this should be done through Web service. I am not expert in PI so i have some confusions about it. i am thinking that first i write a BAPI which will receive employee number and give output of pending leaves. This will be SOAP to RFC. In this, when a manager will enter his employee number, all pending leaves will be displayed to him. But how can i do the next step? In which the manager will approve or reject the leaves that is being displayed to him? If you understand the whole scenario, kindly tell me how this 2 steps process can be done through SAP PI web service.

Thanks in advance

regards

Accepted Solutions (0)

Answers (2)

Answers (2)

gagandeep_batra
Active Contributor
0 Kudos

Hi Imran,

what you can do is

you can go for create  two sync operations with one general interface.

one will be for  display the leaves and other will update the status

Regards

Gagan

Former Member
0 Kudos

Dear Gagandeep,

i would be very appreciative if you kindly explain more about this. 2 sync operation with one general interface.

regards

gagandeep_batra
Active Contributor
0 Kudos

Hi Imran,

what you can do is:

you have one web service which have two operations:

Like

DisplayLeaves and Updatestatus

you have to create one web application which first call the DisplayLeaves operation of your  web service which intern trigger the message to PI and Pi will send this message to SAP ECC & then ECC will return the available Leaves. to PI and PI to web service & web service to your application

& then

in another scenario

call Updatestatus from your web application  which send your update status message to pi & pi to ECC & ECC will acck.

Hence

You have two syn scenario

SOAP to Proxy or RFC

Regads

gAGan

Former Member
0 Kudos

Dear Gagan,

Thanks for your reply. So for this, do i need to make 2 WSDL's or one? IF it can be done in one WSDL, how could it be done? will i make 2 outbound and inbound interfaces for this? Currently, i am thinking to make 2 WSDL. One will display the leaves and other will update the status in ECC and acknowledge. If it can be done in one WSDL, how can i do it??

Regards

Former Member
0 Kudos

Hi Imran,

The second step could also be done using a SOAP to RFC scenario. You can use a BAPI to approve/request a leave request in the same way you can use a bapi

The decision of the manager will be sent to the BAPI using the web service, the BAPI can process the decision in the leave request.

Regards,

Victor

Former Member
0 Kudos

Dear Victor,

You mean that i have to create 2 WSDL's. One which will display the leaves and other will update the status and send acknowledgement? Am i right?

Former Member
0 Kudos

Hi Imran,

Creating 2 WSDL's is an option but you can also create one with 2 operations, one for data retrieval and one for update.

Regards,

Victor

Former Member
0 Kudos

Dear Victor,

Can you please explain little more how can i create one WSDl with 2 operations?You mean that i have to create massage interface and message mapping for both steps in one name space??

Former Member
0 Kudos

Hi Imran,

Please see the link below for more information about mulitple operations in one wsdl.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/04/03/setup-multiple-operations-scenari...

Regards,

Victor