Only update specific data between 2 ODS

I have 2 ODS ( with transfer rules between them).
I have  DATE and period in the Source ODS1 , and I want to update only the register that the month of the date is equal to the period.
I create a rutine in the field DATE in the transfer rules:
<u><i><u>
if COMM_STRUCTURE-DOC_DATE+4(2) EQ COMM_STRUCTURE-/BIC/Z99PERCON.
result value of the routine
RETURNCODE = 0.
if abort is not equal zero, the update process will be canceled
  ABORT = 0.
endif.</u></i></u>
But it doent work. Becase the ods update all the data.
How can I do it? Is it correct in the transfer rules from the SourceODS to the second ODS?
thanks a lot

Hi,
try this.
if COMM_STRUCTURE-DOC_DATE+4(2) EQ COMM_STRUCTURE-/BIC/Z99PERCON.
   RESULT = <thedate>.
   RETURNCODE = 0.
ELSE.
   RETURNCODE = 4.
ENDIF.
if you set the returncode to 4, the record will be skipped; is that your requirement?
hope that helps
Olivier.
if abort is not equal zero, the update process will be canceled
ABORT = 0.

Similar Messages

  • Only updating specific rows.

    How do I only update certain rows in an AdvancedDataGrid - to avoid updating the whole thing.
    If it's any help, I want to update only the selected cells, or rows containing selected cells.  (allowMultipleSelection="true").
    One possible way is to convert selectedCells row and column values into references to the itemRenderer, and tell each itemRenderer to refresh.  But If there is a more direct way - I'll take it.  (Note that the documented AdvancedDataGrid.selectedItems property doesn't work).

    Hi,
    From your description, you have a list with Hyperlink/Picture column. When you change the Standard View to Datasheet View and perform bulk upload, the error occurs when there
    are .jpg files.
    I tried to reproduce via UI or code, all worked as expected.
    Can this error occur if you upload the .jpg files in Standard View?
    What if you upload one single .jpg file to this list in Datasheet View?
    If the issue still exists, I suggest you do the same test on another clean list in case it is a list issue.
    Feel free to reply with the test result if the issue still exists.             
    Best regards
    Patrick Liang
    TechNet Community Support

  • Modify MDX query so it only shows specific dates?

    I'm new to SSAS and SSRS reports (with datasource an SSAS cube), so please bear with me.
    So I created a basic report that gets the data from my SSAS cube and displays it. That is working well. The problem is that the parameter displays the Dimension [Dim Date].[Date Key] so the dropdown displays every single day in the dimension table.
    One of my datasets in the report is a hidden dataset called [DimDateDateKey]. This is the dataset used to display all the values in the datekey dropdown parameter. The MDX query looks like this:
    WITH MEMBER [Measures].[ParameterCaption] AS [Dim Date].[Date Key].CURRENTMEMBER.MEMBER_CAPTION MEMBER
    [Measures].[ParameterValue] AS [Dim Date].[Date Key].CURRENTMEMBER.UNIQUENAME MEMBER
    [Measures].[ParameterLevel] AS [Dim Date].[Date Key].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS ,
    [Dim Date].[Date Key].ALLMEMBERS ON ROWS FROM [Sales cube]
    My question is, how can I modify this query so that it only displays dates that are between today and 5 days ago? The column [Dim Date].[Date Key] is of type INT, so it would only display 20141012 and 20141017.
    Currently, it displays every single [Dim Date].[Date Key] of the table, which is from 20000101 to 20201231.
    Thanks.
    VM

    Hi VM,
    you have to dynamically filter data based on current date. Current date you can get using VBA function now().
    I enclose code adjusted code sample you pasted, but because I don't have same cube as you do, I wasn't able to execute it. Anyway it should work or at least you should see there that principle
    WITH MEMBER [Measures].[ParameterCaption] AS [Dim Date].[Date Key].CURRENTMEMBER.MEMBER_CAPTION MEMBER
    [Measures].[ParameterValue] AS [Dim Date].[Date Key].CURRENTMEMBER.UNIQUENAME MEMBER
    [Measures].[ParameterLevel] AS [Dim Date].[Date Key].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS ,
    [Dim Date].[Date Key].ALLMEMBERS ON ROWS FROM
    (SELECT {StrToMember("[Dim Date].[Date Key].&[" + Year(now()) * 10000 + month(now()) *100 + day(now()) + "]"):
    StrToMember("[Dim Date].[Date Key].&[" + Year(now()-5) * 10000 + month(now()-5) *100 + day(now()-5) + "]")}
    ON COLUMNS FROM
    [Sales cube]
    Jiri Neoral

  • Problem during the update of Data from 2 ODS into 1 ODS

    Hi Guru's ,
    Please help me in resolving the issue below.
    I have  2 ODS , ODS1 and ODS2
    with same key field as 'A' but diffrent data feilds.I want to merge the records from ODS1 and ODS2 into ODS3 with the same key as 'A'.
    When I load from ODS1 all the fields are populating but when I load ODS2 the monitor says everything is OK and say x number of records got transfered. But when I check the ODS3 table , all the feilds coming from ODS2 are blank.
    What should be the reson behind this?
    Please help.
    Thanks in Advance.

    I am taking the question Back.

  • Data between 2 ODS not in synch

    I have ODS1 and ODS2 with delta loads from R/3 system.
    For 3 fields in ODS1 , they have an abap routine in update rules to lookup and get data from ODS2 fields. The issue is whenever a delta happens in ODS2 and this delta updates a changed record. this record will no more get updated in ODS1 .
    Please give me suggestions how can we resolve this issue.

    Hi,
    try this.
    if COMM_STRUCTURE-DOC_DATE+4(2) EQ COMM_STRUCTURE-/BIC/Z99PERCON.
       RESULT = <thedate>.
       RETURNCODE = 0.
    ELSE.
       RETURNCODE = 4.
    ENDIF.
    if you set the returncode to 4, the record will be skipped; is that your requirement?
    hope that helps
    Olivier.
    if abort is not equal zero, the update process will be canceled
    ABORT = 0.

  • DELETION OF SPECIFIC COLUMN DATA IN INFOCUBE&ODS(not the datarecords)

    hai
    I loaded the data into ODS and InfoCube.Buti want to delete the 'year = 1900&1910" from the YEAR column of the Infocube and ODS.
    Is it possible to delete the specific column data from the InfoCube & ODS????
    If it is possible then how can i delete the particular specific data from the specific column of InfoCube and ODS.
    pls tell me
    i ll assing the points
    bye
    rizwan

    HAI Ronald
    I already loaded the data into the InfoCube and ODS. But i want to delete the 'year column=1900 , 1910' only (not the corresponding datarecords).
    IS it possible to delete that Year Column only from the loaded data of InfoCube .
    I think , it is possible by creating a new InfoCube and transferring my InfoCube data into newly created InfoCube and writing the start routine for Update Rules in between  my InfoCube & newly created InfoCube.
    So do you know the ABAP/4 code for that
    pls tell me
    i ll assing the points
    bye
    rizwan

  • Inconsistencies data between ODS and RSA3 in SAP system (delta problem??)

    Hi everyone,
    I have a problem in my SAP BW production system. There is inconsistencies data between ODS (using tcode LISTCUBE) and Datasource in SAP system (tcode RSA3).
    I'm using Datasource: 0FI_GL_10 and ODS: 0FIGL_O10.
    In SAP system (using RSA3):
    GL Account: 1202012091
    Comp Code : 5400
    Bus Area: 5401
    Fiscal Year :2008
    Period: 07
    Accum Balance : $0
    Credit Total: $350
    Debit Total: $350
    Sales : $0 
    And in ODS (using ListCube):
    GL Account: 1202012091
    Comp Code : 5400
    Bus Area: 5401
    Fiscal Year :2008
    Period: 07
    0BALANCE : $350  (it should be $0,shouldn't it? )
    0CREDIT: $0 (it should be $350,shouldn't it? )
    0DEBIT: $350
    0SALES: $350 (it should be $0,shouldn't it?)
    I have tried these :
    1. Check if there is a start routine / routine or not in transfer or update rules....and...i get nothing
    2. Check the data using tcode FBL3N..but the data is ok
    And then i tried to trace the process chain and find error on delta infopackage which pull these data
    Date
    07.30.2008 : 231141 records --> error (ODS activation) --> request has deleted forever
    07.31.2008 : 2848 records   --> error (ODS activation) --> request has deleted forever
    08.01.2008 : 135679 records --> error (ODS activation) --> request has deleted forever
    08.02.2008 : 135679 records --> successfull repeat delta action
    From 30 July until 1 August there is an error on delta infopackage because
    fail to activate ODS (No SID found for value 'RIM' of characteristic 0UNIT). On 2 August someone delete the red requests and repeat the delta and success. Is there any possibilities that this problem arise because of this? If this the cause, how to bring back 2848 and 231141 records which has deleted?
    Thank you and Regards,
    -Satria-

    Hi everyone,
    I have solved my problem. I executed my infopackage again (selection condition using GL Account which have wrong amount) with update mode 'Full update' and choose Scheduler > Repair Full Request and tick the checkbox.Thank you.
    Regards,
    -Satria-

  • Cellular data only for specific apps

    Is there a way by which i can enable cellular data only for specific apps? Lets suppose i want only mail and viber to run on cellular. So how do i enable cellular network only for viber and mail

    Hello all,
    I have been using the iPhone 4S for about a year and I never had problems untill a few days back. Since about a week, my 3G settings for applications installed automatically reset.
    Path >> iPhone screen >> Settings >> Mobile(Cellular) >> Use Mobile Data For >> "List of all apps installed"
    Against each application, you have an option to either enable / disable the mobile data usage:
    Eg:
    App Store          (swipe left to disable || swipe right to enable)
    Contacts          (swipe left to disable || swipe right to enable)
    Facebook          (swipe left to disable || swipe right to enable)
    Facetime          (swipe left to disable || swipe right to enable)
    Weather          (swipe left to disable || swipe right to enable)
    You Tube          (swipe left to disable || swipe right to enable)
    etc...
    Problem:
    If I don't want You Tube to use mobile data, I would normally swipe left to disable thus the application will not start / stream any music if its on 3G/4G. Since a few days, whenever I disable the option for any app... go back to the main screen and recheck the settings, I see its enabled again!
    The error I see when I start the app is:
    MOBILE DATA IS TURNED OFF FOR "YOU TUBE"
    You can turn on mobile data for this app in settings
    <Settings>     <OK>
    When I go back to settings... I see the option is enabled.
    Now I dont know what and how this happened all of a sudden. I have tried resetting the network settings for my iPhone, and it has not helped me.
    My iPhone is updated to OS 7.0.4 and all apps are updated.
    Anyone can help me on this error and how do I fix this?
    FYI... I have no problems connecting to WiFi at all!

  • Sync with Outlook ONLY for a specific date range

    I have a Zire 31 that I'm syncing with Outlook via latest Palm Desktop/HotSync.   I did just install the latest conduit.
    I was getting several repeating calendar entries that were not syncing with the Zire (annual birthdays, etc.) - turns out that they did not have an "end-date" specified when created in Outlook.  Creating an end-date solved the problem.
    However - I would like to know if it is possible to specify a certain date range for the device to sync (e.g., sync calendar only for years 2007 through 2050, or in other words sync from 1 year ago to 50 years in future, etc...)
    I recall specifying this once years ago, but I may have been using a third party to sync with Lotus Notes at the time.  I'm wondering if this option is also available with syncing directly with Outlook using HotSync???  I can't imagine it's not, but I can't find where you specify it.
    One more interesting note:  while my Zire 31 had issues syncing those repeating calendar entries - my much older HandSpring Visor Deluxe syncs them no problem!  Go figure.
    Thanks much -
    Post relates to: Zire 31

    I'm not actually looking to purge old items.
    Rather - I would like to ONLY sync calendar entries between a specified range of dates.  For example - ONLY sync for calendar entries between Jan 1 2007 and Jan 1, 2050.
    the problem is that I have some repeating entries (birthdays, etc.) that are set up in Outlook with no end date.  Apparently Palm/HotSync is having trouble syncing these (they don't show up at all - for any year.)
    One resolution is to apply an end-date for each repeating calendar entry.  However, this is just another step my wife needs to remember to do.  If you happen to forget to to this, then Hotsync will ignore that entry.  Fine if you realize that's happening, but if you forget and forget to check - you won't even know it didn't sync!
    The other possible resolution is to only have HotSync sync for a SPECIFIC date range - one that does not presumably go to infinity.  That is my question - how does one sync ONLY for a specific date range.  Has nothing to do with purging old entries.
    Thanks!!
    Post relates to: Zire 31

  • Update data targets from ODS object automatically

    Hello experts,
    I have an ods (that has two delta loading every night) with the setting: "Update data targets from ODS object automatically". This ODS is source of only one other ODS.
    But we have a chain when there are the seguent steps: delta 1 --> ODS1,
    delta 2 --> ODS1; Activate ODS1; delta --> ODS2; Activate ODS2.
    The setting "Update data targets...automatically" could create some problems?
    I think this because it is happened that in delta loading of ODS2, some records have only the key filled, and all the data fields blank; then, if I make a full repair of these records, all data are correctly filled.
    Could be this the cause?
    Help me..it is urgent..
    Thanks,
    Vito

    Hi Vito,
    To have better control of processes when ods gets data from multiple sources and supply it forward to ODS and cube ...we generally deactivate the flag "update data automatically".
    And Process chains looks like ..
    From source 1,2,3 update data into ODS 1.
    Activate Data ODS1
    Initiate delta from ODS1 to ODS2.
    Activate data ODS2.
    We did face some problem of blank records with only key filled and later deactivated the checbox "Update data into data targets automatically" and it resovled lots of issues.
    Hope that helps.
    Regards
    Mr Kapadia
    Assigning points is the way to say thanks in SDN.

  • How can I activate the transfer rules for the ODS updating a data target.

    We are on BW 3.5 and I'm loading data into the 0FIGL_O10 ODS  and then uploading the data into the cube 0FIGL_C10. The data loads just fine to the ODS but when I try to <u><b>'update the data target'</b></u> I get a date & time stamp' error on the info-package transfer rules.
    I then Replicate the datasource 80FIGL_O01.
    I must then <u><b>'activate' the transfer rules</b></u>.
    However I cannot get the transfer rules for 80FIGL_O10 in CHANGE MODE to activate them.
    How can I activate the transfer rules for the ODS updating a data target.
    The error text is as follows:
    DataSource 80FIGL_O10 has to be replicated (time stamp, see long text)
    Message no. R3016
    Diagnosis
    DataSource 80FIGL_O10 does not have the same status as the source system in the Business Information Warehouse.
    The time stamp in the source system is 02/15/2007 10:42:33.
    The time stamp in the BW system is 11/07/2006 13:11:54.
    System response
    The load process has been terminated.
    <b>Procedure
    Copy the DataSource again and then activate the transfer rules that belong to it. You have to activate the transfer rules in every case, even if they are still active after the DataSource has been copied.</b>
    Thanks for your assistance.
    Denny

    Hi Dennis,
           Try, using Business Content to activate your data source
           hope this will help you
    How activate business content?
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a66d5e07211d2acb80000e829fbfe/frameset.htm

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

  • Events limit can only be dates between 1 and 9 on the day field

    Im an student, and im trying to put my timetable into ical as did last year
    it goes ok, i set it up to repit every week mondays lessons for example
    but when i am trying to set up a limit for this event to repit itself ical only allows me to
    put a date between 1 and 9 on the day field.
    Does anyone know why is that?
    sorry is my english is not so good im from spain and i might not explained very well
    thank you

    The x86 architecture has a standard formatting for disks that uses up to four primary partitions on a disk. On DOS or UNIX, you can view the partitions with 'fdisk'.
    This is layer that Windows and Linux tends to use for filesystems.
    Solaris though uses only one of those partitions for its own use (marking it a Solaris partition) and places a label similar to that on a SPARC disk (VTOC). So within the single x86 partition are several further subdivisions (slices).
    On solaris, the disk might be /dev/dsk/c0t0d0. You could access one of the Solaris (VTOC) slices as /dev/dsk/c0t0d0s0. As far as I know, Linux does not understand how to address the Solaris VTOC slices (If this isn't true, I'd love to know what the syntax for doing so is).
    You'd access the (non-Solaris) x86 parititions like /dev/dsk/c0t0d0p1 or so. While Linux can address extended x86 partitions, Solaris can only address primary partitions.
    Darren

  • Logical system not updated in the business system adapter specific data par

    Hello Guys,
    I changed a logical system name in the sld for a business system and that that is not reflected in the Integration directory adapter specific data tab.
    I did a cache refresh using :
    1) sxi_cache --- Full cache refresh, delta cache refresh
    2) Hard cache refresh
    3) In ID "Cleared SLD data cahe "
    4) Refreshed the exchange profile
    But no use
    Can you please tell how i can get the logical system name for the business system updated in the Integration Directory.

    When you change it in SLD and if not getting replected in the ID...make sure you run the cache again, perofmr the comeplete cache....
    there is an option under the adapter specific mesage attributes compare with SLD you can click that, is nthing happening after clicking it?
    Run the cache in the ID are there any errors there?
    check the RWB cache monitoring is everything green there?

  • Runtime error in updating initialization data from ODS in to an Infocube

    Hi experts,
    i have uploaded the init request in to an ODS.Now when i am trying to update this init request by selecting <b>Update ODS Data in to data target</b> fron the context menu of ODS I am getting Short dump saying:
    MESSAGE_TYPE_X" C
    SAPLRSSM" or "LRSSMU36"
    RSSM_OLTPSOURCE_SELECTIONS.
    furthermore as i am udating data from an ODS to infocube,  would the esource system be my BW system it self.
    Please help me ASAP.
    Thanks in advance.
    Jitendra Joshi

    hi Jagdeesh,
    thanks for your help.it has probably solved the problem i was previously facing but now when i am trying to schedule the update , it is getting faild along with following error message:
    The InfoSource 80FIGL_O02 specified in the data request, is not defined in the source system.
    the system suggest following solution :
    In the Administrator Workbench of the Business Information Warehouse, update the metadata for this source system, and delete the InfoPackages belonging to InfoSources that no longer existing .
    I tried it by replicating datasource but it has not solved the problem.
    Please Help ASAP.
    i have assigned point to for the solution  you gave...........
    Thanks in advance
    Jitendra Joshi

Maybe you are looking for

  • Ipod Touch 1st Gen not starting up past the apple logo

    When I start it up i see the apple logo for about 15sec then it turns off. I've tried putting it into safe mode by holding the Power and Home button for 30sec but all it does is turn on and off twice then nothing happens. Any ideas on how to fix this

  • Form Inside InDesign

    We have manuals for tools we sale, and I put them together with InDesign. These manuals are interactive PDF's. I am wanting to add a Quality Assurance form inside the manuals. So if customer has a problem with a product or service they can fill in th

  • Expdp full=y shows 'fatal error '

    Hi all,        any body, please help, I tried to take a full database export using expdp, with the schema name 'x' and password 'x', it is showing error  as follows, [oracle@oracleoel5 ~]$ expdp x/x directory=dpumpdir dumpfile=ramu.dmp full=y  parall

  • Problems setting up roku

    I just got the roku netflix device and in attempting to set it up keep getting the message that it can't connect to my local network (despite the fact that it is recognizing it and accepting my password). The message says that if "MAC address filteri

  • Using String Tokenizer on connection string

    I have a database connnection string like so: jdbc:oracle:thin:@<url>:<port number>:<database name> I'm planning to use String Tokenizer to extract the database name. Is this possible. Where can I start?