Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Wrong date format in FM: RH_READ_OBJECT

0 Likes
904

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!

5 REPLIES 5
Read only

Former Member
0 Likes
843

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

Read only

Former Member
0 Likes
843

Caveat emptor when using unreleased SAP FMs.

Rob

Read only

0 Likes
843

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!

Read only

0 Likes
843

And it's documented

Better send it to OSS.

Rob

Read only

0 Likes
843

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