2009 Aug 26 6:41 AM
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.
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.
2009 Aug 26 7:07 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |