cancel
Showing results for 
Search instead for 
Did you mean: 

Month view in smart form depending on date

Former Member
0 Kudos

if the date is 01.01.08 I want it to display as 01 Jan 08..?and if is

02.02.08 I want it as 02 Feb 08..

How to resolve this in smart form field..?

let me know..

Thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Use this Function module:

CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'

EXPORTING

INPUT = V_VFDAT

IMPORTING

OUTPUT = F_VFDAT.

Regards,

Shiva Kumar

Former Member
0 Kudos

Hi,

You have to do it manually. First get month name from table T015M and concatenate it.


data: l_month         type MONAM,
        l_monum       type MONUM,
        l_old_date      type text8 value '01.01.07',
        l_new_date    type text10.

    l_monum  = l_old_date+3(2).

    SELECT SINGLE MONAM INTO l_month
    FROM T015M
    WHERE SPRAS EQ 'E'
      AND MONUM EQ l_monum .

    Concatenate l_old_date(2) l_month(3) l_old_date+6(2)
    Into  l_new_date separated by space.

You can add those code at initialization.

Regards,

Former Member
0 Kudos

Hi,

You should write code in order to obtain this,

If v_date is your date field.

In the porgram logic you check for v_date+4(2)

If g_date+4(2) = '01'.

concatenate g_date6(2) 'JAN' g_date0(2) into g_date.

elseif g_date_4(2) = '02'.

concatenate g_date6(2) 'FEB' g_date0(2) into g_date.

elseif...................

then display g_date.

Regards

Madhu G S

Reward Points if usefull