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: 

sample code

Former Member
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

LucianoBentiveg
Active Contributor
0 Kudos

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.