Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

Issue with logic change

$
0
0

Hi experts,

 

I would like to change the follwing code :


loop at source_infocube into workarea_infocube where account =workarea_masterdata.-account

functionalarea IN r_functionalarea

profitcenter in r_profitcentre

************treatment******************************

endloop.


r_functionalarea and r_profitcentre are ranges


Into the following logic, because Ranges in BW transformations are not well managed:


loop at masterdata_table into workarea_masterdata where account = source-account.

if source- functionalarea >= workarea_masterdata -ff

and source- source- functionalarea <= workarea_masterdata -ft.

if source- profitcenter >= workarea_masterdata -pf

and source- profitcenter <= workarea_masterdata -pt.

************treatment******************

                        endif.

          endif.

endloop.


ff = range low functional area
ft = range high functional area
pf = range low frofit center
pt = range high profit center


Before starting the treatment I must be in the 2 ranges (Profit center and Functional area)

I must always find a value. I have 2 questions:


Are the 2 logics equivalent?If not, do I have to anticipate error cases in the second logic and how?


Thanks a lot.


Amine


Viewing all articles
Browse latest Browse all 8768

Latest Images

Trending Articles



Latest Images

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