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

Reg : Screen Programming

Former Member
0 Likes
466

Hello All,

Currently am working in time sheet in screen programming. Am bringing the calendar control using custom controller concepts, which the code as follows,

CLASS lcl_event_receiver DEFINITION.

PUBLIC SECTION.

METHODS dateselected

FOR EVENT date_selected OF cl_gui_calendar

IMPORTING date_begin

date_end.

ENDCLASS. "lcl_event_receiver DEFINITION

CLASS lcl_event_receiver IMPLEMENTATION.

METHOD dateselected.

if not date_begin is INITIAL.

PERFORM determine_monday using date_begin.

endif.

ENDMETHOD.

TO register events

wa_events-eventid = h_dat_calendar->m_id_date_selected.

wa_events-appl_event = ' '.

APPEND wa_events TO events.

CALL METHOD h_dat_calendar->set_registered_events

EXPORTING

events = events

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

illegal_event_combination = 3.

Object creation for container

CREATE OBJECT h_dat_container

EXPORTING container_name = 'DATEPICKER'.

object creation for the date selected.

CREATE OBJECT event_receiver.

SET HANDLER event_receiver->dateselected FOR h_dat_calendar.

when clicking a particular day on a calendar i can get a day through the set_registered events, my problem was after the method and endmethod it stops as such displaying the screen instead of going to the PBO.

After clicking the date it should go to PBO how can i acheive this scenario?

3 REPLIES 3
Read only

valter_oliveira
Active Contributor
0 Likes
445

Hello.

After user action, the program flows to PAI, and then to PBO (not directly to PBO).

Regards.

Valter Oliveira.

Read only

0 Likes
445

Hello Valter,

Sorry i missed that point its not even goin to PAI

Read only

Former Member
0 Likes
445

when i tried

wa_events-appl_event = 'X'.

in the register events i achived what i required.