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

Format the date in Smartform

Former Member
0 Likes
702

Hi Experts,

Please tell me how to format the date in Smartform...I mean if my date is

'04.03.2007' ..I wanted to print it as 4 March,2007.

Please reply me back..its urgent..

Hi Experts,

Please tell me how to format the date in Smartform...I mean if my date is

'04.03.2007' ..I wanted to print it as 4 March,2007.

Please reply me back..its urgent..

4 REPLIES 4
Read only

Former Member
0 Likes
675

Hi,

You can use the date format for printing : DDMMMMYYYY

SET DATE FORMAT DDMMMMYYYY...

regards,

Anji

Message was edited by:

Anji Reddy Vangala

Read only

Former Member
0 Likes
675

Hi Ujjwala,

To convert the date in the format you have asked for you can use the function module.


CONVERSION_EXIT_IDATE_OUTPUT

Thanks,

Kunjal

Read only

Former Member
0 Likes
675

Hi Dalvi,

Please refer the link,

Best Regards.

    • Reward points if it is useful.

Read only

Former Member
0 Likes
675

hai

plz check this code

DATA :i_monthname TYPE TABLE OF t247,

w_monthname TYPE t247,

v_date TYPE sy-datum,

v_year TYPE bkpf-gjahr,

v_month TYPE bkpf-monat,

v_day(2) TYPE c,

v_ndate(11) TYPE c.

CALL FUNCTION 'MONTH_NAMES_GET'

EXPORTING

language = sy-langu

TABLES

month_names = i_monthname.

CALL FUNCTION 'CACS_DATE_GET_YEAR_MONTH'

EXPORTING

i_date = sy-datum

IMPORTING

e_month = v_month

e_year = v_year.

MOVE sy-datum TO v_date.

SHIFT v_date BY 6 PLACES.

v_day = v_date.

READ TABLE i_monthname INTO w_monthname WITH KEY mnr = v_month .

CONCATENATE v_day '-' w_monthname-ktx '-' v_year INTO v_ndate.

WRITE:/ v_ndate , sy-datum.

**Please reward suitable points***

With Regards

Navin Khedikar