0% found this document useful (0 votes)
188 views1 page

Start Routine Example

The document describes creating a start routine in SAP to delete records from a data package where the debit and credit postings are equal to zero. It involves: 1) Creating a transformation between the source FI_GL_1 and target FIGL_O06 data objects. 2) Choosing to create a start routine, where code is added to delete records from the source package where the debit and credit fields (UMSOL and UMHAB) are both equal to zero. 3) Saving the transformation, which then indicates a start routine is available using an edit icon.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
188 views1 page

Start Routine Example

The document describes creating a start routine in SAP to delete records from a data package where the debit and credit postings are equal to zero. It involves: 1) Creating a transformation between the source FI_GL_1 and target FIGL_O06 data objects. 2) Choosing to create a start routine, where code is added to delete records from the source package where the debit and credit fields (UMSOL and UMHAB) are both equal to zero. 3) Saving the transformation, which then indicates a start routine is available using an edit icon.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Example: Start Routine

In the SAP ERP system, you are loading data using the General Ledger: Transaction
Figures DataSource (FI_GL_1) into the DataStore object FIGL: Transaction
Figures (0FIGL_O06).
You want to create a start routine that deletes all the records from a data package that have
debit and credit postings that are equal to zero.
1. 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) andTotal Credit Postings (0CREDIT).
2. Choose
Create Start Routine. The routine editor opens.
3. You go to the local part of the routine. You enter the following lines of code:
*----------------------------------------------------------------------*
METHOD start_routine.
*=== Segments ===
FIELD-SYMBOLS:
<SOURCE_FIELDS> TYPE _ty_s_SC_1.
*$*$ begin of routine - insert your code only below this line *-*
DELETE SOURCE_PACKAGE where UMHAB = 0 and UMSOL = 0
*$*$ end of routine - insert your code only before this line *-*
ENDMETHOD. "start_routine
*----------------------------------------------------------------------*
The delete statement is the only line you require in order to filter debit and credit
postings without values out of the data package.
4. You exit the routine editor.
5. You save the transformation. An edit icon
next to the Start Routine indicates that a
start routine is available.

You might also like