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: 

works in sqvi but not work in code

Former Member
0 Kudos
183

select-options :zu_vbeln for vbak-vbeln no intervals.

select MAKTMAKTX MAKTMATNR

into (ITAB-MAKTX , ITAB-MATNR)

from ( MAKT

inner join VBAP

on VBAPMATNR = MAKTMATNR )

where MAKT~SPRAS = 'HE'

and VBAP~VBELN in zu_vbeln.

MODIFY ITAB.

ENDSELECT.

any idea?

thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
152

Yehiel,

Then go with <b>'H'</b> !!!

Make changes in ur Query stated in BOLD .

select MAKTMAKTX MAKTMATNR

into (ITAB-MAKTX , ITAB-MATNR)

from ( MAKT

inner join VBAP

on VBAPMATNR = MAKTMATNR )

where <b>MAKT~SPRAS = 'H'</b>

and VBAP~VBELN in zu_vbeln.

MODIFY ITAB.

ENDSELECT.

Thanks

Kam

Note: Allot points for all worthful postings

Message was edited by: Kam

8 REPLIES 8

former_member181962
Active Contributor
0 Kudos
152

HI Yehiel,

can you explain what exactly is the problem?

Ravi

0 Kudos
152

i took this select from sqvi, and there i get data

but when i put it in the code

i donot get data whit the same paramaters

Former Member
0 Kudos
153

Yehiel,

Then go with <b>'H'</b> !!!

Make changes in ur Query stated in BOLD .

select MAKTMAKTX MAKTMATNR

into (ITAB-MAKTX , ITAB-MATNR)

from ( MAKT

inner join VBAP

on VBAPMATNR = MAKTMATNR )

where <b>MAKT~SPRAS = 'H'</b>

and VBAP~VBELN in zu_vbeln.

MODIFY ITAB.

ENDSELECT.

Thanks

Kam

Note: Allot points for all worthful postings

Message was edited by: Kam

0 Kudos
152

i need 'he' not en

0 Kudos
152

HI Yehiel,

Try passing 'B' in place of 'HE".

For hebrew, it is internally stored a 'B'.

It will work.

Regards,

Ravi

Try the follwing code

select MAKTMAKTX MAKTMATNR

into (ITAB-MAKTX , ITAB-MATNR)

from ( MAKT

inner join VBAP

on VBAPMATNR = MAKTMATNR )

<b>where MAKT~SPRAS = 'B'</b>

and VBAP~VBELN in zu_vbeln.

MODIFY ITAB.

ENDSELECT.

0 Kudos
152

thank ravi

Former Member
0 Kudos
152

select BMAKTX BMATNR

into (ITAB-MAKTX , ITAB-MATNR)

from ( VBAP as A

inner join MAKT as B

on AMATNR = BMATNR )

where B~SPRAS = 'HE'

and A~VBELN in zu_vbeln.

MODIFY ITAB.

ENDSELECT.

it should work

reward points if it helps you.

thanks

Message was edited by: Anid

Former Member
0 Kudos
152

Hi,

Have you already checked that zu_vbeln is a correct interval and will give data?

Cheers,

Mireia