Build Hierarchy with ABAP

Hi there
trying to build a hiearchy for 0COSTCENTER from scratch via ABAP. Found Class CL_RSSH_HIERARCHY_BASE but as I'm not very experience in OO, I cant find out how to use this for my purpose. Would really appreciate if somebody out there could help me before I get crazy here
What I want to do is to build up a hierarchy with the Profit Center as a parent and its Costcenters as children (/BI0/MCOSTCENTER has the PROFIT_CTR for each COSTCENTER).
Thanks
Gerald

Hi Cuneyt
I used the FB also used by the classes:
CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_UPDATE'
    EXPORTING
      i_s_hiehead         = l_s_hiehead
    IMPORTING
      e_subrc             = g_subrc
    TABLES
      i_t_hiedirt         = l_t_hiedirt
      i_t_hierstruc       = l_t_hierstruc
      i_t_thiernode       = l_t_thiernode
      i_t_nodenames       = l_t_nodenames
    I_T_HIERINTVL       =
      e_t_messages        = l_t_message.
you can use the FB RSNDI_SHIE_STRUCTURE_GET to get the structure infos for any given hierarchy.
good luck
Gerald

Similar Messages

  • Build Hierarchy  with nodes with ABAP for custom Infoobject

    Hi,
    Need to build hierarchy with nodes with abap for custom infoobject.
    Thanks

    Hi,
    Using information from:
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm
    you can bulid flat file with hierarchy data and then load in into BW...
    Krzys

  • HU-Hierarchy with ABAP

    Hi Experts,
    I've created a HU with 2-levels (1 HU for Pallet+ 3 HUs for Boxes)...
    How can I retrieve all levels of this HU into an ABAP Program?
    I tried to use the field UEVEL form VEKP, but it's way too long... If I'm on the Pallet level, how can I retrieve the lower level (with the 3 Boxes HU's) ?
    Regards,
    David

    Hi David,
    Please try to use LTAP & LTAK table for HU .
    Thanks & Regards,
    Manish

  • Looking  up BW-Hierarchy with ABAP

    Hi,
    I have a hierarchy on InfoObject 0COSTELEMNT. In an UR I wand to remove all documents with a cost elements which ate not contained in this hierarchy. Do you know any standard FM or Method allowing to check if an item fulfills the hierarchy conditions. Or you have other ideas for this issue.
    Thanks
    Wojtek

    I have used the following code to read Fund Center Hierarchy. Hope it helps:
      w_nodebyname-iobjnm = '0FUNDS_CTR'.
      w_nodebyname-nodename = '1500157810'.
      CALL FUNCTION 'RSNDI_SHIE_STRUCTURE_GET3'
       EXPORTING
        I_S_HIEKEY              =
         i_s_hiesel              = w_hiesel
         i_s_subtreesel          = w_nodebyname
        I_T_NODENAME            =
        I_NO_NODENM_TABLE       = RS_C_FALSE
       IMPORTING
        E_S_HIEDIR              =
         e_subrc                 = lsubrc
       TABLES
        E_T_HIEDIRT             =
         e_t_hierstruc           = fund_hier_157810
        E_T_MHIERNODE           =
        E_T_THIERNODE           =
        E_T_HIERINTVL           =
        E_T_NODENAMES           =
        E_T_NODEATTR            =
        E_T_LEVEL               =
        E_T_MESSAGE             =
    Thanks
    Vineet

  • Howto build hierarchy with Id/ShortName/Longname at levels

    I tried to build a hierarchy for an organizational structure.
    All my levels consist of an Id, ShortName and LongName of that level.
    Now when I build a hierarchy I can only select or Id or ShortName or Longname.
    I need a report where I have to drill on Id, Shortname or Longname, where all corresponding level-objects in the report have to go the same level up/down. But I can't get it to work! When I click on Id for example, Shortname and Longname will stay on the original level...  :hb:
    I get this in the report:
    Original:
    LEVEL0 ID, LEVEL0 Short, LEVEL0 Long
    After Drill on LEVEL0 ID:
    LEVEL 1 ID, LEVEL0 Short, LEVEL0 Long
    I want this:
    Original:
    LEVEL0 ID, LEVEL0 Short, LEVEL0 Long
    After Drill on LEVEL0 ID:
    LEVEL 1 ID, LEVEL1 Short, LEVEL1 Long
    Please advise how to get this!
    (Using BO XIR2 SP2 FP2.6)
    Edited by: J. van de Mheen on Jun 8, 2009 11:35 AM

    Hi,
    You cannot use concatenation of objects oin universes because it is a SAP universe and SAP MDX does not support expressions that return string.
    For your case I suggest that you turn the details objects (needed for drill) into dimensions because you can only drill on dimensions (blue objects): details (green triangles) are only used as attributes and cannot be used for drill operation.
    Regards,
    Didier

  • WBS Hierarchy Logic build up with dynamic values

    Hello ABAP Crew.
    I currently using BAPI_PROJECT_MAINTAIN, and I have to pass I_WBS_HIERARCHIE_TABLE with the hierarchy table made by me.  Does anyone have a logic on how to do this from values within a table?
    Here are the values coming from a proxy:
    111520
    111520-111234
    111520-111234-19
    111520-111234-19-1
    111520-111234-19-2
    111520-111234-20-1
    111520-111234-20-4
    The purpose is to place this into the table of I_WBS_HIERARCHIE_TABLE in the UP DOWN LEFT RIGHT  format. 
    Now the problem is, the list of values received will always be different.
    Thanks.

    Hi Jotorres,
    Did you get a response for this question about WBS hierarchy logic build up with dynamic values? I have been trying to build it up myself, but its getting increasingly difficult. I wanted to know how you resolved this issue?
    Thanks a dozen !
    Regards
    Aradhana

  • Problem in hierarchy with sap table

    One problem regarding tree hierarchy  with the sap bi table example zmaterial  which is  having  3 fields which should show as node and there data as sub node suggest me , how to do it I have look around the example but there are of simple node with string concept none of them is of sap table

    Hi Sarfaraz,
    Go throgh these example programs.
    WDR_TEST_TREE
    WDT_TREE_TABLE_BY_KEY
    and also go throgh this blog.
    Dynamic Tree in ABAP WebDynpro
    also check this wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/organization%2bhierarchy%2bin%2btree%2bstructure%2bas%2bf4%2bhelp
    Edited by: suman kumar chinnam on Oct 17, 2008 10:04 AM

  • Why not "Web Dynpro *with* ABAP"?

    As a newbie I found "Web Dynpro for ABAP" to be confusing.  Any ideas why its worded that way?  Just curious.

    Hi,
    because it's a programming <u>model</u> created <u>for</u> abap programming.
    If you look at the true content of webdynpro you come out at:
    declarative programming of all the navigation, ui, datadisplay and gathering, without
    writing the code, but letting the code to be generated.
    so it's a concept build for abap,
    not with abap (although the classes and interfaces are)
    grtz,
    Koen

  • Interactive Form with ABAP DDIC Interface

    Hi,
    I'm new on adobe interactive forms and  I have some problems. I have a form with a abap dictionary based interface.
    When I test my web dynpro application with the interactive form, it is not interactive. :-P
    And yes the property "enabled" of the UI-Element is marked.
    First I watched an e-Learning an build a web dynpro application with a from which has a interface based on xml.
    I generated the inteface of the form from my context. It works fine.
    But with a interface based on xml I dont't know how I can get a table on my PDF in the Adobe Lifecycle Designer.
    So I searched snd n the forum and found a tutorial (InteractiveForm_and_Dynamic_Tables). Like in this tutorial I created a interface based on ABAP Dictionary and a form with a table. Then I choose this form on my UI-Element as templateSource and generate the context from the interface. But as i mentioned above, now the PDF isn't interactive.
    Any idea?
    Thx Florian
    PS: when someone can tell/help me in german it would be much easier for me to understand...

    You can create Interactive form with ABAP dictionay based interface.  You need to add following code in method "WDDOMODIFYVIEW" of your view.
       DATA: LR_INTERACTIVE_FORM  TYPE REF TO CL_WD_INTERACTIVE_FORM,
          LR_METHOD_HANDLER    TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
      CHECK FIRST_TIME = ABAP_TRUE.
      LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'TEST' ).
      LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
      LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( ABAP_TRUE ).
    Refer:: http://help.sap.com/saphelp_nw70/helpdata/en/42/c247dc6227311ce10000000a1553f7/content.htm

  • Adobe Interactive Forms with ABAP

    Dear Fellows,
    I need to know if I can develop an Adobe Interactive Form through the ABAP Workbench and Form Builder. ´Til now, I only found information about Print Forms with ABAP.
    Thank You very much for Your help.
    Regards.
    SS.

    Hi,
    What version are you on? Pl take a look at the following <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/d-f/faq%20on%20in">link</a>
    http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/d-f/faq%20on%20interactive%20forms%20based%20on%20adobe%20software.faq
    Regards,
    Suresh Datti
    Message was edited by: Suresh Datti

  • Display SAP's Business Worklplace with Abap WebDynpro

    Hi,
    is it possible to display SAP's Business Worklplace with Abap WebDynpro ?
    There is a  customer req. The person would like check his emails etc.
    Regards
    Alexander

    Hello,
    You cannot put SAP GUI applications/transactions into a web dynpro component.
    But you could build your own custom WD component. It isn't that hard to get the work items from your business workplace to be displayed in a custom application. Check the function modules GETINBOX (or there might be possibly something starting with SAP_WAPI* - SAP_WAPI-starting functions are the standard workflow API functions). Basically you just give for the function the user ID and it will return you the list of items the user is having in his business workplace. Then there are useful functions in SAP_WAPI* to for example display the work item description, etc.
    I am not sure how you can get the notifications (="emails") from business workplace, but I would imagine that there is some function you can use similarly and it shouldn't be that hard.
    Of course, if you have Portal, you should definately take UWL into account. With UWL you will already have a standard web-enabled workplace (it has basically all the same functionalitites as Business Workplace.) From UWL you can even launch the same SAP GUI transactions that you are currently launching from the tasks in workplace. It is purely an configuration issue.
    Regards,
    Karri

  • Building hierarchy from several diffrent infoObjects

    Hello,
    I have a cube with several infoObjects – all of them are reference of 0customer. The first infoObject is country manager, the second is area managers and the third is agents. I need to build a hierarchy from these infoObjects (country manager>area managers>agents) The infoSource is designed to bring each one of them in a different cell of the extract structure (each one of them is a different infoObject). I have the complete hierarchy (with all the "managers") in 0customer.
    How can I build a hierarchy from them? I don’t want to use the "display as hierarchy" functionality.
    Please Advice,
    David

    just solved it
    I put the 0customer as external Chars. in hierarchies of itself.
    If i want to show the hierarchy: country manager>area managers>agents i should put the agent in the rows/columns and use the workers hierarchy which contains the country manager and area manager which are above the agent.
    Thank you Simon!!!
    David

  • BOBJ with ABAP Reports

    Hi Experts,
    I got good experience in ABAP and heard about BOBJ. I didn't have knowledge on BI. Is there any concept related to BUSINESS OBJECTS with ABAP Reporting. So, that I would like to learn. Kindly guide me regarding. And also let me know like from where i can start learning this BOBJ reporting.
    Thanks and regards,
    Gopi.

    Hi,
    You should start of building Bex queries against SAPBW and start building BO universes with those Bex queries and subsequently build WEBI reports on top of the the BO universes.
    You could do some User-exits on those Bex queries using your ABAP expertise.
    Thanks,
    Venkat

  • Building portlets with PL/SQl vs java

    Hi
    We are planing to use oracle 9iAS application server(Enterprise version)to build portal application.
    Can someone suggest me which one should i use, building portlets with j2ee or building portlets with PL/SQL.
    what are the advantages of web providers over database providers?which one is the best way of building portlets.

    Hello
    I've been using Portal for years now, and I'm still developping in PL/SQL. It's very simple and quick to developp. I'm even not using any database providers, I'm just invoking my procedures via their URLs with some Ajax hidden components, and I could developp some screens like employees vacations managements, trombinoscope, portal statistics, etc ...
    I learnt at Oracle how to developp some "true" portlets with DB providers but it's not usefull for me at this time as I don't need portlet customization etc.
    BUT
    if I had to developp a really big project with several developpers I would use DB providers.
    And maybe I would use Java but it takes rather long time to be efficient with this language and it needs to be a realy big project for I start using this language. And as explained above Java offers more compatibility with 3rd party products.
    And last but not least, one has to know what Oracle is more and more dealing with Java, the next 11g version that has just released is much more using Java than 10g does, and that's true for every Oracle products.
    So it's just a matter of skill and time.
    A.

  • Error while building sln with CMake

    I am working on kinect for developing application. I am using CMake and visual studio 2010 for development. According to some website I recently installed Service Pack 1 and it's update also. Since then there are loads of error in visual studio cpp programs.
    I'm not able to build projects with CMake.  It says c and CXX compiler identification is unknown.
    I am not able to run simple cpp programs too. Log says 
    >InitializeBuildStatus:
    1>  Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.
    1>FinalizeBuildStatus:
    1>  Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
    1>  Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
    1>
    1>Build succeeded.
    1>
    1>Time Elapsed 00:00:01.25
    2>------ Build started: Project: openni_grabber, Configuration: Debug Win32 ------
    2>Build started 11-03-2015 19:04:35.
    2>InitializeBuildStatus:
    2>  Touching "openni_grabber.dir\Debug\openni_grabber.unsuccessfulbuild".
    2>CustomBuild:
    2>  All outputs are up-to-date.
    2>ClCompile:
    2>  openni_grabber.cpp
    2>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\xlocale(323): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
    2>C:/Program Files/PCL 1.6.0/3rdParty/Boost/include\boost/exception/detail/clone_current_exception.hpp(10): fatal error C1189: #error :  This header requires exception handling to be enabled.
    2>
    2>Build FAILED.
    Please help me through this!

    Hi Sayalee8333,
    Thank you for posting in MSDN forum.
    Since this CMake is involved to the Extensions tool
    CMake - Cross Platform Make , this extension tool is
    out of support range of this forum.
    In order to resolve your issue better, I suggest you post this issue here,
    click “Q AND A”, you will get better support there.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for