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>

Similar Messages

  • 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 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

  • Eliminating logon when calling R/3 transaction via BSP

    Is it possible to eliminate logon when calling SAP R/3 tcode via BSP. I run
    http://<FQDN>:<port>/sap/bc/gui/sap/its/webgui/!?client=%3c100%3e&transaction=SE80
    but have to login each time. I could embed my username/pwd on the url string, but is there another method?
    I also thought about using the URL iView parameters (Mapped User, Mapped Password) within Property Editor, but content admins will be able to see username and password when opening the iview. Any suggestions?
    Regards,
    James

    I figured this one out.
    Regards,
    James

  • 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

  • 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>

  • Urgent!!  How to call a custom transaction or an ABAP program in BSP?

    Urgent!!  How to call a custom transaction or an ABAP program in BSP?
    We are pretty new on BSP.  Would be very appreciated if any expert here give us the detailed steps on how to build up the application to just call a custom transaction (e.g., t-code: ztest) or an ABAP program.  Would we have to create a button or event handler to do that?  And the detailed steps?
    Thanks in advance and we will definately give you reward points!

    hi Durairaj,
    During the time to wait for your answer, we copied Bernd's code from your last link, but when activating it, get the 1st error msg:
    Field "CLIENT" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement. The error shows up here:
    <td>
    <htmlb:inputField id = "client"
    value = "<%= client %>" />
    </td>
    Then we added Client to the page attribute and define it as type String, then get another error:
    The field "EVENT" is unknown, but there is a field with the similar name "EVENT_ID"."EVENT_ID". This error shows up at the beginning in the Event Handler:
    OnInputProcessing:
    code
    • 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.
    How to resolve this unknown Event error, need to define in Page Attribute tab? but with what type?
    Actually we only want to run an ABAP4 program in BSP, the code is complicated, could you show us an easy way of doing this in BSP?

  • 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 SAPGUI transaction from BSP and vice versa

    Hi all
    There was some discussion about this topics before. Maybe someone can just point me to the thread answering this issue:
    1. I need to call a SAPGUI transaction from a BSP application: I want to use SAPGUI, not ITS/webgui, I need single sign on, the SAPGUI transaction could possible run in another SAP system then the BSP.
    As far as I understand I need to create a *.sap file with the correct parameters for sapshortcut. But how does single sign on work? Can I create a logon ticket in my BSP and forward it to sapshortcut?
    2. I need to call a BSP application from a SAPGUI transaction or report, with single sign on but in a MS IE window, not inside a SAPGUI HTML control
    Can I create a logon ticket in my coding an append it to the start url for the BSP?
    any hints?
    thanks
    Michael

    hi Michael,
    For your second issue,to call a BSP application from a SAP GUI in MS IE explorer,
    you can use the Function Module CALL_BROWSER in your report,like
    data url(200) type c.
    url = 'http://<server>.<domain><port>:'.
    concatenate url '/sap/bc/bsp/sap/' into url.
    concatenate url 'znw_poc2_1_prtl/dts.htm' into url.
    concatenate url '?sap-user=<userid>' into url.
    concatenate url '&sap-password=<passowrd>' into url.
    CALL FUNCTION 'CALL_BROWSER'
      EXPORTING
        URL                          = url
    *    WINDOW_NAME                  = ' '
    *    NEW_WINDOW                   = ' '
    *    BROWSER_TYPE                 =
    *    CONTEXTSTRING                =
    *  EXCEPTIONS
    *    FRONTEND_NOT_SUPPORTED       = 1
    *    FRONTEND_ERROR               = 2
    *    PROG_NOT_FOUND               = 3
    *    NO_BATCH                     = 4
    *    UNSPECIFIED_ERROR            = 5
    *    OTHERS                       = 6
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    For this to work you have to enable SSO on your server.
    you can check if it is enabled or not by runnning the BSP application "SYSTEM" ,page "SSO2TEST.htm" .
    Follow the instructions on the page for testing.
    This may not be a great way as your userid password are passed via URL,still it works .
    Hope this helps,
    Regards,
    Siddhartha

  • How to call  an abap report in BSP..

    hi all,
    Please can anybody tell me how to call an abap report in BSP application.....since I am new to BSP....
    with regards,
    Santosh

    check this thread
    Urgent!!  How to call a custom transaction or an ABAP program in BSP?

  • TRANSACTION LAUNCHER--CALLING CRM Z TRANSACTION THROUGH WEB UI

    As per the requirement, we are trying to call CRM  Z transaction through web UI. We have used the Object TSTC and created a replica of the object ZTSTC and used the method execute. Made the necessary config for navigation bar and Business role. We could see the link in the Navigation bar but the link could not call the transaction. Pls suggest.Do we need to take the object of the Transaction or copy TSTC and proceed. Thanks in advance.Points will be awarded

    PLS FIND THE DETAILS TO PROVIDE THE INPUTS
    Configure Transaction Launcher TO CALL T.CODE ZEGNM_IMG FROM CRM THROUGH WEB UI USING TRANSACTION LAUNCHER
    USED THE OBJECT ZTSTC BY COPYING TSTC OBJECT AND BY RELEASING THE OBJECT WITH METHOD EXECUTE
    PROVIDED THE T.CODE ZEGNM_IMG IN THE VALUE FIELD IN THE ABOVE SCREEN
    CREATED THE DIRECT LINK ZEGNM_K
    CREATED THE DIRECT LINK GROUP ZEGNM_K
    ASSIGN THE DIRECT LINK TO THE DIRECT LINK GROUP
    ASSIGN THE DIRECT LINK GROUP TO THE PROFILE TMFLEASING WITH POSITION 80
    IN THE BUSINESS ROLE CUSTOMIZING MADE THE DIRECT LINK GROUP VISIBLE
    AFTER MAKING THE ABOVE CONFIGURATION WE HAVE LAUNCHED THE WEB UI AND THE FOLLOWING ERROR IS SHOWING UP
    PLS FOLLOW THE ABOVE SCREENSHOTS AND PLS PROVIDE YOUR INPUTS TO ACHIEVE THE OBJECTIVE OF LAUCHING THE Z CRM GUI TRANSACTIONS USING TRANSACTION LAUCHER
    ALSO PLS FIND THE SCREENSHOT OF ITS
    URL OF ITS USED
    u201Chttp://crd.tmf.com:8003/sap/bc/bsp/sap/its/webgui?transaction=IC_LTX&okcode=ICEXECUTEu201D

  • 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

  • How can i call a zreport from my bsp page.

    Hi friends,
    How can i call a zreport from my bsp page.
    Moosa

    Hi Friend,
    These are the codings  to be wirtten in BSP for transferring values to the REPORT
    DATA:wf_date TYPE ztable-ID.
          data:seltab type standard table of rsparams,
           wa_seltab like line of seltab,
         event TYPE REF TO if_htmlb_data.
    DATA:p_value TYPE REF TO CL_HTMLB_INPUTFIELD.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    p_requ ?= CL_HTMLB_MANAGER=>GET_DATA(
                                            request  = runtime->server->request
                                            name     = 'inputField'
                                            id       = 'i1'
    if p_requ is not initial.
      wf_date = p_requ->value.
    endif.
    clear wa_seltab.
    if wf_date is not initial.
      wa_seltab-selname = 'P_REQU'.
      wa_seltab-kind = 'P'.
      wa_seltab-option = 'EQ'.
      wa_seltab-low = wf_date.
      append wa_seltab to seltab.
    endif.
    submit *ZSAMPLEAP1* with selection-table seltab AND RETURN  .(ZSAMPLEAP1 refers to the report name and AND RETURN for coming back to the BSP page after the completion of its operation in Report )
    IMPORT int_name TO int_name FROM MEMORY ID '*zid*'.(For importing the obtained value from Report)
    In Report
    REPORT  ZSAMPLEAP1.
    SELECT-OPTIONS: p_requ FOR ztable-id  NO INTERVALS.
    SELECT SINGLE name from ztable into int_name WHERE id = p_requ-low.
    WRITE:int_name.
        EXPORT int_name TO MEMORY  ID 'zsharmila'.
    With Regards,
    SHARMILA BRINDHA.M

  • How to call a Webdynpro view from BSP page (MVC) in a new window?

    Dear Experts,
    kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
    Regards,
    Sarat.

    Hi,
    This has been discussed many times in several forums.
    Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
    Refer thread: Call Webdynpro Application from BSP Application
    Hope this will be useful!
    Regards,
    Meganadhan S

Maybe you are looking for

  • Custom search help for a custom field in SRM 7

    EDIT: I'm gonna clarify on this thread since my first post wasn't explicative enough... thanks for the patience Hi all gurus, the question is about a search help in SRM7 but since the task is about abap development, I guess this is the right section

  • Links from emails do not open in Firefox

    Recently when I click on a link (usually from an email), it will not open in Firefox. Although I am taken to Firefox, the new link doesn't open, instead I just see the windows that were already open. This was working before. I reinstalled Firefox whi

  • Selection-screen non-editable field

    HI,   On the selection-screen of a report, i have 2 parameter & one select opttions in selection screen like this sequence     p1 (has F4 help)     s1     p2 (Mandatory field)    If i select p1 value 'create' from F4 help. then depends on this select

  • RCU does not run on Windows XP

    I am trying to execute the rcu.bat file on my Windows XP SP2 machine and it does not work. An install screen does not come up, it only opens the directory for my Oracle Home installation and does nothing else!! How do I get this to work??? Thanks so

  • I have a Mac os 10.5.8 laptop and it will not download, boss has a desktop with same 10.5.8 and has Firefox ????

    I'm trying and tryinng to download Firefox on my laptop using os 10.5.8 and cannot do it..My boss has a desktop and running the same program and he has Firefox, how come?????