Application Development 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: 

Static input help for DATS type

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

16 REPLIES 16

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

you can give<b> DATEX</b>

Regards

vijay

0 Kudos

Hi Vijay,

thank you for your reply. I'm getting error:

'Function module "CONVERSION_EXIT_DATEX_OUTPUT" not found.'

Regards,

Josef Motl

0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

what is the version you are in..

Regards

vijay

0 Kudos

6.40, Component version: "Netweaver 04"

Regards,

Josef

0 Kudos

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

0 Kudos

But what I want is input help with popup window with calendar...

Regards,

Josef

0 Kudos

Hi,

Just declare the variable on the screen as some date field.Use SY-DATUM,instead of DATS type.

0 Kudos

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

0 Kudos

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

0 Kudos

Thank you Vijay,

It works. Do it again - this is the key:)

Regards,

Josef

Former Member
0 Kudos

CONVERT_DATE_INPUT

former_member188685
Active Contributor
0 Kudos

Hi,

you need to use conversion routine.

<b>CONVERT_DATE_TO_INTERNAL</b>

Regards

vijay