cancel
Showing results for 
Search instead for 
Did you mean: 

Date Navigator

Former Member
0 Kudos

Hey,

for my project i need to get a time range for further use.

i decided to use the date navigator so the user can mark the range he wants to "use"

i always get a Date_invalid exception.

from


Function: DATE_GET_WEEK of program SAPLSCAL

i have a context to firstselected last selected and startswith

so the user has a preassigned range

in the inboundhandler im setting the values for this but it always throws this exc


  lo_context_node = wd_context->get_child_node( 'ABO' ).
  lo_context_node = lo_context_node->get_child_node( 'HOLIDAYBREAK_DATA' ).

  lv_first_selected_date = sy-datum + 1.
  lv_last_selected_date  = sy-datum + 8.
  lv_starts_with_date    = sy-datum'.

  lo_context_element-firstselecteddate  = lv_first_selected_date.
  lo_context_element-lastselecteddate   = lv_last_selected_date.
  lo_context_element-startswithdate     = lv_starts_with_date.

  lo_context_node->bind_element( lo_context_element ).

Accepted Solutions (1)

Accepted Solutions (1)

former_member233090
Active Contributor
0 Kudos

Hi Adiran,

check the example program WDR_TEST_UI_ELEMENTS, and in the component WDR_TEST_EVENTS in the View DateNavigator.

also please reger to this link

[Link|http://help.sap.com/saphelp_nw70/helpdata/en/81/ab884118aa1709e10000000a155106/frameset.htm]

Cheers,

bhavana

Former Member
0 Kudos

well,

i already used this page and i checked the sample programm, but i dont know why this exception is thrown

former_member233090
Active Contributor
0 Kudos

Hi,

Oh is it?

try to read this forum, hope it will helps you out

Cheers,

bhavana

Former Member
0 Kudos

thx. at least it shows the same exception.

forum search of date navigator and date_get_week didnt help me out though

thx

edit:

my binding to context startwith somehow disappeared so he tried to use ". ." as date. weird

Edited by: -adrian- on Aug 18, 2010 3:35 PM

Answers (0)