Can't not update existing record filter value in java sdk.

Hi,
If there is existing record filter, such as " {table.a_field} = {?paramA}"
Then can't update it to other value. e.g " {table.a_field} = value_A"
The flow is
1. Update paramA value
2. Update record filter value
Java code
public void setRecordFilter(ReportClientDocument clientDoc, String filter)
     try
       IFilter iFilter = clientDoc.getDataDefController().getDataDefinition().getRecordFilter();
       iFilter.setFreeEditingText(filter);
       clientDoc.getDataDefController().getRecordFilterController().modify(iFilter);
     catch (ReportSDKException e)
         throw new Error("Couldn't set RecordFilter " + e.getMessage());
if exsiting filter is empty then "setRecordFilter" works.
Do you know why? and any idea to update reocord filter if the existing one like "{table.a_field} = {?paramA}"
Thanks
Forest

Hi,
In uploading of flat file , If you are able to capture the changes to the previously loaded records, Then you can follow the additve delta. So it decreases the time of uploading .Only changed or new records will be uploaded every time.
If you are not able capture the changes in flat file ,Every time you have to do full upload ,Before this delete the contents of Infocube. (Assuming there is no ODS B/W Infocube and Flat file).
With rgds,
Anil Kumar Sharma. P

Similar Messages

  • Question for delta loading, why can not update existing record in cube

    Hi, Gurus,
    I load data from a flat file into one infocube with delta loading option, and in the related datasource, i chose 'additive delta' option.
    However after delta initial and delta update, when I checked cube content, I found that there are 2 records with the same characteristic value (just like duplicated key), and my expectation is to sum key figure with the same characteristic. Who can help me on that?
    BTW: when I check delta queue, why there is not any queue?

    Hi,
    In uploading of flat file , If you are able to capture the changes to the previously loaded records, Then you can follow the additve delta. So it decreases the time of uploading .Only changed or new records will be uploaded every time.
    If you are not able capture the changes in flat file ,Every time you have to do full upload ,Before this delete the contents of Infocube. (Assuming there is no ODS B/W Infocube and Flat file).
    With rgds,
    Anil Kumar Sharma. P

  • BAPI_PO_CHANGE not updating existing condition type value.

    Hi,
    I am using 'BAPI_PO_CHANGE' to update the existing condition records.
              MOVE-CORRESPONDING wa_pocond_40 TO gt_pocond_40.
              gt_pocond_40-change_id = 'U'.
              gt_pocond_40-cond_value = '20'.
              gt_pocondx_40-itm_number = <fs_pocond_41_new>-itm_number.
              gt_pocondx_40-cond_st_no  = <fs_pocond_41_new>-cond_st_no.
              gt_pocondx_40-itm_numberx = 'X'.
              gt_pocondx_40-cond_st_nox = 'X'.
              gt_pocondx_40-cond_type = 'X'.
              gt_pocondx_40-cond_value = 'X'.
              gt_pocondx_40-currency = 'X'.
              gt_pocondx_40-change_id = 'X'.
              MODIFY gt_pocond_40 INDEX sy-tabix.
              APPEND gt_pocondx_40.
    I am using 'BAPI_TRANSACTION_COMMIT' also.
    Still, the condition value is not changing.
    what and where do u think is the problem?
    Kindly assist.
    Thanks.

    check the following link
    http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

  • (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.

  • 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.

  • Why can I not update my iPad first generation to the latest software?

    Why can I not update my iPad first generation to the latest software?

    Which version of iOS is supported is a decision made by each
    individual software developer. If there is an app that is not available
    in iOS 5, contact the developer to see if they can provide a version
    compatible with your iOS.
    Perhaps one of these links may help:
    iOSSearch - search the iTunes store for compatible apps.
    Vintapps 3.1.3 - paid app.
    Apple Club - filter apps by iOS version.

  • Contract value not updated in open order value of credit management

    My requirement is i have created the contract and activated the credit management by assigning credit  group to contract document type, In item category the credit is active and in pricing subtotal is also assigned .
    But when i create the contract , the open order value is not updated .
    i do not want the credit to be active at order level.
    Dear guru's
    please let me know where i am going wrong
    thanks in advance

    hi,
    open sales orders value not updating currectly in sales value of CM
    http://wiki.sdn.sap.com/wiki/display/ERPLO/CreditmangementIn+SD-FI
    i think you have to run a report which is under the link number 1.
    regards,
    balajia

  • Why can I not update apps on my I pad

    Why can I not update my apps on my I pad

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • I can't not update my flash player on safari. its showing a gray screen.

    I can't not update my flash player on safari. its showing a gray screen.
    what should I do.
    I've updated my operating system. restarted my computer and closed all web pages.

    Hi,
    Please try the offline installer posted at the bottom of the Installation problems | Flash Player | Mac in the 'Still having problems' section.
    Maria

  • Why can I not update my CS 6 programs to Mac OS X

    I am having problems with updating the latest Updates for my CS 6 programs *here PS and Ill. fx. And the notice says to contact costumer support, but only get a few Q's and A's.
    HOW do I get in direct contact (or chat/mail) with costumer service of ADOBE_

    Hej again Steve
    Ok sorry again
    But you seem to be quite into this field. (and I've unfortunately been
    'out' for a while). I used to be up to date, but now, it's all moving so
    fast, and if you're away for a few years then you're (screwed)
    I've been trying to get in touch with Adobe mostly for 1. update of my
    programs because I seem to have a lot of 'faults' in each (crashing, screen
    moving and such)
    BUT 2. also because I want to join CC and with the 40% off (as I have an
    original CS) but when I enter info, it will not accept my serial nr. NOW
    after your guidance I came across this site which shows that I am granted a
    ''free'' CC. Am I reading this right. _ ? I am no idiot, but yes, in the
    computer field _ I am a designer and a damn good one, but all the techichal
    (that is another language _ and heck, we all have our fields_ I go to a
    mechanic to get my car fixed, you?
    Just smiling
    Look forward to hear from you
    Athena
    2014-05-25 22:33 GMT+02:00 Athena Windelev <[email protected]>:
    Thank you Steve / at least it seems that I can get a ''chat'' going.
    A few years ago I could mail them but now not that and no phone (or rather
    when I call long distance I never get thru) what I most want is personal
    contact. Because even if they list 20 or something common Q and A's mine do
    not follow in on any of the categories. BUT thanks again for the link.
    Maybe you can help me with others ... Just a thought
    I\m trying to upgrade my PS, ID and Illustrator CS6 / and I know from
    previous Adobe guidance, one should not just take the latest. I seem to be
    successful with my ID (but yet to prove when I test it, which I haven't had
    time to yet) BUT my PS and Ill come up with this (see attached file).
    Hope you can help. Anyway, you have so far.
    Because you see - I have an original CS6 and want to upgrade to CC soon.
    AND they offer a 40% discount if you already have the original. BUT when I
    type in my serial nr. it won't register this. I've been trying (no kidding)
    for a year now, if not longer. AND this is not in one of their Q and A's
    Best
    Athena
    >
    >
    2014-05-25 18:50 GMT+02:00 Steve Werner <[email protected]>:
        Why can I not update my CS 6 programs to Mac OS X  created by Steve
    >> Werner <https://forums.adobe.com/people/Steve+Werner> in *Creative
    >> Suites* - View the full discussion<https://forums.adobe.com/message/6407979#6407979>
    >>

  • HT1338 why can i not update my software from 10.6.8

    why can i not update my software from 10.6.8?

    Because there are no updates beyond OS X 10.6.8.
    If you want to upgrade to a later version, you have to buy it. Mountain Lion is $19.99 US.

  • New object can not update existed child object

    I have three classes, they are DraftOrder, Order and SaleItem,
    public class DraftOrder{
    private List<SaleItem> saleItems; // not check private owned
    public class Order{
    private List<SaleItem> saleItems; // check private owned
    public class SaleItem{
    private ValueHolderInterface draftOrder;
    private ValueHolderInterface order;
    Now, I have one DraftOrder instance, I modify it from UI, and save it as Order, I want to the toplink to do following steps,
    1, insert Order data into db
    2, update SaleItem into DraftOrder to Order, don't excute delete and insert, only update
    3, delete DraftOrder
    In my Java code, i have moved the SaleItems to Order,
    but toplink dont update the SaleItem,
    who can help on it?
    thanks in advance.

    Hello,
    It looks like you have a 1:M from DraftOrder to SaleItem and another 1:M from Order to SaleItem, where SaleItem has a 1:1 backpointer to both. When you set the DraftOrder->SaleItem relationship, you must also be maintaining the SaleItem -> DraftOrder backpointer or the foreign key in the SaleItem table would not be set. When you remove the DraftOrder->SaleItem relations, you must also remove the SaleItem -> DraftOrder relations or again, you will not see the foreign key in SaleItem get set to null. TopLink does not perform relationship maintenance for you by default.
    It is the SaleItem -> Order and the SaleItem -> DraftOrder relationship that controls the foreign key in SaleItem's table - you must set these relationships or you will not see the foreign keys be updated. The 1:m is more like a readonly relation that reflects what the 1:1 relationship holds.
    Best Regards,
    Chris

  • ContactList_UpdateInsert will not update Contact Record

    I'm having trouble getting ContactList_UpdateInsert to work with Contact Records that have a username.
    1) First, I call Contact_RetrieveByEntityID('adminuser', 'password' , 1234, entity_id) to retrieve the contact record data for updating.
    cr = c.service.Contact_RetrieveByEntityID('adminuser', 'password' , 1234, entity_id)
    2) Then I modify some data, such as ExternalID
    cr.externalId = '123456'
    3) Calling ContactList_UpdateInsert returns an error:
    'Contact(s) saved in the system. Please review the list of error(s)/warning(s) found when processing the data.\n- Contact: John Doe | ERROR: The username [TestUser] cannot be assigned to contact with email [] as it is already used.'
    Manually adding the emailAddress field because it's not in the original cr record fixes that error.
    cr.emailAddress = '[email protected]'
    Calling again gives the error:
    Contact(s) saved in the system. Please review the list of error(s)/warning(s) found when processing the data.\n- Contact: John Doe | ERROR: The username [TestUser] cannot be assigned to contact with email [[email protected]] as it is already used.'
    It seems as though any time the contact record has a username assigned, I'm unable to update the record. What's the deal??
    EDIT: I thought I was posting this in the API section, but apparently not. Sorry.

    Okay I figured this out. When updating, you either have to supply externalId or emailAddress to match the record you want to change. If neither is supplied, or it doesn't match the supplied value, it adds a new record instead of update. So if you're trying to add an external id, you have to supply the emailAddress parameter as well, so it can match the record you want to change. I don't know if you can change the external id since it will try to match the external id before the email address.
    This is the explanation from the knowledgebase
    Please note that similarly to the import routine, you can utilize the External ID property to set a unique idenitifier value for each customer. If this value is present then customers are matched and updated accordingly. For example if every customer in your system has a member number, then assign that to the External ID property. If you do not utilize this property then the unique identifier used will be a customer's email address. If neither is provided then contacts are added and never updated as no unique identifier exists.
    I assumed that if you retrieve the record you want first (using Contact_RetrieveByEmailAddress), then make your changes and send it to ContactList_UpdateInsert, it should just update that record. But you have to set the emailAddress parameter.

  • How to insert new record or update existing record using a complex view?

    Currently I created this screen, there is no problems on display data, only on the update funtionality (it means insert / update / delete on the table for which the view is based on).
    I have a table and a complex view in order to display the information from the table in a tabellar form (i.e up to 70 record in same "record" in the form, one for each item)
    The view is like this
    select a.f1, a.f2, get_value(a.pk1,1) a1, get_value(a.pk1,2) a2, get_value(a.pk1,3) a3............
    from my_table a
    where a.proj_id = user
    and I want to permit the update of the field a1, a2, a3 in a multiposition canvas (tabellar).
    I created an INSTEAD-OF trigger.
    But it not work only in the form. I receive the error FRM-40654 when I try to change the existing value in the running form based on that view.
    The view is woking and updatable using sql-plus.
    If I query
    select * from ALL_UPDATABLE_COLUMNS where table_name = 'SPV_BOQ_BOM_POS_ACTIVITIES';
    in which 'SPV_BOQ_BOM_POS_ACTIVITIES' is the name of my view.
    The question is: why if the view is updatable using SQL*Plus, is not updatable using Oracle Form 10gR2 ?
    Someone could help me asap?
    Thanks

    I removed on the datablock three items that are not showed, one of this is the Sysdate of update on the table for which the view is based.
    I removed also the on-lock trigger and the update from the form is NOT working fine.
    But for now I can still mantaing the ON-LOCK trigger.
    Is not a priority to remove this trigger.
    I still have the problem when the field is null, it mean that in the table SP_BOQ_BOM_POS_ACTIVITIES the record not exist.
    I try now to explayn better.
    SPV_BOQ_BOM_POS_ACTIVITIES is the name of the view.
    SP_BOQ_BOM_POS_ACTIVITIES is the name of the table.
    This are the desc
    desc SPV_BOQ_BOM_POS_ACTIVITIES
    Describing SPV_BOQ_BOM_POS_ACTIVITIES....
    NAME Null? Type
    BOQ_HEADER_ID NOT NULL NUMBER(12,0)
    BB_ID NOT NULL NUMBER(12,0)
    BOQ_ID NOT NULL NUMBER(12,0)
    PROJ_ID NOT NULL VARCHAR2(10)
    ACT_GROUP_CODE VARCHAR2(30)
    TOTAL_QTY NUMBER
    ACT_CODE_1 VARCHAR2(4000)
    QTY_1 NUMBER
    ACT_CODE_2 VARCHAR2(4000)
    QTY_2 NUMBER
    ACT_CODE_3 VARCHAR2(4000)
    QTY_3 NUMBER
    ACT_CODE_4 VARCHAR2(4000)
    QTY_4 NUMBER
    ACT_CODE_5 VARCHAR2(4000)
    QTY_5 NUMBER
    ACT_CODE_6 VARCHAR2(4000)
    QTY_6 NUMBER
    USR_ID NOT NULL VARCHAR2(10)
    LMOD NOT NULL DATE
    INT_REV NOT NULL NUMBER(6,0)
    The field QTY_1, QTY_2.... QTY_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
    Also the field ACT_CODE_1, ACT_CODE_2, .... ACT_CODE_6 are calculated with a customer stored function from the table SP_BOQ_BOM_POS_ACTIVITIES.
    desc SP_BOQ_BOM_POS_ACTIVITIES
    Describing SP_BOQ_BOM_POS_ACTIVITIES....
    NAME Null? Type
    BBPA_ID NOT NULL NUMBER(12,0)
    BOQ_HEADER_ID NOT NULL NUMBER(12,0)
    BB_ID NOT NULL NUMBER(12,0)
    BOQ_ID NOT NULL NUMBER(12,0)
    PROJ_ID NOT NULL VARCHAR2(10)
    ACT_GROUP_CODE NOT NULL VARCHAR2(30)
    ACT_CODE NOT NULL VARCHAR2(30)
    QTY NUMBER(12,0)
    FLG_MANUAL_CHANGE VARCHAR2(1)
    USR_ID NOT NULL VARCHAR2(10)
    LMOD NOT NULL DATE
    INT_REV NOT NULL NUMBER(6,0)
    If I use SQL Navigator this insert working fine
    insert into SPV_BOQ_BOM_POS_ACTIVITIES
    (BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
    values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 1709)
    1 row(s) inserted
    Instead using the Screen, at runtime, I receive the message:
    FRM-40400 Transation Complete: 1 records applied and saved
    but nothing is saved in the table SP_BOQ_BOM_POS_ACTIVITIES, and the view SPV_BOQ_BOM_POS_ACTIVITIES contain the calculated QTY_1 for the 'key', with null value.
    Moreover If in the field QTY_1 (NUMBER) I put a character, instead a Number, just to see if the Screen attempts or not an UPDATE or AN INSERT, the message is FRM-40509: Oracle Error. UNABLE TO UPDATE RECORD. Why happen an Update and not an INSERT using the Screen?
    In effect, the trial using SQL navigator of the following statement
    insert into SPV_BOQ_BOM_POS_ACTIVITIES
    (BOQ_HEADER_ID, BB_ID, BOQ_ID, PROJ_ID, ACT_GROUP_CODE, ACT_CODE_1, QTY_1)
    values (5050, 5015, 30486, 'B39368', 'TEST', '0101010101010101', 'r');
    I got Invalid Number and it's ok as answer from the database.
    Edited by: fmariani on 30-apr-2009 1.51

Maybe you are looking for

  • Problem with Autostorage DB2 9.1 - NW2004s

    Hello guys, I had a problem with my DB. My database is with autostorage but a problem arose a few months ago. SAPDATA1 is not written anymore. I can't explain why it's occuring this but DB is growing without writing in SAPDATA1. I want to solve this

  • Can I mirror my computer monitor on the Apple TV ?

    How can I mirror my computer monitor on the Apple TV ?

  • Chinese display in C7

    Hello, I just want to read Chinese when I am browsing the webpage. Is is possible to simply fix this by adding a Chinese font? I saw someone successfully did similar things in other models, but I am not sure for C7 as this is released not long ago. H

  • 3GS no pop up for iOS6

    My Collegue is using 3GS and he does not seem to have iOS6 update pop up. Interestingly his phone is on 4.3.5 which is way too old and i am not able to check on software update.Although i have not yet connected to his laptop yet to see if iTunes pops

  • Hd Bay sensor and fan speed problem.

    My mac mini's fan has always been quiet, running at the minimum speed under any load it was under during normal use. A couple of days ago the fan started to throttle up to full speed at random times and stayed there for a random amount of time. Looki