cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Day, Month Name and Year in Smartform

former_member367551
Participant
0 Kudos

Dear forumers,

I would need to display the day, month name and the year in my smartform.

E.g. 12 December 2008

Are there any system variables for this? I know that there is only &SFSY-DATE& for this, and there are no such variables as &SFSY-DAY& or &SFSY-MONTH& or &SFSY-YEAR&.

Please help, I apologize for such a newbie question too.

Many thanks for any help at all!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI.

to fetch the texy for the moth...

SELECT SINGLE ltx

FROM t247

INTO g_monthtext

WHERE spras = sy-langu

AND mnr = SFSY-MONTH.

and place the varibale in the text elements

&SFSY-DAY& &g_monthtext& &SFSY-YEAR&.

former_member367551
Participant
0 Kudos

Got it. Thanks.

Answers (2)

Answers (2)

Former Member
0 Kudos

u can use string manipulation techniques to extract day month and year.

and make it a habit to search SCN bfore u post such queries.

Former Member
0 Kudos

This question has been answered many times. Search for the FMs which are used.You can call those FMs in the program lines node and get the required result. Search in ABAP general forum.