Application Development and Automation 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: 
Read only

Static input help for DATS type

Former Member
0 Likes
1,843

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
Read only

Former Member
0 Likes
1,805

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
Read only

Former Member
0 Likes
1,806

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

Read only

0 Likes
1,805

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

Read only

0 Likes
1,805

Hi,

you can give<b> DATEX</b>

Regards

vijay

Read only

0 Likes
1,805

Hi Vijay,

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

'Function module "CONVERSION_EXIT_DATEX_OUTPUT" not found.'

Regards,

Josef Motl

Read only

0 Likes
1,805

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

Read only

0 Likes
1,805

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

Read only

0 Likes
1,805

Hi,

what is the version you are in..

Regards

vijay

Read only

0 Likes
1,805

6.40, Component version: "Netweaver 04"

Regards,

Josef

Read only

0 Likes
1,805

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

Read only

0 Likes
1,805

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

Regards,

Josef

Read only

0 Likes
1,805

Hi,

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

Read only

0 Likes
1,805

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

Read only

0 Likes
1,805

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

Read only

0 Likes
1,805

Thank you Vijay,

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

Regards,

Josef

Read only

Former Member
0 Likes
1,805

CONVERT_DATE_INPUT

Read only

Former Member
0 Likes
1,805

Hi,

you need to use conversion routine.

<b>CONVERT_DATE_TO_INTERNAL</b>

Regards

vijay