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

sample code

Former Member
0 Likes
474

Hi All!

Require a sample code for the following.

I have to get vttk-tknum based on the following condition

Select single vbeln from vbfa into vbfa where vbelv=likp-vbeln and posnv='000001' and vbtyp_n=8

Regards

Pavan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
442

hi,

do this..

Select single vbeln 
       from vbfa 
       into vbfa-vbeln 
       where vbelv= likp-vbeln
        and posnv= '000001' 
        and vbtyp_n= '8'
        and vbtyp_v = 'J'.

Regards

vijay

3 REPLIES 3
Read only

Former Member
0 Likes
443

hi,

do this..

Select single vbeln 
       from vbfa 
       into vbfa-vbeln 
       where vbelv= likp-vbeln
        and posnv= '000001' 
        and vbtyp_n= '8'
        and vbtyp_v = 'J'.

Regards

vijay

Read only

Former Member
0 Likes
442

Hi,

You can try by...

Select single vbeln

from vbfa into vbfa-vbeln

where vbelv=likp-vbeln

and posnv='000001'

and posnn='000001'

and vbtyp_n=M

regrads

Rakesh

Read only

LucianoBentiveg
Active Contributor
0 Likes
442

SELECT SINGLE vbeln

INTO nrotransp

FROM vbfa

WHERE vbelv EQ likp-vbeln

and posnv EQ '000001'

and vbtyp_n EQ 8.

SELECT SINGLE tknum

INTO lc_tknum

FROM vttk

WHERE tknum = nrotransp.