cancel
Showing results for 
Search instead for 
Did you mean: 

unwanted records in transfer, update rules

Former Member
0 Kudos

Hi

How to delete, in transfer or update rules,

records which contain in filed X impermissible signs?

(small or unique national letters)

I dont want to load these records.

Is it possible, using these rules, to write these invalid records to other ODS or table?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

udayabhanupattabhiram_cha
Active Contributor
0 Kudos

Hi Pawel:

If you use this selection in InfoPackage, only correct records are updated in target and bad ones will be in PSA for editing or analysis.

The infopackage has this Check Box on "Consistency check for characteristic values".

If you have some Bad Records, when the above Box is ON, the good records will be updated to the Data Targets whereas bad records will stay in PSA for you to Correct them.

Ram Chamarthy

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Pawel,

You can delete the unwanted recods in start routine. Please write a code like this in the start routine

loop at data_package.

if field eq 'X'.

delete data_package.

endif.

endloop.

Regards,

Praveen

Former Member
0 Kudos

Hello Praveen

Thanks for reply

but the problem isn't stuck in whole code

but how to write in ABAP second row

loop at data_package.

'lower down code----


if field contains small signs

or

if field contains impermissible signs

'higher up code----


delete data_package.

endif.

endloop.

Regards,

Pawel