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

Problem with line size

Former Member
0 Likes
1,542

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

Former Member
0 Likes
1,518

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 ..

Read only

0 Likes
1,518

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

Read only

Former Member
0 Likes
1,518

Hi ,

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

Regards

A.r

Read only

Former Member
0 Likes
1,518

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...

Read only

0 Likes
1,518

vijay,

I am workin in SAP GUI 6.40

and SAP 4.7EE.

Anirban Bhattacharjee

Read only

Former Member
0 Likes
1,518

Code ran fine on v4.6c

Read only

Former Member
0 Likes
1,518

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

Read only

Former Member
0 Likes
1,518

hi this not due to this code...

i had checked and it is working fine..

it is showing output ..the input 0

Read only

Former Member
0 Likes
1,518

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

regards,

madhu

Read only

Former Member
0 Likes
1,518

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.

Read only

0 Likes
1,518

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

Read only

Former Member
0 Likes
1,518

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.

Read only

Former Member
Read only

Former Member
0 Likes
1,518

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.