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

Format display probelm

Former Member
0 Likes
547

Hi

I have values in 2 internal table but there is not commen field for both table.

Like

Table 1

F1 M1

F1 M5

F1 F3

F1 F4

F1 F5

I want to display like below

H1 H2 H3 - Header

F1 M1 F3

F1 M5 F4

F1 F5

How do i do it.

Thanks in advace

4 REPLIES 4
Read only

Former Member
0 Likes
522

Logic i see none.

Read only

0 Likes
522

Hi Venkat,

Could you please give the structure of the 2nd internal table also? so that i can suggest something./

Regards

Karthik

Read only

Former Member
0 Likes
522

hi

use this logic.

USING RESERVE KEYWORD U CAN DO IT.



DATA: J TYPE I VALUE 0,

loop at ITAB1.

RESERVE 2 LINES.

WRITE:/1 ITAB1-VALUE , ITAB2-VALUE .....

BACK.
CLEAR J.

LOOP AT ITAB2 WHERE <CONDITION> = ITAB1- <CONDITION>.
 J = J + 1.
ENDLOOP.

 RESERVE J LINES.

LOOP AT ITAB2 WHERE <CONDITION> = ITAB1- <CONDITION>.

WRITE:/1...... ITAB1-VALUE , ITAB2-VALUE .....
ENDLOOP.

   BACK.

ENDLOOP

hope its help u.

Regards,

Abhilash.

Read only

0 Likes
522

Sense, it makes none.