Create CRM customer/account hierarchy node thru abap code

Hi,
Any one can help me on how to Create CRM customer/account hierarchy node thru abap code?
Is there any Class/methods, FMs that I can use to create node in customer/account hierarchy?
Sample codes will greatly help me.
I hope someone can help me on this since this is my urgent requirements on my project.
Thanks,
james

James,
You can find the FM, Class Lib and APIs under the package BUPA_HIERARCHY.

Similar Messages

  • How to read a mail from sap inbox thru abap code?

    how to read a mail from sap INBOX thru abap code? can anyone tell me the technical approach? I NEED TO READ A MAIL and then need to pass the parameters to a bapi.
    Message was edited by:
            shahid mohammed syed

    Hi SSM,
    Did you manage to have your program working? I also have same requirement. I tried standard FM and BAPI but I always encounter authorization error when I tried accessing other user's mail. Thanks.
    Regards,
    Ryan

  • Create account/customer hierarchy thru ABAP codes

    Hi,
    Anyone can help me on how to create a account/customer hierarchy in CRM.
    How can I create node, assign BP to a account/customer hierarchy.
    Can anybody share some abap codes that can do this? Or give some FMs or documentation on how to do this.
    Thanks!
    james

    James,
    You can find the FM, Class Lib and APIs under the package BUPA_HIERARCHY.

  • Managing  Hierarchy ( Leaves & Nodes ) by ABAP Code

    Has someone documentation about the functions included into these function pool?
    RSSHIER
    RSSHMT
    I need to change (or create new) leaves's position from node N to node M..... all by ABAP Code.
    Ciao,
    claudio
    Message was edited by: Claudio Caforio

    Hi Claudio,
    its worth to look into function pool RSHI: It has a lot of functions to insert and delete nodes.
    You have to find out the hierarchy id and nodeid of the leave you want to move. Find also the nodeids of the parents (node N and M). read the attributes of your leave. Then first delete leave under node n, then insert a new node under m and use the attributes of the deleted node. There are function modules for it. As far as I remember you have to call some hierarchy_init fms to work correctly.
    Regards,
    Juergen

  • Restricted account hierarchy nodes

    Hi BI Gurus,
    I have a requirement to generate Profit and Loss statement in BI. I pulled up account hierarchy out of R/3 into BI.
    The issue is client want to see some nodes of the account hierarchy restricted by specific Functional Area only.
    Please suggest some solution.
    Regards,
    MV

    Hi KK,
    Can you please explain about manually restricting the nodes instead of using hierarchy? Should it be done at R/3 or BI level and how?
    At R/3 level in Report Painter reports each node of the account hierarchy can be easily restricted to a particular Functional Area (at account node or set level) and client want to achieve the same in BI.
    Also the account hierarchy should not be maintained at two places. Since well maintained account hierarchy is already there in R/3 which is why BI pulled it from there; now they are looking for ways to restrict some of the nodes by Functional Area.
    Hope I have explained the situation with all the variables.
    Please provide your valuable suggestions.
    Thanks & Regards,
    MV

  • Hierarchy Time Dependent ABAP code

    Dear Experts,
    I want to ask a custom BADI ABAP code to get the hierarchy of a dimension member where Time Dependent Hieararchy is implemented in that dimension.
    Currently we are using Interface method IF_UJA_DIM_DATA->get_hier_of_mbr to get the hierarchy reference.
    Sample Code:
    DATA: o_test     TYPE REF TO if_uja_dim_data.
    CALL METHOD o_test->get_hier_of_mbr
         EXPORTING
           i_member = lv_member
    *      i_dateto = lv_datum
         RECEIVING
           ro_hier  = lo_hierarchy.
    However after we implement the time dependent on the dimension, this method returns nothing unless we specified the i_dateto parameter to the method (which is optional).
    While my requirement is to get the hierarchy of the member with the date when this logic is executed, putting SY-DATUM to this parameter does not give me the result that I need. I need to put the i_dateto as '99991231' so the hierarchy returned by this method is the latest hierarchy, but not the current date where this logic is executed.
    Is there any way to make that the time hierarchy obtained is the one when the logic is executed? Or is there any other method that is feasible to meet with my requirements?
    Thanks
    Regards,
    Siswono

    Hi Siswono,
    Ok, I see what you mean.
    Then I would suggest that you determine the hierarchy end date first.
    read the hierarchy table by determine its technical name, then find the hierarchy with your date that's between the start date and end date, then you can use the end date for the next step.
    use get_hier_of_mbr with the determined end date.
    Andy

  • Create new survey data for opportunity using abap code

    Hello to all,
    I have one requirement.
    create survey data for given opportunity ID using abap code. or copy survey data from one opportunity to another opportunity using abap.
    any ideas..
    many thanks
    Babu

    Hello Babu,
    You can do this through the CRM_ORDER_MAINTAIN FM, this is the generic FM to edit any transaction in CRM.
    The FM contains an internal table IT_SURVEY that must be filled. Actually, this table will only contain a reference to the (completed) survey, it doesn't store the data of the survey itself.
    For some example coding, take a look at the SrvTSurvey.do controller. If you want to see what data is stored in the IT_SURVEY table, create a transaction and attach a completed survey to it (you can easily do it in the standard views of the webclient) and take a look at the survey structure in the CRM_ORDER_READ FM/Report.
    Let me know if you need more guidance,
    Reward points if useful,
    Regards,
    Joost

  • I created a new account and entered a redeem code but i can't sign in

    Hello. I just created a new account and i set the location in United States. I entered a redeem code. when i sumbit, they said that i've redeemed 10$ successfully. then i tried to purchase an app, then it suddenly requeired my to sign in then i couldn't sign in. it keeps on telling me that they couldn't find my account. help please

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • Script/automate creating CRM user account

    Is it possible to script creating a CRM (2011) user account? We want to create a CRM account for every new hire. Rather than doing it manually, if there were a Powershell script available to do the work, then we could automate it.

    I'm not sure if you can create an account from the terminal that will be recognized by OS X. I don't know much about the Terminal or Unix commands, but I'm thinking you may need to restart. A user without a home directory should be able to log on; I've done that myself (on Leopard). Try adding the home directory anyway.

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • Created a master account and redeemed playstation plus code, says it wont add funds to a sub account

    an error keeps popping up saying it wont add funds to a sub account when i was trying to put it in my master account.

    HOLY GUACAMELEE O_O FINALLY I CAN ENJOY MY ACCOUNT WITH NO RESTRICTIONS ! WOOOOOOOOOO !!!!!!!! THANKYOU SONY ! 

  • Hierarchy Node Intial load from R/3 to CRM 5.2

    Hi
    I have this problem when download form R/3 4.6c to CRM 5.2 hierarchy node.
    Can you help me?
    It's very important because we are blocked.
    Thanks
    Best regards.
    we downloaded the following customer hierarchy:
    0002189004
    - 0002199004
    - 0002190509
    - 0002010050
    using the object DNL_BUPA_KNVH.
    In this way the table CRM_KNVH_TEMP has been filled correctly with all
    the structure.
    We executed the BPH_DNL transaction selecting only the hierarchy type
    D,
    and the sales org D468, distr chann 01 , divsion 99.
    After saving the hierarchy we created all the hierarchy structure in
    CRM but there are not any customers linked to the related hierachy node.In particular we found the followng situation:
    table BUT_HIER_NODE, filled with all the hierarchy node
    table BUT_HIER_NODE_D fille with all the descrption of the hiarachy
    node in english language
    table BUT_HIER_STRUCT filled with the structure and the link between
    node
    tables BUT_HIER_TREE,. BUT_HIER_TREE_d filled with all our hiearcy type
    table BUT_HIER_NODE_BP empty
    also:
    the method "assign_bp_to_node" is only executed in the the private
    method
    "change_record" but it is commented in the method "create record" and
    also
    "build_crm_tree".
    In conclusion the method "start_initial_down_load2 (executed int the
    function CRM_BUHI_INITIAL_DOWNLOAD) call the method 2build_crm_tree2,
    but this method never execute "assign_bp_to_node".

    I have found a propoer articulation of my problem in SAP note 429423. It goes as follows:
    <i>"No entry exists in one of the queues, but the status in R3AM1 remains 'Running':
    In this case, probably no reply is sent to the CRM Server after the data selection in the source system.If this is the case for an adapter object but not for others, contact the respective application component which can analyze why the source system does not send a reply and correct it.
    If this system response occurs for all adapter objects, create a message for component CRM-MW-ADP."</i>
    However, I am unable to act on the above. Kindly suggest what exactly needs to be done as suggested in the note.

  • Create Customer Account Site fail ORA-01400

    When creating customer account site in Oracle EBS r12.0.4, Error occur:
    The following SQL error occurred: ORA-01400: cannot insert NULL into ("AR"."HZ_CUST_ACCOUNTS_M"."CUSTOMER_MERGE_HEADER_ID").
    Can anyone help me solve this problem?
    Thanks in advanced!

    How do you create the customer account? From the application (if yes, mention the Navigation Path) or using an API (mention the API)?
    The following SQL error occurred: ORA-01400: cannot insert NULL into ("AR"."HZ_CUST_ACCOUNTS_M"."CUSTOMER_MERGE_HEADER_ID").Does this happen when creating any customer account or with specific ones only?
    Are you passing all the mandatory fields when creating the custom account?
    Obtain the FRD log for details about the error.
    Thanks,
    Hussein

  • BPC Excel: Select hierarchy nodes & exclude an account within

    Hello All
    u2013 in EVDRE, is there a way to define a column selection for a account hierarchy node, however exclude one of the accounts within this group? THis is simmilar to BEX query, where you can select a hierarchy node and then also select to exclude a member within.
    EG From the account hierarchy below, select the hierarchy node u2013 u2018group1u2019 , however exclude account 2.
    Account Hierarchy     
         Hierarchy - group1
              Account1
              Account2
              Account3
              Account4
    I have a couple of different column definitions, so this definition would need to be defined inside the column header area & not in the column member set.
    Thanks
    Glen

    Hello Nilanjan
    Firstly, thanks for your reply, much appreciated. One of the requirements is to have multiple column definitions in my report. To achieve this, i was planning to define the definitions inside the columns and adjust the colkeyrange to include all column definitions. This would mean that i would not use the column expansion and hence not have access to the suppress function.
    Is there a way of including the suppress function in a column definition?
    EG Include hierarchy node 'Parent - Group1" and exclude 'Account2'
    Account Hierarchy          
         Parent - Group1     
              Account1
              Account2
              Account3
              Account4
    Thanks, Glen

  • Account Group - Creation of Customer Account

    Hi Gurus,
    I am having a doubt over the Customer account group.
    We have created 8 Customer account group as well in FI.
    In IS-H module, we created 2 Customer account group ( Namely,Inpatient and Outpatient)
    But as per FI they need to deduct diff payment terms ,dunninig letter,and taxes are deducting under these 8 groups are in FI.
    How can we adjust all the 8 groups in FI under the 2 Groups in ISH.?
    Can any one gide me?
    Thanks.
    Bala

    <b>2     Process & Configuration</b>
    <b>2.1     Customer Master</b>
    <b>2.1.1     Account Group</b>
    <b>2.1.1.1       Maintain Number Range for Account Group</b>
    <i>Use</i>
    The purpose of this activity is to control number range of Account Group.
    <i>Procedure</i>
    Access the activity using one of the following navigation options:
    IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for Creating Customer Master Data --> Create Number Ranges for Customer Accounts --> Select the Icon to maintain Number Range
    <i>Transaction Code</i>: SPRO
    Data to be maintained:
    No | From      | To | Current No | Ext (Tick in Check Box)
    01 | 0000000001 | 0000099999 | 0 | No
    02 | 0000100000 | 0000299999 | 0 | No
    XX | A | ZZZZZZZZZZ |      Yes
    <b>2.1.1.2       Assign Number Range to Account Group</b>
    <i>Use</i>
    The purpose of this activity is to maintain number range of Account Group.
    <i>Procedure</i>
    Access the activity using one of the following navigation options:
    IMG > Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Master Data > Preparations for Creating Customer Master Data > Assign Number Ranges to Customer Account Groups
    <i>Transaction Code</i>     : SPRO
    Data to be maintained:
    Group | Name | Number Range
    0001 | Sold-to party | XX
    0002 | Goods recipient | XX
    0003 | Payer | XX
    0004 | Bill-to party | XX
    <b>2.1.1.3       Define Account Groups with Screen Layout (Customers)</b>
    <i>Use</i>
    In this step, you determine the account group of the customer.
    <i>Procedure</i>
    Access the activity using one of the following navigation options:
    IMG > Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Master Data > Preparations for Creating Customer Master Data > Define Account Groups with Screen Layout (Customers)
    <i>Transaction Code</i>     : SPRO
    The groups indicated below are a few examples. There are many groups in Standard SAP & if we require additional Group, it can be copied from appropriate group & maintained.
    Group | Name
    0001 | Sold-to party
    0002 | Goods recipient
    0003 | Payer
    0004 | Bill-to party
    0005 | Prospective customer
    0006 | Competitor
    Select Sold-to-party > go to Details > Double Click on General data / Company code data / Sales data. It will take to next screen which details Tab Pages of General data / Company code data / Sales data. Double Click on Tab Page for example: Address, Control, Marketing & so on. Here you can maintain whether the field is to be Suppress, Req. Entry, Opt. entry or Display
    Regards,
    Rajesh Banka

Maybe you are looking for

  • ITunes Can't Locate Songs?

    I'm running iTunes 7.7.0.43 and the last time I opened the app, it lost the locations of more than half my library (8000+ songs). I get the dreaded grey ! icon next to each of them -- but only after I try to play one that is missing. I haven't moved

  • Reading data from presentation server.

    I have a text file in which records are space seperated.I will be entering the file name in selection screen in a parameter 'infile1'  and I am trying to upload these records into a internal table using function module GUI_UPLOAD.but i get a message

  • How to use Hindi as internationalization in JSF

    could you pls help in this topic

  • Total useless customer non-service

    Second time today I've had to call in, hold time over two hours and 4 transfers on this call and they "claim" that it is resolved. I bought a large number of items online, and when ordering I highlighted that it was for a business since they were goi

  • About reports 3.0 to 10g

    Hi All, I could not find relavant info on this.... please help me in brief... If I want to upgrade reports developed in reports 3.0 builder to reports 10g, do I need to compile all reports? or can I use rdf files as it is in 10g. I read in one of the