‎2009 Feb 24 5:26 AM
Hi ,
in the selection screen i need data field as select-options and like MMM.YYYY format so is there any field like this in SAP and i need to validate that field also is there any manual validation is there like sy-datum.Please help me .
THX..
‎2009 Feb 24 5:36 AM
Hi:
There are so many data element to display MMYYYY like PDUV37 etc but it display it in MMMYYYY format, you have to call a function module to convert it.
Regards
Shashi
‎2009 Feb 24 5:28 AM
You have to handle this logic manually, i dont think we have field like this. If you find please reply
‎2009 Feb 24 5:35 AM
You can use any data element which have domain of CHAR 8 and further you can validate with
Sy-datum using offsets.
‎2009 Feb 24 5:36 AM
Hi:
There are so many data element to display MMYYYY like PDUV37 etc but it display it in MMMYYYY format, you have to call a function module to convert it.
Regards
Shashi
‎2009 Feb 24 5:38 AM
‎2009 Feb 24 5:40 AM
hi,
use this function module....
call function 'CONVERT_DATE_TO_EXTERNAL'
exporting
date_internal = sy-datum
importing
date_external = v_date " variable
exceptions
date_internal_is_invalid = 1
others = 2.
if sy-subrc <> 0.
endif.
‎2009 Feb 24 5:42 AM
Hi,
It might not 002.2009 for this month.
It may be Feb.2009, Mar.2009, Apr.2009 ..etc.,
We can do this with function modules by converting the month into 3 letter format.
--Naveen Inuganti
‎2009 Feb 24 5:49 AM
Hi,
Use this data element
JAHRPERALT.
Best Regards,
Surendar Reddy.