Application Development 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: 

mismatch

Former Member
0 Kudos

Hi

I have 2 selects

select xblnr..

select belnr.. ..for all entries of i_xblnr

where belnr = i_xblnr-xblnr.

iam getting error type mismatch ,bcz iam using for all entries

How can i avoid this error?

Any conversion exit fm??

Thanks

5 REPLIES 5

Former Member
0 Kudos

try FM:- 'CONVERSION_EXIT_ALPHA_INPUT'

Former Member
0 Kudos

hi,

It might be the type / length mismatch, when you assign / compare the data the source and target strctures should be the same. Just check the For all entries internal table and second where condition fields...so that you will come to know the exact mismatch...

dont forget to check the internal table number of lines before you use 'For all entries.'

regards

  • Dj

reward for all useful answers.

0 Kudos

Hi DJ

I know source and target should be same.

Iam asking how to avoid ....alternative.

Clemenss
Active Contributor
0 Kudos

select xblnr into lv_xblnr.

call function 'CONBERSION_EXIT_ALPHA_INPUT'

input = lv_xblnr

output = lv_belnr.

append lv_belnr to i_belnr.

select belnr ... for all entries in i_belnr

where belnr = i_belnr-belnr.

Type should be same.

Regards,

Clemens

Former Member
0 Kudos

If you are sure that XBLNR value will have the internal format of the BELNR (with leading zeros) and in the first 10 characters, then you can try

WHERE belnr = i_xblnr-xblnr+0(10).