02-27-2006 2:00 PM
Hello,
I'd like to link static input help for screen field of DATS type. If I click on help linked to this screen field I get CONVT_NO_NUMBER error: 'Unable to interpret "=2" as a number.'
My steps:
- In Screen Painter I selected desired screen field and selected DATS type and "1 Show at selection" in its details.
- I defined global variable with same name as desired screen field
What's the problem?
Best regards,
Josef Motl
02-27-2006 2:03 PM
Hi ,
For Date Conversions use :
CONVERT_DATE_TO_EXTERNAL Conversion: Internal to external date (like screen conversion)
CONVERT_DATE_TO_INTERNAL Conversion: External to internal date (like screen conversion)
Regards,
Lanka
02-27-2006 2:03 PM
Hi ,
For Date Conversions use :
CONVERT_DATE_TO_EXTERNAL Conversion: Internal to external date (like screen conversion)
CONVERT_DATE_TO_INTERNAL Conversion: External to internal date (like screen conversion)
Regards,
Lanka
02-27-2006 2:11 PM
Hi Lanka,
thank you for your reply. Can you tell me where to put this conversion routines? I can't find corresponding properties in screen field's details..
Best regards,
Josef
I only found Conv.Exit (convertion routine) property, but it has only 5 letters to put.
Message was edited by: Josef Motl
02-27-2006 2:32 PM
02-27-2006 2:50 PM
Hi Vijay,
thank you for your reply. I'm getting error:
'Function module "CONVERSION_EXIT_DATEX_OUTPUT" not found.'
Regards,
Josef Motl
02-27-2006 3:00 PM
Hi,
this is the FM' for DATEX .
CONVERSION_EXIT_DATEX_INPUT
then why it is giving like that...
can you recheck it once again..
Regards
vijay
02-27-2006 3:09 PM
Hi,
FM CONVERSION_EXIT_DATEX_INPUT doesn't exists on my system.
I was searching in se37 and I found in function group SCA1 this FM's:
CONVERSION_EXIT_IDATE_INPUT
CONVERSION_EXIT_IDATE_OUTPUT
CONVERSION_EXIT_LDATE_OUTPUT
So I try IDATE and LDATE, but I'm still getting error: 'Unable to interpret "=2" as a number'.
Regards,
Josef
I tried MODAT and PDATE too.
Message was edited by: Josef Motl
02-27-2006 3:29 PM
02-27-2006 3:34 PM
02-27-2006 3:43 PM
or else you can do some thing like this, give type as char(of length 10), now validate the date after input, it is in the proper format or not. like we do normal validation in module pool.
if it is valid then move that to date field.and proceed ...
Regards
vijay
02-27-2006 4:30 PM
But what I want is input help with popup window with calendar...
Regards,
Josef
02-27-2006 4:32 PM
Hi,
Just declare the variable on the screen as some date field.Use SY-DATUM,instead of DATS type.
02-27-2006 4:39 PM
Hi,
do this way.....
first declare the variable in program as
1. data: date type sy-datum.
2. now go to your screen,(click on F6) use get from Program
now choose date form it , and say ok, now save it and activate it.
delete the old one..
now you will be able to get all the things which you want.
automatical validation also possible, and F4 also possible.
Regards
vijay
02-27-2006 4:41 PM
Hi,
As <u>Vijay</u> correctly mentioned :
You can Validate the date entered in the Pop-up by using m
function module : CONVERT_DATE_TO_INTERNAL
Whether the date entered is valid or not.
Regards,
Lanka
02-27-2006 5:17 PM
Thank you Vijay,
It works. Do it again - this is the key:)
Regards,
Josef
02-27-2006 2:05 PM
02-27-2006 2:08 PM
Hi,
you need to use conversion routine.
<b>CONVERT_DATE_TO_INTERNAL</b>
Regards
vijay