Master Data row delete problem

Hi.
I have an UDO(master data with details) form, I use code below to remove single detail line and to keep row numbering correct, for which UserDatasource is used, "row" is a currently selected matrix row number.
form.DataSources.DBDataSources.Item("@MYDETAILS").RemoveRecord(row - 1);
for (int i = row - 1; i < form.DataSources.DBDataSources.Item("@MYDETAILS").Size; i++)
         form.DataSources.UserDataSources.Item("udsRowNo").Value = (i + 1).ToString();
         form.DataSources.DBDataSources.Item("@MYDETAILS").Offset = i;
         matrix.SetLineData(i + 1);
matrix.DeleteRow(matrix.RowCount);
if (form.Mode == BoFormMode.fm_OK_MODE) form.Mode = BoFormMode.fm_UPDATE_MODE;
This code work fine, but when datasource(so matrix too) contains just one line and after RemoveRecord(row-1) form.DataSources.DBDataSources.Item("@MYDETAILS").Size returns 0, after forms Update (Update button click)  form.DataSources.DBDataSources.Item("@MYDETAILS").Size again returns 1.
Can anybody help me?
Thanks.
Edited by: Rui Pereira on Dec 23, 2008 11:23 AM

hi
try this code
oDBDataSource.Clear();
                        oMatrix.DeleteRow(i);
                        oMatrix.FlushToDataSource();
may be it helps you
rajesh saini

