‎2009 Jan 08 7:15 AM
Hi,
I want to enter the month name into my input field i should convert into date.
Ex; if i enter my input fields JAN to APRIL.
these months should be convert into date format like 01 to 04.
Please help me.
nani
‎2009 Jan 08 8:01 AM
Hi Nani,
Do it this way:
data:
w_MNR type t247-MNR.
DATA:
w_LTX type t247-LTX.
w_MNR = sy-datum+4(2).
select single LTX
from T247
into w_LTX
where spras eq 'E'
and MNR eq w_MNR.
write:
w_LTX.With luck,
Pritam.
Edited by: Pritam Ghosh on Jan 8, 2009 9:12 AM
‎2009 Jan 08 7:18 AM
‎2009 Jan 08 7:19 AM
hi,
use this table and write logic accordingly.
T247
fields:
KTX - Month short text
LTX - Month long text
MNR - Month number.
‎2009 Jan 08 7:33 AM
Hi,
Please refer this table T247 - Month name and short text
Use these fields MNR Month number
KTX Month short text
LTX Month long text
Regards,
Jyothi CH.
‎2009 Jan 08 7:33 AM
‎2009 Jan 08 8:01 AM
Hi Nani,
Do it this way:
data:
w_MNR type t247-MNR.
DATA:
w_LTX type t247-LTX.
w_MNR = sy-datum+4(2).
select single LTX
from T247
into w_LTX
where spras eq 'E'
and MNR eq w_MNR.
write:
w_LTX.With luck,
Pritam.
Edited by: Pritam Ghosh on Jan 8, 2009 9:12 AM