cancel
Showing results for 
Search instead for 
Did you mean: 

Month and Year in Input Field

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184111
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Arvind,

No need to hard code the values you can calculate the values in initilization Event pass using variables to Javascript.

Hope this will be helpful..So that i can help you out with sample code of date (Javascript)..Let me know if you need any more help

Thanks

BKC