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

Re: For all entries in source package merge

$
0
0

Hi Amine,

 

Didn't try that before but there are some idea for you to reference.

 

I assume source_packet have a field which indicate the data type which call source_packet-dtype

 

1) Write SQL like this... (Notes: never try that, not sure if it will work)

Select fields

From table into internal table

Where ( source_packet-dtype = 1 and field1 = source_package-field1 and field2 = source_package-field2 )

OR ( source_packet-dtype = 2 and field1 = source_package-field1 ).

 

2) Try to split the source_packet into 2 itab, one contain type 1 and another contain type 2 data and then read with 2 sql and merge with appending key word, but this idea assume the record will be difference

 

Select fields

From table into internal table

Where field1 = itab_type1-field1

And field2 = itab_type1-field2.

 

Select fields

From table APPENDING internal table

Where field1 = itab_type2-field1

 

BTW, you may have better luck in the ABAP space.

 

Regards

Bill

 

Message was edited by: Chie Bill


Viewing all articles
Browse latest Browse all 9236

Trending Articles



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