Skip to Content
avatar image
Former Member

Leave request integration with Android using SAP PI

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 24, 2013 at 08:30 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 24, 2013 at 08:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Gagandeep Batra

      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