Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Model
A Tutorial for Admins
Gateway Setup for Enterprise Procurement Model
TABLE OF CONTENTS
IMPORTANT ..................................................................................................................................................... 3
Disclaimer ......................................................................................................................................................... 3
Precondition ..................................................................................................................................................... 3
GET A SYSTEM ................................................................................................................................................ 4
Clone a System in Amazon cloud .................................................................................................................. 4
Setup SAP Logon .............................................................................................................................................. 4
System is already there................................................................................................................................... 4
USER CREATION ............................................................................................................................................. 5
Logon and create User .................................................................................................................................... 5
Copy user .......................................................................................................................................................... 5
User request ..................................................................................................................................................... 5
You have already sap_all authorization ........................................................................................................ 6
PREPARE EPM ................................................................................................................................................. 7
Check if correct EPM Components are there ............................................................................................... 8
Check for EPM base – NW 7.40 SP2 ................................................................................................................ 8
Create Data ....................................................................................................................................................... 9
Activate EPM pictures ................................................................................................................................... 10
CREATE DEMO USER ................................................................................................................................... 11
Upload Role .................................................................................................................................................... 11
Create User ..................................................................................................................................................... 13
SETUP GATEWAY – EPM PART ................................................................................................................... 15
Check for Objects .......................................................................................................................................... 15
Check for Developer scenario service ........................................................................................................ 16
Register OData Service ................................................................................................................................. 17
Register System Alias ...................................................................................................................................... 17
Register Service .............................................................................................................................................. 19
Get the URL of the service .............................................................................................................................. 23
Connect Gateway with EPM.......................................................................................................................... 24
Connect GWaaS with Gateway Backend ........................................................................................................ 24
Connect Gateway Backend with EPM Backend .............................................................................................. 24
Create an RFC Connection ............................................................................................................................. 24
Create the EPM BADI ...................................................................................................................................... 29
SETUP GATEWAY – GATEWAY PART ........................................................................................................ 36
TESTING ......................................................................................................................................................... 37
Test with Gateway tool .................................................................................................................................. 37
Unit Tests ....................................................................................................................................................... 38
Check system type .......................................................................................................................................... 38
Switch unit tests on .......................................................................................................................................... 40
Include ABAP Unit Browser in SE80 ............................................................................................................... 41
Run unit Tests .................................................................................................................................................. 41
Manual Tests .................................................................................................................................................. 42
2
Gateway Setup for Enterprise Procurement Model
The tutorial shows how to get a running EPM Gateway service in a cloud environment or an on
premise system. It shows also how to setup the EPM part of a Gateway service for developer
scenario part 1. Goal is to set up this service that it can be used from outside on the OData
interface of Netweaver. This tutorial also shows setting up required user authorities by using EPM
role.
IMPORTANT
Disclaimer
The NetWeaver Enterprise Procurement Model (EPM) is an application intended to be used for
demonstration and testing purposes. While the scope of EPM is complex enough to be used as basis for
testing and demonstration of NetWeaver technologies it is not a full-fledged application for a productive
system environment. Product support is not offered.
The following is only meant to be an example for demonstration purposes and not intended to be used in a
productive environment. Any use by the customer is therefore at its own risk.
Precondition
All settings have to be done with your development user. Please check if you have the
authority for all steps of this document.
All server names / URLs / SAP system names etc. are examples and are not
valid on customer side.
3
Gateway Setup for Enterprise Procurement Model
GET A SYSTEM
How do you want to start?
Clone a System in Amazon cloud
System is already there
IP address of an application server (alternatively system name), system ID and instance number is given by
Admin.
Done – continue with User creation
4
Gateway Setup for Enterprise Procurement Model
USER CREATION
How to go on now?
Did you do a system copy in a cloud and want to create your own user?
Do you need a user with SAP_ALL authorization?
Do you already have a user with SAP_ALL authorization?
Copy user
Please do the next step and work in the future with your own user.
Use SU01 to copy the user dev4clone. I assume that it is well known how to do this.
Done – continue with Prepare EPM
User request
Request or create a user with the maximum set of authorizations for the system where you want to set up the
EPM Gateway service. If you are not the admin, your admin has to accept this.
If your request is declined by the admin, send this document to her/him with the request to process this
document beginning with step Prepare EPM
5
Gateway Setup for Enterprise Procurement Model
6
Gateway Setup for Enterprise Procurement Model
PREPARE EPM
EPM can run in different set ups:
Gateway and EPM on one system:
Gateway Hub
Gateway Backend
System
EPM
Gateway Hub
System
Gateway Backend
EPM System
7
Gateway Setup for Enterprise Procurement Model
Gateway on a cloud
EPM System
Between GWaaS and Gateway Backend it is necessary to connect via cloud connector and between
Gateway backend and EPM a separate connection is necessary.
The next steps have to be done in the system where EPM should run.
There may be some additional lines under section “Transports for NW 7.41”. Relevant is SP2.
8
Gateway Setup for Enterprise Procurement Model
Create Data
Run data generator: TA SEPM_DG
Set “Recreate” and press the execute button:
9
Gateway Setup for Enterprise Procurement Model
Navigate to node NWDEMO_MODEL, right click this item (context menu opens) and select “Activate
Service”.
10
Gateway Setup for Enterprise Procurement Model
Upload Role
Take the role attached on CSN note 1942520 and upload it:
11
Gateway Setup for Enterprise Procurement Model
Press “Generate”
Popup comes up: Press “Execute” button
Leave dialogs
The role “SAP_BC_EPM_BASE” is now created
12
Gateway Setup for Enterprise Procurement Model
Create User
Call transaction SU01
User EPM_TEST and press “Create” Button
Enter address data like shown:
13
Gateway Setup for Enterprise Procurement Model
Use password Initial123 – this is the initial password and only needed once
14
Gateway Setup for Enterprise Procurement Model
This step has to be done in the system where EPM should run.
… List is longer in the system – but these both columns must be filled.
15
Gateway Setup for Enterprise Procurement Model
This step has to be done in the system where the Gateway backend should run.
16
Gateway Setup for Enterprise Procurement Model
This step has to be done in the system where the Gateway backend should run.
17
Gateway Setup for Enterprise Procurement Model
18
Gateway Setup for Enterprise Procurement Model
Register Service
Start transaction /IWFND/MAINT_SERVICE
Ignore system message regarding user and logon
19
Gateway Setup for Enterprise Procurement Model
20
Gateway Setup for Enterprise Procurement Model
21
Gateway Setup for Enterprise Procurement Model
22
Gateway Setup for Enterprise Procurement Model
This is an example of the main URL of the service when it’s called from outside of the system.
If the system is a cloned cloud system, then you must replace the URL by the IP address of the cloud
system, because a DNS resolution may be not done so far. Use the same port.
23
Gateway Setup for Enterprise Procurement Model
Tbd. later
If a Gateway backend should be connected with the Gateway as a Service (GWaaS) you need to setup a
cloud connector (see Prepare EPM).
Search a connection that meets your expectations and double click it. Select Tab “Logon & Security”.
24
Gateway Setup for Enterprise Procurement Model
User must be EPM_TEST. If that is the case use that RFC destination later and continue with Create the
EPM BADI.
25
Gateway Setup for Enterprise Procurement Model
If you did not find any acceptable RFC connection, create one.
Prerequisite: on both systems (the system with EPM and the system you create this
RFC connection) the EPM_TEST user have to be created before. See Create Demo
User
SM59:
Press Create
button.
26
Gateway Setup for Enterprise Procurement Model
Use a meaningful name and select connection type 3 (ABAP Connection). Fill Description and move to tab
“Technical Settings” and fill target host similar to:
27
Gateway Setup for Enterprise Procurement Model
Move to tab “Logon & Security” and fill fields. Use User/PW EPM_TEST/EPM12345
Save it and make a “connection test” or a “remote login”. Check in the status line if the system is the correct
one.
28
Gateway Setup for Enterprise Procurement Model
29
Gateway Setup for Enterprise Procurement Model
30
Gateway Setup for Enterprise Procurement Model
If ZEPM_DESTINATION_FINDER1 is in the list and marked with color green then double click the entry.
1
It must not necessarily be named as ZEPM_DESTINATION_FINDER but if the Badi implementation behind
is “EPM_DESTINATION_FINDER”, then this step is done
31
Gateway Setup for Enterprise Procurement Model
32
Gateway Setup for Enterprise Procurement Model
In the next step of the creation process enter a name for the Enhancement Implementation and a
short text.
Choose
Confirm to create in customer namespace (package $TMP).
If you are working in a cloud environment, a popup occurs with a hint that there is no connection to
global GTADIR server. You can ignore this.
33
Gateway Setup for Enterprise Procurement Model
method /iwbep/if_destin_finder_badi~get_rfc_destination.
endmethod.
To ensure that the BAdi is called during the processing of operations of EPM GW-Service ‘Developer
Scenario’ you need to supply the following filter definition for the BAdI:
Filter Value:
Value 1: /IWBEP/EPM_DEVELOPER_SCENARIO_SRV
Comparator 1: =
Filter: SERVICE_TECHNICAL_NAME
34
Gateway Setup for Enterprise Procurement Model
35
Gateway Setup for Enterprise Procurement Model
A dialog pops up – if gateway is not active, you can press the according button for activation. If it is already
active, leave the dialog.
36
Gateway Setup for Enterprise Procurement Model
TESTING
Do you want to make low level tests?
Is your Gateway hub in an ABAP system?
Do you want to check the services manually?
This step has to be done in the system where the Gateway hub should run.
37
Gateway Setup for Enterprise Procurement Model
Unit Tests
This step has to be done in the system where the Gateway hub should run.
Unit tests are the base for the EPM tests that are used here.
38
Gateway Setup for Enterprise Procurement Model
Press Display
You can’t continue with unit tests if the system type is a customer system. So go on
e.g. with Manual Tests.
39
Gateway Setup for Enterprise Procurement Model
Use TA SAUNIT_CLIENT_SETUP
40
Gateway Setup for Enterprise Procurement Model
2
If execute is not possible, the unit tests are switched off. Switch it on like shown in Switch unit tests on
41
Gateway Setup for Enterprise Procurement Model
Manual Tests
Get the base URL of the GW service – see Get the URL of the service
Call following links by using this URL directly in your browser.
1. Service Document:
http://<url>/sap/opu/odata/IWBEP/EPM_DEVELOPER_SCENARIO_SRV
2. Service metadata
http:// <url>/sap/opu/odata/IWBEP/EPM_DEVELOPER_SCENARIO_SRV/$metadata
4. Read products
http:// <url>/sap/opu/odata/IWBEP/EPM_DEVELOPER_SCENARIO_SRV/Products
http:// <url>/sap/opu/odata/IWBEP/EPM_DEVELOPER_SCENARIO_SRV/Products
?$filter=Category eq 'Notebooks'
5. Read a customer
http:// <url>/sap/opu/odata/IWBEP/EPM_DEVELOPER_SCENARIO_SRV /Customers('100000000')
42
www.sap.com
Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are
registered trademarks of Crossgate AG in Germany and other
countries. Crossgate is an SAP company.
All other product and service names mentioned are the trademarks of
their respective companies. Data contained in this document serves
informational purposes only. National product specifications may vary.