Example: Start Routine
Use
In the SAP ERP system, you are loading data using DataSource General Ledger: Transaction Figures (FI_GL_1) into DataStore object FIGL: Transaction Figures (0FIGL_O06).
You want to create a start routine that deletes all the records from a data package with debit and credit postings that are zero.
-
Create a transformation. The source of the transformation has the Total Debit Postings (UMSOL) and Total Credit Postings (UMHAB) fields. They are assigned to the InfoObjects Total Debit Postings (0DEBIT) and Total Credit Postings (0CREDIT).
-
Choose
. The routine editor opens. -
Go to the local part of the routine. Enter the following code:
The delete statement is the only line you need to filter debit and credit postings without values from the data package.
-
You exit the routine editor.
-
You save the transformation. An edit icon
next to the Start Routine indicates that a start routine is available.