how to call RFC!!!
How to call RFC on click of button?
Gurvinder Singh replied
The main thing you will have to consider is the creation of the JCO destinations for the application. These are maintained in the webdynpro content administration.
After creating the model in the webdynpro project, you need to go to the url http://<host>:<port>/webdynpro/welcome/ and create the JCO destinations you gave while creating the BAPI model. There they will come with red colored icons, after success creation them they will become green.
After that you need to initialize the input elements in the code and simply execte the bapi in some action method of the button.
Reply me if you need some more help.