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

Passing Variable to LINE-SIZE

rajeshkumar_kaveti
Participant
0 Likes
1,229

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
Read only

Former Member
0 Likes
1,095

hi Rajesh,

You can use the command

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

thanks and regards,

Kunal.

Please mark the helpful answer.

Hi Friends,

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

Tnks,

rajesh

7 REPLIES 7
Read only

former_member181966
Active Contributor
0 Likes
1,095

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

Read only

Former Member
0 Likes
1,096

hi Rajesh,

You can use the command

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

thanks and regards,

Kunal.

Please mark the helpful answer.

Read only

suresh_datti
Active Contributor
0 Likes
1,095

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

Read only

rajeshkumar_kaveti
Participant
0 Likes
1,095

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.

Read only

Former Member
0 Likes
1,095

Have u assigned in Initialization.

Read only

rajeshkumar_kaveti
Participant
0 Likes
1,095

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.

Read only

Former Member
0 Likes
1,095

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.