08-28-2014 1:00 PM
Hi all,
I have written select statement on VBPA table, it not working as expected.
my code:
data wa type land1.
Select land1 from VBPA into wa where vbeln = 12 and parvw = 'SH'.
Endselect.
write: 'Destination', wa.
when i keep where part it is not working, i mean result is empty.
Thanks & regards,
NarsiReddy.
08-28-2014 1:06 PM
Hi
VBELN is a NUMC type field. You should have '(00)00000012' in the WHERE clause (don't remember if it is 10 or 8 characters).
And if you only want to get the first record that matches your criteria better user SELECT SINGLE.
regards
08-28-2014 1:07 PM
Hi,
Check Vbeln field is having conversion routine pass vbeln = '0000000012'
08-28-2014 1:25 PM
USE vbeln = '0020000001' STRING VALUE OR USE FM CONVERSION_EXIT_ALPHA_INPUT
08-28-2014 1:34 PM
Actually BOTH fields have conversion exit, so
Regards,
Raymond
08-28-2014 1:57 PM
I assume you tested if you get a result when you enter this in SE16?
Best regards,
Thomas Wagner