2008 Mar 18 9:48 AM
Hi All,
I am using the parameter statement with visible length Option. The parameter is defined for a fiel which is of 132 charecters and I defined the visible length as 10. Whenever I enter data into this parameter which is more than 10 charecters the data is automatically getting truncated to 10 charecters in the program. But I want to have the full value in the program what user enters.
I defined the parameter as follows..
PARAMETERS : p_name(132) type c VISIBLE LENGTH 20 lower case.
Any inputs regarding this issue are highly appreciated
Thanks,
Kasinath Babu.
2008 Mar 18 9:53 AM
hi,
it should not be truncated, the VISIBLE LENGTH is for the selection screen only. Probably in your program you use like: p_nam(10), which means, that only the first ten characters are used.
hope this helps
ec
hi,
it should not be truncated, the VISIBLE LENGTH is for the selection screen only. Probably in your program you use like: p_nam(10), which means, that only the first ten characters are used.
hope this helps
ec
2008 Mar 18 9:53 AM
hi,
it should not be truncated, the VISIBLE LENGTH is for the selection screen only. Probably in your program you use like: p_nam(10), which means, that only the first ten characters are used.
hope this helps
ec
2008 Mar 18 10:00 AM
Hi Eric,
Thanks for your quick response.
IAs you said the VISIBLE LENGTH is for the selection screen only. I am not using anything like p_nam(10) in my program. I am facing this problem in a particular system which is running on 4.6C when I used the same code in other system which is on ECC 6.0 there I am not getting this problem.
Thanks,
Kasinath Babu.
2008 Mar 18 10:04 AM
strange...
I have here 4.7, 5.0 and 6.0, unfortunately no 4.6C, so I cannot try...
I also checked the 4.6C Saphelp and it is clearly stated that it should not happen.
I think you have to contact OSS regarding this (if 4.6C is still supported)
2008 Mar 18 10:39 AM
running on a 4.6c system, this code works fine.
PARAMETERS:
p_view(132) TYPE c VISIBLE LENGTH 20 lower case.
START-OF-SELECTION.
write:/ p_view.
END-OF-SELECTION.
2008 Mar 18 9:55 AM
2008 Mar 18 9:58 AM
Hi,
data will not get truncated like that.may be u are assigning the value of p_name to some other variable of length only 10.
rgds,
bharat.
2008 Mar 24 9:59 AM
Hi all,
I find the solution. this is the problem with the GUI. I tried with a new version of GUI and it is working fine.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |