Skip to Content
avatar image
Former Member

Reading dim from abap gives me "Error in Admin module or a component used by Admin module"

I am writing abap code to read the content or a dimension, but I got this error:

"Error in Admin module or a component used by Admin module" what does this error mean ?

My code is as follow:

 data:
    or_dim      type ref to cl_uja_dim,
    or_dim_data type ref to if_uja_dim_data,
    i_dim_attr  type uja_t_attr_name,
    w_dim_data  type ref to data,
    or_data     type ref to data,
    i_sel       type uj0_t_sel,
    w_sel       type line of uj0_t_sel.


  field-symbols:
    <i_dim> type standard table,
    <w_dim> type any.


  data:
    v_dim_name  type uj_dim_name value 'INDICATORS_RBM',
    v_appset_id type uj_appset_id value 'X_RBM'.


  data: or_error type ref to cx_uja_admin_error.


  try.
      create object or_dim
        exporting
          i_appset_id = v_appset_id
          i_dimension = v_dim_name.
    catch cx_uja_admin_error into or_error.
      message or_error->get_text( ) type 'W'.
    cleanup.
  endtry.


* Add dim properties to the intrnal table
  refresh: i_dim_attr, i_sel.
  clear w_sel.

  append: 'ID' to i_dim_attr,
          'DESCRIPTION' to i_dim_attr.

  w_sel-dimension = v_dim_name.
  w_sel-attribute = 'CALC'.
  w_sel-sign = 'EQ'.
  w_sel-option = 'I'.
  w_sel-low = 'N'.

  append w_sel to i_sel.

* Try read dimesnion according to the selectino criteria
  or_dim_data = or_dim.
  try.
      call method or_dim_data->read_mbr_data
        exporting
          it_attr_list = i_dim_attr
          it_sel       = i_sel
        importing
          er_data      = w_dim_data.
    catch cx_uja_admin_error into or_error.
      message or_error->get_text( ) type 'W'.
    cleanup.
  endtry.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 04, 2016 at 11:01 AM

    "I created a z program for Example E: Read Transaction Data via RSDRI ..

    I got error CX_UJ_NO_AUTH, it seems I don't have the required permissions ?"

    Looks like!

    Try the first Example B - absolutely simple and has to work if you have permissions!

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 01, 2016 at 10:12 AM

    Please explain where do you write this code? Is it a badi or...

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 01, 2016 at 12:27 PM

    Please read this document and compare with you code:

    http://go.sap.com/documents/2015/08/6c91e080-5b7c-0010-82c7-eda71af511fa.html#

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Vadim Kalinin

      I created a z program for Example E: Read Transaction Data via RSDRI ..

      I got error CX_UJ_NO_AUTH, it seems I don't have the required permissions ?