Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Routine in BI.7

Hi Experts,

Iam new to ABAP and alrady have update rule code in 3.x and same code i need in transformation field routine . can any one tell me detail steps the ame same code in bi.7

PROGRAM UPDATE_ROUTINE.
*$*$ begin of global - insert your declaration only below this line  *-*
* TABLES: ...
 DATA:  mon(2) type n,
        year(4) type n,
        ymon like sy-datum.
*$*$ end of global - insert your declaration only before this line   *-*


FORM compute_data_field
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
  USING    COMM_STRUCTURE LIKE /BIC/CSZIS_OUTSTANDING_AGING
           RECORD_NO LIKE SY-TABIX
           RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING RESULT LIKE /BIC/AZOAR_MM00-CALDAY
           RETURNCODE LIKE SY-SUBRC "Do not use!
           ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
*
*$*$ begin of routine - insert your code only below this line        *-*
* fill the internal table "MONITOR", to make monitor entries
ymon = COMM_STRUCTURE-/BIC/ZPUR_DATE.
* result value of the routine
  RESULT = ymon.
* if abort is not equal zero, the update process will be canceled
  ABORT = 0.

*$*$ end of routine - insert your code only before this line         *-*
*
ENDFORM.

Regards

Rk

Former Member
replied

check this beautiful article

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/609eea32-455e-2c10-c08a-c23adf8c934e?quicklink=index&overridelayout=true

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question