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

Hanging indent output

Former Member
0 Likes
380

Assume I have 5 columns and n lines to be output on the screen. The first 4 colums of first 5 lines have same values, so I want to show the values of these columns for only first row, the remaining 4 rows should not have the values for these first four columns. Hence the output should look like hanging indent format of MS Word for first 5 rows.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
354

Hi

U can copy the work area or header line values into a Temp work area. Before printing U can check the current work area value swith Temp work area values,

If same do not print

If different print

U can compare only 1st 4 columns

At the same time, if u need this only for 1st 5 rows, u can put the above login in a IF block as

IF sy-tabix <= 5

endif

If u need this login for all the rows, abive IF block is not needed

Reward if useful

Narendra

Assume I have 5 columns and n lines to be output on the screen. The first 4 colums of first 5 lines have same values, so I want to show the values of these columns for only first row, the remaining 4 rows should not have the values for these first four columns. Hence the output should look like hanging indent format of MS Word for first 5 rows.

1 REPLY 1
Read only

Former Member
0 Likes
355

Hi

U can copy the work area or header line values into a Temp work area. Before printing U can check the current work area value swith Temp work area values,

If same do not print

If different print

U can compare only 1st 4 columns

At the same time, if u need this only for 1st 5 rows, u can put the above login in a IF block as

IF sy-tabix <= 5

endif

If u need this login for all the rows, abive IF block is not needed

Reward if useful

Narendra