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

Regarding field lengh

Former Member
0 Likes
1,053

Hi all,

I am using vbeln in one select query,

actually the field length is 10 characters, but value of the field

is 23899 only, so i am not able to get the result in select query, could u please help in this,

addition is when value of the field length is 10 characters also ,we have to get the result or nine or eight, but only when

the field length is 10 only we are getting value

please help me out in this issue.

thanks

vinesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,021

Hi

Use the Function module

CONVERSION_EXIT_ALPHA_INPUT

to convert your value 23899 into 0000023899 and they sue that value for your select query.

Regards

Kiran.

Hi all,

I am using vbeln in one select query,

actually the field length is 10 characters, but value of the field

is 23899 only, so i am not able to get the result in select query, could u please help in this,

addition is when value of the field length is 10 characters also ,we have to get the result or nine or eight, but only when

the field length is 10 only we are getting value

please help me out in this issue.

thanks

vinesh.

6 REPLIES 6
Read only

Former Member
0 Likes
1,021

Hi Vinesh ,

You need to add 0s at the beginnig and make the lenght equal to 10 before you use it in the where clause.

You can use a converison exit to acheive this .

Regards,

Arun

Read only

0 Likes
1,021

Hi,

How to add zero's before , when the field length less than

10 characters

could you please provide me the logic

thanks

vinesh

Read only

Former Member
0 Likes
1,022

Hi

Use the Function module

CONVERSION_EXIT_ALPHA_INPUT

to convert your value 23899 into 0000023899 and they sue that value for your select query.

Regards

Kiran.

Read only

Former Member
0 Likes
1,021

Use FM CONVERSION_EXIT_ALPHA_INPUT

to populate 0's to field(vbeln) in the where condition ...

Read only

Former Member
0 Likes
1,021

add zeros before it to make it 10 digits

use overlay statement to do this

Read only

Former Member
0 Likes
1,021

Hi Siddivinesh,

suppose the name of the field holding vbeln value is V_VBELN.

Use conversion routine ( CONVERSION_EXIT_ALPHA_INPUT)for the field V_VBELN which makes the value to be converted into the SAP format.

For ex:

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = V_VBELN

IMPORTING

OUTPUT = V_VBELN.

This will make zeros to be appended at the beginning. I mean if its value is 32456 it will be converted to 0000032456.

<REMOVED BY MODERATOR>

Thanks,

Karthik

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:16 PM