Trying to understand Distribution Model

When I view the metadata of a Distribution Model, I see DM overview which contains 2 tabs.  One for Data Objects and Second for Rules.  I am trying to understand the tables in each of these tabs. 
Association Table - RR00200100G_AT
DRDS Table - DM00200100G1
DR Table (Runtime) - RR00200100G1
What are they used for and when to the entries get updated?
Thanks
JB

Thanks for the quick reply Siva....
I am trying to investigate a behaviour where we have a normal rule based on a Date Pattern.  The business requirement is to distribute only today's data back to the user's device.  The issue we are seeing is that there are data in the device that were created in the past.
The rule's criteria is based on CREATED_BY(UserID) and CREATED_ON(date) node attribute from the data object.
In the rule, the CREATED_BY is mapped to the USER device attribute and the CREATED_ON is a date pattern, where the Operator is 'EQ', Custom Type is 'C' - Constant Offset, and Date Pattern is 'Current Date'.
With this set-up, there are four events that were created in the Execution Plan - Device Addition, Device Modification, Device Removal and Sliding Window-Date.  There's also a job, Sliding Window-Date,
that is scheduled to run once a day at midnight.
My observation is that every day, after the Sliding Window-Date runs.  The DRDS & DR tables, in the second are updated.  But the entries in the Association table, from the first tab, are not updated.
I am expecting that the Status Flag, in the Association table, of all records that are not relevant for that date, get's updated to 'D' so that when the user syncrhronize they will get deleted from the device.
What am I missing?  What triggers the update to the Association table?

