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

Re: ADD DATA TO DSO FOR EVERY 0CALDAY

$
0
0

Hi Muhammed,

 

Yes this can be possible,But i'll suggest you to create a model in such a way that it should sustain the worst conditions too(it should be ok for full loads if anything happens and delta loads)Instead of writing code in end routine i suggest you to create a recursive transformation.The logic should be like below

 

Lets talk about full load:

 

DS to DSO-> in the end routine result_package pass the material,plant,Date to active table of DSO for any entries if no entries place the records as it is and Zactive =1 and another flag zactive_rec = 0.

 

For Delta Load

 

If entries were there there are two cases

1. Zactive =0 and zactive_rec = 1.Then replace amount with the new value.

2. Zactive =1 and zactive_rec = 0.Then add the amount with the existing val.

 

For Missing Dates:

DSO->DSO

then create another transformation and dso as source and target.

 

Pass Material and plant to DSO get the no of records in ITAB.Now in the loop at result_package read ITAB by passing Plant,Material and date sy-subrc = 0 and zactive should be 1 and zactive_rec = 0.if yes condition true.do nothing and copy the amount to a variable and Index_var to 1.next add 1 to date check the condition if no  place the record in Result package with zactive = 0 and zactive_rec = 1 and new amount = above var.continue the process for all the records in the internal table ITAB till Index exactly equals to no of records in ITAB.

 

But this effect the loading performance very badly. Think about it before creating and even it worse if you are dealing with material,plant and dates are ranging from 2000 to till date.logic will calculate records for each and every date.Better convince the customer that the calculations to performed for one year etc.

 

 

Regards,

Rambabu


Viewing all articles
Browse latest Browse all 9008


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