Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Query condition need to be put in a function

$
0
0

Hello Experts -

 

Need to optimize a logic in SAP BODS -

We are using a query condition which is below , This we are using when we need to load incremental data monthly, But when we need to execute full load this condition will remain disabled. Here we are using this condition into multiple query transformation.

 

Now here the requirment is --> if we can put this query condition into a Custom function and that custom function can be controlled from outside by putting some value such as '1' for enabled and '0' for disabled.

 

Expected Result --> Instead of enabling disabling this query multiple times in all query transforms we should be able to handle it from outside by passing that function value as either 1 or 0.

 

Here instead of query we will pass this function in all query transforms so things will be optimized.

 

System_load_date>= to_date(substr(to_char(add_months( sysdate(),-1),'YYYYMMDD'),1,6) || '01','YYYYMMDD') and
System_load_date<= last_date(add_months( sysdate(),-1))

# Need to enable this for Incremental Load

 

Please provide inputs/ probable solution for this, That will be helpful, Thanks in advance.

 

 

Best !

Deepak

 

 



Viewing all articles
Browse latest Browse all 3719

Trending Articles



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