Application Development and Automation 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: 
Read only

Display date in SAP Script...?

naresh_kanderi
Explorer
0 Likes
702

Hi Experts,

   How can i display a date in SAP Script in the this format "Date : 1st January 2014"  or  "Date : 2nd January 2014 " like this . I dont know how do do this in SAP Script  ? Plz tell ..

Thanks

Naresh

1 ACCEPTED SOLUTION
Read only

muneshpatwari
Active Participant
0 Likes
603

Hi Naresh,

There is a command "SET DATE MASK", but I don't think it will serve your purpose as you need the month in words. Better is to write a custom logic for date in a subroutine pool and display it in your script. 

Regards,

Munesh.

3 REPLIES 3
Read only

muneshpatwari
Active Participant
0 Likes
604

Hi Naresh,

There is a command "SET DATE MASK", but I don't think it will serve your purpose as you need the month in words. Better is to write a custom logic for date in a subroutine pool and display it in your script. 

Regards,

Munesh.

Read only

naresh_kanderi
Explorer
0 Likes
603

Thanks for your reply Munesh,

          yes , I think like this only. Is there no function module for this way of date display ha? Anyway thanks for your reply..

Thanks

Naresh

Read only

0 Likes
603

Hi Naresh,

There are a lot of function modules to display the month in words.

Try using: CONVERSION_EXIT_LDATE_OUTPUT,

                  MONTH_NAMES_GET.

Regards,

Munesh.