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

selection-screen fields

Former Member
0 Likes
494

Hello all,

I am having one field p_truck. i am updating the field in table .(In Table) The field type is Char10 . Now when i entered in selection the value of p_truck as 1234 it is updating in table as 0000001234. I dnt want this , i want whatever user enterd into p_truck should get updated in table. Means Suppose user entered 1234 then the updated value should be 1234 and if user entered 0000001234 then it should be 00001234.

Thank you for your help in advance.

Sidd.

4 REPLIES 4
Read only

Former Member
0 Likes
476

use the command write.

data: lv_truck type char10.

write p_truck to lv_truck left-justified no-zero.

Read only

0 Likes
476

Hello Kemmer,

thank you for reply.

But by this only the leading zeroes get removed. i want what ever user entered should get updated. if user entered 0000001234 it should update this as it is.

Read only

matt
Active Contributor
0 Likes
476

You've got a conversion function running, most likely. Can you post the actual code of the parameter, so we can see precisely which type you are using?

matt

Read only

Former Member
0 Likes
476

Solved the problem.