10-20-2008 12:59 PM
I have a function module that I need to access by a URL. I.e. there will be a URL in a web application and this URL needs to trigger the function module. There is no real need to give back a result or value, if I am able to pass a single parameter to the FM it would be nice but no knock out criteria.
I know there are web services, BSPs, Web Dynpros etc. but what is an easy way to do it? Any kind of How-To-doc would be nice.
Best regards and thanks in advance
Dirk
10-20-2008 1:10 PM
Hi Dirk,
I would recommend a simple BSP can do this task.
write a simple BSP with singel page. Dispaly internal table on the page. You can code in appropriate event of BSP to read program lines and pass it to BSP.
Regards,
Mohaiyuddin
10-20-2008 1:10 PM
Hi Dirk,
I would recommend a simple BSP can do this task.
write a simple BSP with singel page. Dispaly internal table on the page. You can code in appropriate event of BSP to read program lines and pass it to BSP.
Regards,
Mohaiyuddin
10-20-2008 1:10 PM
If its a Z FM you can make it RFC compatible and then access the FM directly via RFC from your application or let the webserver do it.
10-20-2008 2:06 PM
Hello Mohaiyuddin, hello Rainer,
thanks for your answers. But since I have no real web experience I have some more questions.
Mohaiyuddin, do you know any sample how I can create a simple BSP?
And Rainer, how does the URL look like that calls an RFC?
Thanks in advance
Dirk
10-20-2008 2:34 PM
You're just calling a PHP or a PERL Script on the webserver which is finally doing the work.
http://www.example.org/rfccaller.pl?param=4
Now you need someone with perl knowledge
10-22-2008 11:36 AM
You can find simple Examples on SAP help.
http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/101c3a1cf1c54be10000000a114084/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/e6/e23fd8c47e11d4ad320000e83539c3/content.htm
Sample application are also available in SAP. Go to SE80 --> BSP Application and find some examples. Copy it and customize to your need.
Thanks,
Regards,
Mohaiyuddin