Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

dispaly table with multiple rows in sap script.

Former Member
0 Likes
525

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

1 REPLY 1
Read only

g_lacroix
Explorer
0 Likes
368

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