cancel
Showing results for 
Search instead for 
Did you mean: 

BSP HTMLB Date Input field

Former Member
0 Kudos

Hello All,

I have a input field of type date in a table view control. After selecting a date from the calendar pop up, user is submiting the data and coming back to the same page. In such case the date field behaves different and does not display the date properly. It adds dots and cut the data in zunk format. has anybody face such kind of problem? Kindly send me replies at an earliest.

Regards - Navneet

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Declare the data type of the input field as String when input processing use ABAP Function module CONVERSION_EXIT_ALPHA_INPUT to convert the data into input format and when data from database to be displayed use CONVERSION_EXIT_ALPHA_OUTPUT and assign it to the input field of the page.

This should work and works for me all the itme.

Hope this helps...

-Suresh

Former Member
0 Kudos

Hello Navneet-

I have had a problem like the one you have described in one of my projects. It was similar but not exactly the same.

I had an input-field with the type 'date' and 'showhelp' parameter turned 'on' (hence the neat little date-navigator). When the user clicked on the date-navigator and chose a date then it showed up in the input-field in the date format specified in the user's profile. However when I passed that date to a parameter and processed it, it had been automatically converted into the SAP YYYYDDMM format. My ABAP function module had a date input attribute referencing the date format specified in the user's profile and so this converted date resulted in erroneous processing by my function module. To fix this I wrote a tiny bit of ABAP code that took this date in the SAP YYYYDDMM format and converted it back into the date format specified in the user's profile.

By the way, as courtesy towards your fellow forum users, please don't append your messages with orders such as "send me replies at earliest". Typically, if someone in this forum knows the solution to your problem or the answer to your question, then they will relate it to you at THEIR earliest convenience.

Take care,

- Vik.

former_member181879
Active Contributor
0 Kudos

> By the way, as courtesy towards your fellow forum

> rum users, please don't append your messages with

> orders such as "send me replies at earliest".

Hear! Hear! I fully agree with Vik.

This "urgent" stuff irritates and quickly catches a 24 hour penalty.

++bcm