on 05-29-2008 1:09 PM
Hi,
I am working on a smartform program in which I want the number 300003295 o be converted to 0300003295.So,
I have used 'conversion_exit_alpha_input' function module.After executing this function module I can see the value as 0000000000000000000000000000000000000000000000000000000000000300003295.I want to append only one digit to the number and the number should contain 10 digits.How can I do this?
Regards,
Hema
Instead of using conversion_exit_alpha_input.
data: l_name(10).
clear l_name.
l_name = tdline.
shift l_name right.
replace ' ' with '0' in l_name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hema,
Use the data type of exporting parameter exactly same as you want . like char10 or type p decimal 0.
Amit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the data type of the importing parameter.
If the length of the importing parameter is 10, u will get surely only 10 charatcers with zero in the front provided the exporting parameter to FM is of 9 characters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
In the function module there is no fileld length mentioned, so it will take the maximum lenth and will give the value with the leading zero's . If you define the filed with the lenth 10 and use that filed in the FM it will display correctly.
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.