Call Transaction by BSP

I am facing a problem regarding a BDC for pa30 transaction ,for updating infotype 24.
It is written through BSP application . When i create it's session through portal and run it through SM35 in the system ,It is perfectly working in 'forground' and 'error display only' mode.But by 'Call Transaction ' through portal directly it is not working .
Even the session in SM35 gives me error when i run it in 'Background' mode.
and the error is "Control Framework: Fatal error - GUI cannot be reached,Runtime error RAISE_EXCEPTION has occurred"
Can any one suggest any solution so that it will work in portal by 'Call Transaction'?

Hi Sachin,
please read the following blog by Brian:
BSP In-Depth: MESSAGE Statement Handling
/people/mark.finnern/blog/2003/09/16/bsp-in-depth-message-statement-handling
Most important is the part:
"However, for BSP applications, no SAP GUI is available. Some types of messages are considered not important, and are silently ignored. Other messages result in exactly the above output. Effectively, an HTTP request is processed in a dark DYNP, and after the MESSAGE statement, the processing is stopped, and the text is converted into a small HTML page."
Regards,
Rainer

Similar Messages

  • Using Call transaction in a BSP scenario

    I encountered a problem the other day with using a BAPI in a BSP application. Within this BAPI a call transaction was made. After reading several posts in this forum and the very interesting blog BSP In-Depth: MESSAGE Statement Handling /people/mark.finnern/blog/2003/09/16/bsp-in-depth-message-statement-handling of Brian, it became clear to me that message types E,A and X during this call transaction cause HTTP error 500 no dump info and termination of the session. All in all not so much fun.
    After having an OSS message battle with SAP, their final conclusion was: it is not possible and there are no alternatives.
    Unsatisfied I tried to find a solution. And I found one, which I would like to share with you as it might cause more people problems.
    To be short, read the weblog from brian for more info, the main problem is the use of a 'very dark' dynpro when logged in with a bsp application. This session is of type Plug-in HTTP. If we call the BAPI/RFC with DESTINATION NONE a RFC type session is opened. With such a session the message type E,A and X result in 'normal' behaviour, that is the BAPI returns message type E.
    This doesnt work with Function modules which are not RFC enabled, however most of the times it is easy to create a RFC enabled wrapper around it.
    Have fun,
    Vincent

    Hallo Vincent,
    Many thanks for taking the time to write this down! I have actually learned something new tonight. Very simple and ellegant solution to this problem. If you don't mind, I would like to add this into the <a href="/people/brian.mckellar/blog/2003/10/23/bsp-trouble-shooting-frequently-asked-short-questions">FAQ</a>. This is something that is sure to help other people as well!
    regards, brian

  • Call standard SAP transaction in BSP

    Hi guys,
    I am working in WAS 6.20.
    We have separate server for WAS and records fetched from R/3 server.
    Now the requirement is i have to call a standard SAP transaction and the output of the standard transaction should be displayed in the BSP output.
    Is it possible to call a SAP standard transaction in WAS 6.20.
    Is it possible to display the same output in the BSP screen.
    Above to all, displayed output should be refreshed automatically for every 20 minutes.
    I come with lot of doubts, expecting your reply.
    Hopefully waiting for yours reply.
    Saravanan. V

    Hi,
    Pls check threads like
    calling STD SAP transaction in BSP
    Calling R/3 Transaction from BSP
    Calling standard R/3 transaction from BSP
    Calling an SAP transaction from a BSP page
    Calling ITS transaction from BSP
    Can we call standard transaction from bsp
    Eddy
    Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details

  • Calling a R3 transaction in BSP

    Hi,
      I want to call an R3 Transaction and pass the screen parameter inside an BSP Page and i am working in WAS620. Is this possible?
      If yes, How the CALL TRANSACTION command i handled in BSP?
      Is there any other way to call an SAP transaction like VA02 etc?
    Thanks in advance
    arun

    Although I'm not sure you can get the same level of parameter passing as with the regular SAPGui shortcut files, you might also want to have a look a the Java SAPGui.  It can be opened as an applet in a web browser.  The following is some sample code from a BSP. I even store the installation in the Mime repository.  This example uses SNC for Single Sign On and takes you directly to SE80.
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <HTML>
    <HEAD>
      <TITLE>SAPGUI for the Java Environment</TITLE>
      <STYLE type="text/css">
          body { margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; }
      </STYLE>
    </HEAD>
    <BODY scroll="no">
    <SCRIPT language="JavaScript">
    // user configurable part starts here
    var pluginurl         = '';
    var scriptable     = 'true';
    var codebase         = '.';
    var jnlp           = 'platin.jnlp';
    var keepalive      = 'true';
    var frog           = 'true';
    var trace          = '';
    var tracefile      = '';
    var connectionData = 'conn=/M/nts163/S/3620/G/SPACE/&tran=SE80&clnt=088&fast=true&sncon=true&sncname=p:[email protected]&sncqop=9';
    // user configurable part ends here
    // verify if Java Plugin as control in Internet Explorer or Java Plugin for Netscape or native JRE of browser must be used
    var jre = 'control';
    if(navigator.platform.indexOf("Mac") > -1)
       jre = 'native';
    else if (navigator.appName.indexOf("Netscape") != -1)
       jre = 'plugin';
    document.open();
    switch (jre)
    case 'control':
        document.writeln('<OBJECT CLASSID  = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"                               ');
        document.writeln('    ID       = "PlatinGUI"                                                                    ');
        document.writeln('    CODEBASE = "j2re-1_3_1_02-win-i.exe#Version=1,3,1,0"                             ');
        document.writeln('    WIDTH    = "100%"                                                 ');
        document.writeln('    HEIGHT   = "100%"                                                 ');
        document.writeln('    BORDER   = 0>                                                      ');
        document.writeln('<PARAM NAME = "TYPE"           VALUE = "application/x-java-applet;jpi-version=1.3.1">         ');
        document.writeln('<PARAM NAME = "SCRIPTABLE"     VALUE = "', scriptable,'">                                ');
        document.writeln('<PARAM NAME = "code"           VALUE = "com.sap.platin.GuiApplet2">                   ');
        document.writeln('<PARAM NAME = "codebase"       VALUE = "', codebase,'">                             ');
        document.writeln('<PARAM NAME = "jnlp"           VALUE = "', jnlp,'">                             ');
        document.writeln('<PARAM NAME = "archive"        VALUE = "GuiStartS.jar">                             ');
        document.writeln('<PARAM NAME = "keepalive"      VALUE = "', keepalive,'">                             ');
        document.writeln('<PARAM NAME = "frog"           VALUE = "', frog,'">                             ');
        document.writeln('<PARAM NAME = "trace"          VALUE = "', trace,'">                             ');
        document.writeln('<PARAM NAME = "tracefile"      VALUE = "', tracefile,'">        ');
        document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData,'">                               ');
        document.writeln('                                                                ');
        document.writeln('This page requires a Sun Java Plugin 1.3 and a SAPGUI for Java to view.                      ');
        document.writeln('                                                                ');
        document.writeln('</OBJECT>                                                           ');
        break;
    case 'plugin':
        document.writeln('<EMBED TYPE        = "application/x-java-applet;version=1.3"                         ');
        document.writeln('    PLUGINURL      = "', pluginurl,'"                                          ');     
        document.writeln('    WIDTH          = "100%"                                            ');                                        
        document.writeln('    HEIGHT         = "100%"                                             ');
        document.writeln('    ALIGN          = "BASELINE"                                                ');
        document.writeln('    code           = "com.sap.platin.GuiApplet2"                                      ');
        document.writeln('    codebase       = "', codebase,'"                                        ');
        document.writeln('    jnlp           = "', jnlp,'"                                                ');
        document.writeln('    archive        = "GuiStartS.jar"                                       ');
        document.writeln('    keepalive      = "', keepalive,'"                                       ');
        document.writeln('    frog           = "', frog,'"                                            ');
        document.writeln('    trace          = "', trace,'"                                            ');
        document.writeln('    tracefile      = "', tracefile,'"                                       ');
        document.writeln('    connectionData = "', connectionData,'"                                        ');
        document.writeln(' <NOEMBED>                                                      ');
        document.writeln(' </NOEMBED>                                                      ');
        document.writeln(' </EMBED>                                                              ');
        break;
    case 'native':
        document.writeln('<APPLET CODEBASE  = "', codebase,'"                                                           ');
        document.writeln('        ARCHIVE   = "GuiStartS.jar"                                                           ');
        document.writeln('        CODE      = "com.sap.platin.GuiApplet2"                                               ');
        document.writeln('        WIDTH     = "100%"                                                                    ');
        document.writeln('        HEIGHT    = "100%">                                                                   ');
        document.writeln('<PARAM NAME = "SCRIPTABLE"     VALUE = "', scriptable, '">                                    ');
        document.writeln('<PARAM NAME = "jnlp"           VALUE = "', jnlp, '">                                          ');
        document.writeln('<PARAM NAME = "keepalive"      VALUE = "', keepalive, '">                                     ');
        document.writeln('<PARAM NAME = "frog"           VALUE = "', frog, '">                                          ');
        document.writeln('<PARAM NAME = "trace"          VALUE = "', trace, '">                                         ');
        document.writeln('<PARAM NAME = "tracefile"      VALUE = "', tracefile, '">                                     ');
        document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData, '">                                ');
        document.writeln('</APPLET>                                                                                ');
        break;
    document.close();
    </SCRIPT>
    </BODY>
    </HTML>

  • Calling SAP Transaction from BSP

    I wonder whether it is possible to call SAP transaction from BSP application and pass to it some data; e.g., PO# when calling VA02?
    The called transaction could appear in a separate MS IE Window (like in some Portal applications) or in SAP GUI.
    Any help will be appreciated.
    Thank you in advance

    I have launched the Java SAPGui from BSP pages before.  I used SNC so that the users were logged on via Single Sign On.  I store the Java Gui in the Mime directory.  You can force the startup transaction.  Theorectically you could also Gui Scripting to try and control the Gui and force in the default value for your PO field.  I have not tried that however.  You will probably want to check the Service Marketplace for documents on the Gui Scripting.  The following is the code from my BSP page to launch the Java Gui in the Browser as an applet:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <HTML>
    <HEAD>
      <TITLE>SAPGUI for the Java Environment</TITLE>
      <STYLE type="text/css">
          body { margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; }
      </STYLE>
    </HEAD>
    <BODY scroll="no">
    <SCRIPT language="JavaScript">
    // user configurable part starts here
    var pluginurl         = '';
    var scriptable     = 'true';
    var codebase         = '.';
    var jnlp           = 'platin.jnlp';
    var keepalive      = 'true';
    var frog           = 'true';
    var trace          = '';
    var tracefile      = '';
    var connectionData = 'conn=/M/nts163/S/3620/G/SPACE/&tran=SE80&clnt=088&fast=true&sncon=true&sncname=p:[email protected]&sncqop=9';
    // user configurable part ends here
    // verify if Java Plugin as control in Internet Explorer or Java Plugin for Netscape or native JRE of browser must be used
    var jre = 'control';
    if(navigator.platform.indexOf("Mac") > -1)
       jre = 'native';
    else if (navigator.appName.indexOf("Netscape") != -1)
       jre = 'plugin';
    document.open();
    switch (jre)
    case 'control':
        document.writeln('<OBJECT CLASSID  = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"                               ');
        document.writeln('    ID       = "PlatinGUI"                                                                    ');
        document.writeln('    CODEBASE = "j2re-1_3_1_02-win-i.exe#Version=1,3,1,0"                             ');
        document.writeln('    WIDTH    = "100%"                                                 ');
        document.writeln('    HEIGHT   = "100%"                                                 ');
        document.writeln('    BORDER   = 0>                                                      ');
        document.writeln('<PARAM NAME = "TYPE"           VALUE = "application/x-java-applet;jpi-version=1.3.1">         ');
        document.writeln('<PARAM NAME = "SCRIPTABLE"     VALUE = "', scriptable,'">                                ');
        document.writeln('<PARAM NAME = "code"           VALUE = "com.sap.platin.GuiApplet2">                   ');
        document.writeln('<PARAM NAME = "codebase"       VALUE = "', codebase,'">                             ');
        document.writeln('<PARAM NAME = "jnlp"           VALUE = "', jnlp,'">                             ');
        document.writeln('<PARAM NAME = "archive"        VALUE = "GuiStartS.jar">                             ');
        document.writeln('<PARAM NAME = "keepalive"      VALUE = "', keepalive,'">                             ');
        document.writeln('<PARAM NAME = "frog"           VALUE = "', frog,'">                             ');
        document.writeln('<PARAM NAME = "trace"          VALUE = "', trace,'">                             ');
        document.writeln('<PARAM NAME = "tracefile"      VALUE = "', tracefile,'">        ');
        document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData,'">                               ');
        document.writeln('                                                                ');
        document.writeln('This page requires a Sun Java Plugin 1.3 and a SAPGUI for Java to view.                      ');
        document.writeln('                                                                ');
        document.writeln('</OBJECT>                                                           ');
        break;
    case 'plugin':
        document.writeln('<EMBED TYPE        = "application/x-java-applet;version=1.3"                         ');
        document.writeln('    PLUGINURL      = "', pluginurl,'"                                          ');     
        document.writeln('    WIDTH          = "100%"                                            ');                                        
        document.writeln('    HEIGHT         = "100%"                                             ');
        document.writeln('    ALIGN          = "BASELINE"                                                ');
        document.writeln('    code           = "com.sap.platin.GuiApplet2"                                      ');
        document.writeln('    codebase       = "', codebase,'"                                        ');
        document.writeln('    jnlp           = "', jnlp,'"                                                ');
        document.writeln('    archive        = "GuiStartS.jar"                                       ');
        document.writeln('    keepalive      = "', keepalive,'"                                       ');
        document.writeln('    frog           = "', frog,'"                                            ');
        document.writeln('    trace          = "', trace,'"                                            ');
        document.writeln('    tracefile      = "', tracefile,'"                                       ');
        document.writeln('    connectionData = "', connectionData,'"                                        ');
        document.writeln(' <NOEMBED>                                                      ');
        document.writeln(' </NOEMBED>                                                      ');
        document.writeln(' </EMBED>                                                              ');
        break;
    case 'native':
        document.writeln('<APPLET CODEBASE  = "', codebase,'"                                                           ');
        document.writeln('        ARCHIVE   = "GuiStartS.jar"                                                           ');
        document.writeln('        CODE      = "com.sap.platin.GuiApplet2"                                               ');
        document.writeln('        WIDTH     = "100%"                                                                    ');
        document.writeln('        HEIGHT    = "100%">                                                                   ');
        document.writeln('<PARAM NAME = "SCRIPTABLE"     VALUE = "', scriptable, '">                                    ');
        document.writeln('<PARAM NAME = "jnlp"           VALUE = "', jnlp, '">                                          ');
        document.writeln('<PARAM NAME = "keepalive"      VALUE = "', keepalive, '">                                     ');
        document.writeln('<PARAM NAME = "frog"           VALUE = "', frog, '">                                          ');
        document.writeln('<PARAM NAME = "trace"          VALUE = "', trace, '">                                         ');
        document.writeln('<PARAM NAME = "tracefile"      VALUE = "', tracefile, '">                                     ');
        document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData, '">                                ');
        document.writeln('</APPLET>                                                                                ');
        break;
    document.close();
    </SCRIPT>
    </BODY>
    </HTML>

  • Calling STD SAP transaction in BSP

    Hi All,
    I am new to BSP.
    Is it possible to call SAP standard transaction in the BSP page, browser should be Internet Explorer.
    I have tried for mm03 but when I  use call transactio it opens STD SAP Session with given paramerers (material number).
    And the problem is that . I want to call it in Internet
    Explorer
    if yes.
    Can anyone tell me tell me how it is possible.
    Thanks in Advance,
    Dhananjay

    Thanks Raja,
    I am in 4.7 E
    This is my code for VF03 ,
    this is layout code of page
    <%@page language="abap"%>
    <<html>
    <body bgcolor = "silver">
    <form>
    <input style="Z-INDEX:   BACKGROUND-COLOR: #FFFFFF;
    BORDER-BOTTOM: black 1px groove; BORDER-LEFT: black 1px groove;
    BORDER-RIGHT: black 1px groove; BORDER-TOP: black 1px groove;
    FONT-FAMILY: Verdana, arial; FONT-SIZE: 8pt; TEXT-DECORATION: none"
    type="text" name="number" value = "" maxlength = 10>
    <INPUT style="Z-INDEX: 103; BACKGROUND-COLOR: whitesmoke" type="submit"
    name="onInputProcessing(select)" value="Display" action = "tcode.htm">
    </form>
    </body>
    </html>
    This is its event handler(OnInputProcessing)
    event handler for checking and processing user input and
    for defining navigation
    case event_id.
      when 'select'.
        navigation->set_parameter( 'number' ).
        navigation->next_page( 'tcode' ).
       set parameter id 'VF' field number.
    endcase.
    *****This is code for next page
    Layout
    <%@page language="abap"%>
    <html>
      <body BGCOLOR="#f5f5f5">
    <h2> Your Customer search </h2>
    <%
      if number is initial.
    %>
    <h3> Sorry, we found no matches for  <%= number %>. </h3>
    <%
      else.
    %>
    <%
    endif.
    %>
    Event Handler(OnInitialization)
    if number is not initial.
       SET PARAMETER ID 'VF' FIELD number.
       call transaction 'VF03'.
    else.
      number = '%'.
    endif.
    Plesae check it, I am waiting Or Give me sample code for any TCODE.
    Thanks,
    Dhananjay

  • Calling web-dynpro-transaction in BSP problem

    hi,
    in  my BSP html-coding i have the following:
      o nclick="window.open('xxxxx.xxxxxxl:8011/sap/bc/gui/sap/its/webgui~transaction=Z_LSO_WF_UEB{code
    when i push the button in the portal i get to the transaction Z_LSO..... in sap. this is fine, BUT:
    sometimes the new window opens and in the middle of the screen the 'round icon' (which is displayed when a page is loaded) is displayed and nothing more happens.
    then i have to push F5 (refresh) in internet explorer and then the start-selection-screen of my transaction appears correctly.
    in other tries it works fine, then i get to the selection-screen after pushing the button without pushing F5.
    any ideas bout that behaviour ?
    best regards, Martin
    Edited by: Martin Svik on Apr 30, 2008 1:50 PM
    Edited by: Martin Svik on Apr 30, 2008 1:53 PM
    Edited by: Martin Svik on Apr 30, 2008 1:53 PM

    Thanks Raja,
    I am in 4.7 E
    This is my code for VF03 ,
    this is layout code of page
    <%@page language="abap"%>
    <<html>
    <body bgcolor = "silver">
    <form>
    <input style="Z-INDEX:   BACKGROUND-COLOR: #FFFFFF;
    BORDER-BOTTOM: black 1px groove; BORDER-LEFT: black 1px groove;
    BORDER-RIGHT: black 1px groove; BORDER-TOP: black 1px groove;
    FONT-FAMILY: Verdana, arial; FONT-SIZE: 8pt; TEXT-DECORATION: none"
    type="text" name="number" value = "" maxlength = 10>
    <INPUT style="Z-INDEX: 103; BACKGROUND-COLOR: whitesmoke" type="submit"
    name="onInputProcessing(select)" value="Display" action = "tcode.htm">
    </form>
    </body>
    </html>
    This is its event handler(OnInputProcessing)
    event handler for checking and processing user input and
    for defining navigation
    case event_id.
      when 'select'.
        navigation->set_parameter( 'number' ).
        navigation->next_page( 'tcode' ).
       set parameter id 'VF' field number.
    endcase.
    *****This is code for next page
    Layout
    <%@page language="abap"%>
    <html>
      <body BGCOLOR="#f5f5f5">
    <h2> Your Customer search </h2>
    <%
      if number is initial.
    %>
    <h3> Sorry, we found no matches for  <%= number %>. </h3>
    <%
      else.
    %>
    <%
    endif.
    %>
    Event Handler(OnInitialization)
    if number is not initial.
       SET PARAMETER ID 'VF' FIELD number.
       call transaction 'VF03'.
    else.
      number = '%'.
    endif.
    Plesae check it, I am waiting Or Give me sample code for any TCODE.
    Thanks,
    Dhananjay

  • Can we call standard transaction from bsp

    Hi,
    Can anyone tell me how to call a standard transaction(va01) from bsp.
    Points will be awarded,
    Ugandhar.

    Hello,
    check out this coding in a new bsp page and give it a try in your system landscape. It creates an sap short cut file with the .sap extension writes dynamically to the server cache and get the url back.
    Regards, Bernd
    Layout:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Start SAP GUI Transaction via BSP" >
        <htmlb:form>
          <htmlb:textView text   = "Start SAP GUI Transaction via BSP"
                          design = "header1" />
          <htmlb:textView layout = "paragraph"
                          text   = "Fill in fields and press the button to create the link." />
          <table width=200>
          <tr>
          <td>
          <htmlb:label for  = "client"
                       text = "Client" />
          </td>
          <td>
          <htmlb:inputField id    = "client"
                            value = "<%= client %>" />
          </td>
          </tr>
          <tr>
          <td>
          <htmlb:label for  = "sysid"
                       text = "SystemID" />
          </td>
          <td>
          <htmlb:inputField id    = "sysid"
                            value = "<%= sysid %>" />
          </td>
          </tr>
          <tr>
          <td>
          <htmlb:label for  = "userid"
                       text = "UserID" />
          </td>
          <td>
          <htmlb:inputField id    = "userid"
                            value = "<%= userid %>" />
          </td>
          </tr>
          <tr>
          <td>
          <htmlb:label for  = "transactioncode"
                       text = "Transaction Code" />
          </td>
          <td>
          <htmlb:inputField id    = "transactioncode"
                            value = "<%= transactioncode %>" />
          </td>
          </tr>
          <tr>
          <td colspan="2">
          <htmlb:button id      = "myButton"
                        text    = "Create Link to start SAP Transaction"
                        onClick = "create_mime" />
          </td>
          </tr>
          </table>
          <%
      if display_url is not initial.
          %>
          <htmlb:textView layout = "paragraph"
                          text   = "Click the link to start SAP GUI Transaction." />
          <htmlb:link id        = "mylink"
                      reference = "<%= display_url %>"
                      text      = "Link to Start SAP Transaction" />
          <%
      endif.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Page Atributes:
    file_content     TYPE     STRING
    guid     TYPE     GUID_32
    host     TYPE     STRING
    isolangu     TYPE     T002-LAISO
    page_name     TYPE     STRING
    parameters     TYPE     TIHTTPNVP
    port     TYPE     STRING
    sapworkdir     TYPE     SDOK_CHTRD
    sysid     TYPE     SYSYSID
    transactioncode     TYPE     TCODE
    userid     TYPE     XUBNAME
    OnInputProcessing:
    * event handler for checking and processing user input and
    * for defining navigation
    * event handler for data retrieval
      event = cl_htmlb_manager=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
        button_event ?= event.
        IF button_event->server_event NE 'create_mime'.
          RETURN.
        ENDIF.
    * get users workdir
        CALL FUNCTION 'IW_C_GET_SAPWORKDIR'
          IMPORTING
            sapworkdir = sapworkdir.
    * get iso language
        CALL FUNCTION 'LANGUAGE_CODE_SAP_TO_ISO'
          EXPORTING
            sap_code = sy-langu
          IMPORTING
            iso_code = isolangu.
        CONCATENATE
        '[System]'
        cl_abap_char_utilities=>cr_lf
        'Name='
        sysid
        cl_abap_char_utilities=>cr_lf
        'Description='
        cl_abap_char_utilities=>cr_lf
        'Client='
        client
        cl_abap_char_utilities=>cr_lf
        '[User]'
        cl_abap_char_utilities=>cr_lf
        'Name='
        userid
        cl_abap_char_utilities=>cr_lf
        'Language='
        isolangu
        cl_abap_char_utilities=>cr_lf
        'Password='
        cl_abap_char_utilities=>cr_lf
        '[Function]'
        cl_abap_char_utilities=>cr_lf
        'Title='
        cl_abap_char_utilities=>cr_lf
        'Command='
        transactioncode
        cl_abap_char_utilities=>cr_lf
        '[Configuration]'
        cl_abap_char_utilities=>cr_lf
        'WorkDir='
        sapworkdir
        cl_abap_char_utilities=>cr_lf
        '[Options]'
        cl_abap_char_utilities=>cr_lf
        'Reuse=1'
        INTO file_content.
        CREATE OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
        cached_response->set_cdata( file_content ).
        cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                           value = 'application/octet-stream ' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE guid
                    '.sap'
               INTO page_name.
    * get server information
        CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
          EXPORTING
            bsp_application      = runtime->application_url
            bsp_start_page       = page_name
            bsp_start_parameters = parameters
          IMPORTING
            abs_url              = display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      ENDIF.

  • CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

    Hi,
    i'm using this in an report.
    SET PARAMETER ID 'BES' FIELD WA_ITAB-EBELN.
    SET PARAMETER ID 'BSP' FIELD WA_ITAB-EBELP.
    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    It works OK.
    Is there any parameter ID to go in a sprecial part of an PO, for example
    direct to materialdata or konditions?.
    thanks.
    Regards, Dieter

    Hi,
    I think u can do that by using BDC as used in this code please refer to this code.
    FORM get_user_command USING cr_ucomm     LIKE sy-ucomm      "#EC *
                                cr_selfield TYPE slis_selfield.
      CLEAR wa_final.
      DATA BEGIN OF bdcdata OCCURS 10.
              INCLUDE STRUCTURE bdcdata.
      DATA END OF bdcdata.
      CASE cr_ucomm.
        WHEN '&IC1'.
          READ TABLE it_final INTO wa_final
                   INDEX cr_selfield-tabindex.
          IF cr_selfield-fieldname = 'MATNR'.
            IF sy-subrc IS INITIAL.
              SET PARAMETER ID 'MXX' FIELD 'E'.
              SET PARAMETER ID 'MAT' FIELD wa_final-matnr.
              SET PARAMETER ID 'WRK' FIELD wa_final-werks.
              CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
            ENDIF.
          ELSEIF cr_selfield-fieldname = 'LIFNR'.
            IF sy-subrc IS INITIAL.
              CLEAR bdcdata.
              bdcdata-program  = 'SAPMF02K'.
              bdcdata-dynpro   = '0101'.
              bdcdata-dynbegin = 'X'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'RF02K-LIFNR'.
              bdcdata-fval     = wa_final-lifnr.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'RF02K-EKORG '.
              bdcdata-fval     = wa_final-ekorg.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'RF02K-D0310'.
              bdcdata-fval     = 'X'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'WRF02K-D0320'.
              bdcdata-fval     = 'X'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-fnam     = 'BDC_OKCODE'.
              bdcdata-fval     = '/00'.
              APPEND bdcdata.
              CLEAR bdcdata.
              bdcdata-program  = 'SAPMF02K'.
              bdcdata-dynpro   = '0110'.
              bdcdata-dynbegin = 'X'.
              APPEND bdcdata.
              CALL TRANSACTION 'XK03' USING bdcdata MODE 'E'.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.  " get_user_command
    regards,
    sudha

  • CNTR_ERROR While calling BDC from BSP

    Hi ALL
    I am calling a RFC from BSP which in turn call a BDC for the transaction TP04.
    When i run the BSP in debugging mode its posting data and  working fine.
    But otherwise also it doesn't throw any error on browser. but when i check ST22 it throws exception CNTL_ERROR.
    My function is remote enabled and i am using destination 'NONE' as well.
    I have also checked the Blog by Brian.
    suggestions are welcome
    Naresh

    Hi
    Browser is not giving any error,Friendly HTTP is turned off.
    I am calling my own fucntion module like this
    CALL FUNCTION 'ZTM_FM_TP04' destination 'NONE'
              EXPORTING
                emplno  = employeeno
                STARTDATE   = strtripbegin
                STARTTIME   = strstarttime
                ENDDATE     = strtripend
                ENDTIME     = strendtime
                FIRSTDEST   = strfirstdest
                COUNTRY     = strcountry1
                REASON      = strreason
                CASHADVANCE = strcashadvance
                CASHCURR    = strcashcurr
                BANKADVANCE = strbankadvance
                BANKCURR    = strbankcurr
              TABLES
                ADDDEST     = adddest.
    and within the function module i am calling Call Transaction like this
    CALL TRANSACTION 'TP04' USING BDCDATA
                         MODE   'N'.
    But its not posting any data and while checking thru ST22 its giving following error
                                                                                    A RAISE statement in the program "CL_GUI_CUSTOM_CONTAINER=======CP " raised th 
    exception                                                                     
    condition "CNTL_ERROR".                                                        
    Since the exception was not intercepted by a superior program                  
    in the hierarchy, processing was terminated.

  • Web Dynpro ABAP call transaction in the foreground

    In Screen Painter/SAP ALV, we can create a screen where for example if you double click on a sales order field it can take you a VA03 transaction by :
    call transaction VA03 ... and skip first screen.
    I am creating Web Dynpro ABAP application that needs to do the same thing where if we click on the field, it will take to VA03 transaction or other transactions.
    Has anyone done this in Web Dynpro ABAP? I have done some research and determine that we cannot call transaction in the foreground? I hope I am wrong.  Any help/insights will be greatly appreciated.

    Hi Phong,
    WDA is generic client to Netweaver connection based on HTTP/S.
    At this stage on a few clients are supported. WEB dynpro client and Browsers...
    SAPGUI connects to SAP using a different protocol.
    No SAPGUI connection is implied by a WDA client connection.
    Therefore  abap statements that invoke screens and otherwise assume SAPGUI
    is connected are not supported in WDA.   eg call screen, call transaction
    You can either
                         a) build your own WDC to front end calls to BAPIs to get the Sales order data.
                        b) open/ exit to the new WDC for Sales Orders in ERP2005
                              see LORD_MAINTAIN_COMP
                           c) exit to the INTERNAL ITS URL for transaction VA03 
                               eg http://<host>:<port>/sap/bc/gui/sap/its/webgui?~Transaction=VA03
                              but getting the skip first screen may require you to call custom tran ZVA03
                               which calls VA03 to skip first screen setting the PID appropriately.
    Hopefully you opt for option a) or b).
    c) can work... I have used it from BSPs but it not pretty.
    regards
    Phil

  • Two Questions: Link and call transaction

    Hello,
        Im using tableView and tableviewcontrol to display the data and corresponding columns.
        How can I mark one column of table (let say VBELN) as link <a href....> so that user see there is event attached to column. Only one column should have link.
        Secondly, when user click on order, I need to call VA03 and display order. When users see order and and say Back, flow come back to BSP. Will call transaction VA03 in BSP event will work and how? Currently my URL is crashing on VA03.
        Im trying to do something like interactive report.
      Please let me know.
      Ajay

    It sounds like you will want to do a little research on two different topics.  First for your tableView - read up on on tableView Iterators.  There are weblogs and on-line help on the subject. This will allow you to easily control the rendering of individual cells of your table.  You can then render an htmlb:link in the cell in question.
    You can't just call VA03 from a BSP application, VA03 needs to run within the SAPGui. When I have had requirements like this, I like to use the ITS (integrated into the kernel as of Netweaver 04).  The ITS has a service called webgui that will render an HTML version of any SAPGui transaction.  You can pass initialization parameters to the start of the transaction (such as sales order number for the start of VA03).  That way you can jump from your application right into the order you want to view.

  • Calling Transaction SP01 (Display spool requests) with parameters via URL

    Hi,
    I would like to be able to list all spool requests of a certain title via a URL.
    Unfortunately ITS does not seem to work. A URL constructed like this
    http://host:port/sap/bc/gui/sap/its/webgui/!?sap-system-login-basic_auth=X&sap-client=500&sap-language=EN&transaction=SP01&S_RQTITL-LOW=Testing123&okcode=CRET
    causes a short dump that SP01 (Program RSOSP01NR) is a Module Pool.
    I am therefore considering the following options:
    1. BSP Program
    2. Java WebDynpro
    3. ABAP WebDynpro
    Ideally, I want to be able to enter in my browser something like
    http://host:port/<BSP_or_WebDynPro_stuff>&~title=Testing123
    and for this to show in the browser a list of all spool requests that are named "Testing123".
    Can someone advise whether any of the above options are preferable?
    Also, whether such a program should call transaction SP01 with parameters (skipping first screen) or look to using the associated function modules.
    Many thanks for any assistance.
    Regards
    Adrian

    Solved myself. Thanks

  • Uploading File into SAP Transaction using BSP

    Hi Everybody,
    I would like to know how to save the file into SAP Transaction thro BSP. I have one requirement,For example,the captured file from the web should be attached into the Equipment master (Transaction Code IE02).Its possible via SAP GUI.But i would like to know how it can be done from BSP.The same example applicable to sales order also..
    Also i wondering where these files get stored.
    Anybody could help me out of this issue please?...
    Naga Bokkisam

    You can do that using BDS..But you need to find the Business object to store it under Equipment Master or Sales order.
    Here is the example where i stored the document under Warranty process, ie sub set of Equipment master:
    Here BUS2222 is business object for Warranty Process:
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = STR_FILE_CONTENT
        TABLES
          BINARY_TAB            = I_FILE_CONTENT.
      CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREA_TAB'
        EXPORTING
          CLASSNAME             = 'BUS2222' "classname_select
          CLASSTYPE             = 'BO'" classtype_select
        CLIENT                = SY-MANDT
          OBJECT_KEY            = OBJECT_KEY
        BINARY_FLAG           = 'X'
        TABLES
          SIGNATURE             = I_SIGNATURE
          COMPONENTS            = I_COMPONENTS
        CONTENT               = I_FILE_CONTENT
    EXCEPTIONS
       NOTHING_FOUND         = 1
       PARAMETER_ERROR       = 2
       NOT_ALLOWED           = 3
       ERROR_KPRO            = 4
       INTERNAL_ERROR        = 5
       NOT_AUTHORIZED        = 6
       OTHERS                = 7     .
    Let me know if you need any detail..
    <i>*Reward each useful answer</i>
    Raja T

  • Transaction through BSP

    Hi All,
    Is it possible to call a transaction using BSP.
    Pls let me know how it can be called.
    Thanks
    Kapil

    Hi,
    I tried the following approach without luck.. it worked only once and created short-dumps with subsequesnt calls.. may be Raja can add on to this..
    Put the call transaction inside a custom function module.. make this function Remotely callable.. & in the BSP call this function with destination 'NONE'.
    Good Luck,
    Suresh Datti

Maybe you are looking for

  • SWF grey border when exported

    Can someone give me direction on how to take off or change the color of this border? I've opened up html file and can checnge the background color but nothing is there to change the grey border. Any help would be AWESOME!

  • How to call portal from R3

    Hello Gurus, I have a new requirement to call portal from r3. Its regarding KM. When ever a end user is using R3 Tcode, he will get a button of online user manual about that perticular T-code,,when he clicks on that button ,,he is directed to portal

  • Problem with Quicktime 7 and Vista Business

    I am trying to run Windows vista business with Quicktime 7 Latest and can not run. I get this dialog box saying Quicktime player requires windows 200 or later please make sure compatibility mode is disable in the compativility tab of the properties f

  • When launching Safari why does my desktop picture change?

    This is a strange one. iMac with 10.8.5 and the latest updates. Set the desktop to "picture 1." When I launch Safari the desktop picture moves to the left and establishes "picture 2" as the background. Only with Safari. All other apps do not do this.

  • Forms 6i OLB example.

    Please can anyone tell me. How to link or attached OLB to 6i Form. 1, I have form in 6i and OLB which is running fine in Production. 2, When I open the form in Forms Builder its asking for OLB 3, I tried like webutil you drag and drop the OLB but its