07-02-2007 1:53 PM
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
07-02-2007 2:09 PM
07-02-2007 2:12 PM
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.
07-02-2007 2:16 PM
Hi DJ
I know source and target should be same.
Iam asking how to avoid ....alternative.
07-02-2007 6:26 PM
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
07-02-2007 6:31 PM
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).