cancel
Showing results for 
Search instead for 
Did you mean: 

print internal table in horizontal line (was "SMF Problem")

Former Member
0 Kudos

Dear All,

I need to print internal table data in a horizontal line in smartform,ie., ex:1,2,3,4,5,6,7,8,9,10. like this in a row of my smartform,is it possible?how to achieve it.

Moderator message: please choose more descriptive subject lines for your posts, select correct ABAP subforum for your issue.

Edited by: Thomas Zloch on Aug 18, 2011 5:43 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi raghav,

I as far as I know we canot print that way because the line type cannot be changed dynamically.

BR

Dep

Edited by: DeepakNandikanti on Aug 18, 2011 2:55 PM

Former Member
0 Kudos

is there anyother way in SAP-ABAP so that v cam print horizontally the values of the internal table!like ex:1,2,3,4,5...etc.,

Former Member
0 Kudos

Sure, declare a variable of type c, with the appropriate length.

Loop at your internal table.

if sy-tabix = 1.

your variable = internal_table-fieldname.

else.

concatenate your_variable internal-table-fieldname

into your_variable separated by ', '.

endif.

endloop.

You could do this in your smartform, or you could do in code and pass to variable to your SmartForm.

Edited by: DaveL on Aug 22, 2011 7:21 PM