‎2011 Apr 29 1:37 PM
Hi All,
I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
It is strange because it does not happen all the time just in some particular scenarios.
Do you have any idea about this issue? Is there any note related to this?
Below a link to a debug screenshot:
[http://tinypic.com/view.php?pic=1zegppt&s=7]
Thanks!
‎2011 Apr 29 2:14 PM
Hi,
In the FM - RH_READ_OBJECT, Exporting parameter OBEG is declared as the type of PLOG-BEGDA.
PLOG-BEGDA is declared with the data element BEGDATUM. The domain DATUM which is used in BEGDATUM have the Data Type DATS format which have the format - Date field (YYYYMMDD) stored as char(8).
Conversion routine is also not available in the DOMAIN.
Thanks & Regards,
Harish
‎2011 Apr 29 2:18 PM
‎2011 Apr 29 2:39 PM
Hi All and thanks for you answers.
Harish:
You are right there is not conversion routine for field OBEG so date should be in Sap internal format which is YYYYMMDD but 20112804 is a wrong value.
Rob:
FM: RH_READ_OBJECT is a sap released FM on 04/07/1998
Any other idea on this?
Thanks!
‎2011 Apr 29 4:19 PM
‎2011 Apr 29 6:36 PM
Hi,
Try debugging the FM and check at which point the wrong date is passed on to OBEG export parameter.
There is a piece of code available in FM -
obeg = temp_buffer-begda. .
May be some problem can occur fetching from buffer.
Harish