on ‎2007 Aug 29 11:52 AM
Hi Gurus,
I want to loop over all InputFields, check if they are enabled/not read only and empty. If a field is found, the cursor should be set on this field.
In classic abap it is done like this:
loop at screen.
if screen-input eq 1.
assign (screen-name) to <g1>.
if sy-subrc eq 0 and <g1> is initial.
set cursor field screen-name.
exit.
endif.
endif.
endloop.
I already know how can is set the cursor. But how can I do the loop?
Thanks in advance.
BR,
Alfons
Request clarification before answering.
hi,
you can get all the elements in a container in a table
eg lt_table = lo_tray->get_children( ).
this table is a table of cl_wd_uielement
loop over this table where id cs 'INP_'
and you are looping over all your input fields (considering you named all the inputfields
INP_name
there you can perform the requests for attribute value, read_only etc
grtz,
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.