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

Hi,

we are on WAS700, internal ITS.

during PBO of a dynpro I have filled an internal table (ig_quantity). I am not using a table control or any visualization on the dynpro layout for this table.

How is the easiest way to loop through the table on the corresponding html template? Is it possible at all if the internal table is not in the dynpro-element list? The point is, I need to insert an input-field on the html side, which needs to be added to an existing tablecontrol.

I am not really into htmlBusiness, but I assume, I need something like this:

`repeat with n from 1 to ig_sublist-quantity`
...<html coding>...
`end`

ig_sublist is my internal table, quantity a field in the table

thanx, matthias

Message was edited by:

Matthias Kasig

Message was edited by:

Matthias Kasig

0 Likes
View Entire Topic
athavanraja
Active Contributor
0 Likes

it would be something like

`repeat with j from ig_sublist.firstvisible

to ig_sublist.lastvisible`

....

to ge the value of the quantity field it will be

ig_sublist-quantity[j].value

`end`

http://help.sap.com/saphelp_nw04/helpdata/en/5f/1fb0f94aee11d189740000e8322d00/frameset.htm

Raja

matthias_kasig2
Participant
0 Likes

Hi Raja,

on my html template I wrote:

`repeat with j from ig_sublist.firstvisible to ig_sublist.lastvisible`
<input type="text" name="ig_sublist-QUANTITY[`j`]" VALUE="`ig_sublist-QUANTITY[j].value`" size="10">
`end`

but this does not seem to have any effect - I don't get to see an html- inputfield...

do you have a clue why I can't see the html inputs derived from the internal table?

I checked the table in PBO of the dynpro - it is filled with two lines.

regards, matthias

athavanraja
Active Contributor
0 Likes

are you sure ig_sublist is available for the template? can you just put it a javascript alert to view the value of firstvisible and lastvisible values.

<script>

alert('`ig_sublist.firstvisible`');

</script>