Suppressing Data Records
Data records that you do not want to be transferred from the project to the SAP system can be prevented from being transferred.
...
1.
From the list of
steps, choose Maintain Field Mapping and Conversion
Rules.
A screen appears.
2. Switch to the change mode.
3. Select the field to which the condition for suppression of the data record is linked.
4. Branch to the editor by double-clicking.
5. Enter the code. The call of the function is as follows:skip_record.
Call the function skip_Record in every structure that you do not want to be transferred. This means, if you want to suppress data records from higher-level structures, you also have to suppress them in any dependent structures using the same rule or use skip_transaction.
The content of the SAP structure is not transferred in the output buffer.

You are migrating customer master data. The data records for customer numbers 1, 2, 6, and 7 are not to be transferred to the SAP system.
You assign LS field KUNDENNUMMER in structure DEBI1 to SAP field KUNNR in structure BKN00. You branch to the editor and enter the processing type as well as the function used to suppress the above-mentioned data records. The editor has to contain the following lines:
* Target field: BKN00-KUNNR Debtor number
* Source field: DEBI1-KUNDENNUMMER Customer number
BKN00-KUNNR = DEBI1-KUNDENNUMMER.
if ( debi1-kundennummer >= 1 and debi1-kundennummer <= 2 )
or ( debi1-kundennummer >= 6 and debi1-kundennummer <= 7 ).
skip_record.
endif.