on 2016 Jul 05 8:10 PM
Hi,
How to use FM EHSB_TMSTMP_READ_TIMESTAMPS properly to get some "date/time etc."
Like to. Change whole specification data in admin data.
Thanks
Satya
Request clarification before answering.
Hi CB,
I have to do any enhancements to achieve this or how to use function module.
Thanks
Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Satya
Coming back to this demand:
"
Change whole specification data in admin data."
and to the function modules as mentioned. These are "new" (may be with EnhPack 3..) and according to what i can see;: they seems to be prepared to "help" SAP EHS Expert in calculation. THis is what i know. if you activate some business functions then you can improve the "Expert" approach; this seems to be the process:
a.) system detect relevant Expert change (based on list of rule sets)
b.) relevant data is passed on to Expert server and here you will have now a kind of "cache" existing
That means as long as the "relevant" data is not changed SAP EHS expert uses the data in the "cache" to calculate. This will in my opinion really speed up the calculation as the time consuming factor is the "read" part; and now this is not needed any more
Coming back to administrative data: on spec header we have some "administtative" data; the OSS note (refer to parallel thread) explains pretty well: at which point in time which "field" is filled etc.
Generally: you should not change these values by custom routines ! I have not invested the topic deep:
what i know is: because of "relevance flag" in WWI reports you can now "somehow" dig more easily deeper and collect information about not only the "date" of a change but the "time" as well.
We don't use this.
What is the business background of your question?
I am asking this because many/some people "ignore" a liitle bit that we have e.g. "EHS workflow" as well. If your business need would run like.
if data "X" is changed (reason is not of interest) then persons Y need to be informed (or group of persons) then EHS workfow is the "right" tool.
In any case. if you have hit list you can analyse the "change docs" per spec in HItlist; and change docs are written wirth Date and time. (e.g. take a look here: )
C.B.
Dear Satya
if you check the function group in which this function module is located you will realize additional function modules as:
EHSB_TMSTMP_WRITE_TIMESTAMPS SAP ABAP Function Module
If you dig deeper you will realize that the "write" part is used in: SAP ABAP Function Module C1F2_SUBSTANCES_SAVE_TO_DB (EHS: Spezifikationsdaten aus den Puffern in die...
First you need to understand the "general" idea of EHS used; and then look on "details".
Using the general approach SAP EHS is designed in such a way that data is "changed" by "Day" (tables as ESTRH etc. are "day" ortiented), If you check deeper you will realize that the changes done are stored with more detail in CDHDR/CDPOS (here with e.g. time relation as well) and if you check as well deeper you will realize that e.g. in WWI environment the "time" topics is now used for "relevance marks" in WWI reports
If you check the parallel discussion: there is an OSS mote mentioned. This note is crucial/important to understand the "changes" done in ESTRH and how it works (not easy to understand the stroy as explained)
Link: SAP ABAP Function Module EHSB_TMSTMP_READ_TIMESTAMPS (Lesen vom Zeitstempeln) - SAP Datasheet - The ... might suggest (I did not check) that this "READ" thing is as well used for "performance improvement topics" in EHS Expert rules
So in my opnion: first analyse teh "Write" story and then you will understand the "Read" paet as well
Never have used this function moduel up to now in e.g. customer solution. So experience is "limited"
C.B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.