on 09-16-2010 1:19 PM
Hello All,
Currently I am working on MDM 5.5 and need to have some suggestions on ABAP API Function module to store date values in MDM.
We have interface from where we take the user input which updates the field value back in the MDM.
On the basis of similar scenario we have "DATE" field on the interface which will update the date and time in MDM, also we are making use of ABAP API for development.
The problem is that data type mismatch is happening between MDM and ABAP API,please let me know which ABAP API Function module should we use which simply accepts the DATE and TIME for every single record.
Source code provided will be much more appreciable.
Regards,
Swapnil
Hi Swapnil,
To update fields in MDM with data type Literal Date and Time ,u need to use data type MDM_CDT_DATE_TIME in ABAP side.
Regards,
Neethu Joy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swapnil,
Please check this link
http://help.sap.com/saphelp_nwmdm71/helpdata/en/49/b6aac489071b93e10000000a42189b/frameset.htm
Thanks,
Sudhanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhanshu,
Thanks for your response.
I have gone through your provided link, it is on MDM 7.1 TUPLE related record level and our requirement is in MDM 5.5.
It would be helpful for me if you provides the details on the MDM 5.5 function modules on DATE & TIME.
Important Hint:
In our current MDM 5.5 we maintained Date and Time as Literal date and time.
Regards
Swapnil
Edited by: Swap_neil on Sep 17, 2010 8:35 AM
Hi Swapnil.
In the same link provided by Sudhanshu, can you navigate to the node "Retrieving Complex Types".
It has sample codes and MDM interfaces for TimeStamp, Time Stamp, User Stamp, Literal Date, Literal Time etc.
As suggested, you can also try to use the type MDM_CDT_DATE_TIME.
See the sample code provided in the link as below:
Type: MDM Literal date:
CLEAR lv_date.
CONVERT TIME STAMP ls_result_ddic_ex-fieldliteraldate-content TIME ZONE sy-zonlo INTO DATE lv_date.
WRITE: AT (10) lv_date, '|'.
Type: MDM Literal time:
CLEAR lv_time.
CONVERT TIME STAMP ls_result_ddic_ex-fieldliteraltime-content TIME ZONE sy-zonlo INTO TIME lv_time.
WRITE: AT (10) lv_time, '|'.
Regards
Bala
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.