2008 Jun 26 12:52 PM
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
2008 Jun 26 12:54 PM
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 ..
2008 Jun 26 1:05 PM
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
2008 Jun 26 12:55 PM
Hi ,
The problem is with line-size 5 , pleas see the help on Line Size for more info.
Regards
A.r
2008 Jun 26 12:55 PM
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...
2008 Jun 26 1:03 PM
vijay,
I am workin in SAP GUI 6.40
and SAP 4.7EE.
Anirban Bhattacharjee
2008 Jun 26 12:56 PM
2008 Jun 26 12:56 PM
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
2008 Jun 26 12:57 PM
hi this not due to this code...
i had checked and it is working fine..
it is showing output ..the input 0
2008 Jun 26 12:57 PM
For me the same code is working. I do not think it has to do anythg with line size..
regards,
madhu
2008 Jun 26 1:00 PM
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.
2008 Jun 26 1:09 PM
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
2008 Jun 26 1:00 PM
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.
2008 Jun 26 1:02 PM
Hi,
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba50d35c111d1829f0000e829fbfe/content.htm
Regards
Adil
2008 Jun 26 1:23 PM
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.