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: 

Bypass User profile DATE

Former Member
0 Kudos

Hi,

Whatever be the date format in USer Profile, I want to bypass that and do the posting.

Let say when the profile is MM.DD.YYYY, My below logic works else fails ...

reversaldate0(4) = p_header-stodt6(4).

reversaldate4(2) = p_header-stodt3(2).

reversaldate6(2) = p_header-stodt0(2).

IS there any function module for this???

Thanks in advance.

1 REPLY 1

Former Member
0 Kudos

Hi,

At runtime you can fetch the data format, which is available in the table USR01, and code accordingly.

In the above table you will have field called DATFM.

Let's say, if it is '1', then date format is DD.MM.YYYY

IF it is '2', then it is MM/DD/YYYY.

Also check the transaction SU01 and code accordingly.