cancel
Showing results for 
Search instead for 
Did you mean: 

How to display BAPI values in a table with textfields

Former Member
0 Kudos

Hi all,

I have this requirement.

I have BAPI, I am able to call the BAPI and I am storing the values as a record set in a bean. In JSP I have table with 3 rows, each row got 2 text fields, I trying to figure out how to set the value of text field to record set values.

Record set got 3 rows for each day, each day got one check in and check out time. Here my requirement is get the value from record set and set that particular value to text fields. Please guide me how to get this done.

Thanx

Keerthi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Is this what you are looking for?


<jsp:useBean id="user" class="myBean" scope="session"/> 
<HTML>
<BODY>
<INPUT TYPE=TEXT NAME=field1 SIZE=20 VALUE='<%= user.getField1() %>'><BR>
</BODY>
</HTML>

Former Member
0 Kudos

Hi Dennis,

I have following code

IRecordSet set = userBean.gedata()// this will give BAPI data as a record set

String var = set.getString("xxxxxx")

now I want to set this value with value field in below text field

<input type="text" id="val1" name="val1" value=" ">

if I say like value = "var", its printing like var not the value in var

So I am wondering how to do that.

Thanx

Keerthi

Former Member
0 Kudos

I assume all of code are in jsp.

Try the following code to see if it works.


<%>
IRecordSet set = userBean.gedata()// this will give BAPI data as a record set
String var = set.getString("xxxxxx")
<%>
<TR>
        <TD><input type="text" id="val1" name="val1" value='<%= var %>'></TD>
        </TR>