cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

Does BSP support ITAB (with header line)? If NO, then how can the data be appended to ITAB with LOOP AT in the event handler?

Is there any equivalent component for ITAB in BSP?

Thank you

arun

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

Now let me put my question in different way. I have 10 <htmlb:inputfield> in my page and in my Event handler i want to call a BAPI which will return values for those 10 Input fields. In this case it is an ITAB.

I need to assign First field of ITAB to First inputfield and 10 field of ITAB to 10 inputfield. How do i do that? I cannot assign directly <%= ITAB-field1%>

I tried to use 10 seperate page attribute fields and assign inputfields value as "<% = field1 %>" etc. But in my event handler when i assign ITABS first field to page attributes first field it says "ITAB has no header line"

What is the best way to handle this situation? Is there any better way to do this process.

Thank you

arun

Message was edited by: Arun Prasad

Former Member
0 Likes

You can do a


<%
LOOP AT itab INTO witab
 field1 = witab-field1.
 field2 = witab-field2.
 field3 = witab-field3.
 field4 = witab-field4.
ENDLOOP.
%>

<htmlb:inputField id="field1" value="<%=field1%>">

Former Member
0 Likes

Hai arun,

I am also new to BSP, But i have good friends like subramaniyan,creg..etc.

try this,

first capture values into internal table...

and now you have 10 input fields and each one has id.and only one record can place into input fields at a time.

now READ TABLE ITAB INDEX 1 (assume this)

and pass values to all input fields

input1 = <%=itab-val1%>

input2 = <%=itab-val2%>

---

-


-


like wise.

try this, it will work

Former Member
0 Likes

Nice Leoiz,

That is also an option for working!!!