Enter Title Here: Do not exceed space provided - Title

advertisement
Syndication of “Time Stamp” Field
Applies to:
SAP Master Data Management (MDM) SP06. For more information, visit the Master Data Management
homepage.
Summary
The article is about the syndication of timestamp in local time instead of GM time.
Author:
Ankit Jain
Company: Wipro Technologies
Created on: 20 July 2008
Author Bio
I am working as a Consultant with Wipro Technologies for over 1.5 yrs. I am a member of
MDM Core competency team.
.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
1
Syndication of “Time Stamp” Field
Table of Contents
Business Scenario ..............................................................................................................................................3
Process Flow...................................................................................................................................................3
MDM Data manager &Syndicator ................................................................................................................................3
MDM Console ..............................................................................................................................................................6
MDM Data Manager.....................................................................................................................................................7
MDM Syndicator ..........................................................................................................................................................8
Summary...........................................................................................................................................................11
Related Content................................................................................................................................................11
Disclaimer and Liability Notice..........................................................................................................................12
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
2
Syndication of “Time Stamp” Field
Business Scenario
The article describes the methodology to syndicate the time stamp field in local time instead of GM time as
when we try to syndicate the time stamp field it is in GMT.
In MDM console we have a field type “time stamp” .This field is grayed out in MDM data manager is
populated with the time, this time gets updated ( for a particular record) when ever a record gets updated.
Now the issue is that whenever we try to syndicate it always syndicates in GM and not in local time. The
article gives a methodology to syndicate the time in local.
Process Flow
(A) MDM Data manager & Syndicator
Record Mode
Normal Syndication
(B) MDM Console
1. Defining “Literal” Field
2. Literal Field as “Calculated”
(C) MDM Data manager
1. Value populating
(D) MDM Syndicator
1. Syndicating time field
MDM Data manager &Syndicator
Record Mode
In MDM console, the field “Update date” is of type “Time Stamp” .In Mdm data manager, in record
mode this field is grayed out and the user cannot alter it.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
3
Syndication of “Time Stamp” Field
The Update date field populates itself with the value of date and time when the record is updated/modified.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
4
Syndication of “Time Stamp” Field
Normal Syndication
In MDM Syndicator, define the destination fields as define in the example under the destination items tab
After defining, the destination items map the source and the destination fields under the mapping tab
Map the “Update date” with the destination item “Update time”.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
5
Syndication of “Time Stamp” Field
After mapping, we can see in the destination item tab, how the values will be syndicated. As in the fig.
“Update date” value is syndicated in GMT.
Now to syndicate the Update time in local tome instead of GMT will take the following steps.
MDM Console
Defining “Literal” Field
A field “Time” is defined in the MDM Console of type “Literal Time”.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
6
Syndication of “Time Stamp” Field
Literal Field as “Calculated”
Make the field as “Calculated” and writ the following expression in the “Calculation”.
MDM Data Manager
Value populating
In MDM Data manager, the field will be in grayed out state and we cannot alter it.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
7
Syndication of “Time Stamp” Field
The field will automatically show the “Updated time” in the local time format and not in GMT.
If it is not giving, just do “Recalculate”.
MDM Syndicator
Syndicating time field
In MDM Syndicator, define the destination items and then map the source and destination item under the
item-mapping tab.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
8
Syndication of “Time Stamp” Field
Map the literal time source field “Time” with the destination “Time”.
In the destination preview, we can see the format in of field values will be syndicated. As in the below fig.
field “Time” values are in local time rather than GM time.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
9
Syndication of “Time Stamp” Field
Now syndicate the records as text file and in the text file, records are syndicated in local time format.
We can also alter this time by adding one hour or two hour. For this, we have to rewrite the assignment in the
format as
This expression will give the time as “Update time + 2 hrs”
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
10
Syndication of “Time Stamp” Field
Summary
In MDM Syndicator, we can syndicate the updated time as local time instead of GM time by defining a literal
field in MDM console.
Related Content
http://help.sap.com/saphelp_mdmgds55/helpdata/en/88/9f9c427055c66ae10000000a155106/frameset.htm
http://help.sap.com/saphelp_mdmgds55/helpdata/en/43/e0615a82b40a2ee10000000a11466f/frameset.htm
For more information, visit the Master Data Management homepage.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
11
Syndication of “Time Stamp” Field
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.
SAP DEVELOPER NETWORK | sdn.sap.com
© 2008 SAP AG
BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com
12
Download