3 Replies Latest reply: Aug 10, 2009 8:27 AM by kalyan balabhadrapatruni RSS

Month and Year in Input Field

Aravindh Mani
Currently Being Moderated

Hi Gurus,

 

I m Using SPMON(Period to analyze month and year) as input Field in my BSP Application.

 

If i Click the Input Help i want to call a Function module "popup_to_display_month" ..

 

How to acheive this.

 

I have used onValueHelp attribute in which it will call only the Javascript.

 

 

Please guide me...

 

 

Thanks n Regards

Aravindh

  • Re: Month and Year in Input Field
    Anubhav Jain
    Currently Being Moderated

    Hi Aravindh,

     

    First thing if this FM 'POPUP_TO_SELECT_MONTH' gives a popup in SAPGUI , you can not use it in BSP since SAP GUI popups are not supported in BSP.

     

     

    I have used onValueHelp attribute in which it will call only the Javascript.

     

    If triggering a server side event using onValueHelp solves you  problem that you can do it as follows..

     

    1)In the layout somewhere use a blankimage that will not be visible in UI.

    2)Suppose ID of this image is 'blank'

    now call javascript function for onValueHelp

    and in this javascript function use

     

    dacument.getElementById('blank').click();

    change dacument to document.

     

    This will trigger a server event which you can process in onInputProcessing and call the FM.

     

    Regards,

    Anubhav

  • Re: Month and Year in Input Field
    Aravindh Mani
    Currently Being Moderated

    Hi Anubav,

    Thanks for the reply and i can understand that BSP cant call SAP Pop-up's.

     

    I cant get the method you suggested..

     

    Now i wanna call a function inside onValueHelp() and this function is a Javascript.

     

    So wat  to write in Javascript.. is ther any standard function to call date and month in Javascript or i need to  hardcode all the month???

     

     

    Thanks and Regards

    Aravindh Mani

Actions