Similar Messages

  • Trying to understand the MODEL clause

    Hi All,
    I'm finally biting the bullet and learning how to use the model clause, but I'm having a bit of trouble.
    The following example data comes from a book "Advanced CQL Functions in Oracle 10g".
    with sales1 as (select 'blueberries' product
                          ,'pensacola' location
                          ,9000 amount
                          ,2001 year
                      from dual
                    union all
                    select 'cotton', 'pensacola',16000,2001 from dual
                    union all
                    select 'lumber','pensacola',3500,2001 from dual
                    union all
                    select 'cotton','mobile',24000,2001 from dual
                    union all
                    select 'lumber', 'mobile',2800,2001 from dual
                    union all
                    select 'plastic','mobile',32000,2001 from dual
                    union all
                    select 'blueberries','pensacola',9000,2002 from dual
                    union all
                    select 'cotton', 'pensacola',16000,2002 from dual
                    union all
                    select 'lumber','pensacola',3500,2002 from dual
                    union all
                    select 'cotton','mobile',24000,2002 from dual
                    union all
                    select 'lumber', 'mobile',2800,2002 from dual
                    union all
                    select 'plastic','mobile',32000,2002 from dual
                    union all
                    select 'blueberries','pensacola',9000,2003 from dual
                    union all
                    select 'cotton', 'pensacola',16000,2003 from dual
                    union all
                    select 'lumber','pensacola',3500,2003 from dual
                    union all
                    select 'cotton','mobile',24000,2003 from dual
                    union all
                    select 'lumber', 'mobile',2800,2003 from dual
                    union all
                    select 'plastic','mobile',32000,2003 from dual
    select location, product, year, s
    from sales1
    model
    --return updated rows
    partition by (product)
    dimension by (location,year)
    measures (amount s) ignore nav
    (s['pensacola',2003] = sum(s)['pensacola',cv() > cv()-1])I would have expected the measures clause to return the sum of all amounts for pensacola where the year > 2003 - 1 = 2002. which would make the total for [blueberries,2003] = 1800, but instead it comes out as 27000, apparently summing all values for blueberries for that partition.... equivalent to sum(s)['pensacola',ANY].
    how would I go about making s['pensacola',2003] = the sum of itself plus the previous row?
    I realise I can do
    s['pensacola',cv()]+s['pensacola',cv()-1]but I'm really trying to understand why what I have doesn't appear to work the way I expect.

    Because
    (s['pensacola',2003] = sum(s)['pensacola',cv() > cv()-1])
    means
    (s['pensacola',2003] = sum(s)['pensacola',cv(year) > cv(year)-1])
    means
    (s['pensacola',2003] = sum(s)['pensacola',2003 > 2003-1])
    means
    (s['pensacola',2003] = sum(s)['pensacola',2003 > 2002])
    means
    (s['pensacola',2003] = sum(s)['pensacola',year is any])
    s['pensacola',cv()]+s['pensacola',cv()-1]
    means
    sum(s)['pensacola',year between cv()-1 and cv()]

  • Generate Distribution Model ERP = EWM

    HI
    I am performing Generate Distribution Model ERP => EWM for new WH. Getting below error message.
    Method BUS2015.SAVEREPLICA exists in model view WMS
    Message no. BDDISTMODEL051
    Please Help to resolve as early
    Rgds
    Dinesh.P

    Hi Dinesh,
    When you are trying to Generate Distribution Model for your warehouse that time there are three fields one of those is your ERP warehouse number and Second is Logical System of EWM and third one is Distribution Model view. You might have entered a wrong model view name and then you tried to execute, system is giving you error that ".... method exists in model view WMS" that means you need to enter WMS model view in third field and then execute with radio button selected CREATE ENTRIES along with BOTH radio button selected.
    Thanks and regards
    Anoop Singh

  • Query in Distribution Model creation

    Hello All,
    we are trying to build a distribution logic based on the below criteria
    first data object has the following node structure
    DO1
      node1
        childnode1
           -field1
           -field2
        childnode2
           -field1
           -field2
    the second data object has the following structure
    DO2
      node1
         -field1
         -field2
         -field3
    from the above data object i need to send data for the second data object DO2 based on the childnode1 and childnode2 value in DO1, can any one give a solution like how to create dependencies and create a DM.
    Thanks and Regards,
    Venkatesh R

    I understand this: You have a rule on DO1 (which works fine and distributes DO1 instances correctly) and dependencieso n DO2 (which are not distributing DO2 instances for some reason).
    Now your model is something like this:
    Each of the 4 child nodes in DO1 has a partial association to the DO2s root (the missed key field is Language).
    For each of these associations, there is one dependency which will map to a list of instances of DO2 for all languages, corresponding to each DO1 instance. Now you want to prune this list and only send the instance of DO2 for the device's language.
    NOW: If you created the dependency after activating the rule on DO1 then the dependency and its rules will not work right away. You need to deactivate the rule on DO1 and activate it again.
    What you need to do:
    1. Deactivate the Rule on DO1.
    2. Activate the rule on DO1 again.
    Hopefully, that should fix it.
    By the way, the correct way to distribute language specific data for anything is not via another data object, but via a child node.
    Lets say, you have some data (which is language independent) and text corresponding to that data (which is language specific). The way you should ideally do it is:
    1. Create a node as a child to the node containing the language independent data. Put the language specific data in this node (all languages)
    2. Create an Extract association from the parent node to the child node, within the data object.
    3. Use this Extract association to create an extract rule in the Distribution Model. The DOE will then pick the correct language data for each device and send only the child instances that correspond to the language of the device.

  • ALE/Idocs Distribution Model

    Hi
    I am facing one problem in distribution model. Im trying to send idocs from one system to another. The distribution model has been created and been distributed to the other system. so no error comes in the source system. Even the idocs are generated without error.
    Now in the receiving system,
    1) after the distribution model is created in this system by distribution option from the source system and when i try to generate the partner profile in this system. It gives the error that " No messages have been defined for the selection conditions in the model". Though everything is created here.
    2) the idocs reaches in this system but in error state. Again the error says partner not found.
    Now am not able to understand how to rectify this problem. when the model is distributed why this partner is not being created automatically.
    can anybody help???
    regds
    sanjeev

    This is the error that comes when I run the FM (FM is active) contrary to the error:
    Runtime Errors         CALL_FUNCTION_NOT_ACTIVE
    Except.                CX_SY_DYN_CALL_ILLEGAL_FUNC
    Date and Time          20.11.2007 12:13:39
    Short text
         The function module is not active or contains no code.
    What happened?
         The function module "ZIDOC_INPUT_ZADR_MESSAGETYPE" is called, but
         cannot be found in its function group.
         Error in the ABAP Application Program
         The current ABAP program "ZIDOC_INPUT_ZADR_MESSAGETYPE==FT" had to be
          terminated because it has
         come across a statement that unfortunately cannot be executed.
    Error analysis
         An exception occurred that is explained in detail below.
         The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_FUNC', was
          not caught in
         procedure "FUNCTION_CALL" "(FORM)", nor was it propagated by a RAISING clause.
         Since the caller of the procedure could not have anticipated that the
         exception would occur, the current program is terminated.
         The reason for the exception is:
         The program "ZIDOC_INPUT_ZADR_MESSAGETYPE==FT" contains the CALL FUNCTION
          statement.
         The name of the function module to be called is "ZIDOC_INPUT_ZADR_MESSAGETYPE".
       but "ZIDOC_INPUT_ZADR_MESSAGETYPE" cannot be found in its function group.
       Possible reasons:
       a) The function module "ZIDOC_INPUT_ZADR_MESSAGETYPE" has not been activated.
        Therefore,
          it cannot be found at runtime.
       b) The Function Library contains an incorrect entry for
        "ZIDOC_INPUT_ZADR_MESSAGETYPE".
       c) The function module contains no code, even FUNCTION ... ENDFUNCTION
          is missing.
    Missing RAISING Clause in Interface
        Program                                 ZIDOC_INPUT_ZADR_MESSAGETYPE==FT
        Include                                 ZIDOC_INPUT_ZADR_MESSAGETYPE==FT
        Row                                     69
        Module type                             (FORM)
        Module Name                             FUNCTION_CALL
    Trigger Location of Exception
        Program                                 ZIDOC_INPUT_ZADR_MESSAGETYPE==FT
        Include                                 ZIDOC_INPUT_ZADR_MESSAGETYPE==FT
        Row                                     93
        Module type                             (FORM)
        Module Name                             FUNCTION_CALL
    Source Code Extract
    Line  SourceCde
       63 *
       64 DATA: OTHERS(1).
       65 *
       66 FORM EXISTENCE_CHECK CHANGING VARIA.
       67   VARIA = 1.
       68 ENDFORM.
       69 FORM FUNCTION_CALL.
       70   CLEAR %_OWORKFLOW_RESULT.
       71   CLEAR %_OAPPLICATION_VARIABLE.
       72   CLEAR %_OIN_UPDATE_TASK.
       73   CLEAR %_OCALL_TRANSACTION_DONE.
       74   CLEAR %_OIDOC_CONTRL.
       75 %_OIDOC_CONTRL = %_IIDOC_CONTRL.
       76   CLEAR %_OIDOC_DATA.
       77 %_OIDOC_DATA = %_IIDOC_DATA.
       78   CLEAR %_OIDOC_STATUS.
       79 %_OIDOC_STATUS = %_IIDOC_STATUS.
       80   CLEAR %_ORETURN_VARIABLES.
       81 %_ORETURN_VARIABLES = %_IRETURN_VARIABLES.
       82   CLEAR %_OSERIALIZATION_INFO.
       83 %_OSERIALIZATION_INFO = %_ISERIALIZATION_INFO.
       84 *  TRANSAKTION = 'Repo', PROGRAM = REPORT
       85   IF ATRA = '1'.
       86     SET RUN TIME ANALYZER ON %_INTERNAL.
       87   ENDIF.
       88 IF DESTI IS INITIAL.
       89 IF DEBUG = '1'. BREAK-POINT AT NEXT APPLICATION STATEMENT.
       90 ENDIF.
       91 DEBUG = SPACE.
       92 GET RUN TIME FIELD TIME1.
    >>>>> CALL FUNCTION 'ZIDOC_INPUT_ZADR_MESSAGETYPE'
       94 EXPORTING
       95 INPUT_METHOD = %_IINPUT_METHOD
       96 MASS_PROCESSING = %_IMASS_PROCESSING
       97 IMPORTING
       98 WORKFLOW_RESULT = %_OWORKFLOW_RESULT
       99 APPLICATION_VARIABLE = %_OAPPLICATION_VARIABLE
      100 IN_UPDATE_TASK = %_OIN_UPDATE_TASK
      101 CALL_TRANSACTION_DONE = %_OCALL_TRANSACTION_DONE
      102 CHANGING
      103 IDOC_CONTRL = %_OIDOC_CONTRL
      104 IDOC_DATA = %_OIDOC_DATA
      105 IDOC_STATUS = %_OIDOC_STATUS
      106 RETURN_VARIABLES = %_ORETURN_VARIABLES
      107 SERIALIZATION_INFO = %_OSERIALIZATION_INFO
      108 EXCEPTIONS
      109 WRONG_FUNCTION_CALLED = 001
      110 ERROR_MESSAGE = 002
      111 OTHERS = 003.
      112   IF ATRA = '1'.

  • Trying to understand Android OS updates delays

    This is not another hate mail, it´s more about trying to understand the facts and motives regarding the OS updates (or lack of).
    Hopefully this material will arrive at someone from Sony with enough power to do something about it.
    Ever since I can remember, Sony has been THE brand for electronics. I can´t remember a TV or VCR in my house that it wasn´t Sony, and they lasted for LOTS of years.
    When a couple years ago I finally had the money (and the need) for a Smartphone, i chose the X10 Mini, which is a great little phone from a great brand, but it´s stuck at Android 2.1... which makes it a crippled android nowadays...
    It really bothered me the lack of OS updates, so I chose to buy a Galaxy Nexus, but it´s really expensive in my country. So my second option was a Galaxy Ace 2, but they haven´t arrived to my country yet, so I went with my third option: Xperia Sola, knowing beforehand that it´s a great phone, a great brand, but I might get slow OS updates.
    I bought it about 10 days ago when I saw they were starting to roll out the updates.
    10 days later I still don´t have my update. And not only that, but I don´t see much light at the end of the tunnel...
    I found a thread with the SI numbers that were updated, and there were a bunch on Oct 1, another bunch on Oct 4, and one code on Oct 8, and no other update since...
    I also read that those who did get the update, were having bugs with the OS, and also found threads from other Xperia models, whose updates began rolling 3 months ago, and there is still people who hasn´t gotten the update...
    As a customer, and a owner/CEO of a small company, I have a really hard time understanding how a HUGE company like Sony can be making such mistakes...
    I have been thinking objective reasons, and I can only think of one. I know it´s a wild guess, but I´m starting to think that our salvation might be the very thing that means our condemnation: CYANOGENMOD!!!
    Think about it: Why would Sony spend more money hiring twice as much programmers, when they can make only one update per phone, and sit down and see how CM releases begin to appear, for all tastes and needs. And... IT´s FREE!!!
    Also, if there is a software related problem (way more likely than a hardware problem), then the CM developers take the fall, instead of Sony. And I´m beginning to see custom OS installers that are more user friendly, so it might be something that they take in accout when neglecting OS updates.
    If that´s the line Sony is following, it´s a very risky move and it won´t work. Sony Mobile will crash and burn, but it´s still a better business plan that "let´s get lazy and make ULTRA slow updates so we don´t spend a lot of money programming".
    If you can´t afford more programmers, stop including so much bells and whistles and make your OS near vanilla. Include a couple of Xperia menus, a custom theme and voila!
    The main reason I wanted the Galaxy Nexus is Vanilla OS, which means inmediate OS updates. Sony on the other hand, takes a year or two to release it after its launch. If they release it at all...
    Another though...  why not stop making that many different phones! Really! There are like 5 Xperia models i can´t tell one from the other... even with specs side by side!
    You are trying to make too many phones and you are failing with all of them! (Software and software updates are also part of the phone, one of the most importants...)
    I know hiring programmers is expensive, but you are sacrificing one of the most expensive values for a company EVER: Customer credibility! Which as you know better than me, takes years to create.
    If Apple had problems with carriers and code aprooving and stuff, they might get away with it, becouse they alone have all the devices. If iOS 6 is delayed a few months, it´s delayed for everyone, and besides Apple fanboys rarely complain about Mac products, but Android is a more independent and educated market.
    I´m not saying that Apple users are ignorant, not at all, but I´m pretty sure most iPhone owners don´t even know what processor or how much RAM their phone has. They just "swallow" the Apple Way of Life. (it´s a good phone becouse Apple says so).
    The Android user on the other side, because of the fragmentation of the market, has many brands and models to choose from. An Android user about to buy a new phone will most likely go online looking for different models, specs, reviews in webs and forums...etc.
    You can´t say "I don´t know how HTC and other companies get their updates so soon, but we take a lot more becouse Google and the Operators must aproove the code.", because there are many other brands that have exactly the same difficulties or more, since they are smaller, and we can SEE online that they are indeed delivering solid and relativly fast updates.
    Did we miss something? Does HTC use Witchcraft to get their code aprooved?
    My underlying point is this: You are getting lazy... VERY lazy with software programming for your phones, and WE KNOW IT!
    It´s not the "difficulties" you claim, becouse every brand has those difficulties.
    This isn´t 1999 you know. We are in the information age. If you lie to us and tell us that your phones have the latest OS, I can go online and see that you don´t (Hello!!!). If I see that the company lies to it´s customers, I will stop buying their products. If I´m so dissapointed with how Sony handles OS updates and their customers queries about it, then I want for the first time ever to sell my Cell Phone becouse I´m not happy with it, or the brand behind it.
    We also live in the "Here and now" age. You can´t expect your customers to read about new Android releases on news and blogs, and wait YEARS with arms crossed waiting for their update... The world doesn´t work like that. Not anymore at least...
    It´s not a matter of how many recources you have, it´s about how you use and balance them. GIVE MORE IMPORTANCE TO SOFTWARE UPDATES! IT´S WAY MORE IMPORTANT THAT YOU THINK! LISTEN TO YOUR CUSTOMERS!!!
    You guys are Sony are smart and design great products, but you are not GOD! You are not our wife, no one has sworn alliagence to you.
    If you stop giving us good products and start lying to us, we hate you and stop giving you our money. Simple as that.
    My sola is beatiful, I love the design, the screen, the hardware... but it hasn´t been updated yet to 4.0, not to mention 4.1, which REALLY is the latest version... so stop advertising that your phones have the latest Android OS, unless you want angry customers switching to other companies, which you are getting.
    I also read some stories that Androind 4.0 was announced for the Xperia PLAY, and then it was called off... Do you have any idea how pissed I would be and ripped off I would be if I bought my phone based in that information and then you say it won´t be available?
    Well, actually right now my possition is worse, since you SAY you will update my phone, but you don´t say when, and I read online about people still not getting their updates months after the rollout started, so I´m in the limbo right now...
    As a company, one of the worse things you can do is calling your customers stupid, and when I see the answers you give in this forum, then I feel insulted. I feel like they are talking to an idiot or ignorant person with the so called "diplomatic" answers, which are basicly empty excuses for not doing your job right.
    You gave us the frikking CDs, DVDs and Blu-Rays!!! Don´t tell us you can´t tweak an already built OS in a year!
    I really hope you change their OS update policies really soon, before you lose the already small cellphone market share you have, or at least change your P.R. and C.M. policies towards a more open one.
    We all are humans and make mistakes, but we customers really appreciate honesty and truth.
    Have an open conversation with your customers! Don´t lie about your shortcomings! Accept then and ask the community to help you solve them, ask them what they biggest problems are, what features are most important to them, how often do they expect updates... LISTEN TO THEM!!
    "Succes is a meneace. It tricks smart people into thinking they can´t lose."
    Ps: Nothing personal with the mods from this forum, I´m not killing the messenger, I know that you can ONLY give the info you are allowed to give, and even if you wanted, you probably don´t know the answers yourself, since you work in the Communications department, not Developement or anything technical, and if you can't give any given info, then they probably won´t give it to you either... My message is to the company as a whole. I just hope you will be a good messenger and give this to whoever needs to read it.

    My bad, it´s closer to 40 the number of phones released hehe
    I know it´s all about money, and I know Sony is obligated to neglect users who haven´t given them money after an x ammount of time. However, it´s not a matter of making the phones obsolete earlier, so the users want to buy a new phone faster and therefore getting more money.
    A person will buy a new phone when he/she has the money to do so and wants to do so.
    It´s not a matter of WHEN. It´s a matter of WHAT.
    The question is not "When will that user buy a new phone?", but rather "When that user buys a new phone, whenever that is, what phone will it be?"
    I have a love/hate relationship with Apple. I would never use a iPhone. I would love having any Mac, if someone gives it to me, but I would never spend my harn earned dollars on such an overpriced piece of hardware over general principals.
    However, i do recognice that Steve Jobs was a business genius. Weather you like or love his ideas and methods, he turned a garage project into the biggest company in the world, with a market value higher than Exxon with 1/3 of it´s assets.
    Apple is a money making machine, and that is where the "hate" part of my relationship comes from.
    However, it surprised me a lot to see that they released iOS 6 for the iPhone 3GS, released in 2008!
    That get´s you thinking, that inside all that "SELL NOW" culture Apple is, they also support their older devices that people bought years ago but can't buy a new phone now. However, when they can do it, it will surely be another iPhone. Because they FEEL that the company listens and cares for them.
    Also if you jump from iOS 6 on the 3 GS to a brand new iPhone 5, the transition will be virtually non-existant, except for Siri and a couple of features.
    However jumping from Android 1.5 or 2.1 to Jelly Bean, might not be so easy on some users, making them more likely to give iPhone a shot.
    Since they have to adapt to another phone anyway, they might as well try the apple...
    And for old users, it gives people a sense of continuity and care about the user. Otherwise we feel like being kicked out of a restaurant right after we payed the bill.

  • How to create a data filter for BAPI used in a Distribution Model ?

    I am trying to create IDOC's for a QM inspection plan via message type QPMK in ECC 6.0. When creating the new message type in the Distribution Model, it forced me to use a BAPI (MasterInspectionChar) rather that just the message as I have done in the past. In order to ensure that only IDOC's related to a specific plant and material type get sent out, I was trying to create a filter.
    I am able to get into a 'Change Filter' dialog by double clicking 'No data filter set' under the node 'MasterInspectionChar.SaveReplica'. However, an attempt to highlight anything on this dialog and clicking button 'Create filter group' results in msg. 'Select node: Content-dependent parameter filtering'.
    Online help led me in a different direction, one thread led me to believe I needed to create a table entry for the filter in table TBD16 via BD81 for later attachment to the BAPI in the Distribution Model. Before this, I created two Z* ALE Object Type records for plant and material type in table TBD11 via BD95 for what I thought would provide a lookup back in BD81 for creation of a new filter record, but these objects are not found. Per the help, I am also unclear as to whether I would need to set up Receiver determination or Parameter filtering, nor where to make this step in the configuration happen?
    Can anyone point me back in the correct direction to get a data filter set up for this BAPI within the Distribution Model ?
    Thanks - Mike

    Just to clarify, what I am having trouble with is finding where exactly to plug in the name of the plant to be filtered? If using a message type such as MATMAS in a distribution model, it is very straight forward to navigate down from the 'Data filter active', and assign a value to whatever field you wish to filter via the 'List of Values'.  But in this example, message type QPMK required use of the BAPI MasterInspectionChar, and therefore the different method in creating the filter. 
    I cannot find similar functionality when navigating the BAPI related row, for MasterInspectionChar. The 'Change Filter' dialog popup displays a row for 'Container' and then 3 more rows containing 'BAPI structure...'.   Clicking the 'Attribute' checkbox on any of these rows sets 'Data filter active' as a node under the BAPI.  Double clicking the 'Data filter active' brings me back into the same dialog, and selecting any row with an attempt at this point to create a filter results in the 'Select node: content-dependent parameter filtering' warning.  Is this warning occuring because of missing configuration?
    Thanks - Mike

  • Error while generating Distribution Model in ERP to EWM

    I am trying to generate new distribution Model from ERP to EWM for my warehouse.
    In system one distribution Model already exists for another warehouse. Below error encountered.

    Hi Suraj,
    Thanks for the answer
    Yes i was using the Wrong Distribution Model , I should have selected EWM , but i was giving some new name as i thought that was required. Hence message came.
    I did with EWM distribution Model and all worked well.
    Thanks
    Inder

  • Material Master Change Pointers/Distribution Model - any suggestions?

    Dear All,
    Hope everyone is doing good.. I have been trying to come up with a solution for the below issue, but didn't get any further. Your help is highly appreciated.
    Initial Design:
    Couple of years before we had a plant 123 and plant 456 where we need to send the materials. So we had specified these plants in Distribution Model and things worked fine.
    First Problem
    During testing what we have found out was, if some one changes MARA level, IDOC is being created but it's not being sent out of SAP system because the IDOC doesn't have 123 and 456 plants which the distribution model filtered it out and no data got sent to SAP PI.
    Solution implemented:
    After doing lot of analysis and research we have implemented solution as per the blog The specified item was not found.
    Today's problem
    There are couple of more plants we were supposed to send the data 789 and 678. The problem is if some one did a mass change on plant 456, the above solution implemented takes all the data(not the deltas) and pushing it out. Even though the change is only on 456 plant, we were unnecessarily sending the data to 789, 678 which is causing lot of problems.
    Now we realize we shouldn't have gone with the solution mentioned above, because it's not applicable in my scenario.
    Does anyone handled this kind of scenarios in the past, if so can you please shed some lights?
    Thanks,
    Raj

    Hi Raj,
      As per my experience what you had already implemented, that is absolutely correct. I don't think there is any alternative to send the data as a whole (I understood if you are not sending the Plant data, how the middle ware filter them).
      Now your requirement is if you make some mass changes in the materials which are extended different plants other than 456 plant, we have to restrict them. To restrict the outbound Idocs for MATMAS. you can use the Filter option in BD64 (Distribution Model). Here after creating the Filter Group, you can edit LOV for Plants.
      Once your mass changes transmission is over, you can remove this.
      Hope this will work, at least you can give a try...............

  • R/3 to XI (Idoc to File): Do we need to maintain distribution model in R/3?

    Hi All,
    I have a very basic question regarding Distribution model.
    My scenario is IDOC-->File ( SAP R/3 --> XI). So all I am trying to do is send the IDOC frrom R/3 to XI. ( Within XI I am going to do an FTP to the 3rd party file server)
    I have created a distribution model, but was wondering if I really need to create one as message is going from R/3 to XI and not from R/3 to another R/3.
    Please help let me know If I need to distribute this model to XI or to SAP production sytem or I do not need to duistribute at all for this scenario.
    Thanks
    Shirin

    Hi,
      if you create partner profiles and port via t.code.
      i hope, it's not required to maintain Distribution model.
      please check the below points.
    Configuration Steps for Idoc to File Scenario.
    This is complete step by step document for configuring the idoc to file scenario along with ALE Settings
    To Configure the IDOC TO FILE SCENARIO, SETTINGS IN SAP-XI
    STEP 1:ALE SETTINGS IN SAP-XI
    We need to do the following settings in XI
    1) Create an RFC Destination to the Sending System in transaction code (SM59)
    a) Choose create
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#
    e) Enter the Gateway host as same details above SID/URL
    f) Gateway service is 3300+system number#
    g) In the Logon /Security tab, enter the client user & Password details of Destination system
    h) Test the connection and remote logon.Both should be succesful
    2) Create Port Using Transaction Code IDX1
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client
    d) Enter the RFC Destination created in SAP R/3 towards other system
    e) Save
    3) Load Meta Data for IDOC Using transaction Using Transaction (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1
    SETTINGS IN SAP R/3
    We need to do the following settings in R/3
    Logon to Sap R/3 System
    1) ALE SETTINGS TO POST IDOC OUT OF SAP-R/3 ***********************************************************************
    a) Create RFC Destination using T.code in SM59.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#
    e) Enter the Gateway host as same details above SID/URL
    f) Gateway service is 3300+system number#
    g) In the Logon /Security tab, enter the client user & Password details of Destination system
    h) Test the connection and remote logon.Both must be succesful
    2) Create communication Port for Idoc processing Using Transaction(We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile with Outbound Parameters (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang
    Then Save
    e) Select Partner no. and LS which were create above
    f) Now we have to give some Outbound Parameters.So click on ADD TO Create Outbound Parameter
    g) Select Message type
    h) Double click on Message Type and Then Enter the details for Receiving port, Pack size=1 and Basic type
    I) save
    4) In Transaction SALE, Create Logical System
    a). Go to Basic Settings-> First Define logical systems
    and then assign logical systems
    b) Double click on Define the logical systems
    c) Give data for your Logicaal System and Name
    d) Now click on Save.Here one window may appear just click on Continue.Now the Logical System name is ready
    e) Assign the logical system name to the client
    5) Create Customer Distribution model in the transaction code BD64
    1) Click on the Create modal View button and enter the short text, Technical name etc as shown below
    2) Now select the created model view and click on Add message type button .A pop up box appears, enter Sending system, receiving system and message type
    3) Save the Distribution model
    Generate Partner Profiles
    Click on Menu Item u2018Generate Partner Profilesu2019
    It leads to the next transaction where in the selection screen you have to provide Model view name, Partner System logical system and execute
    Then, you will be intimated about the partners, port creation, and outbound parameters creation
    4) Distribute Customer Distribution Model
    In the menu item GO to Edit->Modal View-> u2018Distributeu2019 to the destination client
    Popup window appears ,press Enter
    You will be intimated about the the Modal View Distributed
    warm regards
    mahesh.

  • Trying to understand Provides Dependency type

    I am trying to understand the Provides dependency type. I have
    reviewed the online documentation, but I'm not quite there yet.
    I have a SQL script, with a create table statement, to create
    the CUST table. When I parse the SQL script, I think I should
    get a Provides dependency with a subtype of Created. However, I
    don't get any Provides dependency types.
    Am I missing a step? Do I need to create something else? Or
    have I completely missed the boat?
    Thanks!
    Vini

    Vandana,
    What you see is the way the Dependency Manager is designed to
    work. When you parse a file or object it looks for things it
    provides and things it uses.
    In the case of a ddl script with a create table statement the
    dependency tables will populated with provides dependencies for
    the table and the columns. If this is all you have parsed, and
    you use the dependency manager to show the dependencies for ddl
    file you will see no dependencies in the right hand side results
    pane. This is correct. In the left hand pane of the Dependency
    manager you expand the ddl file node you will see the table(s)
    created in the file. These are the provide dependencies.
    (As an aside, if you parse an Oracle Form and select the form in
    the Dependency manager left pane, you can expand the node and see
    all the blocks and items etc in the form. This is because the
    form "provides" all these "things" that maybe subclassed into
    other forms)
    If you subsequently parse other objects/files that use the table
    then you will see the dependencies between them in the right hand
    pane.
    The slightly confusing part is if you have modelled the table in
    Designer as well as stored the ddl that creates the table the
    dependency manager doesn't show dependencies between them. The
    product just treats these as two providers of the same table. So
    this means when look at, say a form that uses the table, the
    dependency manager will show that the for uses both file and
    modelled table.
    I hope this makes things clearer
    Regards
    mark

  • Trying to understand PersistenceContextType.EXTENDED

    Hello,
    I'm trying to understand the PersistenceContextType.EXTENDED setting. It is my understanding that when I put this in my class, it means that the container managed transaction will span multiple method calls.
    I have a stateful bean:
    @Stateful(name = "StatefulContainerSessionEJB")
    public class StatefulContainerSessionEJBBean implements StatefulContainerSessionEJB, StatefulContainerSessionEJBLocal {
    @PersistenceContext(unitName = "Model",
    type = PersistenceContextType.EXTENDED)
    private EntityManager em;
    // implied REQUIRED transaction
    public void createAddress() {
    try {
    // create a new address
    Address addr = new Address();
    //... set addr fields
    System.out.println("Persist addr at: " + addr.getStreet());
    em.persist(addr);
    System.out.println("Persist of addr complete");
    } catch (Exception ex) {
    ex.printStackTrace();
    // transaction should still be alive here
    @Remove // this is what causes the transaction to end
    public void cancelTransaction() {
    System.out.println("Transaction rolledback");
    em.getTransaction().setRollbackOnly();
    And in my main code I have:
    StatefulContainerSessionEJB statefulContainerSessionEJB;
    public String createAddressThruStateful() {
    System.out.println("Create Address Thru Stateful Button hit....");
    try {
    final Context context = getInitialContext();
    statefulContainerSessionEJB = (StatefulContainerSessionEJB)context.lookup("StatefulContainerSessionEJB");
    statefulContainerSessionEJB.createAddress();
    } catch (Exception ex) {
    ex.printStackTrace();
    return null;
    public String cancelPartTimeTransaction() {
    System.out.println("Cancel Address Thru Stateful Button hit....");
    try {
    statefulContainerSessionEJB.cancelTransaction();
    } catch (Exception ex) {
    ex.printStackTrace();
    return null;
    First question is: am I using the Stateful bean correctly in main? i.e. its a class level variable and get instantiated in the createAddressThruStateful call.
    My second question is: when I run this code, my address get commited to the DB at the end of the createAddress() call. I didn't expect this to happen.
    Please straigten me out.
    Thanks,
    Chris

    please tell me what the inout in this coode means:A parameter that supplies input as well as accepts output is an INOUT parameter.

  • Problem with IDoc filtering in the distribution model

    Hello Experts,
    We are using a distribution model in which we have set filters as like the following
    Filter Group 1
               Plant : XYZ
               Sales Org: SAP1
    As far as the documentation says this Condition should work with AND logic between Plant and Sales Org
    (i.e ~ Plant XYZ and  SO SAP1 ) but the IDoc gets created even if any one of the condition is met(looks like working in OR logic).
    How to achieve the AND filtering between the different objects.
    Would appreciate your kind help.
    Thanks in advance.
    RGds,
    Vasanth.

    > Jakub ~ Yes I checked the generated IDocs(classified pertaining to my Model)for my model alone and that's where we are facing this problem
    So that's the filtering problem.
    I would check in which segments are the "filtering objects" located (BD59) and whether it is a mandatory segment. If it is a mandatory segment - IDoc should not be created. If it is an optional segment - this segment and its subsegmets will be filtered out - but IDoc will be created.
    > ~ Do we need to apply some SAP Notes to avoid this problem ?
    >  But why the filter should behave in OR fashion ? I do not understand.
    I believe that Sachin meant that the logic is:
    Filter Group1 OR Filter Group 2 OR ... Filter Group N
    Filter Group 1 Object 1 AND Filter Group 1 Object 1 ... AND Filter Group 1 Object M
    Filter Group 1 Object 1 Value 1 OR Filter Group 1 Object 1 Value 2 OR ... Filter Group 1 Object 1 Value L
    regards,
    Jakub

  • Distribution Model for PP-PDC

    Hi Guys,
    I'm new to this and I'm trying to find out, how I can create a filter for a "Subsystem Grouping" based on Work Centers.
    I've already assigned a subsystem group to all work center belong to a single plant.
    I'm trying to setup the distribution model to send IDOCs to an external system
    I've added a BAPI with details as follows:
    Model Name:                  XXXXX_LS
    Sender:                          XXXXX
    Receiver:                        XXXXXX  
    Obj. Name / Interface:     RCVPRORDCF
    Method:                          ReceiveProdOrder
    I've also assigned all Work center from 1 plant into the same Subsystem Group in CR02 ->Subsystem Link -> Subsystem Group = 301
    How can I create a filter to filter by the subsystem group for the work center, to download only those production orders based on this?
    Or, is there another way that I can filter by plant?
    Thanks a lot for the help guys

    1. Go to Tcode BD59.
    2. Create a Custom ALE Object Type
    3. Specify the corresponding Segment name where BUKRS exists and the Field Name as BUKRS.

  • ADD BAPI in distribution model

    Hello everybody,
    Can you please expalin use of ADD BAPI button given in BD64/distribution model.
    Please explain with an example.
    I tried to to serach on inetrnet about ADD BUTTON.But not much information available niether ADD BAPI was explained in me training.
    Thanks.

    Hi Jitu,
    gr8 to se ur reply.
    I think ur suggesting custom idoc for accounting.
    Though we need not use MASTER_IDOC_DISTRIBUTE.
    We can still create custom idoc using BDBG.
    Just need to instanciate BO-
    CALL FUNCTION 'SWO_CREATE'
      EXPORTING
        objtype           = 'ZBUS6035_A'           "My z- BO ,Here we can use standard BO
        objname           = 'ZBUS6035_A'         "Custom method
      IMPORTING
        object            = l_objhnd
      EXCEPTIONS
        no_remote_objects = 1
        OTHERS            = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    break-point.
    pass data to container for bapi
    SWC_GET_ELEMENT lt_cont 'Date1' DATE1.
    fire BAPI
    CALL FUNCTION 'SWO_INVOKE'
    EXPORTING
    ACCESS = 'C'
    object = l_objhnd
    verb = 'ZBUS60351_A'
    PERSISTENT = ' '
    IMPORTING
    return = l_return
    VERB =
    MODE_ID =
    TABLES
    container = lt_cont.
    My problem is resolved now.Icould use ADD BAPI for IDOC triggere.
    Thanks everybody for kind help.
    Edited by: Sanjay_lnt on Feb 1, 2011 11:35 AM
    Edited by: Sanjay_lnt on Feb 1, 2011 11:37 AM

Maybe you are looking for

  • My wd external driver is not recognized in Window 8

    Hello, Im using Mac Air, and my WD working well with that, but I cant use it on other computers using Window. It seems that my WD just working with Mac only ( it worked w another mac). Please help! What I can do? And my mac does not recognize other W

  • How to reference the selected row on a report by click a radiobox

    I created a report with a column displayed as a radiobox.The report source is like "select htmldb_item.radiogroup(1,.....),rec_id,....from .... where ....",after click one radiobox,i want to get other column's value in the selected row in the after s

  • Which pdf editor do you recommend?

    I been searching for PDF editors for a while. As most of them have a price, I guess asking for some advice might be handy. I have seen the iAnnotate and seems to be very good, a quite expensive. $9.99. Which other do you recommend? Thanks

  • URL to resource in jar?

    Hello Does anyone know how to properly write an URL to point to a file within the Midlet's jar? Say for instance that I have a file "music.mid" in the root of the jar-file of my Midlet suite, and want to access this via Manager.createPlayer(String ur

  • Indesign CS 3 crahes when using print command

    Hi there, I just updated my 2007 iMac to OS X 10.8.5. When I started Indesign after installation of the new Mac OS I was required to install another software which workel fine. I can open Indesing with no problem, but using the print command willl cr