Sap RP MGMT Intguide CSV PDF en
Sap RP MGMT Intguide CSV PDF en
1 Purpose. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Integration Flow Templates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Error Mail Notification. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 SFTP Connection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Preparation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Steps in SAP Returnable Packaging Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 CSV File Preparation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.1 Deployment of Credentials. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Deploy Certificates in Keystore. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Deploy known_hosts File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Open Firewall Request at SAP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Deploy Technical Communication User Data with a Credential Artifact. . . . . . . . . . . . . . . . . . . . 18
3.2 Configuration and Deployment of Integration Package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Create a Copy of the Pre-Packaged Integration Scenario. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Configuration of Integration Flows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.3 Order of File Upload. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Deployment of Integration Flows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
This guide covers the integration between SAP Returnable Packaging Management and CSV file-based data.
The purpose of this document is to describe the general configuration steps required to set up the system
landscape that has been installed using the corresponding installation or configuration guides.
1.1 Overview
The integration package SAP Returnable Packaging Management Integration with File Based Master Data Load
implements the integration of CSV file-based data into SAP Returnable Packaging Management. This allows
you to create, update, or delete entries in your SAP Returnable Packaging Management tenant.
This integration package runs on the SAP Cloud Integration service tenant and connects to the SAP Returnable
Packaging Management via OData services and REST services. The CSV files are loaded using an SFTP server
to SAP Cloud Integration.
The following integration flows serve as templates that can be copied to a customer’s tenant and configured to
individual requirements:
All integration flows in this integration package provide the facility of sending error mail notifications for
errors that occur during processing in the SAP Cloud Integration tenant, or in SAP Returnable Packaging
Management system.
For this, the SMTP server to be used as well as the email IDs from and to which the error message is to be sent
can be configured in the mail adapter connected to the exception sub-process present in each integration flow
in the package.
Note
The CSV files are stored on the SFTP server in specific directories referred to as mailboxes. For each mailbox, a
user is specified to control access to the data.
Before the integration content can be configured and used in your SAP Cloud Integration tenant, the SFTP
server needs to be available. SAP Cloud Integration tenant acts as a client and collects the data from the SFTP
mailbox on the SFTP server.
Public keys of all connected SFTP servers need to be stored in the known_hosts file on the SAP Cloud
Integration side. Integration flows in this package support username/password form of authentication for the
SFTP adapter. Therefore, the corresponding credentials need to be deployed in the security artifacts tile of the
Monitor tab, and subsequently be used in the SFTP adapter in each integration flow.
For communication with the OData services or REST web services, a technical user needs to be enabled in the
SAP Returnable Packaging Management system. This user is enabled while onboarding the SAP Returnable
Packaging Management application; refer to the Subscription via SAP Store section in SAP Returnable
Packaging Management - Administrator's Guide. This user gets access to the authentication URL as well as
client credentials (client_id and client_secret). These are required to fetch OAuth token to establish connection
to the SAP Returnable Packaging Management services.
To get access to authentication URL and client credentials, execute command cf service-key <service-
instance-name> <service-key-name>. You should use the service name and service key created during
onboarding of SAP Returnable Packaging Management. To know the created service name, execute command
cf s. To know the created service key, execute command cf service-keys.
Alternatively, you can request the administrator of SAP Returnable Packaging Management to provide you with
the authentication URL and client credentials.
Related Information
Note
To refer to the sample CSV files, see the SAP Note 3068702 .
Consider the following input information and data restrictions (for example, file format required) for CSV files.
These CSV files need to be then stored in the dedicated SFTP folder, so that these are collected from the server
by the SAP Cloud Integration client.
Note that execution will stop and send a mail with error content if the values entered in fields exceed character
limit.
• If there's no input required for any field with data type String, then you may leave those fields empty.
The default value for fields with data type String is empty or blank. However, for all numerical fields
such as Integer and Decimal, the default value is 0.
• There are some fields that accept alpha-numeric characters as input. And as an exception, these fields
also accept hyphen (-) as an input, along with alpha-numeric characters.
Company Code Company Code Key used to represent String (4) Yes
the company code
Storage Location Storage Location Key used to represent String (4) Yes
the storage location
Sales Organization Sales Organization Key used to represent String (4) Yes
the storage location
Distribution Channel Distribution Channel Key used to represent String (2) Yes
the distribution chan
nel
Material Master Gen Material Code Key used to identify String (40) Yes
eral Data
the returnable packag
ing material
1 - Serially managed
Material Master Plant Material Code Key used to identify String (40) No
Data
the returnable packag
ing material
Material Master Sales Material Code Key used to represent String (40) Yes
Data
the returnable packag
ing material
Business partner Business Partner Key used to identify a String (10) Yes
Number business partner
Business User Business User ID User ID of the business String (100) Yes
user
Material Serial Number Material Code Alphanumeric key that String (40) Yes
uniquely identifies the
returnable packaging
material
1 - In Stock
2 - Issued
1 - Customer Owned
3 - Vendor Owned
Address Address ID Key used to identify the address String (10) Yes
Storage Location Storage Loca Key used to represent the stor String (4) Yes
tion age location
Sales Organization Sales Organi Key used to represent a sales or String (4) Yes
zation ganization
Distribution Chan Distribution Key used to represent distribu String (2) Yes
nel Channel tion channel
Sales Organi Key used to represent sales or String (4) Yes
zation ganization
Division Sales Division Key used to represent sales divi String (2) Yes
sion
Sales Organi Key used to represent sales or String (4) Yes
zation ganization
Material Master Material Code Key used to identify returnable String (40) Yes
General Data
packaging material
Material Master Material Code Key used to identify returnable String (40) Yes
Plant Data
packaging material
Material Master Material Code Key used to identify returnable String (40) Yes
Sales Data
packaging material
Sales Organi Key used to represent the stor String (4) Yes
zation age location
Business Partner Business Part Key used to represent a busi String (10) Yes
ner Number ness partner
Material Master Material Key that uniquely identifies a re String (40) Yes
GeneralData Text
turnable packaging material
Business User Business User User ID of the business user String (100) Yes
ID
MaterialSerial Material Code Alphanumeric key that uniquely String (40) Yes
NumberDelete identifies the returnable packag
ing material
The pre-packaged integration scenario contains integration flows for each separate object, which can be
loaded to SAP Returnable Packaging Management. For each integration flow, the SFTP connection, the receiver
HTTP channel and the receiver SMTP connection need to be configured.
1. Deployment of credentials
2. Configuration and deployment of the integration flows
To establish the communication with the source SFTP system and the SAP Returnable Packaging
Management., it is required to deploy the requisite credentials. Some firewall ports also need to be opened.
For connecting sender or receiver systems, the tenant administrator needs to maintain keys and certificates
in different systems, sender, receiver, and the Cloud integration tenant. The Keystore Monitor available in the
Cloud integration tenant can be used for this purpose.
The monitor is available in Operations View on the web. In the section Manage Security, you find the Keystore
tile, which directly informs you about the number of keys and certificates available in the tenant keystore.
The known_hosts file contains the SSH server host key of your SFTP server. Each entry in known_hosts is one
line with three or more white space-separated fields as follows:
When connecting to an SFTP server from SAP Cloud Integration, the firewall needs to be opened at SAP Cloud
Support. The request needs to be addressed through an SAP incident on component LOD-HCI-PI-OPS.
• Port number
• Destination address
• Destination IP
• Brief description of the purpose
• Affected customer
• Tenant ID
• Name of requesting SAP department
• Persons responsible for the request (at least two)
• Company name and address of where the SFTP server resides
• Estimated project duration
Note
Also make sure to open the Firewall at your (Customer) side to be able to accept SFTP adapter calls from
SAP CPI (Port 22).
User credentials of the technical user of your SAP Returnable Packaging Management application needs to be
deployed in your SAP Cloud Integration tenant.
To work with the integration flows of this package, the pre-packaged integration flow scenario must be copied
to your workspace. Constituent integration flows need to be configured next. Finally, to activate the integration
flows, they must be deployed. The configuration and deployment must be processed for each integration flow.
1. In your preferred web browser, open the web UI of your SAP Cloud Integration tenant: <https://
your_tenant_URL/itspaces>.
2. On the Discover page, select All to navigate through the available pre-packaged integration scenarios.
3. Enter <File Based Master Data Load> in the Search field and choose Enter.
4. To copy the integration package from the catalog to your customer workspace, move your cursor over the
integration package tile and choose Copy to workspace.
The message Integration package copied confirms that the package was copied to your workspace.
Note
In case the integration scenario is already available in the workspace, a copy with a different name
can be created, or the existing package can be overwritten. In case of overwriting, all previous
configurations will be lost.
5. Select the pen icon to open the Design page. You can now work with the copied package and it's integration
flows.
..
1. On the Design page, select the package SAP Returnable Packaging Management Integration with File Based
Master Data Load, which contains the integration content.
An overview of the artifacts available in the selected integration package is shown.
2. To configure an integration flow, choose Configure in the Actions column for the integration flow.
A integration flow has a configuration part for the sender and another one for the receiver.
Field Value
Directory <sftp_directory>
Regular expressions, such as ab*, a.*, *a*, ?b, and so on, are
supported.
Address <sftp_system_host:port>
Sender Tab
All integration flows are configured to poll the SFTP server every 10 seconds by default. If required, the polling
interval can also be configured on this Sender tab page.
1. In Receiver field, select either Mail_Success, Mail_Exception, or Mail_Error. All three options are configured
with the same mailing parameters.
Field Value
Address <smtp_address>
From <from@mail.com>
To <to@mail.com>
Field Value
Timeout (in ms) <Timeout (in ms)> example: 600000 ms which is equals
to 10 min>
Field Value
Directory <sftp_directory>
Address <sftp_system_host:port>
4. In the More tab, enter the relevant details. If you want to receive email notifications, choose True in the
Email Notification field. To stop getting email notifications, choose False in the Email Notification field.
Files need to be uploaded to SAP Cloud Integration in the following specific order:
1. Address
2. CompanyCode
3. BusinessPartner
4. Plant
5. StorageLocation
6. SalesOrganization
7. DistributionChannel
8. Division
9. MaterialMasterGeneralData
10. MaterialMasterGeneralDataDescription
11. MaterialMasterPlantData
12. MaterialMasterSalesData
13. MaterialSerialNumber
Before an integration flow can be deployed, the configuration for this integration flow must be completed.
Procedure
1. On the Design page, select the SAP Returnable Packaging Management Integration with File Based Master
Data Load package that contains the integration content
2. In the Actions column for the integration flow, choose Deploy.
A message confirms that the integration flow was deployed.
3. Choose Monitor on the tenant page.
4. Select the All tile in the Manage Integration Content section.
The integration flow should have the started status in the Status column.
In case of errors, check whether you have set up the sender and receiver parameters properly in
Configuration of the Integration Flows.
In the SAP Cloud Integration web UI, you can analyze the deployed integration flows in the Monitoring section
as follows:
1. To carry out the activity, open your SAP Cloud Integration tenant web UI, for example, https://<your
SAP Cloud Integration tenant URL>/itspaces
2. On the tenant web UI, choose Monitor, then Monitor Message Processing.
On the Overview screen, choose the tile with the message status you wish to analyze.
3. On the left, select the integration flow you wish to analyze.
4. Access the Message Processing Log from the Log tabs.
During the scheduled system downtime of SAP Returnable Packaging Management, you should prevent files
from being transferred in advance to avoid Failed messages.
In case of downtime of SAP Returnable Packaging Management, all file-based load artifacts are affected.
The files are picked up from the SFTP server according to the schedule of the corresponding integration flow.
To stop the file transfer during the downtime, adapt the schedule of the integration flows accordingly. A second
option to prevent Failed messages is to not place any file on the SFTP server during the downtime.
During the scheduled downtime of SAP Cloud Integration system, no files will be fetched from the SFTP server.
In that case, you should consider that all files will remain on the SFTP server as long as the system is down.
Data protection is associated with numerous legal requirements and privacy concerns. In addition to
compliance with general data privacy regulation, it is necessary to consider compliance with industry-specific
legislation in different country/region. SAP provides specific features and functions to support compliance with
regards to relevant legal requirements, including data protection. SAP does not give any advice on whether
these features and functions are the best method to support company, industry, regional, or country-specific
requirements. Furthermore, this information does not give any advice or recommendation in regards to
additional features that would be required in particular IT environments; decisions related to data protection
must be made on a case-by-case basis, under consideration of the given system landscape and the applicable
legal requirements.
Note
In most cases, compliance with applicable data protection and privacy laws will not be covered by a product
feature. SAP software supports data protection compliance by providing security features and specific
data protection-relevant functions, such as simplified blocking and deletion of personal data. SAP does not
provide legal advice in any form. Definitions and other terms used in this document are not taken from any
given legal source.
The SAP Returnable Packaging Management application works with personal data of business partners and
business users. This data can be uploaded to SAP Returnable Packaging Management, changed using the
integration flows for business partners and business users, and deleted using the file-based delete integration
flows.
• Consent
As no explicit consent from the users is managed, users have to manually verify and validate the data
issues.
• Deletion
The file-based delete integration flows allow you to delete personal information of business partners and
business users completely from the SAP Returnable Packaging Management system. These deletions are
also logged in the application's Audit Log.
• Change Logging
All changes made in SAP Returnable Packaging Management using the file-based integration flows are
recorded in the application's Audit Log.
For more information, refer theSAP Returnable Packaging Management - Administrator's Guide.
In case if any errors occur during the execution of integration flows (iFlow) that are delivered, open a ticket
using component LO-RL. For more information, see Components for Incidents.
In case of any CPI tenant platform related issues, open a ticket using component LOD-HCI-PI-OPS.
Hyperlinks
Some links are classified by an icon and/or a mouseover text. These links provide additional information.
About the icons:
• Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your
agreements with SAP) to this:
• The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information.
• SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any
damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.
• Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering an SAP-hosted Web site. By using
such links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this
information.
Example Code
Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax
and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of
example code unless damages have been caused by SAP's gross negligence or willful misconduct.
Bias-Free Language
SAP supports a culture of diversity and inclusion. Whenever possible, we use unbiased language in our documentation to refer to people of all cultures, ethnicities,
genders, and abilities.
SAP and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP
SE (or an SAP affiliate company) in Germany and other countries. All
other product and service names mentioned are the trademarks of their
respective companies.