Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

how to assign data to itab

$
0
0

if suppose i have 2 input fields at selection screen

plant is from vbap mandt (ranges)

kunnr is from vbak (ranges)

 

fields i have to fetch from vbap is

vbeln, matnr,netwr,werks

 

fields from vbak tables are

vbeln,auart,kunnr

 

two itabs : itab1, itab2.

fianl itab: itab3

 

my o/p should be like dis

vbeln from vbap

matnr

netwr

werks

auart (vbak fields)

kunnr

 

when user enters plant directly i will fetch my data through

select vbeln, matnr, netwr, werks into table itab 1 from vbap where werks in my_werks.

 

one  more select query

select vbeln auart kunnr into table itab2 from vbak where kunnr in my_kunnr

 

now i want to move this both itab1 and itab2 record to my itab3 by removing duplicate value (i know the command remove adjcnt duplct value)

the thing is i want to know how to assign itab 1 record and itab2 into itab3 no duplicate records only unique

which finaly im assign itab3 to alv o/p

 

 

 

note i dont want to use joins i have more fields and 4 other tables im just taking example


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>