Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing an ABAP Coding from a URL

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

rainer_hbenthal
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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