Application Development 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: 

Problem while saving date field in custom table

Former Member
0 Kudos
65

Hi,

Iam facing the following problem while saving a date field in custome table

i have a date field zdate in which the value is 02082010.

now when i try to insert this value in the custom table it is getting updated as 20/10/0208 , but it should be 08/02/2010

How can i correct it..

Regards

Kumar

2 REPLIES 2

former_member156446
Active Contributor
0 Kudos
32

just before saving u might have to use a string reverse FM and then save it..

CALL FUNCTION 'STRING_REVERSE'
  EXPORTING
    STRING          = p_string
    LANG            = sy-langu
 IMPORTING
   RSTRING          = r_string
 EXCEPTIONS
   TOO_SMALL        = 1
   OTHERS           = 2
          .

Former Member
0 Kudos
32

Moderator message - Please see before posting - post locked

Date questions are generally not allowed.

Rob