cancel
Showing results for 
Search instead for 
Did you mean: 

display text from stxh table using read_text

Former Member
0 Kudos

Two read_text modules fill the internal tables g_tab

and g_tab1.

how to display the texts from both tables in a table cell one after the another.

loop is used for first table g_tab.

when second loop is used for second table g_tab1, in print preview the program hangs.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi krishna,

do the following.

DATA: begin of gt_line occurs 0,

line like tdline,

end of gt_line.

loop at gtab.

gt_line-line = gtab-tdline.

append gt_line.

endloop.

loop at gtab1.

gt_line-line = gtab1-tdline.

append gt_line.

endloop.

so now gt_line consists of both data appended to it.

Thanks,

Anil

Former Member
0 Kudos

Declare a variable of type string.

concatenate text from g_tab internal table and then g_tab1 into a variable.

Use this for displaying.

eg:

data: l_out type string.

  loop at g_tab.
    concantenate l_out g_tab-tline into l_out separated by space.
  endloop.
  loop at g_tab1.
    concantenate l_out g_tab1-tline into l_out separated by space.
  endloop.
  write:/ l_out.

Kind Regards

Eswar

Message was edited by: Eswar Rao Boddeti