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: 

Can we execute an SAP Standard ABAP Programme from a Custom BAPI?

Former Member
0 Kudos

Hi,

We have a requirement in our project where in we have to execute an SAP Standard ABAP report. We need to execute it from a Portal by click of a button.

What we are thinking is that if we have a custom BAPI which triggers the execution of ABAP report, we can execute the BAPI from the Portal using Adaptive RFC Function call by developing a custom Web Dynpro Java application.

So, my question is it possible to execute an ABAP report making sending required input parameters to the ABAP report from the BAPI. If so, how can we achieve this?

Regards

Ram

6 REPLIES 6

brad_bohn
Active Contributor
0 Kudos

Of course, using SUBMIT. See the help files for more info. Why not create a web service, call the report, convert the result to PDF, return the PDF data in the response, then render the PDF in your application window?

Former Member
0 Kudos

Hi Brad,

Thanks for your quick response. Actually, it is not exactly a report. We are trying to call an SAP Program related to SAP Business Workflow.

When the user clicks on Approve or Reject buttons on the SAP GUI, this program will be called and exectured which inturn updates many Project System Tables.

What we are trying to do is that we had developed a custom Web Dynpro Java Application for achieving the SAP Workflow. Instead of reinventing the wheel, we just want to use already existing SAP Program which updates the Project Systems tables.

So, from the Portal Workflow Inbox when the user clicks on the Approve or Reject buttons, we would like to call a custom BAPI which will execute this program.

Could you please explain in detail how to achieve this? Thanks in advance.

Regards

Venkat

brad_bohn
Active Contributor
0 Kudos

Ok, but the concept is no different - see the SUBMIT command help files for calling executable reports/programs. Your BAPI or web service is just a wrapper for that SUBMIT call and the subsequent report execution.

Former Member
0 Kudos

Hi Brad,

But, how to pass the input parameters to the call. Basically, I am not an ABAP developer. I am a Web Dynpro for Java developer. I have to explain my ABAP developer these things.

So, when we call SUBMIT, can we pass input parameters? User's action can be Approve or Reject and also we have to send the Project ID or Network ID which should be approved or rejected.

How can we send those parameters?

Regards

Venkat

brad_bohn
Active Contributor
0 Kudos

You shouldn't have to explain anything to the ABAP developer - that's a basic ABAP command. In fact, your developer is the one who should have given you the solution. Like I mentioned before, the help files are available with examples, not to mention hundreds of examples on this forum.

Former Member
0 Kudos

Thanks, a lot, Brad!

I appreciate your help!

Regards

Ram