2009 Sep 18 10:24 AM
hi
ihave a requirement that i have to display multiple rows in table in sap script based on no of lines in internal table.how to get this. please suggest.i want in a table format with header and items.
regards,
suhashini
hi
ihave a requirement that i have to display multiple rows in table in sap script based on no of lines in internal table.how to get this. please suggest.i want in a table format with header and items.
regards,
suhashini
2009 Sep 18 10:33 AM
Hello,
You define in sapscript / WINDOW MAIN, the element MAIN_DETAIL with all fields(columns) which must be printed.
And you do a loop of your internal table. (or standard table...)
Loop at inetrenaltable.
move internal-table -field1 to w_field1.
move internaltable-field2 to w_field2 etc.......... (all fileds of sapscript)
write line of sapscript :
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MAIN_DETAIL'
EXCEPTIONS
element = 1
window = 2.
endloop.
regards
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |