Activate services
Setup integration package
Authentication for S/4HANA Public Cloud
1. Activate services
Service name | Type | Description | Documentation |
JournalEntryCreateRequestConfirmation_In | SOAP | Service for synchronous journal entry processing in S4/HANA Public Cloud | Journal Entry API |
API_CV_ATTACHMENT_SRV | ODATA | Service for document attachment management | Attachments API |
API_COMPANYCODE_SRV | ODATA | Service for reading Company information | Company code API |
API_COSTCENTER_SRV | ODATA | Service for reading Cost Centers | Cost Center API |
API_FINWBSELEMENT_SRV | ODATA | Service for reading WBS elements | WBS elements API |
1. SOAP services
- Navigate to Communication Systems
- Click New
- Enter System ID and System Name
- Click Create
- On the new Communication Systems overview, enter the Host Name or System ID
- Navigate to the Users for Inbound Communication tab
- Click + and select New User in the pop-up window
- Enter the User name, Description and password
- Click Create
- In case of Client Certificate authentication:
- Click Upload and choose the file from local storage
- For Authentication Method choose SSL Certificate
- In case of Client Certificate authentication:
- Click Save
- Navigate to Communication Arrangements
- Click NEW
- Enter the details required:
- Scenario: SAP_COM_0002
- Arrangement Name: Arrangement name
- Click Create
- Choose the created Communication System created
- Go to Outbound services
- Switch off all Service Status checkboxes
- Click Save
- Copy and save the API-URLfor:
- Service URL
- Journal Entry - Post (synchronous)
2. OData services
- Go to Communication Arrangements
- Click New
- Enter the details required:
- Scenario: SAP_COM_0087
- Arrangement Name: Arrangement name
- Click Create
- Choose the in step 1.1 created Communication System created
- Click Saveto activate:
- API_FINWBSELEMENT_SRV
- API_COSTCENTER_SRV
- API_COMPANYCODE_SRV
3. Authentication for S/4HANA Public Cloud
- Within the SAP BTP subaccount level click Services and navigate to Instances and Subscriptions
- Click cf-api instance
- Click view credentials in the right window
- Copy and save values:
- Clientid
- Clientsecret
- Tokenurl
- Go to SAP CPI Monitor tab
- Click Security Material
- Click Create
- Choose OAuth2 Client Credentials
- Past the values (clientid, clientsecret, tokenurl) copied earlier
- Click Deploy
- For Basic authentication:
- Go to SAP CPI Monitor tab
- Click Security Material
- Click Create
- For Type choose User credentials
- Enter the details set up in step 1.1
- Click Deploy
- For Client Certificate Authentication:
- Go to Monitor/Keystore
- Click Add
- Choose Certificate
- Upload the certificate document
- Click Add
- For Basic authentication:
2. Setup integration package
Install integration package
- Within Design go to Integrations and APIs
- Click Import
- Select the Pleo Integration with SAP S/4HANA Public Cloud integration package downloaded
3. Integration package configuration
1. Within Pleo Integration with SAP S4/HANA Public Cloud integration package, navigate to Artifacts
2. Click the icon and choose configure for Create Parameter in Value mapping
- For Receiver, enter the following details:
- CPI_API_HOST: URL value from step 1.3
- Credential Name: Name of the OAuth2 Client Credentials deployed in step 1.3
- Click Deploy
3. Click the icon and choose configure for Create Company settings in Value mapping
- Under Receiver
- For R_CPI_API_Flowreceiver, Enter the following details
- CPI_API_HOST: URL value from step 1.3
- Credential Name: Name of the OAuth2 Client Credentials deployed in step 1.3
- For R_Pleo, enter the URL to the Pleo API Integration
- For R_CPI_API_Flowreceiver, Enter the following details
- Under More, provide the necessary company settings:
- CompanyID_S4: Company code from S4/HANA
- CompanyName: Name of company in Pleo
- CreatedBy_S4: Name of technical user in S4/HANA configured in step 1.3
- Token: API token generated for S4/Hana in the Pleo Account settings
- Click Deploy
4. Click the icon and choose configure for Create Account Settings in Value mapping
- Under Receiver, for R_CPI_API, enter the following details:
- CPI_API_HOST: URL value from step 1.3
- Credential Name: Name of the OAuth2 Client Credentials deployed in step 1.3
- Under More, provide the necessary company settings:
- Account_AccountsPayable: Vendor reconciliation account used in invoice and invoice payment journal entries
- Account_Pocket: General ledger account used for out-of-pocket, mileage and per diem journal entries
- Account_Reimbursement: General ledger account used for external and direct reimbursement journal entries
- Account_Wallet: General ledger account used for card purchase, refund and chargeback journal entries
- CompanyName: Name of the company in Pleo
- Type_Atm_Withdrawal: Type of journal entry in S4 for ATM withdrawals
- Type_Card_Invoice: Type of journal entry in S4 for card invoice
- Type_Card_Purchase: Type of journal entry in S4 for card purchases
- Type_Cashback: Type of journal entry in S4 for cashbacks
- Type_Chargeback: Type of journal entry in S4 for chargebacks
- Type_Direct_Reimbursement: Type of journal entry in S4 for direct reimbursements
- Type_External_Reimbursement: Type of journal entry in S4 for external reimbursements
- Type_Invoice: Type of journal entry in S4 for invoices
- Type_Invoice_Payment: Type of journal entry in S4 for invoice payments
- Type_Mileage: Type of journal entry in S4 for mileage claims
- Type_Out_Of_Pocket: Type of journal entry in S4 for out-of-pocket expenses
- Type_Per_Diem: Type of journal entry in S4 for per diem
- Type_Refund: Type of journal entry in S4 for refunds
- Click Deploy
5. Click the icon and choose configure for Create Tag Export Settings in Value mapping
- Under Receiver, for R_CPI_API, enter the following details:
- CPI_API_HOST: URL value from step 1.3
- Credential Name: Name of the OAuth2 Client Credentials deployed in step 1.3
- Under More, provide the necessary company settings:
- CompanyName: Name of company in Pleo
- S4_CostCenter_Category: Category codes for CostCenter separated by ,
- S4_InternalOrder_ControllingArea: Code for InternalOrder Controlling Area (1 value only)
- S4_InternalOrder_OrderType: Code for InternalOrder Order Type (1 value only)
- S4_WBS_Project: Filter value for project assignments separated by ,
- Click Deploy
6. Click the icon and choose configure for Create Tag Group in Pleo
- Under Receiver
- For R_CPI_API_Flowreceiver, Enter the following details
- CPI_API_HOST: URL value from step 1.3
- Credential Name: Name of the OAuth2 Client Credentials deployed in step 1.3
- For R_Pleo, enter the URL to the Pleo API Integration
- For R_CPI_API_Flowreceiver, Enter the following details
- Under More, provide the necessary company settings:
- CompanyName: Name of company in Pleo
- TG_CostCenter: Name of tag group for CostCenter in Pleo
- TG_InternalOrder: Name of tag group for InternalOrder in Pleo
- TG_WBS: Name of tag group for WBS element in Pleo
- Click Deploy
7. Click the icon and choose configure for Export Expenses from Pleo to S4
- Under Receiver
- For R_PLEO_JOBS_API, enter the URL to the Pleo API Integration
- For R_S4_CREATE_ENTRY, enter the following details:
- Address: URL address of SOAP API activated in step 1.1
- Authentication: Basic / Client Certificate
- For Basic Credential Name: Name of User Credential from Security Store from step 1.3
- For Client Certificate Private key alias: Name of certificate Alias from Keystore from step 1.3
- For R_S4_PING, provide S4_URL parameter as an address to Cloud connector from step 1.1
- Click Deploy
8. Click the icon and choose configure for Export Tags from Pleo to S4
- Under Receiver
- For R_PLEO API, enter the URL to the Pleo API Integration
- For R_S4, enter the following details:
- S4_Host: URL address of S4 API
- Authentication: Basic / Client Certificate
- For Basic Credential Name: Name of User Credential from Security Store from step 1.3
- For Client Certificate Private key alias: Name of certificate Alias from Keystore from step 1.3
- Under More, provide the necessary company settings:
- DateTimeFormat_S4: date/time format value
- WBSODataV2: True (indicator that S4/HANA system version is less than 2021 FPS01)
- Click Deploy
9. Click the icon and choose configure for Schedule Expenses Export from Pleo to S4
- Under Receiver
- For R_CPI_APIreceiver, Enter the following details
- CPI_API_HOST: URL value from step 1.3
- Credential Name: Name of the OAuth2 Client Credentials deployed in step 1.3
- For R_Pleo, enter the URL to the Pleo API Integration
- For R_CPI_APIreceiver, Enter the following details
- Under More, provide the necessary company settings:
- BypassTransactionDate: True / False (Indicator shows the requirement to update the transaction date in S4/HANA)
- UploadReceipts: True / False (Indicator shows the requirement to upload attachments to S4/HANA)
- ClosingPeriodDay: Specific day of the month (1-31) after which past expenses will be updated
- Click Deploy
10. Click the icon and choose configure for Schedule Tags Export from Pleo to S4
- Under Receiver
- For R_CPI_APIreceiver, Enter the following details
- CPI_API_HOST: URL value from step 1.3
- Credential Name: Name of the OAuth2 Client Credentials deployed in step 1.3
- Click Deploy
- For R_CPI_APIreceiver, Enter the following details
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article