cancel
Showing results for 
Search instead for 
Did you mean: 

Calendar help for Date i/p field in SRM 5.0 shopping cart

Former Member
0 Kudos

Hi All,

I am working on SRM 5.0..I have a requirement for the addition of custom field ie. lease termination date field on SRM shopping cart screen and having a calendar help for this date input field.

Has anyone tried to add calendar help for an input date field in the ITS service??What all additions have to be done for this(style,images etc)...Does any one has any idea?Please help.

Thanks & Regards,

K rav.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

all javascript functions are included in the service BBPGLOBAL. amoung them there's a <b>bbp_ext_win_calendar</b> function.

you must include it in your template

`include (~service="bbpglobal", ~name="BBP_EXT_WIN_CALENDAR.html")`

`BBP_ITS_EXTW_WindowHandling()`

then you can add it as href to your custom field:

<input type=text 
          id="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
          name="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
          value="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.value`" 
          onBlur="BBP_ITS_EXTW_CloseCalendar()" maxlength="10" size="10">
        
     <a id="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE" name="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE" 
         href="javascript:BBP_ITS_EXTW_OpenCalendarDomRel(window.document.BBPForm.elements['`<b>zappsspr_incl_item_csf_avl-zzspr_dkk_date.name</b>`'], 'a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE')"> 
  <img src="/sap/public/bc/its/mimes/bbpglobal/99/images/calendar/ico12_calendar.gif" border="0"></a> 

in bold there's a name of the field to which you add the calender

Hope this helps

Former Member
0 Kudos

Thanks Zakhar. This looks like a satisfactory solution...i will try this and let you know...i have also awarded you full points..thanks a lot for your help.

K.rav

Former Member
0 Kudos

zakhar can you please send me that calendar image that you mentioned in that href link :my email id is: kruparav@gmail.com

IMAGES/CALENDAR/ICO12_CALENDAR.GIF

my email id: kruparav@gmail.com

and should i store these images in mime repository? and do you insert that code it in the standard template itself? My field will appear in shopping cart line item level (CUF field) so what will be the template number?? do you know where exactly in the template do you insert this code?

Thanks,

Krupa

Answers (0)