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: 

Get the data from TVKO n VBAK tables

Former Member
0 Kudos
245

hello experts,

My selection screen is designed as...

select-options: s_wadat for vkdfs-fkdata no extension,

s_vkorg for tvko-vkorg,

s_spart for vbak-spart,

s_burks for tvko-bukrs.

Based on the selection screen i have to retrieve the data for VKORG and SPART.

for different values of the selection screen.... and with out any values in the any of fields of selection screen....

can anyone guide me what is best select statement to write...

Please guide me is it better to put the joining condition.. if so how

or better to write the separate select statement if so how to get the combined data between those selection

please give me some guidance

I really appreciate your anticipation

1 REPLY 1

Former Member
0 Kudos
50

hi Nitesha,

here im giving the code.

select tvko~vkorg

tvko~bukrs

vbak~spart

vkdfs~fkdat

into table <itab>

from tvko join vbak

on tvkovkorg eq vbakvkorg

join vkdfs on

vkdfsvkorg eq tvkovkorg

where vkdfs~fkdat in s_wadat and

tvko~vkorg in s_vkorg and

tvko~bukrs in s_bukrs and

vbak~spart in s_spart.

Rewards points if useful.

regards.,

Chandra