BWABAP - ooxxvv/MySAPnotes GitHub Wiki

BWABAP

  • 與 BW 有關的 ABAP 相關資料

OLAP Variant

  • SE18 => Customer exit Variable (BADI), Enhancement Spot => RSROA_VARIABLES_EXIT

Table

  • RSICCONT => List of all requests in any particular cube
  • RSSELDONE => Has got Reqnumb, source , target , selection infoobject , selections ..etc

Function

Function Mapping between BW & BW4HANA

Source Code

  • 和 BI Module 相關的程式碼

  • Code20091203 => 利用 MDX 語法取得 Query 或 Cube 的資料

  • Code20110525 => 在 ABAP 程式中讀取 InfoProvider (InfoCube) 資料

Source System

  • 如果在 Transfermation 要捉到 Source System 的值:
    DATA : l_ogsys(10) TYPE c,
           l_soursysid TYPE rssoursysid.

*---Source System
    l_ogsys = p_r_request->get_logsys( ).

*---Source System ID
    SELECT SINGLE soursysid
      INTO l_soursysid
      FROM rssoursystem
      WHERE logsys EQ l_ogsys.

    result = l_soursysid.

DTP & Transformation

  • 在 Transformation 中取得 DTP 的篩選值
    DATA: lt_dtpval TYPE rsbk_th_range,
          lw_dtpval LIKE LINE OF lt_dtpval.

*---Get all selection criteria of DTP to ITB
    lt_dtpval = p_r_request->get_th_range( ).

*---Get CALMONTH filter value
    CLEAR: lw_dtpval.
    READ TABLE lt_dtpval WITH KEY fieldnm = 'CALMONTH'
         INTO lw_dtpval.