Function Module to get  hierarchy details from a customer account

Hi Experts,
There is certain hierarchy maintained among Business partners. We can see that in transaction BPH.
Now What I require is a function module which takes BP number as input and gives output the
BP number of child nodes of it . Is there a standard function module for it ?
Please help me move ahead.
Thanks in advance

Hi ram.mahaseth ,
There are several tables:
BUT_HIER_NODE
BUT_HIER_NODE_BP
BUT_HIER_NODE_D
BUT_HIER_STRUCT
BUT_HIER_TREE_D
BUT_HIER_TREE
Hope this helps.
Regards, Kostya Khveshchenik

Similar Messages

  • Function module to get the details from table COEP

    hi all,
    I have to select the data from COEP table based on OBJNR.i don't have  any other key information.so i have to select the data based on OBJNR only.
    can any one please tell me is there any function to get the data from this table.
    Thanks.

    Hi
    Try the fun module
    K_CO_OBJECT_BALANCE_GET
    see the sample select statement for COEP
    clear cobrb_tab.
      refresh cobrb_tab.
      select objnr            " Object No
             rec_objnr1       " Ref Object No
             bureg            " Dostribution Rule
             lfdnr            " Sequence No
             perbz            " Settlement Rule
             konty            " Acct Assign Category
             bukrs            " Company Code
             kostl            " Cost Center
         into table cobrb_tab
         from cobrb
         where kostl in rn_kostl.
      sort cobrb_tab by objnr rec_objnr1.
      delete adjacent duplicates from cobrb_tab comparing objnr.
    Get the Settlement Costs from COEP Table
      clear it_set_tab.
      refresh it_set_tab.
      if not cobrb_tab[] is initial.
        select kokrs            " Controlling Area
               belnr            " Acc Document
               buzei            " Line Item
               perio            " Period Block
               wkgbtr           " Value in CO Curr
               lednr            " Ledger No
               objnr            " Object No
               gjahr            " Fiscal Year
               wrttp            " Actuals
               versn            " Version
               kstar            " Cost Element
               beknz            " Dr/Cr Indicator
               parob1           " Partner Object
           into table it_set_tab
           from coep
           for all entries in cobrb_tab
           where lednr = c_lednr  and
                 wrttp = c_wrttp2 and
                 versn = c_versn  and
                 gjahr = p_gjahr  and
                 objnr = cobrb_tab-objnr and
                 parob1 = cobrb_tab-rec_objnr1 and
                 beknz in (c_o, c_a).
      endif.
    Reward points for useful Answers
    Regards
    Anji

  • Any Function Module For getting Shipment Details

    Hi All,
    I want to get all details of shipment. i tired , but unable to get any function? I was able to find the creation or change shipment function modules, but not able to find the function module for getting the details for Shipment.
    like BAPI_SHIPMENT_CHANGE           Change Shipment
    BAPI_SHIPMENT_CREATE           Create Shipment
    similary
    Do you have any idea for getting (display)the details of Shipments?
    Regards,
    Raju

    hi,
    you can use
    VTTP,VTTK
    or
    RV_SHIPMENT_READ

  • Function module to get the dates from the year and the period

    Is there a function Module to get the dates from the year and the period

    Check with :
    To get last day of period use .
    LAST_DAY_IN_PERIOD_GET.
    To get last of month Use :
    RE_LAST_DAY_OF_MONTH
    HRVE_LAST_DAY_OF_MONTH
    LAST_DAY_OF_MONTHS
    ISB_PREVIOUS_PERIOD_DATE_GET
    Thanks
    Seshu

  • Function Module to get PO details based on Plant and PO date

    Hi
    1. Is there any Function Module to get PO details based on Plant and PO date?
    2. Is there any Function Module to get Material document details based on PO number?
    Thanks
    Narendra

    hi,
    check these standard reports.
    ME2L - By vendor
    ME2M - By material
    MSRV3 - By service
    ME2K - By account assignment
    ME2C - By material group
    ME2B - By tracking number
    ME2N - By PO number
    ME2W - By supplying plant
    also chck this func module.
    REPL_LIST_PURCHASE_ORDER_READ
    reward if hlpful.

  • Function module to get the details (WTGBTR) from table COEP

    Hi all,
    I have to select the data from COEP table based on OBJNR, KSTAR and KOKRS.I want  WTGBTR from COEP Table.
    Right now Iam using select query.But i want to use function module.
    Can any one please tell me is there any function module to get  WTGBTR from COEP table.
    Thanks.

    This'll work:
    SELECT objnr bukrs wtgbtr
      INTO CORRESPONDING FIELDS OF TABLE gt_coep
      FROM coep
      WHERE lednr = '00'                               "<========
        and kokrs = '1000'
        AND kstar IN ('0000810001' , '0000830001')
        AND objnr IN s_objnr
        AND bukrs IN s_bukrs.
    Rob

  • Function module to get invoice details ...

    Hi friends ...
    I need function module to get sales invoice details including items ....
    Thanks & Regards ..
    Ashish

    Hi Ashish,
    Try LB_BIL_INV_OUTP_READ_PRTDATA function module, this will help you..
    Regards,
    S. Sudagar

  • Function Module to get Campaign Details

    Hi,
    Can anyone tell me any FM or BAPI or a DB table to get the campaign details.
    Thanks
    Lokesh

    Hi,
    Apart from that two tables you can get the campaign Hierarchys from the Table
    CGPL_HIERARCHY. Function module CONVERSION_EXIT_CGPLP_INPUT helps to get GUID of campaign, Than give this guid as a input in table CRM_JCDS it provides the total details of the campign statuses.But basic details we are getting from CGPL_PROJECT Table.
    Hope it helps you
    Thanks
    Naren..

  • Function module for getting stock details for a given period or date range

    Hi experts,
         Any function module available for getting stock details batch, plant, storage location, and period wise. <<removed_by_moderator>>
    Thanks in advance
    M Prasanna
    Edited by: Vijay Babu Dudla on Apr 28, 2009 7:23 AM

    Hi,
    Try with this FM:
    BAPI_MATERIAL_AVAILABILITY .
    Go through this link for more details:
    ABAP Development
    by
    Prasad gvk.

  • Functional module to get the File from a given Directory

    Hi all,
    I am using a FM name 'subst_get_file_list' to get the file from a given directory but it is accepting only 40 Character length file only my requirement is to accept file name other than 40 char,
    give me good sugestion
    regards
    paul

    Hi Paul,
    Check the Function Module Gayathri has given. ie. 'SO_SPLIT_FILE_AND_PATH'.
    In the exporting parameter FULL_NAME , give the path name and in the importing parameter stripped_name , you will get the filename.
    Check this code.
    REPORT ZSHAIL_SPLITFILE.
    data: it_tab type filetable with header line,
          gd_subrc type i.
    tables: rlgrap.
    data: path type string,
          file_name type string.
    parameters file_nam type rlgrap-filename .
    data: user_act type i.
    at selection-screen on value-request for file_nam.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
      EXPORTING
        WINDOW_TITLE            = 'select a file'
       DEFAULT_EXTENSION       = '*.txt
        DEFAULT_FILENAME        = ''
        FILE_FILTER             = '*.txt'
        INITIAL_DIRECTORY       = ''
        MULTISELECTION          = abap_false
       WITH_ENCODING           =
      CHANGING
        file_table              = it_tab[]
        rc                      = gd_subrc
        USER_ACTION             = user_act
       FILE_ENCODING           =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if user_act = '0'.
    loop at it_tab.
    file_nam = it_tab-filename.
    endloop.
    endif.
    path = file_nam.
    CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
      EXPORTING
        full_name           = path
    IMPORTING
       STRIPPED_NAME       = file_name
      FILE_PATH           =
    EXCEPTIONS
      X_ERROR             = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    at selection-screen.
    message i001(zmess) with file_name.
    Regards,
    SP.

  • Function module to get order data from delivery

    hi ,
    is there any function module to which i can pass the delivery number and get the order number (s) and other data .
    basically i want the order currency.
    pls help.
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 21, 2008 9:44 AM

    Hi Surendra,
    If your requirement is just to retreive the Order number for a given delivery then you can go with following:
    Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
    You can also do the same by using VBFA table.
    Also have a look to the following thread:
    Re: Getting sales order number against Delivery Number
    Hope this will help.
    Regards,
    Nitin.

  • Function Module for getting message details on passing message ID.

    Dear All,
    Is there any way in XI through which I can get the complete details about the message if I pass the message ID to it. I am having message ID with me but I am not able to find its all details, is there any function module available??
    Warm Regards,
    N.Jain

    HI,
    Go through the below thread for the same information
    SXMB_MONI transaction table
    In Which Database Table the Messages are Stored in XI
    Thnx
    Chirag

  • Function Module to get planned Quantity from posting date

    hi,
    i need one function module which takes plant and posting date date as an input parameter and get the Planned quantity for that range of that ...i dont want to fetch it from material since the report is run for the whole plant(werks).so it has got a lot of data entries so i need a function for that...
    is there any function module which will fetch this data ...
    Edited by: sonal musale on Jun 23, 2008 3:53 PM

    Hi,
    I have also the same problem. Any solution you have for this one?
    Thanks,
    Raymond

  • Need a function module to get IT0001 details for a pre-selected set of empl

    Dear All
    We are faced with a requirement of getting infotype 0001 record details for a pre-selected set of employees, based on a date selection (BEGDA and ENDDA). The existing function module HR_READ_INFOTYPE provides this functionality on per employee number basis. This will lead to performance issues in the context in which we have this requirement. Therefore, would appreciate any input on alternate function modules which can act like HR_READ_INFOTYPE with multiple employee numbers selection (like the facility available in function module HR_PERSON_READ_WORK_SCHEDULE).
    Kind Regards,
    Karthik

    Hi Santhosh,
                             Thanks a ton for the reply,your reply actually helped me,but I also checked the FM HRCM_EMPLOYEE_INFO_TABLE_GET
    which was simple and fits to the requirement.
    Regards,
    Karthik

  • Function module to get holiday class from work schedule for current day

    I need to determine what the public holiday class value is for the current day in a user exit.  Is there an SAP function module that can return me this data?  This would be the information that is displayed when pressing the work schedule button from infotype 0007

    Function module HOLIDAY_CHECK_AND_GET_INFO is closer to what I need.  This function module returns an X if the day is a holiday.  I will create a Z program and instead of returning an X for a holiday I will return the THOL-KLASS (holiday class) value.

Maybe you are looking for

  • HT204380 Multiple devices on one apple ID?

    I have an iPhone 5 and use facetime, I have bought my children iPod touches for xmas and want them to also be able to use FaceTime, how will I link 3 people to the same account and be able to facetime each other? Is this possible?

  • Unable to create a PO in SRM system

    During cretion of PO in SRM system we are encountering the following situation: Prior to that we have configured all the initial settings as below: "Defining System landscape" on SRM side,(which updates the table BBP_BACKEND_DEST) we have defined it

  • Vendor rejected payment

    hi friends, one of our vendors have rejected payments, can any one tell me how to apply the payment back into the vendor account. thanks charlie

  • URGENT - java.lang.OutOfMemoryException

    Hi, I am having problems with a simple JSP-based application which is deployed on Oracle Application Server 10g (version 9.0.3.1). When only 1 person is logged on it works fine, however when more than 1 person attempts to log on the following error i

  • NLS_LENGTH_SEMANTICS settings

    Hi, Need a suggestion on below scenario. We are going to create a new database ( 11g ) having AL32UTF8 as database character set and AL32UTF16 as national character set. Some of the tables columns ( less than 25) might need to store chinese or japane