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

Date Conversion in User Profile format

Hi,

I want date as report ouput in the format set in User Profile (su01)

for example: date is cming in YYYYMMDD format from the table and in my userprofile it is set as DD.MM.YYYY, it shud give o./p in DD.MM.YYYY format.

I have tried with FUnction Module CONVERT_DATE_TO_EXTERNAL.

But its not working and giving o/p in MM/DD/YYYY format eventhough i have set date format as DD.MM.YYYY in my profile.

Kindly suggest any other way.

Thanks In Advance.

Sapna

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 Nov 21, 2007 at 02:10 PM

    Dear Sapna,

    The simple way to convert the date in user format is to use WRITE statement. Find the below e.g.,

    DATA:

    lv_date TYPE sydatum,

    lv_char TYPE char10.

    lv_date = '20071121'.

    WRITE lv_date TO lv_char.

    WRITE lv_char.

    Regards

    Kesava

    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.