on 09-30-2008 6:39 AM
hi friends,
i am filling ITAB with some fields, now i have to get one by one field and i have to display this field values in textboxes in BSP layout page.
for exaple my ITAB contains 2 fields,
ID, NAME.
In layout there are two Input boxes.
now i have to display ITAB fields ID and NAME fields in layout inputboxes.
plz Any helps with some example code.......
Regards,
Shankar.
Hi shankar,
Let me know whether ur issue is solved or not
Regards,
Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use Dropdownlistbox in this case it will be simple to show the table values in the list box.
check the sample application
SBSPEXT_HTMLB
page DropdownListBox.bsp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In layout
for input fields set the value property
value = "<%= i_id %>" for id field
value = "<%= i_name %>" for name field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi shankar,
try this code Oninputprocessing event,
DATA: event type ref to cl_htmlb_event,
event = cl_htmlb_manager=>get_event( runtime->server->request ).
if event->id = 'btn'.
wa-id = '123'.
wa-name = 'abcd'.
append wa to itab.
if itab is not initial.
loop at itab into wa.
i_id = wa-id.
i_name = wa-name.
endloop.
endif.
endif.
Page attributes
i_id type string
i_name type string
Regards,
sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.