Skip to Content
author's profile photo Former Member
Former Member

STS user hierarchy connection

Hi,

i want to create a report (ABAP) that shows, which user has access to which node in a STS - hierarchy (like specified in transaction BPS_TC).

Is there a table where I can get the information from?

I couldn't find one so far... 😔

Or is there some predefined ABAP/program/function module/whatever I can use?

We are using BW 3.0B with SEM-BW 3.1B.

Thanks for your reply.

Best regards

Steve

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Nov 18, 2005 at 04:48 AM

    Hi Steve,

    there's no straight table for this. It's stored as XML. Here's how to get it... for 10 points 😉

    REPORT z_test_sts.
    
    DATA: application TYPE REF TO cl_ups_visualization.
    DATA: l_teilplan TYPE ups_y_teilplan VALUE 'TMB'.
    DATA: l_version TYPE ups_y_version VALUE '100'.
    DATA: lt_tree TYPE ups_yt_treeview.
    
    CREATE OBJECT application.
    
    CALL METHOD application->invoke_sts
      EXPORTING
        i_version     = l_version
        i_teilplan    = l_teilplan
      EXCEPTIONS
        no_permission = 1
        no_attribute  = 2
        OTHERS        = 3.
    
    CALL METHOD application->load_hier
      EXCEPTIONS
        no_hierarchy = 1.
    
    CALL METHOD application->r_sts->fill_status_text.
    
    CALL METHOD application->r_sts->load_links
      EXPORTING
        i_version  = application->version
        i_teilplan = application->teilplan.
    
    CALL METHOD application->fill_laufzeit
      EXCEPTIONS
        no_user = 1
        OTHERS  = 2.
    
    CALL METHOD application->fill_tree_laufzeit
      EXPORTING
        i_user  = sy-uname
      IMPORTING
        et_tree = lt_tree
      EXCEPTIONS
        no_user = 1
        OTHERS  = 2.
    
    * application->lt_screen
    * application->lt_laufzeit  "<<<< this is what you want
    BREAK-POINT.

    Regards

    Marc

    SAP NetWeaver RIG

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.