BW Problem Extracting Custom Hierarchy

Hello Experts,
I have built a completely new hierarchy of new custom master data in R3. I then have used BW07 to create a datasource to extract the hierarchy data with no problems.
I have then created a new infoobject in BW and I have successfully loaded the master data. However when I assign the new Hierarchy datasource it shows the transfer structure with my infobject but with length 0 rather than the correct 8. 
When I then perform a data load I get error the error "Syntax error in generated program, row 33". Looking at the code it has indeed got a data element defined with length 0.
What am I doing wrong? Everything seems to be generated, replicated and active. Any help will be greatly appreciated. I cant find anything similar on OSS and I would have thought this was basic functionality.

I have found the answer to this problem.
If the data element the hierarchy datasource is based on does not have a domain BW07 will not pick up the length of the field.
I here by award myself 2 Gold stars

Similar Messages

  • Problem in Customer Hierarchy

    Hi all,
      I have a problem in creating customer hierarchy in CRM.
    According to SAP HELP:
    Before you create a CRM account hierarchy from an ERP customer hierarchy, you first have to:
    ●      Perform an initial load of the necessary Customizing settings from SAP ECC to SAP CRM.
    Use the initial load in CRM (transaction R3AS) in CRM Middleware and the Customizing object DNL_CUST_THIT.
    ●      Map the ERP customer hierarchy categories to the CRM account hierarchies.
    For more information about mapping, see in the Implementation Guide (IMG) Customer Relationship Management ® Master Data ® Business Partner ® Account Hierarchy ® Data Exchange of ERP Customer Hierarchies with SAP CRM ® Assign ERP Customer Hierarchy Type to CRM Hierarchy Category.
    My problem stuck here where in the R/3 Hierarchy Type, the F4 help value does not show any value. I checked in R3, there is a standard entry A for customer hierarchy. Could any one help me on this?
    ●      Download the ERP table KNVH (customer hierarchies) to SAP CRM.
    Use the initial load in SAP CRM (transaction R3AS) with the business object DNL_BUPA_KNVH. A copy of the ERP table KNVH is replicated to SAP CRM to create the account hierarchy from it.
    cheers,
    ginnie

    Hello Ginnie,
    Reason might be that initial download of DNL_CUST_THIT  was not complete.
    Check SM58 to see if there's an error, when the system was trying to download the hierarchy. Please go also to trx. st22 to see if there is a TIMEOUT dump related to this download. If so, you can try to increase the parameter rdisp/max_wprun_time and start again the download of the hierarchy.
    Also some of the attached OSS Note 522815 might help for more details. Check also Note 516725 it might be helpful.
    Thanks
    Raja Pamireddy
    CRM Marketing Forum Moderator

  • Problem in Customer hierarchy configuration

    Hello All,
    I would like to configure customer hierarchy for 3 levels, can any one explain me in detail step by step configuration i have to follow,
    Thanks &Regards,
    Sundu

    Dear Sundu
    Check this link
    [Customer Hierarchies |http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f4d9545a11d1a7020000e829fd11/frameset.htm]
    thanks
    G. Lakshmipathi

  • Customer hierarchy-Discount not flowing through

    I am facing problem in customer hierarchy in pricing.
    I have assigned account group 0012 to 001 all customer. 0012 is Main company who is not issuing orders. I think this may be due to Partner determination settings. However, I have set 3 levels 1D mai n office which is not issuing sales orders act group 0012 Set partner determination at customer master level and  sales document header TA. In sales order in Partners tab I am getting 1D but not getting other like 1C nor 1B nor 1A.
    Assigned sales area as well to hiegher level sales area, order type to "A" cust. hierarchy, VDH1N well maitnined 0012 act grp to lower level 2 company which both are 001 act group.
    In VK11 maintained HI01 % discount different for head office & two branch office with same sales org, Distr Channel and division.
    Here HO is given 2% discount and one branch office 5% and another 7%
    When I am creating sales order for 7% branch, in pricing procedure it shows only 2% (HO) discount but not 7% for branch office. I have also tick marked in XD02 at billing tab price determination. In pricing analysis hirearchy 02 is having Exclaimation in Customer field. So why I am missing this customer field even though I have maintained that customer in VK11. Hope I have summarized all details. If any questions please feel free.
    I shall appreciate if you know the resolution.

    This is now resolved by proper settings in Customer Hierarchy

  • Customer hierarchy in R/3

    Hello together,
    I looked into RSA3 transaction and there found datasource 0CUST_SALES_LKDH_HIER that I would like to use to extract customer hierarchy.
    In the selection I have to choose a value for HIENM field. There I could only find "A" - Standard hierarchy.
    Where this "A" comes from?
    I have also seen that for datasource 0PROD_HIER_LPRH_HIER I have the same only "A" to select for HIENM.
    Is this "A" hierarchy created somewhere or how it occurs here?
    Thank you,
    Iuliana

    Hi,
    'A' is created in R/3 as a standard hierarchy typ, look at table KNVH (in R/3)
    /manfred

  • Problem Configuring a Compound Customer Hierarchy

    Hello,
    My company is trying to set up our customer hierarchy in BW.  On the R/3 side we are using 0cust_sales (or the compound of customer and sales area) as our basis for the hierarchy such that there can be 5 levels of 0cust_sales.
    We want to display this hierarchy in our Sales Overview cube which has several customer objects (Ship-To Party, Sold-To Party, etc) but no cust_sales objects.
    Does anyone have any ideas how we can pull this off?

    Sure,
    Can u send a test mail to this user id
    [email protected]...will look into ur issue.
    Thanks

  • Customer Hierarchy Partner determination in a Sales Order using Payer ?

    Dear SD Experts/Gurus
    We use Customer Hierarchies extensively in Sales Orders for Pricing & Rebates and it all works fine.
    The Hierarchy structure consists at the bottom level of a SoldTo linked to a Hierarchy Customer and many SoldTos can have the same Hierarchy Customer.
    We set price conditions at the Hierarchy Customer and that all works fine.
    We would like to change our Customer Hierarchy to link the Hierarchy Customer to the Payer rather than to all the individual SoldTos.
    This is because we have many SoldTos linked to 1 Payer and this will allow us to have simpler Customer Hierarchy structures making it easier to setup and maintain.
    I have changed the SAP configuration to do this and I can certainly maintain the Customer Hierarchy without any problem using transaction VDH1N.
    But when I create a Sales Order, the Hierarchy Customer does not get pulled through to the Sales Order Header Partners based on the Order Payer and hence no Hierarchy Customer price conditions are pulled through.
    Is what I'm trying to do possible in SAP ?
    If so please advise how this can be achieved.
    Thanks David
    Edited by: David Steele on Apr 15, 2008 1:57 PM

    Hello,
    I have a similar requirement, although we are building the hierarchies directly in CRM (as we are with BP's in general), and I am using hierarchy category 01 - PRICING.
    What I have found is that a sold-to BP must:
    1. be assigned to a hierarchy node
    2. appear TWICE (!!!) in the document part.det.procedure, once in partner function 000001 (sold to) and again in partner function 00000121 (Authorized partner: sold to).
    When the sold to customer exists in both functions within the document, I am able to determine the hierarchy node properly.
    Now, my question is, can anyone guess why the main partner (sold to) must appear twice??? or, is this an error in my customizing?
    Thank you in advance for your help, and I do hope my observation can help others find a solution.
    Regards,
    Allon
    PS in terms of customizing, I used the following:
    partner function 00000001 - sold to
    partner function 00000121 - Auth. Partner: Sold-to Party
    access for Auth. Partner: 0017 - current partner: sold to *this copies the sold to partner into this partner*
    partner function 00000076 - Hierarchy Node Partner
    access for hier.node partner: CRM_PARTNER_G Pricing hierarchy
    The last bit presupposes that the hierarchy is set up using hierarchy category '01 - pricing'.
    Message was edited by:
            Allon Riczker - Added configuration steps

  • How to extract custom label from page item

    I´m trying to extract custom labels from a page item -a rectangle in this case-, inside a document observer:
         UIDRef pageItemRef=iCommand->GetItemList()->GetRef(0);
         InterfacePtr<IScript> script(pageItemRef,IID_ISCRIPT);
         IScriptLabel::ScriptLabelKeyValueList tags = script->GetTags();
    as sugested here -> http://forums.adobe.com/thread/747080?tstart=0  but I always get script=nil
    Regards

    I solved.
    Problem was that I was trying to get IScript interface once observer command was in kDone state -it was a delete command-.
    Thus, page items did not exist anymore when I was trying to get their custom labels.
    I changed it, making test during kNotDone state.
    Regards

  • Unable to extract Customer Master data from MDC

    Hello,
    We creating an MDM-XI-ERP2005 Customer scenario. We want to work with all bussiness scenarios (not customizing scenario).
    First I'm trying to extract Customer Master Data from EP 2005 using MDM_CLNT_EXTR.
    I have created a New Variant which properties are:
    Variant: CUSTOMER_TOTAL
    Description: Send all customer data to MDM
    Extraction Object: CUSTOMER_EXTRACT.
    Target System: PI7.
    But, the display jobs shows the following error: Could not determine recipients for message type MDMRECEIPT. Job cancelled after system exception.
    We need to focus the problem. We have done the following ALE configuration.
    SALE transaction:
    In Basic Settings -> Logical Systems -> Define Logical System we have add the following logical systems:
                  EUS100
                  MDM: Master Data Management
                  PI7: Process Integration 7.0
    WE21:
    Transactional RFC -> PI7, IDOC record types SAP Release 4.x
    RFC destination: SAPSLDAPI
    BD64
    New Model -> PFMC
    Add message type: Model iview: PFMC
                                 Sender: EUS100
                                  Receiver: PI7
                                 Message Type: DEBMDM
    WE20 transaction shows:
    Partner profiles -> Partner Type LS (logical system)
                        PI7: Outbound parmtrs. DEBMDM, SYNCH.
    Any idea will be very helpful,
    Thanks in advance
    Marta.
    Edited by: Marta Sánchez on Jul 9, 2008 12:34 PM

    Sorry because I made a mistake in my previous message. ALE seems to be correctly configured. I'll try to update correctly my current situation:
    In WE02 I can see al IDOCs that I'm trying to send to XI. All them have the IDoc Status = 3 (Data Passed to Port OK) instead of 12 Status Dispatch OK :(. So, It seems an tRFC error.
    SM58 shows me more trails: "Basic type 'DEBMDM06' is unknown"
    before that I have done the following steps at SAP ERP:
        1. WE21: I have created a PI7 port with 700PI70CLNT RFC.
        2. SM59: I have checked successfully 700PI70CLNT RFC connection.
        3. WE20: I have created a PI7 Partner Type LS with the following inbound and outbound parameters: DEBMDM and MDMRECEIPT.
        4. BD64: I have created a Distribution Model with DEBMDM and MDMRECEIPT message types.
    and at SAP PI:
         5.IDX: Port: SAPEUS. Client: 111. RFC Destination: PI7.
         6. technical and business system for sender SAP system(System Landscape Directory)...
    - Maybe some of the previous steps is not correct....
    - Is RFC Destination = PI7 is correct in step #5?
    - Is also necessary to configure more steps in PI system like RFC destinations or Transactional port?
    - I have read that is neccessary to check that the option "transfer idoc immediately" in we20. How?
    Please any idea will be very helpful.......
    Thank you!
    Best regards,
    Marta.

  • Customer Hierarchy details in SAP ERP BP transaction

    Dear All,
    Currently we are using BP transaction in SAP ERP and also using customer hierarchy transaction VDH1N.
    Now the problem is we cannot see customer hierarchy in BP transaction, we have any option that we can create relationship in the BP transaction, however its a double effort.  Is there any option that we can see the Customer Hierarchy details in SAP ERP BP transaction?
    Regards,
    Murali

    Hello Murali,
    With BP transaction, do you mean business partners in XD03 / VD03?
    >> we cannot see customer hierarchy in BP transaction
    No, you can't see the customer hierarchy in XD03. That's correct.
    In XD03 you have sold-to, payers, bill-to and ship-to.
    You also have hierarchy nodes (012).
    In my opinion, the customer hierarchy should only have relations between hierarchy nodes and sold-to(s).
    Therefore these are different information segments => No need to see the hierarchy from the BP transaction.
    Hint: Maybe that is the reason why the functionality is not available in the standard system!

  • How to download the customer hierarchy from VDH2N

    Hi Team,
    Is there is any possibility for downloading the customer hierarchy from VDH2N.  or any SAP standard report is available for downloading the customer hierarchy.
    With Regards,
    Jana

    Hi,
    Extract it from KNVH table
    Kapil

  • Allocations at customer Hierarchy level

    Hi Gurus,
    I have a requirement from client to allocate stock of restricted products at customer hierarchy level. For example: Material ABC is a restricted product and there are 500 CV available in the plant, Client would like to allocate 100 CV to customer-1, 200 CV to customer-2 and 200 CV to customer-3.
    Also Material ABC can be allocated to one of the nodes of customer hierarchy and automatically this stock should be available to all the customers with in that hierarchy to consume. If there is a chain customer like SAMS, stock is assigned to highest node of SAMS at state level and this stock should be available for all SAMS clubs with in the state to consume.
    I am using Quotations to reserve stock at customer level. The problem is with allocating stock at customer hierarchy level. Please suggest me some solutions to achieve this requirement.
    Thank You in advance,
    Samatha.
    Edited by: Samatha on Oct 11, 2011 10:04 PM

    Hi,
    That particular product and customer groups combination cvcs delete. It means that the particular combination of cvcs deleted. so there is no chance to  see the forecast.
    regards,
    sivaram2411
    Edited by: sivaram2411 on Apr 19, 2011 9:03 AM

  • Find contract (outl. agreem.) at order item level by customer hierarchy

    Hi Everyone,
    I've a requirment for the next functionality is SAP.
    <b>Find contract</b> (outl. agreem.) <b>at order item level by customer hierarchie</b>.
    Standard SAP can only use the customer hierarchy to find a contract at <u>order header level</u>. This has not the result we want, beceause all or a selected group of items will be copied to the order and this process is not usefull with EDI order input.
    Does somebody know how this functionality can be created in SAP? Build the functionality with ABAP is no problem for me.
    Thx.

    Hi !
    I know its quite late for the answer but I just saw your question.
    In the customising of the Sales doc type (VOV8), in the 'Transaction flow' section, in the first field for Outline agrmt mess. entry of either  B or D or F should help.
    Reward if helpful.
    Regards,
    PATHIK

  • Customer Hierarchy creation

    Hi all,
      I encounter a problem when trying to create a Customer Hierarchy in CRM, in the tcode BPH , I enter the hierarchy category as pricing , but i got the error
    You cannot create hierarchy trees of this category
    If the delta download for the ERP customer hierarchy is active, you cannot create a hierarchy tree of the category "Pricing" in CRM.
    For this reason, you should establish that pricing based on the customer hierarchy and BP group hierarchy gives the same results in the ERP System and in CRM".
      But I did not understand what does it mean, could anybody throw me a light?
    cheers,
    hy

    Hi Ginnie ,
    Have u pulled all the Pricing related Tables from ERP to CRM.
    It has a dependency because pricing works on Customer Pricing Procedure and Document Pricing Procedure .
    Regds,
    Sunil Nair

  • Partners from function Customer hierarchy cannot be processed online

    Hi all,
    After creating a rebate agreement (VBO1) and Processing Customer Hierarchy (VDH1N), as well as setting partner determination (VOPA) for DOCUMENT HEADER as well as DOCUMENT ITEM , the partner function for customer hierarchy is not automatically appearing in sales  document header partner tab. And when I am giving it manually in sales doc header, system is giving this error message:
    "Partners in the specified partner function cannot be processed online. The program generates them and completes the data automatically".
    Pls Help
    Thanx and regards
    Vikas Chhabra

    Hi There,
    we are also facing the same problem could u please explain how did u resolve the problem

Maybe you are looking for