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

Select statement on VBPA

Former Member
0 Likes
1,722

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.

5 REPLIES 5
Read only

Former Member
0 Likes
1,154

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

Read only

Former Member
0 Likes
1,154

Hi,

     Check Vbeln field is having conversion routine pass vbeln = '0000000012'

Read only

Former Member
0 Likes
1,154

USE vbeln = '0020000001' STRING VALUE OR USE FM CONVERSION_EXIT_ALPHA_INPUT

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,154

Actually BOTH fields have conversion exit, so

  • VBELN ->ALPHA -> CONVERSION_EXIT_ALPHA_INPUT -> '12' -> '0000000012'
  • PARVW  -> PARVW -> CONVERSION_EXIT_PARVW_INPUT -> 'SH' -> 'WE'

Regards,

Raymond

Read only

Former Member
0 Likes
1,154

I assume you tested if you get a result when you enter this in SE16?

Best regards,

Thomas Wagner