cancel
Showing results for 
Search instead for 
Did you mean: 

filter data in transfer rules using start routine

Former Member
0 Kudos

Hi all!

I am an absolute newbie here, but I have a question regarding start routines and I noticed many questions get solved around here. My situation is the following: I have to create a start routine where the data to be transferred is filtered on an attribute "DESTINAT" in info object "0BILL_TYPE". DESTINAT can be 'M' or 'D' and depending on that letter, data must flow to a separate ODS.

Well,I came up with the following:

somewhere in my start routing I guess I'll have to put:

loop at data_pak.

DELETE DATAPAK Where DESTINAT = 'D'

endloop.

When I place this in my start routine of my transfer rules leading to the ODS where data must be of DESTINAT type 'M', will this do the trick?

I want to put the following code in the transfer rules leading to my other ODS, where data must be of type DESTINAT = 'D':

loop at data_pak.

DELETE DATAPAK Where DESTINAT = 'M'

endloop.

I'm sorry that this is a very basic question, but like I said: I'm a newbie in SAP...

Accepted Solutions (1)

Accepted Solutions (1)

former_member188975
Active Contributor
0 Kudos

Hi Joris,

Welcome to the SDN!

As the source of the data to be loaded to both the ODS is the same, you will not be able to achieve this throught transfer rule start routine, as the transfer rules will be common for both the ODS. You can instead do this deletion (following the same logic)in the Update rules for each ODS.

Hope this helps...

There was an extensive discussion on the same just yesterday. You can go through this if you like:

Message was edited by: Bhanu Gupta

Former Member
0 Kudos

thanks!

points rewarded since it was a helpful answer, but looks like I understood it wrong. It has to be done in the update rules anyway for the reason you mentioned...

Former Member
0 Kudos

Hi,

as Bhanu already mentioned transferrule is common, so do it in each ODS-updaterules startroutine.

/manfred