Similar Messages

  • Error in DTP (The master data is deleted in the Background)

    Hi,
    while loading the data  to Data target (0chrt_acct_attr) through DTP...... I got the Error "  The master data is deleted in the Background". Plz advice me it is an urgent issue.

    Does the log in SLG1 say any more details?
    Use RSDMD as Object & MD_DEL as Sub Obj. Leave the other field to *.
    Is it happening for 1 specific object or for all? What type of data (attr or text)?

  • Difference between master, documents, document lines, master data row

    Hi,
    Can some please explain the difference between master, documents, document lines, master data row?
    What is the best optimize development technique in terms of architecture and programming?
    When to use it effectively?
    Thanks

    Hi Juan,
    Are you referring to the settings for a user-defined table? If so, these settings are for use with UDOs (User-defined objects). UDOs cannot currently be manipulated by the DI API so setting a user-defined table to anything other than 'No Object' will restrict how you can access this data.
    UDOs are really only for user data entry at this time (ie you must use the UI to enter data).
    Kind Regards,
    Owen

  • E-Recruiting Master Data physically deleted in ECC but how to delete in BI

    Hello,
      I'm sure this problem has been encountered by others and I'm wondering what to do about it. E-Recruiting is mostly made up of master data. The InfoSets are built on master data. The issue I'm having is that a requisition can be physically deleted in the ECC 6.0 system but it remains in BI 7.0 never knowing that is has been deleted. This poses a problem for reporting. We may be reporting on things that have been deleted in the source system. I am considering totally deleting all of the data prior to the load daily. The business content loads are all full loads. There is a step available for the process chain for deleting DSO and InfoCube data but not master data. What has anyone else done about this?
    Thanks for any insight,
    Diane Merrill

    An alternaitve approach to deleting master data:
    - Add a navigational attribute to the requisition master data 'deleted' value Yes(x) / No (blank)
    - Before loading master data from e-recruitment set 'delete' to true (x) for all records
    (to do this create an export datasource from requisitions and feed this back to update requistions)
    - Load data from e-recruitment and for every record loaded mark the deleted attribute to false (blank)
    After this has been carried out all requisitions still in e-recruitment will have a value blank for the 'deleted' attribute and all requisitions no longer present in e-recruitment are marked with an 'X'.  You can then exclude with a query restriction deleted requisitions.

  • Master Data Selective Deletion

    Hi,
    Is it possible to delete master data selectively?
    SE14 or DB02 can be of help?
    Regards

    Hi,
    Please have a look at the below points:.
    1.You can only delete the master data record if there is no transaction data exist
    for the master data that you need to delete . otherwise you wont be able
    to delete the master data.
    2.While loading we load the master data first followed by transactional data,
    but deletion is opposite ie first transactional data and then master data.
    3.You need to find it out where it is used by just go to info object and
    where used list it will give you all the detail about that info object.
    4.When you manually go to info object right click and delete it will ask fro two
    thing one is with Sid or without Sid,i think delete with "with Sid",
    while doing this you will get some message that some of the master data is
    not deleted. Then just ignore this warning as this is due to still some transactional data exist.
    5.You need to again find it out So,then goto tcode SLG1-- enter Object: RSDMD and
    Subobject: MD_DEL and User: ur userID and F8 and go to next screen  expand it and
    double click  it will give information about what all objects using the
    Sid of master data.
    6.After getting the list of object you need to delete the corresponding
    particular data from the various objects.
    7.Use Tcode RSRV -> Tests in Transaction RSRV -> All Elementary Tests -> Transaction Data -> Entries Not Used in the dimension of an InfoCube (Dbl Click)From the right side window, expand u201CEntries Not Used in the Dimension of an InfoCubeu201D Node &Enter InfoCube (like 0SD_C01), click u201CTransfer Now, click u201CExecuteu201D (Toolbar)u2026 and the results displayed in the right side window..Now, click u201CCorrect erroru201D (Toolbar)
    Hope this is helpful.
    Also give it a try like go to maintainace of master data and select the row that you want
    to delete and in the above select the delete button and save it.
    Thanks,
    Saveen kumar

  • Master data text deletion-urgent pls

    Hello
    Is there any other way to delete the master data text from the text table other than deleting from SE11 or SE16?
    the delete option is greyed out in SE16 and SE11.
    Is there any other way to delete the entries without affecting other objects?
    Regards
    Sri
    Points will be assigned

    Hello
    I have no authorization to SE14,SE16,SE11.
    This is the problem i face.
    Also as lakshman said when i delete the entry or record from
    Master data text it asks how to delete with or with out sids.
    Iam afraiding to delete because of data volume of transaction data.
    Suggestins please.
    Thanks for the helps

  • Master Data Delta Extraction Problem

    Hi,
    I have this problem. When loading delta data from 0BPARTNER_ATTR infosource, BW informs me "Short dump in the Warehouse". When I go looking for it, there is none. Once I got to the infopackage->scheduler, the system reports "Request the repeat?", and I go "Continue", but the data load never begins. Does anybody knows what it's wrong?.
    I'v been doing some work-arround: start a new init load, but this is good for two or thre days (delta loads), and then the delta stops working.
    any ideas where to look for the problem?
    thanks for the help.
    Mauiricio

    Hi Mauricio,
    maybe it depends by the number of records in delta quque. If you have a daily lot of changes in a Master Data the system is no more able to extract the data in tables for change pointers. Also maybe that you have to cancel entries on the tables of changed data.
    Check the quantity of delta records for every day, and then check also if it is possible to update this master data frequently.
    Ciao.
    Riccardo.

  • ARCHIVING MASTER DATA or DELETE

    Hellow Masters,
    I need to do "archive" or "delete" of some Master data already marked for deletion, how i do it... A friend say something about tcode "Sara", this the right path, somebody know ?
    Thank's once more,

    Hello there,
    It depends on whether you simply want these objects to be locked and not used or whether you want to achieve an actual archiving of this data. If you are ok with the first option, go to processing the rental object (RECN, REBDRO, REBDBE, REBDPR, etc.) and then from menu Edit - Change Status - Archive - Set Deletion Flag. Thus, these objects will have DLFL status set.
    If you want to archive the objects, refer to the steps described in the following link:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/fb/1cb1897a90e54a8a2e075781aff4c5/content.htm
    Hope this helps!
    KR,
    Severina

  • Master Data Text Load Problem

    Hi Guys,
    This is the first time we are loading master data  Text in the production for a infoobject and its a full load.I had sucessfully loaded the  and it dint added any records but i can see so many transfer records.When i went to infoobject  for my suprise i'm able to see the data.
    Can i know the reasons what happened in the back and what can i do if want to see the added records in the Manage tab.

    Hii
    Try to activate the master data or execute the Attribute Change Run.
    Also give the loading steps u r following
    Thanks
    Neha

  • Activating Master data time out problem

    Dear all,
    when i try to activate master data, it gives error message "time out" . in which tcode i can increase tha time out duration?
    Thanks

    Hi John,
    Please check the thread below:
    Activate time-dep. master data (0EMPLOYEE)
    This also  suggests to run the master data activation program in background, This will solve your issue,
    -Vikram

  • How to mapp in UDF column of MasterData  &  Master Data Rows  UDO add time?

    Hi   all ,
      I have one MasterData(A) & 3 MasterData Rows(B&C) table
        A (Code ,Name ,U_SKU,U_AName,U_AID)      Master table
        B(Code ,Name ,U_SKU,U_BName,U_BID)        Child table
        C(Code ,Name ,U_SKU,U_CName,U_CID)        Child table
       Now tables are automatic Mapped with  Code  UDO Creation time but i want  to mapping with U_SKU  column
       please help  how to mapp MasterData(A) and  3 MasterData Rows(B&C) table with UDF Column
    Thanks in Advance
        Surajit kundu

    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.

  • Data request deletion problem from remote system.

    Hi experts.
    Now i am facing one critical problem . The description is as following:
    we design the edw level in one phsical BW machine(A) which contains only dso infoprovider. This machine(A) works as datasource to provide data to another physical BW machine(B).
    The dso in A system is exported as datasource , Cubes in B system load data through this datasource .
    We first do the initialization with data contained on B system and then load delta data from A system. But if we want to delete some request in system A ,the system indicate this request can not be deleted unless the initialization in system B is deleted( this will lead to all the data missing in system B).
    Can anyone explain this mechanism to me , please help me suggesting some kind of methods to delete the request in system A without deleting the initialization information in system B.
    Thanks in advance.
    Waiting online for your kindly reply.

    1. Ask your Basis to look into it.
    2. try analyse your Baqckground Process in SM51.
    3. Is your Deletion Job started immediately or any Delay?
    4. If That cube or ODS has only this request which you are deleting, go with Context Menu Cube or ODS (by right click) --> Delete Contents.
    Delete Contents will improve performence compare to Request Deletion..
    If you have request more than this, you should not go for this.
    Nagesh Ganisetti.
    Assign points if it helps.

  • Problem with Master Data Load

    Dear Experts,
    If somebody can help me by the following case, please give me some solution. Iu2019m working in a project BI 7.0 were needed to delete master data for an InfoObject material. The way that I took for this was through tcode u201CS14u201D. After that, I have tried to load again the master data, but the process was broken and the load done to half data.
    This it is the error:
    Second attempt to write record 'YY99993' to /BIC/PYYYY00006 failed
    Message no. RSDMD218
    Diagnosis
    During the master data update, the master data tables are read to determine which records of the data package that was passed have to be inserted, updated, or modified. Some records are inserted in the master data table by a concurrently running request between reading the tables at the start of package processing and the actual record insertion at the end of package processing.
    The master data update tries to overwrite the records inserted by the concurrently running process, but the database record modification returns an unexpected error.
    Procedure
    u2022     Check if the values of the master data record with the key specified in this message are updated correctly.
    u2022     Run the RSRV master data test "Time Overlaps of Load Requests" and enter the current request to analyze which requests are running concurrently and may have affected the master data update process.
    u2022     Re-schedule the master data load process to avoid such situations in future.
    u2022     Read SAP note 668466 to get more information about master data update scheduling.
    Other hand, the SID table in the master data product is empty.
    Thanks for you well!
    Luis

    Dear Daya,
    Thank for your help, but I was applied your suggesting. I sent to OSS with the following details:
    We are on BI 7.0 (system ID DXX)
    While loading Master Data for infoobject XXXX00001 (main characteristic in our system u2013 like material) we are facing the following error:
    Yellow warning u201CSecond attempt to write record u20182.347.263u2019 to BIC/ XXXX00001 was successfulu201D
    We are loading the Master data from data source ZD_BW_XXXXXXX (from APO system) through the DTP ZD_BW_XXXXX / XXX130 -> XXXX00001
    The Master Data tables (S, P, X) are not updated properly.
    The following reparing actions have been taken so far:
    1.     Delete all related transactional and master data, by checking all relation (tcode SLG1 à RSDMD, MD_DEL)
    2.     Follow instructions from OSS 632931 (tcode RSRV)
    3.     Run report RSDMD_CHECKPRG_ALL from tcode SE38 (using both check and repair options).
    After deleting all data, the previous tests were ok, but once we load new master data, the same problem appears again, and the report RSDMD_CHECKPRG_ALL gives the following error.
    u201CCharacteristic XXXX00001: error fund during this test.u201D
    The RSRV check for u201CCompare sizes of P and X and/or Q and Y tables for characteristic XXXX00001u201D is shown below:
    Characteristic XXXX00001: Table /BIC/ PXXXX00001, /BIC/ XXXXX00001 are not consistent 351.196 derivation.
    It seems that our problem is described in OSS 1143433 (SP13), even if we already are in SP16.
    Could somebody please help us, and let us know how to solve the problem?
    Thank for all,
    Luis

  • Delete unused master data of a characteristic in BW7.30

    Hi
    I try to delete some master data entries in a characteristic.
    Unfortunately I got an error message:
    Lock of master data attributes deletion is set.
    Then BW 7.30 set an entry for the characteristic in the table RSMASD (Lock Table for Master Data Deletion) and I canu2019t delete the master data.
    I try to delete the master data via a job (maintain master data) and manually (select the wrong master data in the table -> delete and save the table), but I get the same error message above.
    I also delete all open lock entries in SM12 and try again, but wonu2019t solve the issue.
    Can someone explain me why BW 7.30 set the master data lock and how I can delete the unused master date of this characteristic?
    Best regards
    Tobias

    Anyone with a solution for this? We have the exact same problem.
    Can the record in RSMASD be deleted?
    I created a new InfoObject and inserted a new masterdata text record. Then I tried to delete it immediatly, and i got the same error. If the object is in RSMASD, it gives a shortdump in ST22. If there's no record in RSMASD, then it gives a error (Lock not set...)
    Category               ABAP Programming Error
    Runtime Errors         SAPSQL_KEYS_NOT_CONVERTIBLE
    ABAP Program           CL_RSDMDD_DELETE==============CP
    Application Component  BW-WHM-DBA
    Date and Time          31.07.2013 15:13:50
    Short text
         Inconvertible key at an Open SQL work area operation.
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "CL_RSDMDD_DELETE==============CP" had to be
          terminated because it has
         come across a statement that unfortunately cannot be executed.
    Error analysis
        In the Open SQL work area operation used, the work area in the key part
        must be convertible to a database table.
        For Unicode semantics this means the Unicode fragment views must
        correspond in length to the databse key.
        In non-Unicode systems, both structures must be flat for the length of
        the database key, with the exception of string components. This means
        that the key parts may not contain either references or internal tables.
        In this case the key of the database table has a width of 14 bytes.
    Thanks.

  • Master data access problem

    Hi All
    I  have a master data object  ..it is a z object where it has customer as the key and  the attributes are salesoffice, sales dist and sales group.
    I am using this master data object in one of my req where  in the transaction data i get only the customer and from there i am pulling the sales office,sales dist and sales group from this master data object using the option  READ MASTER DATA at the transformation level in the Rule details.
    The problem is that i am able to get the data for  all the customer's except  5 customers but when i get in to the master data and check the sales off, sales dist and region is maintained there, but still it is not picking only for those 5 customers and for rest of the customers it is working fine..
    so i thought i should be some master data problem and i deleted that master data using delete master data option with out sid's and reloaded it again and after that i reloaded the transaction data back..but still it is having the same problem but at the object level the data is there...
    Can any one suggest me as to wat would the problem can be?
    Please i appreciate your quick repaonses.
    Regards
    Shilpa

    Hi Shilpa
    May i suggest an alternate solution?
    Instead of reading values into your infoprovider using Read master data, you can enable the attributes as navigational attributes and include them in your infoprovider. You will be able to see them in reporting and also use filters or variables on the attributes too.
    You can also check if the attribute change run for the loaded master data is done before trying to run the report.
    I hope this helps.
    Thanks.

Maybe you are looking for

  • Firefox gets stuck after closing any window.

    I have this problem that firefox always gets stuck for at least like 20 seconds each time when I close another firefox window. I usually have several firefox windows open at the same time. When I close one of them, the rest of them get stuck for seco

  • Select query from 2 schema & database

    Hi, what privileges should i give to execute select query from 2 schema & database in oracle thanks

  • How do I stop iPad telling me I have no SIM card installed

    I only use wifi, but I'm continually told every few minutes I have no SIM card installed how can I stop this.

  • Laptop supporting Oracle 10g on RHEL 4 Update 2

    Hi, I am struggling to find a laptop supporting Oracle 10g on RHEL4 update 2. Though the Redhat HCL shows some laptops... those are all outdated. Now, I do find laptops supporting RHEL 5 workstation version. Is Oracle 10g supported on such desktop ve

  • File appearance changes once flattened

    Hi all, can someone please advise. I have a layered file, approx 10 layers with a couple of masked hue/sat and curve layers among them all. When I flatten the file, this also changes the appearance of the file itself. Is this normal please? I have as