Quantcast
Viewing all articles
Browse latest Browse all 9269

Re: Retrieve a value with many conditions

Hi amine ,

 

select all the table values into internal table say

 

source data table into t_source

master data table into t_master

target  data  table into t_target .

 

loop at t_source into w_source .

loop at t_master into w_master where account = w_source-account and

                                                     (fa >= w_source-fa_from and fa <= w_source-fa_to ) and

                                                     (pc >= w_source-pc_from and pc <= w_source-pc_to) .

   read table t_target into w_target with key account = w_source-account fa = w_source-fa

                                                                      pc = w_source-pc .

        if sy-subrc = 0 .

          w_target-va = w_master-va .

         modify table t_target from w_target .

       endif .

   endloop .

endloop.

 

with regards ,

Juneed K Manha .


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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