Skip to Content
author's profile photo Former Member
Former Member

How to call a ABAP or ABAP Class from the WEB

Hi,

I have a Webtemplate and I want to add a button which executes a ABAP on the server. How can I do this?

I already tried something similar like the SAP did in the How to.. Enhance Web Printing, but I don't understand how to transfer this to my problem because the coding of the class in the How to.. paper is very complex.

Regards

Mike

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 16, 2005 at 12:54 PM

    Hi Michael,

    there are diffrent options to do this, depending on whats needs to be achieved.

    a) Easiest way (but only possible, if no action has to go back to your template): Create an RRI-Jump-Target to your ABAP report

    b) Also only possible when no additional interaction on your template has to take place: Create a bsp and call the bsp when clicking on the button. Advantage in comparison to a) you could get a new window with for example a sucess or error message

    c) Use an own helpservice class. Now this as you have seen can get more complex, as interaction with your webtemplate can take place. In principal you need to create a class inherit from cl_rsr_www_help_window and overwrite the process_cmd method. Now you can paste your coding inside and you are finished (when you register the help service class to a web item).

    Heike

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thank you Heike,

      You need to make Table_1 to TABLE_1..Bug in SAP help how to document..they released a note for this(645032).

      Anyway coming back to our problem...

      Is there a way to get data from the data provider into my own internal table and put it back to the report.

      I found an instance of CL_RSR_WWW_DATA_PROVIDER but do not know whether this is the class which gives me data of in table format not the HTML tags in it..

      Best Regards,

      Anil

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.