Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

Link Employee to OrganisationalUnit via code

$
0
0

Hello C4C heroes,

 

I'm receiving some Employees via WebService, as part of a employee integration. PI sends me requests like this one:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">

  <soapenv:Header/>

  <soapenv:Body>

      <glob:EmployeeWSCreateRequest_sync>

         <BasicMessageHeader/>

            <EmployeeWS>

               <WS_EmployeeID>996000</WS_EmployeeID>

               <WS_RegionalCodigo>505</WS_RegionalCodigo>

               <WS_LojaCodigo>996</WS_LojaCodigo>

            </EmployeeWS>

      </glob:EmployeeWSCreateRequest_sync>

   </soapenv:Body>

</soapenv:Envelope>


There are some other fields that were ommited for brevity. So I have this WS_LojaCodigo, that is the code of a specific store. Based on that, I need to retrieve the OrganisationalUnit with the same code and link the Employee to this Unit.


I'm attempting to do this on the Employee's Event-BeforeSave.absl.


How can I achieve this on the Employee's BeforeSave event? Or is it possible at all?


Thanks in advance!


Best Regards,

Fernando Alves


Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>