Application Development 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: 

Passing Variable to LINE-SIZE

rajeshkumar_kaveti
Participant
0 Kudos

Hi Friends,

My list width changes dynamically. So how to pass a variable to Line-Size addition of Report Statement.

Tnks,

rajesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi Rajesh,

You can use the command

new-page line-size <line-width>.

thanks and regards,

Kunal.

Please mark the helpful answer.

7 REPLIES 7

former_member181966
Active Contributor
0 Kudos

Checkout the system variable sy-LINSZ. Dont declare line size in report statmnet .

pass the line size to it and see its wokrs or not ..

<b>var = 150 or 250 max = 1023 ...</b>sy-LINSZ = var.

I hope this`ll give you some clue!!!

Thanks

Saquib

Former Member
0 Kudos

hi Rajesh,

You can use the command

new-page line-size <line-width>.

thanks and regards,

Kunal.

Please mark the helpful answer.

suresh_datti
Active Contributor
0 Kudos

Hi Rajesh,

try if this works..Do not specify the line-size in the Report statement & pass the variable value to SY-LINSZ.

Regards,

Suresh Datti

rajeshkumar_kaveti
Participant
0 Kudos

Thanks for your response.

i am passing width to sy-linsz. but still some part of my list is not visible. and there is no horizontal scroll bar to scroll right side to check if my complete list is displayed. When i debugged it list width which i am passing is 166 but it is getting reassigned as 142.

Former Member
0 Kudos

Have u assigned in Initialization.

rajeshkumar_kaveti
Participant
0 Kudos

I assigned in End of Selection just before displaying the list. because i know the list width only after my final internal table is ready to display.

Former Member
0 Kudos

Hi ,

If you want Horizontal Scroll Bar you can also use the following statement,

scroll list to column <column number>.

This will display your list starting with column number,so you can see your complete list and you will also get Horizontal Scroll bar.