tbit44 en col51 fv show
TRANSCRIPT
![Page 1: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/1.jpg)
© SAP AG 2004
TADMBO Implementation&Operation II
THE BEST-RUN BUSINESSES RUN SAP
© SAP AG 2004
TBIT44Mapping, Adapters and BPM
![Page 2: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/2.jpg)
SAP Exchange Infrastructure 3.0
TBIT44 Mapping/Adapters/BPM
![Page 3: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/3.jpg)
© SAP AG 2004, TBIT44
Lecture topics
Topics
Mappings
Adapter
ccBPM
![Page 4: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/4.jpg)
TBIT44: Mapping pattern
![Page 5: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/5.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 2
Mapping Patterns
Mapping “patterns” are some of the common mapping requirements we found in the past which XSLT was used, because we did not think that Message Mapping provided the functionality
SummarizationSequence–Number GenerationDuplicating SubtreesTable / Value LookupsTree–Reversal
![Page 6: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/6.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 3
Mapping Patterns – Summarization (I)
Summarization is when we try to consolidate detailed information into total/subtotals and counts.
The count and sum functions will act on the content of a context. Therefore, the context of the group to be summarized must be selected appropriately.
Example:
Source: Order details containing customer, order numbers and order amount
Target: Total and count the order by each customer and a summary of all orders
![Page 7: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/7.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 4
Mapping Patterns – Summarization (II)
![Page 8: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/8.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 5
Mapping Patterns – Summarization (III)
Mapping Result:
![Page 9: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/9.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 6
Mapping Patterns – Sequence–Number Generation (I)
There are situations when sequence numbers had to be generated based on the number of occurrences of the source data. This is frequently used during mapping to SAP IDocs or BAPIs when item number, which is no available from the source, had to be entered.
Example:
Source: Order information.
Target: Two complex elements had to be populated from the source. Each one contains a sequence number which matches the position of the data in the source.
Sequence number to be generated.
![Page 10: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/10.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 7
Mapping Patterns – Sequence–Number Generation (II)
There are two ways the sequence number can be generated.
1. Use Advanced User–Defined function to generate the sequence number all at once.
2. Use Simple User–Defined function to generate the sequence number for each occurrence separately, keeping track of the sequence number value previously generated.
![Page 11: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/11.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 8
Mapping Patterns – Sequence–Number Generation (III)
1. Use Advanced User–Defined function to generate the sequence number all at once.
The java function creates the sequence number all at once based on the number of elements in the source.
The sequence numbers are written to the ResultList object.
![Page 12: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/12.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 9
Mapping Patterns – Sequence–Number Generation (IV)
1. Use Advanced User–Defined function to generate the sequence number all at once.
![Page 13: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/13.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 10
Mapping Patterns – Sequence–Number Generation (V)
1. Use Advanced User–Defined function to generate the sequence number all at once.
Test Results:
![Page 14: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/14.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 11
Mapping Patterns – Sequence–Number Generation (VI)
2. Use Simple User–Defined function to generate the sequence number for each occurrence separately, keeping track of the sequence numbervalue previously generated.
The sequence number is stored in the container object. Each time it is retrieved, incremented and saved.
Note: There is no input required.
![Page 15: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/15.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 12
Mapping Patterns – Sequence–Number Generation (VII)
2. Use Simple User–Defined function to generate the sequence number for each occurrence separately, keeping track of the sequence numbervalue previously generated.
We cannot display the queue to examine the result of the mapping.
![Page 16: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/16.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 13
Mapping Patterns – Sequence–Number Generation (VIII)
2. Use Simple User–Defined function to generate the sequence number for each occurrence separately, keeping track of the sequence numbervalue previously generated.
![Page 17: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/17.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 14
Mapping Patterns – Duplicating Subtrees (I)
Even if elements are shown to occur more than once in the XML instance according to XML Schema Definition, they are only displayed once in the structure overview.
To assign source field(s) to multiple positions of an element in the target structure, the element or the entire subree can be duplicated (copied) using the context menu in the target structure.
Example:
Source: Accounting information with adjustment type and amount.
Target: Two CurrencyAmt’s are to be created. One is to credit one account. The other is to debit another account. The amount will either be positive or negative depending on the ADJTYPE.
![Page 18: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/18.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 15
Mapping Patterns – Duplicating Subtrees (II)
The subtree “CurrencyAmt” must be duplicated first. This will create 2 CurrencyAmt’s. One for credit, and one for debit.
![Page 19: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/19.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 16
Mapping Patterns – Duplicating Subtrees (III)
![Page 20: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/20.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 17
Mapping Patterns – Duplicating Subtrees (IV)
Mapping Results:
![Page 21: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/21.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 18
Mapping Patterns – Table/Value Lookup (I)
During mapping, a lookup is necessary in a different subtree structure of the XML document. This lookup process is easily accomplished using XSLT, since we can navigate the XML document using absolute or relative “path” specification. In Message Mapping, there is no facility to navigate the XML document.
In Message Mapping, we have to use the context of the different elements required for the lookup. A Java function will be needed to perform the comparisons. And, the matched values will have to be written to ResultList.
Example:
Source: Contains credit card information, with 2 subtrees. One is account information (including account number, cost center, sub–account, card type, etc.) The 2nd subtree contains detailed billing information (including account number, date, billing amount, etc.)
Target: Contains only detailed billing information, but with each billing record, the cost center, sub–account and card type from the account info record must also be included. The account number in the detail is used to do the lookup of the account information records.
![Page 22: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/22.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 19
Mapping Patterns – Table/Value Lookup (II)
Target:Source:
=
![Page 23: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/23.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 20
Mapping Patterns – Table/Value Lookup (III)Java Function:
The lookup’d value must be written to the ResultList.
![Page 24: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/24.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 21
Mapping Patterns – Table/Value Lookup (IV)
Contexts must be set a root level.
Mappings for all 3 elements are identical, except for the element names.
![Page 25: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/25.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 22
Mapping Patterns – Table/Value Lookup (V)
Mapping Results:
![Page 26: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/26.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 23
Mapping Patterns – Tree–Reversal (I) Below is a mapping scenario which reverses the parent and child nodes. A “reverse” summarizations is also performed.
Source document: Target document:
The products are to be sorted and totaled by prices with the ORDERID listed.
![Page 27: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/27.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 24
Mapping Patterns – Tree–Reversal (II)
The source document is organized by ORDERID, ITEM and price. The same product can occur in more than 1 orders.
The target document is summarized by product with a total price and listed within each product all the ORDERIDs. The same ORDERIDs can occur in more than 1 products.
The mapping needs to reverse the organization of the source document.
Based on that, the following needs to be done using the contexts/queues used by Message Mapping:
1. Get a list of all the products. Since the same product can be in multiple orders, we must eliminate the duplicates, and, then, sort them.
2. Sum the prices by product and assign those totals to the products in their sorted order.
3. Examine all the ORDERIDs and determine which ORDERIDs contain each of the products in the sorted list. Then, assign those ORDERIDs to the products.
![Page 28: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/28.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 25
Mapping Patterns – Tree–Reversal (III)
Three Java functions were written to:
1. Extract the products, eliminate duplicate names, and sort them in alphabetical order.
![Page 29: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/29.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 26
Mapping Patterns – Tree–Reversal (IV)
2. Total the prices and assign the total to the appropriate products.
![Page 30: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/30.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 27
Mapping Patterns – Tree–Reversal (V)
3. Retrieve all the orderids and assign them to the appropriate products.
Note:
“Cache Entire Queue” is checked.
When the product is being retrieved, the Context Change is skipped.
The Context Change is added to the ResultList.
![Page 31: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/31.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 28
Mapping Patterns – Tree–Reversal (VI)
Mapping for ITEM: To create the number of elements.
![Page 32: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/32.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 29
Mapping Patterns – Tree–Reversal (VII)
Mapping for the attribute NAME, which is the product name.
![Page 33: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/33.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 30
Mapping Patterns – Tree–Reversal (VIII)Display Queue for determining NAME:
![Page 34: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/34.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 31
Mapping Patterns – Tree–Reversal (IX)
Mapping to create the number of element for ORDERS_WHERE_ITEM_IS_FOUND.
![Page 35: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/35.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 32
Mapping Patterns – Tree–Reversal (X)
Mapping for the attribute TotalSalesFOrThisItem, which totals the prices by product name.
![Page 36: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/36.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 33
Mapping Patterns – Tree–Reversal (XI)
Display Queue for determining TotalSalesFOrThisItem:
![Page 37: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/37.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 34
Mapping Patterns – Tree–Reversal (XII)
Mapping for the element ORDERID, which will be listed by product name.
![Page 38: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/38.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 35
Mapping Patterns – Tree–Reversal (XIII)Display Queue for determining ORDERID:
![Page 39: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/39.jpg)
© SAP AG 2002, Title of Presentation, Speaker Name 36
Mapping Patterns – Tree–Reversal (XIV)
Partial listing of the mapping results:
![Page 40: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/40.jpg)
CPA Cache
![Page 41: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/41.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 2
Learning Objectives
As a result of this unit, you will:
Understand the basics of CPA Cache, including:ConfigurationMonitoringTroubleshootingManual refresh
![Page 42: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/42.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 3
Cache overview
Integration Server
IntegrationEngine
BusinessProcessEngineCache
TA: SXI_CACHE•Delta
•Full (only on request)
IntegrationDirectory
Integration Builder
IntegrationRepository
Central AdapterEngine
Run
time
Acc
ess
•Business Processes•Mappings•Adaptermetadata
Cac
he U
pdat
eC
ache
Upd
ate
CacheJ2EE: CPACache
•Delta•Full via URL
SLD CacheBusiness systems
SLD CacheSoftware
componentsversions “Based
On”
Business systemSLD Cache “Own Business system”•Activate Changelist
•Import•Request Cache update again
•Business Process Configuration•Routing Rules•Collaboration Agreements•Collaboration Profiles
Local Adapter Engine
Adapter Framework
CacheJ2EE: CPACache
•Delta•Full via URL
SLD Cache “Own Business system”
Repository Cache
Adapter Meta data
![Page 43: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/43.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 4
CPA Cache in general
cache for Directory & Repository data (CPACache)
cache is filled during activation within directory(process described at the end of the document)
contains objects from directory
• services• parties• bindings (inbound/outbound; sender/receiver
agreements)• channels• adapter metadata• module configuration
used in adapter framework during runtime
![Page 44: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/44.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 5
CPA Cache – display content
data can be seen in the CPACache Monitor
(not accessible per default)
http://<host>:<J2EEport>/CPACache
![Page 45: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/45.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 6
CPA Cache – display content (2)
displays objects relevant for adapter framework during runtime
![Page 46: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/46.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 7
CPA Cache: Registration/Push vs. Pull
Registration/Push Mode(automatically or manual)
PULL-Mode (Delta or Full Refresh)http://<host>:<port>/CPACache/refresh?mode=delta|full
![Page 47: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/47.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 8
CPA Cache refresh
manual refresh via URL with user “XIDIRUSER”
http://<host>:<J2EEport>/CPACache/refresh?mode=full
![Page 48: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/48.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 9
CPA Cache refresh – in detail
AdapterEngine
Notificationhandler Notif Directory
ObjectRepository
ObjectChangelist
handler
Updaterunning
Get object ids
Get Object
Get object from repository
OK / OK with errorsGeneralstatus
Notiferror
Error Statusof single objects
RuntimeCache
Update
XIAFuser XIDIRuser
Directory RepositoryAdapter Engine
![Page 49: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/49.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 10
CPA Cache - Registration
SLD
AE CPA Cache
1
Change in XI ID
2 54
3
![Page 50: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/50.jpg)
© SAP AG 2004, TBIT44: Adapters: CPA Cache / 11
CPA Cache: Schema Upload
![Page 51: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/51.jpg)
Messaging system
![Page 52: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/52.jpg)
© SAP AG 2003, Title of Presentation, Speaker Name / 2
Learning Objectives
As a result of this unit, you will:
Understand the basics of the messaging system, including:
Messaging System overviewMessage flowImplementation of different adapters
![Page 53: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/53.jpg)
© SAP AG 2003, Title of Presentation, Speaker Name / 3
Messaging system overview
XIIS
Adapter Engine
Module Processor
exitStructure conversion Other...
DBIB Directory
Store
API
CPA Cache
Receive/Send Queue
Scheduler retry/EO
Sequencer for EOIO
CPA Cache
SPI
Cache updateXML
Technical adapters
File/JDBC/JMS/ Mail
Other adapters without protocol handlerRFC/SOAP/3rd party
Adapter with protocol handler
RNIF/BC/CDIX
XI message
Protocol handler
ListenerBean
exit
MML/BC …message
XI message
XI message
XI message
XI “adapter”
Protocol handler
XI message
Configuration Configuration
PCK
AFW ListenerBean•Read agreements•Read channels
XI message
SPI
servletservlet
ConvertBean
(Adapter specific)
MML/BC …message
URL URL
Send via HTTP Send via HTTP
![Page 54: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/54.jpg)
© SAP AG 2003, Title of Presentation, Speaker Name / 4
Message status in MDT - Prerequisites
Open Runtime Workbench (RWB)Select Message Monitoringselect adapter engine
![Page 55: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/55.jpg)
© SAP AG 2003, Title of Presentation, Speaker Name / 5
Example
you can use a simple file sender / receiver scenario to test the display of status
Start (activate) the sender and receiver channel
Start (activate) only the sender channel, deactivate receiver channel
Start (activate) the receiver channel againpress button after selecting the message in “wait” mode
![Page 56: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/56.jpg)
© SAP AG 2003, Title of Presentation, Speaker Name / 6
Status overview of messages in MDT
NDLVD
TBDL
HOLD
DLNG
WAIT
DLVD
FAIL
Delivery exception
Worker thread
Scheduler/ Admin action
successful
Recoverable exception
Max. retries exceeded
EOIO, wait for other message
Admin action
![Page 57: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/57.jpg)
TBIT44: BPM
Exercise 2:Sales Order Processing
![Page 58: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/58.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 2
Use Case
ERP
Dealer Management System Supplier 1
CRM/Catalog
OrderFulfillment
Dealer Management System Supplier 3
ERPDealer
XI/BPM
CRM
Dea
ler M
anag
emen
t Sys
tem
Sup
plie
r2
Catalog
OrderSystem
OrderSystem
OtherSystem
OtherSystem
OtherSystem
OtherSystem
OtherSystem
EBP+„No-name“
Catalog
No-nameSupplier1
No-nameSupplier2
No-nameSupplier3
CRM
OtherSystem
![Page 59: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/59.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 3
ERP
Dealer Management System Supplier 1
Catalog/CRM
OrderFulfillment
ERPDealer
XI/BPM
![Page 60: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/60.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 4
OverviewCRM System AirlineGroup1
AirlineGroup2Travel AgencySummer
Integration Process
Send items 1. Receive orderitems
2. Preparations
3. Create materialsif necessary
Create materials
4. Create purchase and sales order
Create purchase and sales order
5. Send purchase order to supplierand receive confirmation
Receive ordersend confirmation
Preparations
![Page 61: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/61.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 5
Integration Process
1 2 3
4 5
![Page 62: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/62.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 6
Web Dynpro User Interface
![Page 63: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/63.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 7
Exercise 1: Receive Spare Part Items
Collect pattern:Items correlated by CustomerNoEnd condition:
after sending 3 items
Asynchronous Web Dynpro - XI Communication using SOAP Adapter
![Page 64: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/64.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 8
Exercise 2: Preparations
Transformation step
Synchronous send step
catches application and
system exceptions
Returns a list of materials that have
to be created
Application exception
![Page 65: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/65.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 9
Exercise 3: Create Materials
Material1
Material2
System1System2
System1System2
![Page 66: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/66.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 10
Exercise 4: Create Purchase and Sales Order
• Fork for parallel processing• Transport and application acknowledgments• Using send contexts• Correlation• Container operations• Switch• “Manual Exception Handling”
![Page 67: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/67.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 11
Exercise 4: Create Purchase and Sales Order
Purchase order errorcan be correctedin a given timeframeby starting the reportmanually
Report executed in time. Message sent to the process indicating the that purchase order is ok. The process PurchaseOrder status is updated.
“manual compensation”
![Page 68: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/68.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 12
Exercise 4: Create Purchase and Sales Order
If an error in the purchase order is not compensated “manually” (see last slide), the Purchase Order Status flag keeps the status ERROR for the process. If the timeout occurs, the process continues and runs into “automatic compensation”.
If either the purchase order OR the sales order run into an error, the “automatic compensation” branch cancels BOTH Orders, raises an alert, and then cancels the whole process
“Automatic compensation”
![Page 69: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/69.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 13
Exercise 5: Send Purchase Order
• Purchase order is sent• Order confirmation is received• Order confirmation is acknowledged
![Page 70: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/70.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 14
Runtime Example: SXMB_MONI
![Page 71: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/71.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 15
Runtime Example: Workflow Log
![Page 72: Tbit44 en Col51 Fv Show](https://reader036.vdocuments.us/reader036/viewer/2022082221/553d1d8a4a7959473a8b4bc7/html5/thumbnails/72.jpg)
© SAP AG 2004, SAP NetWeaver Henrik Stotz 16
Runtime Example: Graphical Workflow Log