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 while using the parameter statement with visible length Option

Former Member
0 Likes
916

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.

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
889

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

7 REPLIES 7
Read only

JozsefSzikszai
Active Contributor
0 Likes
890

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

Read only

0 Likes
889

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.

Read only

0 Likes
889

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)

Read only

0 Likes
889

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.

Read only

Former Member
0 Likes
889

Sorry but I think it's working fine for me.

Read only

Former Member
0 Likes
889

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.

Read only

Former Member
0 Likes
889

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.