bw_set_transformation_expert_routine
Write existing routine code into transformation master and activate, ensuring it survives regeneration and transport imports.
Instructions
Write the CODE of an existing Start/End/Expert routine into the Transformation MASTER so it survives TLOGO regeneration — a full bw_activate(trfn) AND a transport import — then activate. Use this instead of abap-adt WriteSource on the generated /BIC/_M class: WriteSource updates only the generated class body, which BW re-generates from the old master on the next trfn activation or transport import (symptom: "return type mismatch … OUTTAB[…]"). This tool replicates the Eclipse editor: it writes the class, then re-saves the transformation master and runs a TLOGO activation via the BW modeling endpoints. The routine must already exist (create it first with bw_set_transformation_routine). Activates automatically — no separate bw_activate needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | The complete routine method block: "METHOD <NAME> BY DATABASE PROCEDURE … ENDMETHOD." for AMDP (HANA) routines, or "METHOD <NAME> … ENDMETHOD." for ABAP routines — the same block shape abap-adt WriteSource(method=…) expects. AMDP SQLSCRIPT must be 7-bit ASCII (no umlauts / no <=). If omitted, the generated class is left untouched and only the master re-save + activation runs (to commit code already edited on the class). | |
| transport | No | Transport request number (e.g. DEVK900123). Required if the BW system requires transport assignment. | |
| class_name | No | Optional override for the generated class name (e.g. "/BIC/<uuid>_M"). Defaults to the class derived from the transformation. Use for non-standard/field routines. | |
| method_name | No | Optional override for the routine method name (e.g. a field-routine method). Defaults to GLOBAL_<ROUTINE_TYPE>. When set, the routine-exists guard is skipped. | |
| routine_type | No | "expert" → GLOBAL_EXPERT (default), "start" → GLOBAL_START, "end" → GLOBAL_END. Selects the generated method name. | |
| transformation_name | Yes | Transformation name (UUID-like key). |