How to only update existing records when loading master data ?

Hello experts, I need your lights one more time.
Here is my need :
I have created an infoobject (IO) which is a very simple version of 0material, let's call it Znewmat --> Znewmat has material type and trademark as attributes, those two fields are available in 2 different datasources :
- 0MATERIAL_ATTR for material type (field MTART)
- 0MAT_SALES_ATTR for trademark (field MVGR2)
When loading my new IO from 0MATERIAL_ATTR I use a filter (at DTP level) to get only a few material types (I get something like 1000 records),
here is my issue : when I load from 0MAT_SALES_ATTR the field "material type" is not available to keep the same filter as for 0MATERIAL_ATTR and existing records are updated with the trademark, but I also get 5000 records I don't need, and my master data is "polluated" with useless lines.
*and my question : is there a way while performing the second loading to ONLY UPDATE EXISTING RECORDS AND NOT ADD ANY
NEW RECORDS ? (i didn't find anything in main options of my DTP)*
(I'd like to avoid the solution to update the 0MAT_SALES_ATTR datasource to add the missing field)
Thanks in advance for any help, points will be distributed.
Guillaume P.
Still no idea ?

in the start routine of transformation from 0MAT_SALES_ATTR to znewmat do the following:
select materials from /BIC/PZNEWMAT into i_mat
for all entries in source_package where material eq source_package-material.
loop at source_package.
p_ind = sy-tabix.
read table i_mat with key material = source_package-material.
if sy-subrc ne 0.
delete i_mat index p_ind.
endif.
this way you'll only update records that have previously been loaded by 0MATERIAL_ATTR DS
loading sequence:
first load ZNEWMAT from 0MATERIAL_ATTR. then activate ZNEWMAT. then load 0MAT_SALES_ATTR to ZNEWMAT.
M.

Similar Messages

  • Duplication of records while loading Master Data.

    Hi All,
             I am facing problem while loading master data from 0BPARTNER_ATTR. The infopackage is getting failed showing message "44 duplicate record found. 32 recordings used in table 44 duplicate record found. 32 recordings used in table /BI0/XBPARTNER"
    we can rectify manually but daily the loading is getting failed showing the same message. So Cvan anybody suggest me how to rectify this problem permanently. And Can you  Explain me why the error is?
    If i go to PSA and check i can find only one dulplicate record. I am not able to understand the Error Message.
    With Regards,
    Thilak
    Edited by: thilak. neelam on Mar 10, 2009 1:46 PM
    Edited by: thilak. neelam on Mar 10, 2009 1:47 PM

    Hi,
    there was (is?) a recent problem in the SAP BI 7.0 software, so that duplicates were removed during init load, but not during delta load. Although the DTP could not set currently (also an error that has already a SAP note). We added a manual removal using ABAP code to avoid upgrading to a new SAP version. That helped. The duplicates may also result from two full request that are loaded at the same time.
    Hope this help to analyse the problem in details.
    Regards
    Thomas

  • How to avoid 'duplicate data record' error message when loading master data

    Dear Experts
    We have a custom extractor on table CSKS called ZCOSTCENTER_ATTR. The settings of this datasource are the same as the settings of 0COSTCENTER_ATTR. The problem is that when loading to BW it seems that validity (DATEFROM and DATETO) is not taken into account. If there is a cost center with several entries having different validity, I get this duplicate data record error. There is no error when loading 0COSTCENTER_ATTR.
    Enhancing 0COSTCENTER_ATTR to have one datasource instead of two is not an option.
    I know that you can set ignore duplicates in the infopackage, but that is not a nice solution. 0COSTCENTER_ATTR can run without this!
    Is there a trick you know to tell the system that the date fields are also part of the key??
    Thank you for your help
    Peter

    Alessandro - ZCOSTCENTER_ATTR is loading 0COSTCENTER, just like 0COSTCENTER_ATTR.
    Siggi - I don't have the error message described in the note.
    "There are duplicates of the data record 2 & with the key 'NO010000122077 &' for characteristic 0COSTCENTER &."
    In PSA the records are marked red with the same message (MSG no 191).
    As you see the key does not contain the date when the record is valid. How do I add it? How is it working for 0COSTCENTER_ATTR with the same records? Is it done on the R/3 or on the BW side?
    Thanks
    Peter

  • Incorrect records When load Transaction Data

    Hi experts:
    I just loaded transactional Data. Data first came from a CSV file to PSA, then from PSA to DSO, Last DSO to Cube.
    Data in PSA looks correct. After data got loaded to DSO, I found so many Item Numbers are not in PSA. I deleted all the old requests in PSA, and only have one request now. I don't know what are those old Item Numbers come from. It gets loaded everytime. Anyone knows?
    Thanks!

    In that case you must be having some update routine that is increasing number of records in DSO. Can you please paste here number of records transferred and added from DSO Manage for the data load request you are talking about. Also let me know what do you mean by -  I found so many Item Numbers are not in PSA
    Regards
    Pradip

  • Langauage issue -when loading master data text

    I have a customer master data attribute and text .
    This is master data is customized one. With in function module based on sy-langu it will extract the English,German,French.... customer data
    R/3 side -Rsa3 transaction when i logon each logon language it is extracting the correct information with text values based on the logon language.
    When I am loading the data for each language it is not loading.It is updating only the english.
    I logged on as french ,German  loaded data  attribute and text also. Still it is not updating in the master data text values with french ,german.
    Infopackage selection also I set DE and  French.
    Master data Infoobject - Text language dependent is marked also.
    Advance thanks

    Hello smartone,
    I'm facing the same problem right now (only getting EN). So maybe we can share some experience.
    On help.sap.com I found the following link:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a659be07211d2acb80000e829fbfe/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a659be07211d2acb80000e829fbfe/frameset.htm</a>
    Almost at the bottom of the page there is the description about the language vector. The settings made in this vector control the extracted languages. As a standard all installed languages in the system are marked here.
    In the following link describes how to change the settings.
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/1e6df8bf2a11d2b437006094b9ea64/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/1e6df8bf2a11d2b437006094b9ea64/frameset.htm</a>
    But to be honest, I do not know how to get to the parameters. Otherwise I would have tried to check/change them. Does anyone have an idea?
    Regards,
    Martin

  • DTP Error when loading Master data from DSO to InfoProvider

    Hi Experts,
        My DTP is failing when I am running a DELTA load from DSO to the InfoProvider. The errors are either duplicate records or overlap of Dates etc.
    Thanks,
    SB.

    Hi Gopal,
       Here is the info on error message.
    " There are duplicates of the data record 1 & with the key '00000000038 &' for characteristic EPROPERTY &. "
    Hope this helps in understand the DTP error.
    Thanks,
    SB.

  • Program to update info record with material master data

    I am trying to determine if there is a standard SAP program that can be run as a batch file  to update the fields in the info record with the same fields that are in the material master?  ie:  Planned delivery time, Tolerance, purchasing group etc.

    Hi,
    There is no standard report or transaction that can do this.
    The data from these fields in the material master is brought in as a default to the info record when it is created. beyond this point the Info record is treated as being the correct data regardless of what happens to the material master data and so no updates occur in the standard system.
    It would not be difficult to build an LSMW job to copy the data from the material master to the info records and this would be the recommendation if you want to do this.
    Steve B

  • Processing overdue error when loading master data

    Hello,
    While loading data for master data infoobject, i'm getting peculiar error like processing overdue. what might be the problem.
    Please respond as soon as possible it is very urgent.
    REGARDS,
    SRINIVAS OLETI

    hi,
    is this your first upload ? the rfc connection to source system is established well ?
    try to check in monitoring
    - tab 'status', click step by step analysis, what's the status of 'RFC to source system success ?' grey ?
    - transaction st22 and sm21, any message ?
    - check menu 'environment' - shortdump - in datawarehouse, check for source system also, then transaction rfc, ale management, system log ...

  • Error: Object Name cannot be Empty, when loading Master Data

    Hi all,
                  We are loading mater data for one of the InfoObject, which is failing at Processing Step. Data is loaded properly till PSA. There is short dump error giving MESSAGE_TYPE_X error. On analyzing Job Log, We found the error like, "OBJECT NAME CANNOT BE EMPTY".
                  We checked InfoObject and found that, One of its attribute is inactive. Can it be the cause of error? Please Reply soon.
    Thanks,
    Harpal

    It must be the cause of error. Please activate all inactive attributes and load the data again.
    Regards
    Pankaj

  • Dump when loading Master data(Attributes). using DTP

    Hello....  I am loading activity network.
    and getting a dump.
    "MESSAGE_TYPE_X" " "
    "CL_RSDMD_UPDATE_MASTER_DATA===CP"  or "CL_RSDMD_UPDATE_MASTER_DATA===CM00R"
    "_CHECK_DATA_PACKET"
    check for oss couldn't find any solution  I am in (BI 7.0 - 2004s) support pack SAPKW70015. If anyone of you has come accross this please let me know how you solved the issue.
    thank you.

    Hi Gopal,
       Here is the info on error message.
    " There are duplicates of the data record 1 & with the key '00000000038 &' for characteristic EPROPERTY &. "
    Hope this helps in understand the DTP error.
    Thanks,
    SB.

  • Infopackage dump when load master data 0BPARTNER from CRM client.

    Dear Experts,
    Here is the error message:
    Runtime Errors         SYNTAX_ERROR
    Date and Time          2010.08.20 14:39:25
    Short text
         Syntax error in program "SAPLBD33 ".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "SAPLBD11" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         The following syntax error occurred in program "SAPLBD33 " in include "LBD33
          " in
         line 20:
         "Type "IDOC_DATA_CRYPTION" is unknown"
         The include has been created and last changed by:
         Created by: "SAP "
         Last changed by: "SAP "
         Error in the ABAP Application Program
         The current ABAP program "SAPLBD11" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
    Please kindly give some sugession about this error, thank you!
    Andy Hu

    Hi Andy,
              Please try and reduce the size of datapackage in the infopackage screeen, save the changes to the infopackage and try and execute the load.  As far as I understand the settings for datapackage would be somewhere between 10,000 (or) 20,000 records per data package.  Try and make it 5000 and execute the load.  Even if that doesn't work try and make it 1000 and run the load.  I hope U r executing 0BPARTNER attribute data load.  So, it shouldn't create big problem.  Please try to reduce the package size and try Ur luck.  Hope this will solve Ur problem.
    Regards,
    Syed

  • Error in BI when loading Master Data

    Hi All,
    I searched solution for this error in previous thread to find solution for the below error
    Messages for data records saved; request is red acc. to configuration.
    But I couldn't find out ..
    What is this error all about ..Why was this coming???
    What is the solution for this..
    Thanks
    Bharath

    Hi ,
    Error :
    Messages for data records saved; request is red acc. to configuration.
    Thanks
    Bharath

  • Loading master data via process chain

    hi experts,
    I have to load data in infoObject via process chain, my infopackage has update mode as full update. Now my question is do I have to delete the previously added data from infoObject and then run this full update infopackage in process chain or system will only fetch the newly added records from source.
    regards,
    ray

    You can not delete the data from master data once the transcational data is posted against the master data value. Attribute value can be deleted, but you can not delete the value of the main characteristics from master data table.
    Moreover, you dont need to delete the data when loading master data. Master data always overwritten with the new reocrds.
    As described, first load the full load and then on daily basis you can load the delta.
    DO NOT FOGET TO SCHEDULE ATTRIBUTE CHANGE RUN to activate the newly loaded data into master data.
    Make sure that your master data is not enhanced, otherwise any change in the enhanced field will not generate delta record. If this is the case, then load in full mode everyday.
    - Danny

  • Order of loading Master Data - Fact or Fiction

    I understand that for loading Master Data for InfoCube 0FIAA_C01 (or any other) you should load starting from the lowest level.
    That means for every characteristic in the cube you have to check and see if any of the InfoObjects have Master Data attributes, and if any of those attributes have attributes, and so on. This quickly becomes a multi-level structure.
    Part of the tree structure for 0FIAA_C01 would look like:
    0FIAA_C01                                     
    ..........0COMP_CODE                              
    ....................0CHRT_ACCTS                           
    ....................0C_CTR_AREA                             
    ..........0ASSET_AFAB                                
    ..........0ASSET                              
    ....................0ACTTYPE                        
    ....................0BUS_AREA 
    <snip>
    So does that mean that 0bus_area should be loaded first before 0asset?
    Is this fact or fiction?
    If its a fact I am wondering what tools SAP has for determining the order of loading Master Data.
    Discussion points and tools for facts awarded!
    Mike
    Edited by: Michael Hill on Feb 12, 2008 4:52 PM

    Hi,
    My master data loads are largely in the area of HR.
    The only order I follow while loading master data is for a particular infoobject with regard to text, attributes and hierarchy - The order being text>>attributes >>hirerachy.  Frankly, I have not checked doing it otherwise.
    Across different master data infoobjects I see no need to have any order atleast in HR.  Generally speaking a master data object has data that has an independant existence as extracted from R/3 or other sources and not derived from any other master data object in BW.
    Master data as its name implies should not have referential integrity checks with other master data. 
    It would be good to know if someone has real experience to the contrary.
    Mathew.

  • (Administration - Marketing - Import), you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in

    Administration - Marketing -> Import, you can set a parameter value "Import mode" for what to do in case of duplication as "update existing records", "Import new records". The final report of this import is presented as a text file that can be viewed in Business Administration - Marketing -> Import -> Exceptions. Whatever the exception, including duplication import occurs during import and recorded in a text file.   What are the fields that determine the duplicity? How I can I can change those?

    You will be returned anything that is in the option's value parameter. What is displayed in the dropdown and what is put in the value attribute do NOT need to be the same, so maybe you should start there.

Maybe you are looking for

  • How can I insert a particular widget that isn't in iweb to put on my website

    I would like to insert a widget that is not part of the iweb program into my website. What are the steps necessary

  • Shortdump while calling UNIX command

    Hi all, I have a problem while trying to remove a file in UNIX platform in ABAP program. It is working fine in the development and quality server, but not in production server. Based on the debug result, the shortdump was thrown while executing "CALL

  • What are the steps for moving FPGA to new target

    I thought I asked this question once but can't find it. So if this is a repeat I apologize. I have a PXI-7831r project that works. I need to cake a copy that runs on a PXI-7851r on another machine. What are the steps that I need to take and potential

  • Lost letters in created PDF

    I have just created a manual from word and inserted quite a few documents throughout then added a number of links. When I look back through to check something I notice that letters like F, Q, M are missing from words and the decimal point between num

  • JDeveloper, export/import of UML diagrams

    Hi All, We (Oracle Poland) are looking for a tool/extension enabling import of UML diagrams (activity, use-case) into JDeveloper. We are particularly interested in exchanging information between JDeveloper and Sybase PowerDesigner. I appreciate very