Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create SAP hierarchy through custom program?

Former Member
0 Likes
1,781

Hello all,

my requirement is to create composite role through program and in that i want to display tcode hierarchy like on sap easy access screen.

and that whole hierechy hav to display on main screen if that user log in into the system.

<<urgency removed>>

Message was edited by: Kesavadas Thekkillath

Hello all,

my requirement is to create composite role through program and in that i want to display tcode hierarchy like on sap easy access screen.

and that whole hierechy hav to display on main screen if that user log in into the system.

<<urgency removed>>

Message was edited by: Kesavadas Thekkillath

10 REPLIES 10
Read only

Former Member
0 Likes
1,714

Hi

u have to use sap area menus for your requirement

Read only

0 Likes
1,714

hiii raghu,

i already hav set of single role and i hav to create program that merge all those single roles in a new composite role and also in that  to display hierarchy of that tcodes assign to user.

bcoz the enduser dosent hav much knowlege of sap. they hav to display only tcodes assign to it on sap main screen.

Read only

0 Likes
1,714

create program with following code

  

CALL FUNCTION 'BMENU_START_BROWSER'
  EXPORTING
    tree_id             = 'ZREPORTS'
  EXCEPTIONS
    tree_does_not_exist = 1
    no_authority        = 2
    OTHERS              = 3.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

in Tcode se43n

create area menu with name ZREPORTS.

Read only

0 Likes
1,714

hii raghu,

i want to display only those tcode hierachy that assign to particular user only.

Read only

0 Likes
1,714

hi,

if u want to restrict for particular user, u can use Authorization objects in above program

Read only

0 Likes
1,714

Hello experts,

i hav created one FM that give me tcode path. bt problem is how to construct that hierarchy ?

Read only

0 Likes
1,714

Read only

0 Likes
1,714

let me know if requirement is like this

Read only

0 Likes
1,714

hello Raghu,

I have to create hierarchy as above u mentioned but only for those user has authorization and one more thing is that i hav to create that hierarchy in composite role not from area menu.

Is it possible to do that through custom program?

I need any function module or bapi that can create hierarchy structure.

Read only

Former Member
0 Likes
1,714

Hello experts, please give me solution.

m at the point i get complete path in a internal table i just want to create that hierachy only.

i tried BDC program for cretaing tree in se43 tcode bt its not working as a i want working .

i want tree like tools->ABAP worlbench->development->se11,se38 like that for all transactions.

please help me ASAP.

Thanks & regards,

Nikhil S.