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

Calling a R/3 transaction in a BSP


we have developed a BSP-MVC application in CRM 4.0 and we're trying to call a R/3 transaction, to do that we are calling a RFC function from an event of our BSP source. The RFC function only call the transaction but it doesn't work (The page cannot be displayed), however if we execute the program in debug mode and we define breakpoints in it, the call stops in each breakpoint and then a R/3 mode with the transaction appears over our CRM program. does anybody know what is the problem? what is the different betweeen debug execution and normal execution?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 22, 2003 at 05:59 PM

    Hallo Mario,

    The answer is simple, just slightly complex to describe. Let me use my words, and some vague handwaving to explain.

    When you log onto a webAS system the dynpro engine is started that contains all the logic to handle interaction with the SAPGUI. For example, things such as rendering controls, doing file upload, running ActiveX controls, etc.

    When you run a HTTP request into webAS (which is the case for BSP), a very special "dark" dynpro is started. The dynpro is required to get all ABAP, etc. up and running. But now there is no SAPGUI available, so things such as control rendering, doing file upload via gui upload, etc will not work. Also little things such as popup windows, etc does not work. Or things such as a RFC suddenly wanting to display a dialog to ask for username and password.

    So why does your code work only in debugger? Because once the debugger is triggered, like in the very first few steps, it is realized that a normal dynpro engine is required, and not the "dark" one. So the full blown dynpro engine is started.

    If this transaction requires a GUI, it will NOT work in BSP. This can not be changed.

    You can only consider to find the code that causes the error, and bracket it with IF statements in this transaction so that no GUI interaction is required in context of a HTTP call.


    Add a comment
    10|10000 characters needed characters exceeded

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.