cancel
Showing results for 
Search instead for 
Did you mean: 

Do not load the record?

Former Member
0 Kudos

Hello Experts,

Wondering if there is a way to specify (in the transfer rules / routines)not to load the records if it satisfies Infob1='abc' and Infob2='bcd'?

Thansk

Sweatha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Start routine is used to filter the data during the extraction process itself.

You can specify start routine either in transfer rules or in update rules.

e.g.

In transfer rules, it is DATAPAK

DELETE DATAPAK WHERE Infob1='abc' and Infob2='bcd'.

In update rules, it is DATA_PACKAGE

DELETE DATA_PACKAGE WHERE Infob1='abc' and Infob2='bcd'.

You can also use other ABAP commands.

Hope this helps

arun

Former Member
0 Kudos

Thanks very much Arun.

former_member374
Active Contributor
0 Kudos

Hi Sweatha,

You are thanking a poster for his answer.

Please next time also give him points.

See: /people/mark.finnern/blog/2004/08/10/spread-the-love

This time I did it for you.

Remember: When you ask a question you also assume the responsibility to assign points.

Please check your other questions and if the answers were good. Spread the love and give some points.

Thanks in advance, Mark.

Answers (1)

Answers (1)

mstrein
Active Participant
0 Kudos

Hi Sweatha,

do you need to get the record out during the extraction or during the upload in the data target?

In the upload rules you could use a Startroutine to filter the records. "abc" would be a value of the infoObject.

Data: n type i.

data: l_tabix like sy-tabix.

Loop AT DATA_PACKAGE.

l_tabix = sy-tabix.

If COMM_STRUCTURE-InfOb1="abc and COMM_STRUCTURE-InfOb2="BCD".

delete DATA_PACKAGE index l_tabix.

continue.

endif.

Endloop.

Hope that helped,

regards,Michael

Former Member
0 Kudos

Hi Micheal,

Thanks for the reply.

I would like to get the record out during the extraction itself.

Will the same logic work for Start routine in the transfer rules also.?

Thank you very much Micheal.

Sweatha