Loading Master Data with compounding attributes

Hello All,
I have a characteristic, "Commission Code", compounded to "Product" and "Commission Code" is an attribute of the InfoProvider, "Sales Rep".
Now, I'm not able to load data into the master data for "Sales Rep" from a flat file because as I get the same sales rep with two different commission codes I get an error caused by "duplicated keys":
below an extract of the flat file which goes in error :
SalesRep (key)     ///     CommissionCode     ///     Product
1000                    ///       10%                      ///    ProdA
1000                    ///        20%                      ///     ProdB
how to load the master data in the proper way ? Where I'm wrong ?
Thanks in advance.

Hi ,
Sales rep infoobject should be compounded by commision code. I think you will get the compound of commision code (product) as well in the compound.
This will make the records unique and you would be able to load same sales rep with two different commision code.
So your key then would be sales rep, commsion code and product together.
Hope it helps,
Regards,
Sunmit.

Similar Messages

  • How to load master data with text into infoObject in BI 7.0

    Hi all;
    I have an infoobject 0employee ( this is for employee number ,8 character long), with medium text option.
    I would like to load Employee name as a text option for employee number.
    How do I load this mater data into this 0employee object,
    Please help.
    I did look for something similar in the forum and there are many of them, but I couldn't find anything that for BI 7.0 and really clear help for me. Sorry to ask a question that been asked before.
    thanks.
    Raiine

    hi rainnie,
    check this link t oload master data in BI 7
    Re: BI 7.0 flat File extraction
    as you are using SAP defined infoobject you can start from the creation of datasource.
    text format for the flat file is
    LANGUAGE,INFOOBJECT,TEXT
    EN,0EMPLOYEE,RAINNIE
    You have to create ,infopakage, transformation ,dtp for both the attribute and text.
    hope this helps
    cheers
    Sunil

  • Loading Master Data with Flexible Update

    Hi,
    I have created an Infoobject - Business Partner (Master Data bearing characteristics). The attributes to this are Region, Sales Person, Industry code which are master bearing characteristic as well.
    I need to load data to the business partner from a csv file.
    The layout of the CSV file is -
    BP number, BP text (long Text), Region Code, Region Desc (Med Text), Sales Person Code, Sales Person Desc (Med Text), Industry Code, Industry description (Med Text).
    How do I define the infosource to load this data.
    Appreciate any help with this.
    Thank You,
    Prashanth

    Hi,
    First of all, I need to note that there are two kind of Infosources: with direct and flexible update.
    If you choose a direct IS, then in the creating of the IS you just enter the name of the infoobject where you are going to load data. The system will create a IS (comm. structure). Enter this IS for changing. The system will propose you the communication structure,  click on a bottom icon “Transfer structure/Transfer rules”, choose as a ‘Source system’ your flat file system. Agree with the system when it asks you to save assignments (up to 3 times). Activate TRs. Then click in the field for Datasource. You may see there another datasources (for texts, attributes and hierarchies). Choose one by one another datasources with their activation.
    Now you can create an infopackage for a load – you can choose what kind of package it is going to be – for loading texts, attributes or hierarchies.
    Note that in this case the structure of the flat file is proposed by the system and you need just prepare the flat file corresponding to the proposed structure (different for each of 3 possible datasources). Execute infopackage.
    If you use a flexible IS, then you may insert into comm. structure the fields that you think you may need in the master data. Note that here you may have not only attributes but TEXTS also. Save a comm. structure. Assign a flat file source system and activate a TRs.
    After that in RSA1-dataproviders tab – right click – insert IO as a data target – choose your IO. Refresh the screen. You’ll see up to three data targets. Create update rules for each of them. In URs map the fields in the IS with the fields in URs.
    Best regards,
    Eugene

  • Loading master data with date-fields

    Hello,
    we are loading with the extractor 0crm_mktelm5_attr data to the data target 0crm_mktelm (infoobject).
    The fields "from" and "to" are initial in psa. But the Update in the master data abort with the failure:
    "Invalid "to" date '00000000 ' " and "Invalid "to" date '00000000 ' ".
    The data-fields in psa are initial, and in other BW-Systems, we have not problems with the extractor 0crm_mktelm5_attr and initial date-fields.
    Have any body an idea??
    Thanks
    Murat

    Hello Shashank,
    thanks,
    the Infosource.mapping was false.
    regards
    Murat

  • Need help with loading master data from R/3 to BI 7.0.

    Hi,
           First i thank everybody who took efforts to answer for my posting, i really am learning this new version with your helps. I really appreciate  it.
    Could any one help me with a step by step process to load master data from R/3 to BI 7.0. Please don't send help.sap.com.
    will assign points .
    With Thanks,
    Ranjani R

    Hi,
        Thanks for the answers. I tried loading it yesterday, i had lot of confusions.
      What should i do to load a master data from a R/3 to BI7.0.
    1. Created a Info object named (EKKO_mas) with some attributes (ernam, ekorg, lifnr).
    2. Go to info provider and right clicked on info area and selected insert char as data target. (Please correct if i am wrong).
    3. Login to R/3, go to sbiw generic data source created one with a view/table as EKKO and map the application compound and select the needed fields by checking the checkbox. (please correct if wrong).
    4. Go to source system tab and replicate data source. ( Please correct if i am wrong)
    Then what should i do.
    guessing steps:
    4. Create a Data source, in BI 7.0 . In that as i am not using flat file, should i select "application server" instead of "local workstation" . In field tab i specified all the fields given in Info object. ( Will there be anything else i should do or change in this tab)
    5. Load data in PSA. ( will the data from R/3 i selected loaded in PSA without any problem)
    6. Create transformation , save and activate.
    7. Create DTP save and activate , click execute.
    By doing the above given step will i be able to load the master data from R/3 to BI 7.0 data target (IO) .  Please help me if something is wrong with my steps.
    Thanks.
    RR.
    *will assign points.

  • Error while loading master data to attribute ZMAJORGU(Major organisational unit)

    Hi Experts,
    While loading master data to  ZMAJORGU(MOU)(info object texts) from  datasource (ZOS_HRP1000)datasource iam getting error in DTP.
    below is the error...
    Diagnosis
        Data record 349 & with the key 'Ship &' is invalid in value 'Ship &' of
        the attribute/characteristic ZMAJORGU &.
    System Response
        The system has recognized that the value mentioned above is invalid, and
        has processed this general error message. A subsequent message may give
        you more information on the error. This message refers to the same
        value, even though it does not state this explicitly.
    Procedure
        If this message appears during a data load, maintain the attribute in
        the PSA maintenance screens. If this message appears in the master data
        maintenance screens, leave the transaction and call it again. This
        allows you to maintain your master data.
    Please find the below screen shots
    I have done the following regarding the issue ....Looking at the error i have gone trough the transformation and i didnt find any routines or formuales
    I have checked the PSA and down loaded the data to spread sheet and put a filter on SHORT and STEXT assuming i will find the value
    'Ship &' as mentioned in the Diagnosis description. However i was not able to find the relavent data(i went to se16 gave teh request ID from PSA and displayed the entire data)tarting with Ship .The closest  value i could find in both the fileds was was AVP Shipment .
    I have the following questions
    1)In the screen short 2 it says record number 349 is it right to go to PSA table and check against the record number 349(i tried that but i was not able to find the error against that record)
    2)why am i not finding the value 'Ship' in PSA ...but this is the value wich is creating a poblem in updating to the target ....does it mean the record value is Ship or it starts with Ship or is ir part of some word?
    Please find the attached PSA data file (u have to convert it to Excel)
    I request people to help me analyse the issue and fix the issue.
    Regards
    Kiran

    Ram
    I checked other records as well they were a lot of smallcharecters upper case charectres ,numeric special charecters .but nothing stopped ...when the system is even accpeting all other charectres  like smallof caps or numeric... why on this record is creating an issue...
    please have a look at error stack
    and i have one more question when i look at PSA there are close to 300000 records
    but when i do an SE16 with request id i see only close to one lakh records (i came to conclusion b dragging down and the last record number was (below screen shot)
    Can you tell me what my mistake is numebr or records are not tallying in SE16 and PSA..

  • Lock NOT set for: Loading master data attributes error

    Hi experts,
    We were encountering this error before when trying to load master data.  When we checked the system we could not find any locks at the time, and activation or kicking off the attribute change run failed again.  We finally solved the problem running FM RSDDS_AGGR_MOD_CLOSE which sets the close flag to 'X' in table RSDDAGGRMODSTATE.  I have read that it is possible this lock error happens when two change runs happen at the same time.
    My question are:
    1. is it possible to find out what process exactly "caused" the lock? the table RSDDAGGRMODSTATE does not have a reference to any object or job. I am curious as we are trying to find ways to avoid this in the future...
    2. in our case, when we could not find any locks, is running this fm the only work around? is this a best practice?
    mark
    Message was edited by:
            Mark Siongco
    Message was edited by:
            Mark Siongco

    Hello Catherine
    I have had this problem in the past (3.0B) --> the reason is that our system was too slow and could not crunch the data fast enough, therefore packets where loacking each other.
    The fix: load the data into the PSA only, and then send it in background from the PSA to the info object. By doing this, only a background process will run, therefore locks cannot happen.
    Fix#2: by a faster server (by faster, I mean more CPU power)
    Now, maybe you have another issue with NW2004s, this was only my 2 cents quick thought
    Good luck!
    Ioan

  • Where to set lock while loading master data attributes

    Hello Experts,
    I have two different datasources from ECC which loads into 0CUST_SALES attributes. I'm using two different DTP & transformation which are loading data in the this infoobject attributes.
    When i try to load data, the DTP fails with an error message at "Updating attributes for InfoObject 0CUST_SALES Processing Terminated" & the job log says: "Lock NOT set for: Loading master data attributes".
    Here what exactly  LOCK means?
    Thanks in advance.
    Zakir Khan.

    Hi,
    The lock means that some program is updating the master data (a table) and at the same time other program can not update that same master data. When the first program completes the updation it will release the lock so that the other program can update this.
    In your case you and schedule the DTP one after another.
    Thanks

  • Error while loading master data attribute

    Hi Guru's
    I am getting below mention error while loading master  data attribute.
    0MANU_MATNR : Data record 1035 ('000000000000229058 '): Version 'BDM755s ' is not valid
    Please sugggest how to resolve ?
    Regards
    Karan

    Hi,
    I think there is problem with "0MANU_MATNR" Data, check the records 1033 to 1036 and find the differnce between 1035 record and other records, some values is giving problem so by looking at other reocrds i.e 1033,1034,1036. Check in PSA in Monitor. 
    Note: If any problem with Upper/Lowe case then use TOUPPER in Transfer Rules
    If need use Conversion exits in transfer rules.
    ALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT         = 0MANU_MATNR
    IMPORTING
       OUTPUT        =   Result .
    or
    ALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT         = 0MANU_MATNR
    IMPORTING
       OUTPUT        =   Result .
    Thanks
    Reddy
    Edited by: Surendra Reddy on Mar 3, 2009 11:46 AM

  • DTP error: Lock NOT set for: Loading master data attributes

    Hi,
    I have a custom datasource from ECC which loads into 0CUST_SALES.  I'm using DTP & transformation which has worked for loading data in the past for this infoobject.  The infopackage loads with a green status but when i try to load data, the DTP fails with an error message at "Updating attributes for InfoObject 0CUST_SALES Processing Terminated" & the job log says: "Lock NOT set for: Loading master data attributes".  I've tried reactivating everything but it didn't help. Does anyone know what this error means? We're on SP7.   Thanks in advance!

    Hello Catherine
    I have had this problem in the past (3.0B) --> the reason is that our system was too slow and could not crunch the data fast enough, therefore packets where loacking each other.
    The fix: load the data into the PSA only, and then send it in background from the PSA to the info object. By doing this, only a background process will run, therefore locks cannot happen.
    Fix#2: by a faster server (by faster, I mean more CPU power)
    Now, maybe you have another issue with NW2004s, this was only my 2 cents quick thought
    Good luck!
    Ioan

  • Loading master data for characteristic having compounded characteristic

    Hey guyzz
    I am getting an error when i am trying to load master data for a custom characterisrtic ZQUALGRP (Quality Group) which has a compounded characteristic 0PLANT.
    The data in the excel file used for loading looks like:
    Plant | Quality Group | Description
    1601 | BlendA | Willow Lake Underground | Blend A
    1610 | BlendA | Riola Complex - Riola Portal | Blend A
    1611 | BlendA Riola Complex - VG Portal | Blend A
    I have defined transformations for Master Data Text Load and all these three fields are mapped in the transformation. There are no attributes for this characteristic.
    I get the following error in the Data Transfer Process Monitor
    ZQUALGRP: Data Record 1 ('1601BlendA E'): Version '1601BlendA' is not valid.
    ZQUALGRP: Data Record 2 ('1610BlendA E'): Version '1610BlendA' is not valid.
    ZQUALGRP: Data Record 3 ('1611BlendA E'): Version '1611BlendA' is not valid.
    The transformation for some apparent reason is concatenating the plant and quality grp together.
    Can you please comment why i am getting this error.
    Please note I DELETED AND RECREATED DATA SOURCE AND TRANSFORMATION, STILL I GET THE SAME ERROR.
    Thanks,
    Ameya Kulkarni

    A change..
    The data in the file looks like this
    Plant | QGrp   | Description
    1601 | BlendA | Willow Lake Underground Blend A
    1610 | BlendA | Riola Complex - Riola Portal Blend A
    1611 | BlendA | Riola Complex - VG Portal Blend A

  • Loading Master Data - Select the 'right' attributes

    Hello everybody,
    hopefully some expert can answer my question.
    I want to load Master Data for the InfoObject 0CRM_PROD.
    When I look at the tree beneath the 0CRM_PROD attributes following DataSources are listed:
    - 0CRM_PRODUCT_ATTR
    - 0CRM_PROD_ATTR (obsolete)
    - 0CRM_PR_MAT_ATTR
    - 0CRM_PR_REST_IN_ATTR
    - 0CRM_TR_CONTROL_ATTR
    - 0PRODUCT_ATTR (obsolete)
    - 0PRODUCT_GENERAL_ATTR
    - 0PRODUCT_STATUS_ATTR
    - 0PR_BASE_UNIT_ATTR
    - 0PR_COMMERCIAL_ATTR
    - 0PR_IL_PROREF_ATTR
    - 0PR_PROD_VAR_ATTR
    - 0PR_PURCHASE_CATEG_ATTR
    - 0PR_SALES_CATEG_ATTR
    Now my question is which attributes for 0CRM_PROD do I have to load?
    Are any of them mandatory or basic attributes?
    And how do the attributes 0CRM_PRODUCT_ATTR and 0PRODUCT_ATTR differ from each other?
    Thanks in advance!
    Chris

    Hello,
    The BW DataSources used in CRM 4.0 for the SAP product are replaced with new DataSources.
    Please see the Note 673053 - SAP product: New DataSources in PI_BASIS 2004_1_640
    Just for Reference
    [Integration of SAP Products in SAP BW|http://help.sap.com/saphelp_nw04/helpdata/en/f8/580f40763f1e07e10000000a1550b0/content.htm]
    Thanks
    Chandran

  • C# load xml data with attributes to datagridview; update data and save back to the xml

    Hi guys,
    i currently have this XML as data
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    I load the data with the code below:
    i use xDocument to load the DealData.xml and then put it in ToString.
    //outside of the form
    public static class XElementExtensions
    public static DataTable ToDataTable(this XElement element)
    DataSet ds = new DataSet();
    string rawXml = element.ToString();
    ds.ReadXml(new StringReader(rawXml));
    return ds.Tables[0];
    public static DataTable ToDataTable(this IEnumerable<XElement> elements)
    return ToDataTable(new XElement("Root", elements));
    //in the form
    private void button2_Click(object sender, EventArgs e)
    var xDocument = XDocument.Load("DealData.xml");
    string txtxml = xDocument.ToString();
    StringReader reader = new StringReader(txtxml);
    XDocument doc1 = XDocument.Load(reader);
    var res = doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION");
    dataGridView1.DataSource = res.ToDataTable();
    Now my question is:
    I would like to update the data from the DataGridview with the Attribute("ID").Value == "22" and save the data back to the XML.
    For example, after I load my data on the datagridview, we only pickup anything that is in the node
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    I updated the datagridview below with DEMANDE = 9000 CODE = 66 PRICE = 24.77 AND ALLOCATION = 1200
    I want be able to extract the data back in the xml as a child of the DEAL ID = "22"
    So that the XML file looks like this 
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    <ALLOCATION DEMANDE="9000" CODE="66" PRICE="24.77">1200</ALLOCATION> <-! this is the new line !->
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    Is there a way to achieve that?
    I have been searching and reading in the books but i cannot find a solution for this.
    Thank you
    Please do not forget to click “Vote as Helpful” if the reply helps/directs you toward your solution and or "Mark as Answer" if it solves your question. This will help to contribute to the forum.

    I would think of something like the below, the id is passed as static you need to change this
    protected virtual void button1_Click(object sender, EventArgs e)
    //Get DataTable from DGV datasource
    DataTable dt = new DataTable();
    dt = (DataTable)dataGridView1.DataSource;
    string file1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><DEALS><DEAL ID=\"22\" ISBN=\"0-7888-1623-3\" Screenplay=\"Mary Kaplan\" Title =\"Mr Gentleman\" Director = \"Jonathan Jones\"><ALLOCATION DEMANDE=\"5000\" CODE=\"72\" PRICE=\"25.00\">2500</ALLOCATION><ALLOCATION DEMANDE=\"7000\" CODE=\"75\" PRICE=\"35.00\">4000</ALLOCATION></DEAL><DEAL ID=\"23\" ISBN=\"1-7988-1623-3\" Screenplay=\"Joe Doe\" Title =\"Nothing Much\" Director = \"Listentome\"><ALLOCATION DEMANDE=\"3300\" CODE=\"72\" PRICE=\"15.00\">2500</ALLOCATION></DEAL></DEALS>";
    StringReader reader = new StringReader(file1);
    XDocument doc1 = XDocument.Load(reader);
    //Remove all elements related to the id being populated into the Grid
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION").Remove();
    //loop through datatable and create new xelement to be added to the xdocument
    foreach (DataRow dr in dt.Rows)
    XElement xe = new XElement("ALLOCATION",
    new XAttribute("DEMANDE", dr[0].ToString()),
    new XAttribute("CODE", dr[1].ToString()),
    new XAttribute("PRICE", dr[2].ToString()));
    xe.Value = dr[3].ToString();
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").FirstOrDefault().Add(xe);
    Fouad Roumieh

  • Is it possible to make a delta load for a Master data with Standard DS

    I have a full load bringing huge data for master data with standard datasource.
    I want to run a delta due to huge no. of records but when I create a new Infopackage it dont give a option for delta update.
    Are delta loads specific to only standard or customized DS's or any other reason behind that ?

    I kind of understand what you are asking about, but I am unclear as to how it pertains to our BO SDK.
    You are wanting to find the differences between a large dataset and another large dataset.
    I am not sure what an Infopackage is.
    Are you using the BO Enterprise SDK or some other product?
    Jason

  • Loading master data attributes

    Hi.
    When I am loading master data attributes, DTP process takes long time (approximately 30 minute) .
    Although records count is just 193.
    What may be a reason of this?
    Information about system:
    Software component   Release    Level
    SAP_ABA                      700          0023  
    SAP_BASIS                   700          0023  
    SAP_BW                        700          0025

    Hi...
    Check the Package size in the DTP......try to increase or decrease it.....if it makes any differerence......
    Secondly....in the DTP in the tab "Update" select the option " Valid records update, No reporting"....then the "Semantic Groups" in the tab " Extraction" will work.....it will improve the performance....
    Regards,
    Debjani........

Maybe you are looking for