Account Hierarchy : Function Module to get all the nodes of a hierarchy

Hi Experts,
Is there a function module which will give as output all the Node GUIDs for a particular account hierarchy in SAP CRM,when the Node GUID of any single node in the same tree is given as input?
Best Regards,
Ashish Dhagat

Thanks mate.
Edited by: pankaj kandhare on Aug 14, 2011 7:56 AM

Similar Messages

  • Any function module to read all the values in Tcode-PPQD?

    Hi all
    Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
    and any idea what tables are involved to get these values like parent and child relationship?
    Thanks in advance.
    Murali.

    Murali,
    you can use the following..
    data: w_sobid type sobid, "Qualification ID
          w_objid type objid. "Qualification Catalog
    select objid  into w_objid
                  up to 1 rows
                  from HRP1001
                 where otype = 'QK'
                   and plvar = '01'
                   and istat = 1
                   and risgn = 'B'
                   and relat = '030'
                   and endda ge sy-datum
                   and begda le sy-datum
                   and sclas = 'Q'
                   and sobid = w_sobid.
    endselect.
    if sy-subrc eq 0.
    write: / w_objid,w_sobid.
    endif.
    Regards,
    Suresh Datti

  • Function module to retrieve all the personnel numbers in the eval path

    Hi all,
    I want to retrieve all the personnel numbers that fall in the evaluation path.
    Like if my evaluation path is "B002" ( eval path for relationship is line supervisor of ), I want a function module that retrieves all the pernrs in this wval path up to the bottom level.
    if A reports to B and B reports to C and C reports to D . I want a function module to retrieve(either positions or pernrs) C, B and A when I run it for position D.
    any help??
    regards
    Sam
    regards
    Sam

    Hi
    U can use FM  RH_STRUC_GET to get the pernr in the evaluation path
    data : IT_RESULT_TAB     TYPE STANDARD TABLE OF SWHACTOR .
                CALL FUNCTION 'RH_STRUC_GET'
                  EXPORTING
                    ACT_OTYPE  = C_OTYPE
                    ACT_OBJID  = W_POSIT
                    ACT_WEGID  = C_WEGID (relation B002 like )
                    ACT_BEGDA  = W_BEGDA
                    ACT_ENDDA  = W_BEGDA
                   ACT_TDEPTH = 1 ( depath 1, 2, etc )
                  TABLES
                    RESULT_TAB = IT_RESULT_TAB .
    Nb : Give points if it worths

  • Any function module to get all items in SAP INBOX

    hi All
    I am trying to get all the items in my SAP Inbox via rfc.
    Can anyone help me with any function module to get all items in SAP INBOX.
    Thanks

    Hi Mukesh,
    Step 1. Use FM SO_USER_READ_API1 to get the folder details of the user
    Step 2. Use FM SO_FOLDER_READ_API1 of the respective folder. You can read the Inbox, Workflow Inbox depending on what folder you read. The function modules are documented well as well with examples.
    Hope this will  help u,
    Thanks & Regards
    Kiran

  • Function module to read all the views of material data

    Dear all ,
           Is there any function module to read all the views of material data ?
           Like we have MATERIAL_MAINTAIN_DARK for updating all the views of material data , I need a function module to read all the views of material master.
    Thanks & Regards
    Shivanand

    Hello,
    Check these BAPI'S
    <b>BAPI_MATERIAL_DISPLAY          Display Material
    BAPI_MATERIAL_GET_DETAIL       Determine Details for a Material</b>
    Regards,
    Vasanth

  • Function Module To read all the Files in a Given UNIX directory.

    Can anyone provide me with a FUNCTION MODULE which reads all the files available in a UNIX directory?
    I have the UNIX directory given. I need to find all the files available in that particular Directory so that I can choose and process accordingly. Probably I can store all files in an Internal Table.
    Thanks in advance.
    Sunil

    Hi Nick,
    Thankyou very much for the response.
    The Function Module /SAPDMC/LSM_F4_SERVER_FILE is interactive wherein we can select only one file.
    But my requirement is I need to collect (probably in an internal table) all the files exixting in the given UNIX directory.
    Can you please find in that direction. I would be very grateful.
    Thanks.
    Sunil

  • Function Module to get all feild names in a structure

    Hello Friends,
    Is there a function module,where i give the structure name and get all the feild names within that structure.
    regards
    kaushik

    Hi,
    You can use the for run time type descriptor classes to do this :
    Here is a simple example :
    REPORT  z_assign_comp.
    TYPE-POOLS : slis.
    include <icon>.
    "&   Dynamic Programming ! Using Structure Descriptior Class.          *
    DATA: BEGIN OF line OCCURS 0,
            col1 TYPE i,
            col2(10) TYPE c,
            col3 TYPE i,
          END OF line.
    FIELD-SYMBOLS : <fs> TYPE ANY.
    FIELD-SYMBOLS : <itab_line> TYPE ANY.
    DATA : BEGIN OF t_comp OCCURS 0,
            comp(5) TYPE c,
           END OF t_comp.
    DATA : l_struc TYPE REF TO cl_abap_structdescr.
    DATA : l_typedesc TYPE REF TO cl_abap_typedescr.
    DATA : lt_comp TYPE abap_compdescr_tab,
           w_comp LIKE LINE OF lt_comp.
    line-col1 = 11.line-col2 = 'SAP'.line-col3 = 33.
    APPEND line.
    line-col1 = 44.line-col2 = 'P.I.'.line-col3 = 66.
    APPEND line.
    ASSIGN line TO <itab_line>.
    "Call the static method of the structure descriptor describe_by_data
    CALL METHOD cl_abap_structdescr=>describe_by_data
      EXPORTING
        p_data      = <itab_line>
      RECEIVING
        p_descr_ref = l_typedesc.
    "The method returns a reference of  a type descriptor class therefore we
    "need to Cast the type descriptor to a more specific class i.e
    "Structure Descriptor.
    l_struc ?= l_typedesc.
    "Use the Attribute COMPONENTS of the structure Descriptor class to get
    "the field names of the structure
    lt_comp = l_struc->components.
    LOOP AT line.
      WRITE :/ 'Row : ', sy-tabix.
      LOOP AT lt_comp INTO w_comp.
    "   Using the ASSIGN component ,assigns a data object to a field symbol.
        ASSIGN COMPONENT w_comp-name OF STRUCTURE line TO <fs>.
        WRITE :/ w_comp-name, ' ', <fs>.
      ENDLOOP.
    ENDLOOP.
    Hope this helps.
    regards,
    Advait

  • Function module for getting all changes to BPs Business Partners for today

    Can any body knows function module to find out all changed documents to the BPs depending upon the date.
    Requirement is i have to find out the all BPs changed today in transaction FPP3.how can i find all those changed documents . Is there any FM to find out.
    Vineel

    Hi Vineel,
    For debugging: GoTo /n Click on the right most icon which is Customizing of local layout then click on create shortcut a screen will displayin that goto Application section select system command from the dropdown in Type, then write /h in command press OK a short cut will be automatically created on your desktop now drag this debugger on that pop up in TXn FPP3 and play with the debugger......
    Hope this will help..

  • Function Module for finding all the users in an org unit?

    Hi,
    is there a function module or a table by which we can find all the users within a purchasing group of purchasing organisatiopn unit.
    Looking for a quick response.
    Regards,
    Neha

    Please use the function module BBP_OM_STRUC_GET_USER_FROM_ORG.  You have to pass the Org Ids in the parameter START_OBJECTS. Then USER_TAB will give you all the users.
    Note:
    OTYPE = 'O'.
    OBJID = <Org Id say 50002323>.
    Regards
    Kathirvel
    Edited by: Kathirvel Balakrishnan on Sep 24, 2008 2:25 PM

  • Function Module to delete all the red requests in Info Cube

    Dear Friends,
    Is there any standard FM which can delete all the red requests in the infocube ?
    Thanks & Regards,
    Ashutosh Singh

    you can use RSDD_INFO_REQUID_DELETE.
    you've got to create a program in which you first read table rsbkrequest (where you can find the status of the request)
    then you can use these id's in the function module.
    as a lead check this paper (other objective but same principle)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a7ba9523-0b01-0010-18ab-cf8b3b8c374a?quicklink=index&overridelayout=true
    M.

  • Function Module to get Active Serial Numbers of Material Stock

    Hi Experts,
    Do we have any function module to get all the active serial numbers of Material Stock? Or any suggestions on how to get these through SQL Queries?
    Thanks a lot for your help!

    GET_SERNOS_OF_DOCUMENT

  • Function Module to get Equipments.

    Hi Experts,
         What is the function module to get all the equipments that uses the given material in SAP?
         Please provide me an answer.
    Thank you.

    Hi all,
         We found a Function module that suits my requirement.
         We can use
              1) CS_WHERE_USED_MAT
              2) CS_WHERE_USED_MAT_ANY
         Both will get in the Material Number and returns the list of Equipment that uses this material and the sub Materials too.
    Thank You.

  • Which Function Module can find all direct and indirect subordinate.

    Hi,
        I have a employee number(Chief of a organizational unit A). Do you know which function module can get all the direct and indirect subordinate of this chief? Indirect subordinate means that this chief can also view the Organizational unit(for example, Org. unit B) that under Org. Unit A. Further more, this chief can also view all the employees in other org unit that under Org. Unit B. If there is no such function module, do anyone of you have the example coding to get it? Your help is greatly appreciated. Thanks.

    use RH_STRUC_GET
    ~Suresh

  • Function module for getting the all PO waiting for release

    Hi,
    Is there any standard Function module for gettting all the PO's which all waiting for release.
    Regards
    Bala.

    hi Bala,
    ECC 6.0 Exits for VA01
    go through the above link i think that will help u...
    Regards,
    sindhu.

  • Function module to get PRT for the operation in Maintenance Order

    Hi,
    Please tell me the function module to get PRT document for the all operation in Maintenance Order? and also tell me the FM to get all details of those PRT Docs so that I can Print those documents.
    Thanks.

    Hi,
    Please tell me the function module to get PRT document for the all operation in Maintenance Order in TCode IW31/32/33? and also tell me the Function Module to get all details of those PRT Documents so that I can take Print out of those documents.
    Thanks,
    Jay.

Maybe you are looking for

  • Why is my apple ID password not working on ipad2 after updating to iOS6?

    Why is my apple ID password not working after upgrading to iOS6?

  • Setting column names in a sql statement

    hello everyone i hope someone can help me. i want a sql statement that gets the column names from a arraylist for example String sql = ("INSERT INTO Cust (and i want this part to get what is in the arraylist) values (?, ?, ?)"); is there any way i ca

  • Deauthorise computers per year

    You may only deauthorise all computers once per year. You must wait until bla bla bla What should i do for this problem? I can not sync my iphone.

  • How can I create classes dynamically?

    Guys My requirment is I want to create classes and their instancess too dynamically. First is it possible in Java? If so, then my next question is how can I refer such dynamically created classes in my code to avoid compilation error. Thanks in advan

  • Need to go back to QT 6.5

    I am trying to figure out how to swith back to a 8.5 ver of QT (or somewhere in that vicinity). QT 7 is not supported by my video edit system for exporting to .mov. Everytime I try to run one of the reinstall QT programs, it won't let me do the reins