Skip to Content
author's profile photo Former Member
Former Member

Bypass User profile DATE

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 26, 2009 at 06: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.