Professional Documents
Culture Documents
openSAP btp4 Exercise Week
openSAP btp4 Exercise Week
openSAP:
Manage B2B Scenarios Effectively with SAP
Integration Suite
Exercise Week 2
Public
TABLE OF CONTENTS
0 INTRODUCTION ............................................................................................................................... 3
1 EXERCISE 1: SIMPLE ONBOARDING OF A NEW TRADING PARTNER ..................................... 4
1.1 Create new Trading Partner ............................................................................................................ 4
1.2 Use Agreement Template to create an agreement ..................................................................... 12
1.3 Prepare Simulation Flow and send a message .......................................................................... 16
1.4 Monitor the Scenario ..................................................................................................................... 20
2 EXERCISE 2: CREATE NEW MIG ................................................................................................. 21
3 EXERCISE 3: CREATE NEW MAG ................................................................................................ 24
4 EXERCISE 4: USE NEW MIG AND MAG ...................................................................................... 27
www.sap.com/contactsap
The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable
for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty statements
accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality
mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are
all subject to change and may be changed by SAP SE or its affiliated companies at any time for any reason without notice. The information in this document is not a commitment, promise, or legal obligation
to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are
cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions.
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. See www.sap.com/trademark for additional trademark information and notices.
1
0 INTRODUCTION
In this week’s exercises, you will learn how to onboard a new Trading Partner by using the following
capabilities of the Integration Suite:
• Integration Advisor
• Trading Partner Management
• Cloud Integration
To make this session a successful one for all attendees, we recommend a good understanding of data
structures (e. g. IDoc, SOAP, X12 or EDIFACT) along with some understanding of SAP Integration Suite
capability Cloud Integration. The business process we will simulate in this exercise is part of the procure-to-
pay process. The complete procure to pay consists of three transactions:
• Purchase Order Request (Two way transaction)
• Shipment Notification
• Invoice Message
Here we focus on the first transaction.
To make things easier no additional installations (like postman) are necessary. The EDIFACT ORDERS will
be sent from an iflow which acts as a simulator of the Trading Partner. There is also no real S/4HANA
system connected but another iflow which receives the IDoc Orders Message and responds with an
ORDRSP IDoc sent via Process Direct to TPM. After TPM has handled the message again a simulated
Trading Partner receives the ORDRSP message as an EDIFACT message over AS2 and sends the
message to your personal mail inbox that you can verify.
To make exercise 1 easy, you will reuse already defined MIGs and MAGs. In the following exercises you will
then create your own MIG and MAG. You simulate it to check if your mapping creates the expected results to
use it in your transaction.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 3
Public
1 EXERCISE 1: SIMPLE ONBOARDING OF A NEW TRADING PARTNER
Explanation Screenshot
1. Log on to the Integration
Suite tenant with your
system details provided to
you by the app.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 4
Public
Explanation Screenshot
3. As you want to onboard a
new Trading Partner
switch to the tab Trading
Partners.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 5
Public
Explanation Screenshot
6. Switch to the Contacts tab
and select Create Contact.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 6
Public
Explanation Screenshot
9. Every Trading Partner
needs at least two
identifiers: one which is
used in the exchange and
a second one which is
used in the S/4 System.
Maintain the first identifier
as follows:
Use Identification
UNEDI_TP_E_P123456
(with P123456 your user
id), the same for the alias,
select Type System
UN/EDIFACT,
and Scheme Duns (Dun &
Bradstreet),
then save the new
identifier.
10. Maintain the second
identifier as follows:
Use Identification O-
P123456 (with P123456
your user id), the same as
Alias,
select Type System SAP
S/4HANA on Premise
IDoc,
and Scheme N/A,
then save the new
identifier.
11. Now in the security tab
you need to add the
partner ID which your
trading partner will use to
send the message. To
make it simpler we use the
same ID as in the step
before.
O-P123456 (with P123456
your user id). Then save it.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 7
Public
Explanation Screenshot
13. The Business Context is
currently optional, but we
need to create a system
where the supported type
system and
communication details
must be maintained.
Navigate to the tab
System and select Create
System.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 8
Public
Explanation Screenshot
15. Select the beforehand
created system to create
the supported Type
System. On tab Type
System, select Create
Type System.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 9
Public
Explanation Screenshot
18. As this Trading Partner
will send an Order via AS2
you need to create an AS2
Sender.
Use in the Security
Configuration Mode Profile
and the AS2 Partner ID
you’ve configured under
the security tab.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 10
Public
Explanation Screenshot
21. Search for B2B-Partner-
Simulator and copy the url
with the copy button. This
url will end with
.com/as2/as2.
Do not use the url from the
screenshot as your tenant
might be a different one
than the tenant from the
screenshot.
22. Now jump back to TPM
and there to your Trading
Partner where you have to
add another
communication under the
system tab.
Use the names as you can
see in the screenshot.
For the recipient url you
need to paste the url from
the previous step.
Please switch then to
Basic Authentication with
the Credential ESB.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 11
Public
1.2 Use Agreement Template to create an agreement
With the Agreement, you instantiate the agreement template where you need to fill out the details of the
trading partners.
Explanation Screenshot
1. Navigate back to Design
→ B2B Scenarios, and
switch to the tab
Agreements.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 12
Public
Explanation Screenshot
5. Please start with renaming
the Agreement to Procure
to Pay – P123456 (with
P123456 your user id) and
change the Description.
Now you need to specify
which Trading Partner
Details you want to use.
Please enter these details
in the following order (with
P123456 your user id):
Maintain System B2B-
System-P123456, Type
System UN/EDIFACT,
Type System Version
D.02A S3, Identifier
UNEDI_TP_E_P123456,
1
and Identifier as Company
O-P123456.
Finally, select the Identifier
as Trading Partner
123456789123 from the
drop-down.
2
Hint: use the drop-down
help but start with the
Trading Partner Details
and select the Identifier as
Trading Partner as the last 3
one.
When done, save your
settings.
6. Navigate to the tab B2B
Scenarios and switch the
Transaction to the edit
mode.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 13
Public
Explanation Screenshot
8. Please start on the right
by clicking on the first
Communication box within
the flow and select AS2
for Communication.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 14
Public
Explanation Screenshot
12. In the pop up select
openSAP BTP4 -
EDIFACT ORDERS to
IDoc ORDERS and switch
to the highest version.
Then select Choose.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 15
Public
Explanation Screenshot
17. In the pop up select
openSAP BTP4 – Idoc
ORDRSP to EDIFACT
ORDRSP and switch to
the highest version. Then
select Choose.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 16
Public
Explanation Screenshot
1. Navigate to Design ->
Integrations and APIs.
3. Use openSAP-BTP4-
P123456 for Name and
Short Description with XX
your user Id and save the
package.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 17
Public
Explanation Screenshot
4. Navigate back to the list of
existing packages by
clicking Integrations and
APIs.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 18
Public
Explanation Screenshot
8. In the popup, change the
name to openSAP-Send-
Purchase-Order_P123456
(with P123456 your User
ID).
Then choose Select to
change the target
package.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 19
Public
Explanation Screenshot
14. Please select the
Confirmation message
about transaction handling
by selecting the
checkmark.
The runtime profile is
preselected as Cloud
Integration and select
deploy!
Explanation Screenshot
1. Navigate to the B2B
Monitoring by selecting
Monitor → B2B Scenarios.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 20
Public
Explanation Screenshot
4. Click on one of your
Completed interchanges.
As we are using here a
two-way transaction you
will see for each started
simulator iflow two entries:
One for the Orders, one
for the OrderRSP.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 21
Public
BGM++0000347163'
DTM+137:20231004:203'
LIN++5'
QTY+21:8.000:PCE'
PRI+INV:5250.00'
CUX+7:USD'
LIN++5'
QTY+21:8.000:PCE'
PRI+INV:4400.00'
CUX+7:USD'
LIN++5'
QTY+21:8.000:PCE'
PRI+INV:4884.00'
CUX+7:USD'
LIN++5'
QTY+21:8.000:PCE'
PRI+INV:5300.00'
CUX+7:USD'
UNS+S'
UNT+21+LS'
UNZ+1+000255'
As explained in week 2 unit 2, use that to create a MIG. As youalready have a lot of knowledge about the
Integration Suite the explanations will no longer be detailed as in the first exercise.
Explanation Screenshot
1. Navigate to Design and
select MIGs.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 22
Public
Explanation Screenshot
3. Change the Name to
EDIFACT Ordrsp
P123456 (with P123456
your userid). Use Direction
Both and add in the
Business Context the
Business Process Manage
Purchase Order. Then
press the Button Create.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 23
Public
Explanation Screenshot
6. Give the Nodes and leafes
meaningful names. Add
documentation where it is
helpful and necessary by
selecting the line and use
the documentation area
on the right
If you’re finished your MIG do not forget to Save it as we will use it in the next exercises!
Explanation Screenshot
1. Navigate to Design and
select B2B Scenarios and
select MAGs.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 24
Public
Explanation Screenshot
3. At first you have to select
the source MIG. Use the
prepared one: openSAP
BTP4 – IDoc ORDRSP.
Then click Next.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 25
Public
Explanation Screenshot
8. As the knowledge base also
might propose xslt
snippets for special
purposes which want to
access some global
parameters (which are not
existing in your mapping)
this is the consequence.
Therefore, delete this
snippet. At first you have
to find it like in the
screenshot. Search for
xsl:param. Select then the
found line.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 26
Public
4 EXERCISE 4: USE NEW MIG AND MAG
After you’ve created now a MIG for the EDIFACT Order Response Message and a MAG to map from the
IDoc Order Response to the Edifact message you need to change your trading partner agreement to use the
newly created MIG and MAG.
Explanation Screenshot
1. Navigate to the B2B
Scenarios
2. Go to Tab Agreements
and open the Trading
Partner Agreement you’ve
created in exercise 1 (the
name should be Procure
to Pay – P123456 with
P123456 your user id)
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 27
Public
Explanation Screenshot
4. And there to the edit
mode.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 28
Public
Explanation Screenshot
8. Use here also the drop
down to select a new
MAG. Also here change
the filter (or reset
completely) to find your
MAG (Name will be
Mapping openSAP BTP4
– Idoc ORDRSP to
EDIFACT Ordrsp
P123456 with P123456
your user id) and click on
Choose.
9. Save the Trading Partner
Agreement
Now you can again send a test message with the iflow you’ve copied in exercise 1 and look at the monitoring
and in your personal inbox if everything works fine.
openSAP: Manage B2B Scenarios Effectively with SAP Integration Suite – Exercise Week 2 29
Public