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: 

Problem with line size

Former Member
0 Kudos

hi all,

will any body please tell me why the following code does not execute and log off automaticaly when i assign small value to line-size.

REPORT  z_sdn line-size 5.

parameters:
  p_var type i.


end-of-selection.
  write:'Input value is',p_var.

Anirban Bhattacharjee

14 REPLIES 14

Former Member
0 Kudos

p_var is of type i .. so it has length of 8 ..

your report line-size is only 5 .. I think this is the reason ..

0 Kudos

hi,

Even the following code is behaving same.

REPORT  yh1150_sdn line-size 5.

parameters:
  p_var type c.


end-of-selection.
  write:'Input value is',p_var.

Anirban Bhattacharjee

Former Member
0 Kudos

Hi ,

The problem is with line-size 5 , pleas see the help on Line Size for more info.

Regards

A.r

former_member188685
Active Contributor
0 Kudos

There is no problem with your code.

It is working fine in my system. I hope you are on lower version. what is your SAP Gui patch level...

0 Kudos

vijay,

I am workin in SAP GUI 6.40

and SAP 4.7EE.

Anirban Bhattacharjee

Former Member
0 Kudos

Code ran fine on v4.6c

Former Member
0 Kudos

hi,

Because the mimimum output length of an integer is 8 and you have defined it as 5 which it is not accepting ..

Regards,

Santosh

Former Member
0 Kudos

hi this not due to this code...

i had checked and it is working fine..

it is showing output ..the input 0

Former Member
0 Kudos

For me the same code is working. I do not think it has to do anythg with line size..

regards,

madhu

Former Member
0 Kudos

Hi Anirban,

In the Code You Want to print the Character String

'Input Value is' 'Which is 14 of length

greater than Your Definded Line-size ie 5.

That why it is not executing.

0 Kudos

Hi Sujit,

Even this code is behaving same.

REPORT  yh1150_sdn line-size 5.

parameters:
  p_var type c.


end-of-selection.
  write:p_var.

Anirban Bhattacharjee

Former Member
0 Kudos

No prob. in ur code, I can run ur code in ECC 5.0. But the prob is I am getting truncated output as line-size is 5.

But ur output length is more than 5.

write:'Input value is',p_var. << Here total output length is 15 + then length of the value given in p_var.

To get proper output line-size should be equal to or greater than output length.

Regards,

Joy.

former_member705122
Active Contributor

Former Member
0 Kudos

Hi,

Please Check The Title Of your Program name in Attributes.

If its Length Is Greater Than The Line-size then It will go to

Error.

If its less than line-size then you wont have any problem.

Thanks.