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 the date

Former Member
0 Likes
541

Hi all,

Can anyone please help me? In the selection criteria, When the user selects the year as 2008 and the month as 04 then I'd like the date in my report to be displayed as April-2008. Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

Hi,

PARAMETERS:

year(4) type n,

month(2) type n.

data:

w_month(10) type c,

w_format(20) type c.

case month.

when '01'.

w_month = 'jan'.

when '02'.

w_month = 'feb'.

endcase.

concatenate w_month '-' year into w_format.

write: / w_format.

like there u mention all the months

plzz reward if it is usefull to u

plzz dont forget to reward....

Thanks

Hi all,

Can anyone please help me? In the selection criteria, When the user selects the year as 2008 and the month as 04 then I'd like the date in my report to be displayed as April-2008. Thanks in advance

4 REPLIES 4
Read only

Former Member
0 Likes
519

Shaheen

I guess this is your 3rd post.

Can you clarify what is in your selection screen

Date?

OR

Month and Year?

Maybe sending your selection screen definition and expected result can help you receive better advices.

Regards

Eswar

Read only

Former Member
0 Likes
519

HI,

You can call the FM 'MONTH_NAMES_GET'. Then after CONCATENATE month '-' year into v_date.

Rgds,

Bujji

Read only

Former Member
0 Likes
520

Hi,

PARAMETERS:

year(4) type n,

month(2) type n.

data:

w_month(10) type c,

w_format(20) type c.

case month.

when '01'.

w_month = 'jan'.

when '02'.

w_month = 'feb'.

endcase.

concatenate w_month '-' year into w_format.

write: / w_format.

like there u mention all the months

plzz reward if it is usefull to u

plzz dont forget to reward....

Thanks

Read only

Former Member
0 Likes
519

Hi,

Check this function module:

CONVERSION_EXIT_LDATE_OUTPUT

By passing date e.g. 20080401 (i.e. 01.04.2008 in YYYYMMDD format)

it returns

01. April 2008.

You can use this to get your requirement.

Cheers,

Aditya