cancel
Showing results for 
Search instead for 
Did you mean: 

BSP Application - Internal table displayed as HTML form table not working on SAP GUI

0 Kudos

Hello Experts,

I am trying to read internal table on request event of bsp application and display it as input fields of form.

This code is working as expected in SAP WEB GUI but it is not working on SAP GUI.

Are there any limitations on BSP ?

The application is generally accessed from SAP GUI, so have to make it work.

Following is the code

<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<html>
  <head>
    <title>Main menu</title>
  </head>
  <body>
    <h1>Main menu</h1>
    <form method="post" action="<%= ls_httpnvp-value %>" target="_top">
      <input type="text" name="~caller" value="CTLG">
      <input type="text" name="NEW_ITEM-DESCRIPTION[1]" value="BNCM(12)-BNCM(12),735A-12 COAX,60FT">
      <table border="1">
        <%
          data: ls_h1 type ihttpnvp,
                ls_d like line of lt_data.
          loop at lt_data into ls_d.
          data(lv_tabix) = sy-tabix + 1.
        %>
        <tr>
          <td>
            <input type="text" name="NEW_ITEM-DESCRIPTION[<%= lv_tabix %>]" value="<%= ls_d-description %>">
          </td>
        </tr>
        <%
          endloop.
        %>
      </table>
      <input type="submit" name="Checkout" value="Customer list">
    </form>
  </body>
</html>
Output from SAP Web GUI

Output on SAP GUI

Thanks,

Rahul

Sandra_Rossi
Active Contributor
0 Kudos

First of all, BSP is not meant to be displayed on SAP GUI for Windows (or Java?), it's meant to display in Web browser.

So there's no guarantee that BSP works well on SAP GUI for Windows.

Do you see the same thing in the HTML code?

Which SAP GUI version is it?

If it's 7.70, what if you switch SAP GUI option between Microsoft IE and Chromium engines?

0 Kudos

Hello Rossi,

I have tried using both Microsoft IE and Chromium engines and they behave same with no table output in SAP GUI.

Web GUI HTML has the values from internal table, but the SAP GUI HTML does not have the same. Is there any possibility to achieve the same on SAP GUI as well?

Regards,

Rahul

Accepted Solutions (0)

Answers (0)