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

Write statement problem

Former Member
0 Likes
587

Hi all,

I have generated the report and got the required output.

But not able to display all fields in one row.

in my o/p ,first 3 fields come in one row, but fourth one in extreme left of second row, and fifth field in extreme right of second row.

Can anybody help me,

where i m wrong in my code.

loop at main_table.

write :/1 '|' no-gap, mAIN_TABLE-lifnr,

13 '|' no-gap, mAIN_TABLE-name1,

46 '|' no-gap, mAIN_TABLE-name2,

82 '|' no-gap, mAIN_TABLE-ort01 ,

102 '|' no-gap, mAIN_TABLE-regio,

108 '|' .

endloop.

Definitely rewards pts.

Best Regards,

Aastha

1 ACCEPTED SOLUTION
Read only

ak_upadhyay
Contributor
0 Likes
500

Hi,

set the Line-Size at the top of report like this.


report ZGENSET_130  no standard page heading line-size 295.

In Case of any problem revert back.

Reward points if useful....

Regards

AK

3 REPLIES 3
Read only

Former Member
0 Likes
500

Hi,

REPORT <reportname> MESSAGE-ID ZXXX

NO STANDARD PAGE HEADING

LINE-SIZE 130

LINE-COUNT 55.

Increase the line-size to 130 or more than that.

Thanks,

Sriram Ponna.

Read only

ak_upadhyay
Contributor
0 Likes
501

Hi,

set the Line-Size at the top of report like this.


report ZGENSET_130  no standard page heading line-size 295.

In Case of any problem revert back.

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
500

hi

try this


loop at main_table.

write :/1 sy-vline, mAIN_TABLE-lifnr,
13  sy-vline, mAIN_TABLE-name1,
46 sy-vline, mAIN_TABLE-name2,
82  sy-vline, mAIN_TABLE-ort01 ,
102  sy-vline, mAIN_TABLE-regio,
108  .

endloop.

if useful give reward points

Regards,

pankaj