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

screen painter: input/output field

Former Member
0 Likes
2,683

Hello,

I add input/output fields to the screen. Some fields are defined as 'DATS', and some are 'TIMS'. To validate the input, I don't wanna user to input data to these fields manually. I wanna enable them to choose date from the calendar and sort of clock to avoid invalid input. How can I achieve this using screen painter?

Thanx.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,882

SAP Screen validates input irrespective of manual or system input.

Why involve extra effort?

Hello,

I add input/output fields to the screen. Some fields are defined as 'DATS', and some are 'TIMS'. To validate the input, I don't wanna user to input data to these fields manually. I wanna enable them to choose date from the calendar and sort of clock to avoid invalid input. How can I achieve this using screen painter?

Thanx.

4 REPLIES 4
Read only

Former Member
0 Likes
1,882

Below is the link which was clearly mentioned in that thread about that one. Hope it solves you the problem.

http://scn.sap.com/thread/1563006  

And you may reply back if you benefit from that link.

Read only

Former Member
0 Likes
1,882

Hi t s,

         double click on your date field in screen painter. a pop up will open...put mara-ersda in NAME field in pop up screen. in the same pop up(Dict tab) check from dict. check box. go to 'program' tab and put '1 show at selection' in poss. entries key.. save and activate..execute and you will get your desired output in date field.   OR you can define in global declaration area like

    Data: date type ersda.

     Data: time type uzeit.

your problem will be solved....

Regards

Sabyasachi

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,882
  • For date you could "play" with cl_gui_calendar (look via SE38 at SAP demo program like SAPCALENDAR_DEMO1 and similar report)
  • For time, you could break field in 3 fields and attach dropdown list with value 0-23/0-59/0-59

Regards,

Raymond

Read only

Former Member
0 Likes
1,883

SAP Screen validates input irrespective of manual or system input.

Why involve extra effort?