Sharing static data between all WD components

Hello
I'm looking for a way to share static data between all WD sessions of a WD application. Static data is static (language depended) value lists for instance. How can this be done in WD for ABAP?
Is this recommended at all?
Regards, Mathias

Hi,
if these lists are static, you can use z-tables with in the key a 'spras' field.
do the selection while loading the application with sy-langu on those tables to fetch the language dependant lists
(example table makt, for material descriptions)
if you mean you want to share these data between several wda components of 1 application,
you should use the same assistance class in all of them and fetch the data in the main component to store it in the assistance class.
this class will be instantiated and all the other components will have access to the data (instance will be recognized automatically as of SP11)
grtz,
Koen
Edited by: Koen Labie on Mar 6, 2008 5:06 PM

Similar Messages

  • Diagram with communications between all XI components

    Is there a diagram on help.sap.com or somewhere that along with specifying the communication connectivity between all of the XI components it also has the URLs and RFC destinations that correspond to the cache refreshes, etc.
    This would really help troubleshoot some intermittent problems I am having.  Much appreciated.

    Hi George Hamilton ,
    The following web-sites give u step-by-step solution for communications between all XI components :
    SAP XI Infrastructure : Demo Example configuration
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/605c8e2f-d611-2a10-5187-abd511fa339b
    SAP Security Guide XI
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    XI Configuration guide
    http://help.sap.com/saphelp_nw04/helpdata/en/d7/f01a403233dd5fe10000000a155106/frameset.htm
    Technical Communication between configuration tools, Integration Builder tools and monitoring tools
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/f85141196ff423e10000000a155106/content.htm
    Monitoring Set Up guide for SAP Netweaver 04
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/df1a6313-0a01-0010-c9a2-d76d3f115d42
    Process Integration : Demo Example configuration
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80da7e60-d511-2a10-8885-f9ee5b36d63b
    Troubleshooting the File Adapter
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/troubleshootingtheFile+Adapter&
    Xi message processing monitoring & troubleshooting
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2f2a9fa2-0a01-0010-32ac-d281db722b86
    SAP XI- New possibilities in SAP Integration
    http://www.english.bcc.com.pl/pad_files/aw_files/260_EN_AW_096_DB21_SAPXI_ENG.pdf
    Interoperability between Microsoft BizTalk Server 2004 and SAP XI 3.0
    http://download.microsoft.com/download/5/7/f/57f1490e-8a8d-497b-bbae-ec2a44b3799f/BizTalkSAPXIInterop.pdf
    Supportability Set up guide : SAP Netweaver 04
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cc1ec146-0a01-0010-90a9-b1df1d2f346f
    *******Pls reward points if u find this useful
    cheers!
    gyanaraj

  • We have family sharing set up between all the family idevices. Can we share either Notes or a Pages document between devices?

    We have family sharing set up between all the family I devices. We want to collaborate on a document.  Can we share either Notes or a Pages document between devices?  We are all using iPad 2 or later and/or iPod touch or iPhone 5

    The "Sharing" part of Family Sharing refers mainly to purchased content. iCloud synced content such as Notes and contacts as well as documents is not included. While I do not know of anyway to share notes, iWorks documents can be shared directly from the app via an iCloud link.

  • Sharing Application Data Between 2 Web Services

    Hello,
    I have two web services that need to share data. They do not need to EXCHANGE data, but they need to have some sort of shared context to make the data available to each other.
    If its significant, one WS is jar-rs based, and the second is jax-ws based. In fact, there might be a third entity that is a conventional servlet, that also will participate in the data-sharing.
    Any response is greatly appreciated. Thank you for your time and support!

    No you can share data without exchanging it. If two or more web services have the same application context, they can create/update/remove shared attributes via servlet context. That is not exchanging data. Anyway I figured it out.
    All you have to do is grab the servlet context and add/replace attribute objects with names you share across the application

  • Sharing static members between Swing application and Web application

    Hi,
    if someone has done this please help:
    I have created 3 classes:
    Mainclass using JFrame which is used as host class for DBConnectionManager class,
    and ConfigBean class used for storing static configuration parameters:
         static public String strUser = "";
    static public String strPassword = "";
    static public String strDB = "";
    static public int nMaxConn = 0;
    static public String strPoolName = "";
    static public boolean bConnected = false;
    static public int nCurrentUsers = 0;
    static public DBConnectionManager manager = null;
         public DBConnectionManager getDBManager()
    return this.manager;
    public void setDBManager(DBConnectionManager manager)
    this.manager = manager;
    DBConnectionManager class uses static instance to see if this is only class created by client users.
    Only static member in this class is getInstance member function for startig manager:
         static synchronized public DBConnectionManager getInstance()
    if (instance == null)
    instance = new DBConnectionManager();
    return instance;
    In Mainclass I also created non static DBConnectionManager class for manipluation with host administrator.
    Then I created web application layout in Tomcat 4 and used index.jsp:
    <%@ page import="java.sql.*,java.io.*" %>
    <jsp:useBean id="cfgbean" class="webvobapli.ConfigBean" scope="application" />
    <%!
    webvobapli.DBConnectionManager db = null;
    String strMessage = "";
    Statement stmt1;
    ResultSet rset1;
    String strQuery = "select count(*) from cards";
    %>
    <html>
    <%
         try
              db = cfgbean.getDBManager();
              if(db==null)
                   strMessage = "Error";
              else
                   Connection con = db.getConnection("central2");
                   if(con != null)
                        stmt1 = con.createStatement();
                        rset1 = stmt1.executeQuery(strQuery);
                        rset1.next();
                        strMessage = rset1.getString(1);
                   else
                        strMessage = "NULL";
         catch(Exception e)
              strMessage = e.toString();
    %>
    <p>Message = <%=strMessage%></p>
    </html>
    Question: why db = cfgbean.getDBManager(); returns null if I created instance of DBConnectionManager
    class in Mainclass and assigned it to ConfigBean as static instance before running web application.
    Shouldn't all java programs share static memory area?
    Beast Regards
    Branislav Cavlin

    Question: why db = cfgbean.getDBManager(); returns null if I created >>instance of DBConnectionManager
    class in Mainclass and assigned it to ConfigBean as static instance >>before running web application.
    Shouldn't all java programs share static memory area?You say you create the db objects BEFORE you run the web application - now I could be misunderstanding what you are saying, but does this not involve two JVM's (one to create initial db objects, which then exits, then second JVM fires you app server/servlet container) - which would explain why a null object is being returned.

  • How to automatically sync a shared itunes library between all accounts?

    Hi Guys
    I have my itunes library on a separate drive in my desktop computer. My account points on this desktop to this library. I have another account on my laptop, set to automount this drive. iTunes on the laptop points to this library also. Both have admin rights to the iTunes library drive. I can add music or files from either account.
    In order to sync what each account sees in iTunes, the iTunes Library file and the xml file in each accounts' iTunes folder needs to be the same in both accounts.
    This is a pain whenever I have added to the library, eg downloaded a podcast, or ripped a CD. I know I can either manually drag the added files into the window of the iTunes that needs updating, or I can copy the iTunes Library file and the xml file from the most recently modified iTunes, or I can export the added playlist from the newer iTunes then add it to the older iTunes. All of these manual methods are not ideal.
    Now, my question is, has anyone achieved an automated way of doing this with the minimum degree of fuss? I'm thinking along the lines of Automator perhaps, or using a backup program on either computer to sync the library files say every night. Or is there another way. Or is my method of sharing one library not the best way. (I know I can use iTunes sharing, but it means I can't modify the library from all accounts.)
    Any comments?
    Thanks
    Michael

    have you done a consolidate in iTunes?
    http://docs.info.apple.com/article.html?artnum=93195
    http://docs.info.apple.com/article.html?artnum=301748
    http://docs.info.apple.com/article.html?path=iTunesMac/5.0/en/670.html

  • Sharing common data between forms

    Greetings,
    I have several paper forms that comprise a packet of information.  Currently, our process is to fill out the forms by hand.  All of the forms have become available as individual fillable pdfs.  To make our process more efficient, I would like to make use of the digital pdfs.  What I would like to accomplish is to have any common data, such as First Name, Last Name, Address, State, etc. that is entered on the first form be able to autofill those fields on the following forms.  I need some direction, perhaps an overview to get started, on how to accomplish this, and what product should be used.  I have some programming knowledge, but none with Adobe products, and what I have available to me is Adobe Acrobat Pro 9.  Thanks, any insights provided are much appreciated.

    Hi
    If you are using Forms 6i, you can store all these values in a PLSQL table in a package in the first form. When you call the second form, call it with the SHARE_LIBRARY_DATA parameter and these values will be available in the second form.
    In the when new form instance of the second form, manipulate these values and construct the query and execute query.
    HTH
    Arvind Balaraman

  • Best method for passing data between nested components

    I have a fairly good sized Flex application (if it was
    stuffed all into one file--which it used to be--it would be about
    3-4k lines of code). I have since started breaking it up into
    components and abstracting logic to make it easier to write,
    manage, and develop.
    The biggest thing that I'm running into is figuring out a way
    to pass data between components. Now, I know how to write and use
    custom events, so that you dispatch events up the chain of
    components, but it seems like that only works one way (bottom-up).
    I also know how to make public variables/functions inside the
    component and then the caller can just assign that variable or call
    that function.
    Let's say that I have the following chain of components:
    Component A
    --Component B
    -- -- Component C
    -- -- -- Component D
    What is the best way to pass data between A and D (in both
    directions)?
    If I use an event to pass from D to A, it seems as though I
    have to write event code in each of the components and do the
    bubbling up manually. What I'm really stuck on though, is how to
    get data from A to D.
    I have a remote object in Component A that goes out and gets
    some data from the server, and most all of the other components all
    rely on whatever was returned -- so what is the best way to be able
    to "share" data between all components? I don't want to have to
    pass a variable through B and C just so that D can get it, but I
    also don't want to make D go and request the information itself. B
    and C might not need the data, so it seems stupid to have to make
    it be aware of it.
    Any ideas? I hope that my explanation is clear enough...
    Thanks.
    -Jake

    Peter (or anyone else)...
    To take this example to the next (albeit parallel) level, how
    would you go about creating a class that will let you just
    capture/dispatch local data changes? Following along my original
    example (Components A-D),let's say that we have this component
    architecture:
    Component A
    --Component B
    -- -- Component C
    -- -- -- Component D
    -- -- Component E
    -- -- Comonnent F
    How would we go about creating a dispatch scheme for getting
    data between Component C and E/F? Maybe in Component C the user
    picks a username from a combo box. That selection will drive some
    changes in Component E (like triggering a new screen to appear
    based on the user). There are no remote methods at play with this
    example, just a simple update of a username that's all contained
    within the Flex app.
    I tried mimicking the technique that we used for the
    RemoteObject methods, but things are a bit different this time
    around because we're not making a trip to the server. I just want
    to be able to register Component E to listen for an event that
    would indicate that some data has changed.
    Now, once again, I know that I can bubble that information up
    to A and then back down to E, but that's sloppy... There has to be
    a similar approach to broadcasting events across the entire
    application, right?
    Here's what I started to come up with so far:
    [Event(name="selectUsername", type="CustomEvent")]
    public class LocalData extends EventDispatcher
    private static var _self:LocalData;
    // Constructor
    public function LocalData() {
    // ?? does anything go here ??
    // Returns the singleton instance of this class.
    public static function getInstance():LocalData {
    if( _self == null ) {
    _self = new LocalData();
    return _self;
    // public method that can be called to dispatch the event.
    public static function selectUsername(userObj:Object):void {
    dispatchEvent(new CustomEvent(userObj, "selectUsername"));
    Then, in the component that wants to dispatch the event, we
    do this:
    LocalData.selectUsername([some object]);
    And in the component that wants to listen for the event:
    LocalData.getInstance().addEventListener("selectUsername",
    selectUsername_Result);
    public function selectUsername_Result(e:CustomEvent):void {
    // handle results here
    The problem with this is that when I go to compile it, it
    doesn't like my use of "dispatchEvent" inside that public static
    method. Tells me, "Call to possibly undefined method
    "dispatchEvent". Huh? Why would it be undefined?
    Does it make sense with where I'm going?
    Any help is greatly appreciated.
    Thanks!
    -Jacob

  • Share cluster data between 2 timed loops

    What is the best and safest way of sharing cluster data between 2 timed loops running. I could use locals, but that is risky, would shared variables work better? All I need to do is modify a couple of datatypes in a cluster that both threads use.
    Thanks...

    You could go the LVOOP route and create a singleton object. The object can be passed to parallel tasks an dsince it is singleton they will all share the same value. Ue of a DVR inside the object would allow you to have a single copy of the data. Your class would also give you the necessary accessors for reading/writing data.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Reinitialization of static data by multiple applets

    Hi,
    I have a problem with initialization of shared static data by multiple applets. I have three applets running inside of different HTML frames in a multi-frame HTML framework. Applets are loaded as JAR files. In addition, every applet has one or two 3rd party JARs listed in the APPLET tag. Applets share the same codebase and run inside the same JVM.
    I use static data to perform the inter-applet communication. This is simply a static list of applet references that is being maintained in the base applet class (all applet classes are inherited from that class). The problem is that when applets get constructed, the static data in the base class sometimes gets reinitialized multiple times. As I understand, the static data should be initialized just once on initial load of the base applet class (applets have the same codebase).
    This problem seems to be caused by the race condition (applets initialize on different threads launched by the browser). Under some circumstances (I change the number and order of JARs, etc.) everything works fine. I can reproduce this problem on both Explorer 5.x and Netscape 4.7 (did not try others). I run applets using native browser's JVM.
    Has anybody had such problem before? Is it caused by the large number of JARs ? Is there any way to guarantee that static data will be initialized once in the multi-applet environment ?
    Thanks,
    hparfen

    Hi,
    Did you find something to solve your problem because I have exactly the same.
    Tony

  • Sharing data between two separate user sessions

    Hi all!
    I have been trawling my brain for a solution to this - any help will be appreciated!
    I would like to create a single instance of a class but share that instance over more than one user session (two separate users but both running concurrently).
    Just as you can pass data between sessions using ABAP memory - I would like to pass data (specifically an object reference) between two separate users that could even be logged in to two separate application servers...
    Even a mini Client/server solution would suffice but I cannot figure one out!
    Is this possible?
    Many thanks for your thoughts in advance...
    N

    Hello N K,
    sorry thats not possible. Sharing a data item / object instance requires at least a common physical memory. As this is not guaranteed between different app. server this is technical not possible.
    With release 640 ABAP offers the new feature Shared Objects. These mechanism allows access by different users and some propagation to differnt servers.There is an interesting article on the ABAP SDN homepage
    https://www.sdn.sap.com/sdn/developerareas/abap.sdn
    For relases below more or less the database is the only chance to store data accross application servers (known to me). One exception might be the ENQUEUES which might (mis)used to store some Flags.
    Kind Regards
    Klaus
    Link to Shared Objects PDF
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/shared objects in abap

  • Data between mxml components

    I have a question about data between mxml components.
    Product.mxml is the overview screen for the products and ProductDetail.mxml (it is a TitleWindow) the detail screen.
    In the Product I define a value object ProductVo with all the data. When I click a record in the overview and click the button 'change' (changeProduct function) then a popup window appears with all the data in it.
    Code in Product.mxml:
    [Bindable]
    public var myWin:ProductDatail;
    private function changeProduct():void {
      myWin = PopUpManager.createPopUp(this, ProductDetail, true) as ProductDetail;
      myWin["btnSave"].addEventListener("click", save);
    private function save(event:Event):void {
      productVo.productId = myWin.ti_productnr.text;
      productVo.name = myWin.ti_name.text;
      productVo.ean = myWin.ti_ean.text;
      ...some code to save the data in the db...
    Code in ProductDetail.mxml:
    [Bindable]
    public var productDetailVo:ProductVo;
        <mx:Form>
            <mx:FormItem label="Productnr" required="true">
                <mx:TextInput id="ti_productnr" text="{productDetailVo.productId}" width="60"/>
            </mx:FormItem>
            <mx:FormItem label="Naam" required="true">
                <mx:TextInput id="ti_name" text="{productDetailVo.name}" width="200"/>
            </mx:FormItem>
            <mx:FormItem label="Ean">
                <mx:TextInput id="ti_ean" text="{productDetailVo.ean}" width="100"/>
            </mx:FormItem>
            <mx:FormItem direction="horizontal">
                <mx:Button id="btnSave" label="Save"/>
            </mx:FormItem>
        </mx:Form>
    So my question: the save function in Product.mxml, is it possible to do this in a easier way instead of linking all the data from the form into the value object? Something like productVo = myWin.productDetailVo, but that does not work.

    I just looked at the parsley framework and saw this code:
    private function save():void
    contact.firstName = firstName.text;
    contact.lastName = lastName.text;
    contact.email = email.text;
    service.save(contact);
    So, it is doing the same thing I'm doing.
    I'm using Spring and hibernate on the server level, it is my own framework.

  • Display all dates between date range (Time Dimension left outer join Fact)

    All,
    I have done some searching around this issue but within all the posts regarding date variables, date prompts and date filtering I haven't seen one exactly answering my issue (maybe they are and I just dont have my head around it correctly yet).
    My report requirement is to allow a user to select a start day and an end day. The report should show all activity between those two days - AND display 0/null on days where there is no activity. That second part is where I am getting hung up.
    The tables in question are:
    TimeDim
    EventFact
    CustomerDim
    My BMM is setup as follows:
    TimeDim left outer join EventFact
    CustomerDim inner join EventFact
    If I run a report selecting DAY from TimeDim and a measure1 from EventFact with day range 1/1/2010 - 12/31/2010 .. I get a record for every day and it looks perfect because of the left outer join between TimeDim and CustomerDim.
    But .. if I add in a field from CustomerDim, select TimeDim.DAY, CustomerDim.CUSTNAME, EventFact.MEASURE1, OBIEE only returns records for the days that have EventFact records.
    This is due to the fact that the TimeDim is still outer joined into EventFact but adding in CustomerDim makes OBIEE setup an inner join between those tables which then causes only data to be returned where EventFact data exists.
    There is a way around this in this simple case and that is to define the relationship between CustomerDim and EventFact as an outer join as well. This will give the desired effect (but an outer join between these two tables is not the true relationship) and as I add additional dimensions and add additional logical sources to a single dimension in the BMM it gets complicated and messy.
    Ive also messed with setting the driving table in the relationship, etc.. but it has not given the desired effect.
    Has anyone ever encountered the need to force display all dates within a specfied range with a fact table that may not have an entry for every date?
    Thanks in advance.
    K
    Edited by: user_K on Apr 27, 2010 11:32 AM

    It worked!!!* Even my time drill downs and date based filtering still work!
    That is awesome. Never would have thought of that intuitively.
    Now, just need a little help understanding how it works. When I run my report and check the logs I can see that two queries are issued:
    Query 1: Joins the fact table to all the associated dimensions. I even changed all the relationships to inner joins (which is what they truly are). And calculates the original measure. If I copy and paste this query into sql developer it runs fine but only returns those rows that joined to the time dimension - which is what was happening before. It is correct but I wanted a record for every time dimension record.
    Query 2: Looks like the following:
    select sum(0)
    from timedim
    where date between <dateprompt1> and <dateprompt2>
    group by month *<--* this is the time dimension level specified in Query 1, so it knows to aggregate to the month level as was done in query 1
    Final Question: So what is OBIEE doing ultimately, does it issue these two requests and then perform a full outer join or something to bring them together? I couldn't see anywhere in the log a complete query that I could just run to see a similar result that I was getting in Answers.
    Thanks for all the help .. Id give more points if I could.
    K

  • Difference between all views in data dic

    hi all,
           can any body tell me the diff between all views
    projection view ,database view,maintance view,help view
    plz tell me the difference with a example
    hope for positive reponse

    A view is a logical view on one or more tables, that is, a view is not actually physically stored, instead being derived from one or more other tables.
    In the simplest case, this derivation process can involve simply suppressing the display of one or more fields from a table (projection) or transferring only certain records from a table to the view (selection). More complicated views can be assembled from several tables, with individual tables being linked using the relational join operation.
    Use
    Logical views for the application permitting direct access to the data can be generated with the definition of view. The structure of such a view is defined by specifying the tables and fields involved in the view.
    <b>Maintenance Views </b>
    Maintenance views offer easy ways to maintain complex application objects.
    Data distributed on several tables often forms a logical unit, for example an application object, for the user. You want to be able to display, modify and create the data of such an application object together. Normally the user is not interested in the technical implementation of the application object, that is in the distribution of the data on several tables.
    A maintenance view permits you to maintain the data of an application object together. The data is automatically distributed in the underlying database tables. The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.
    <b>Database Views </b>
    Data about an application object is often distributed on several database tables. A database view provides an application-specific view on such distributed data.
    Database views are defined in the ABAP Dictionary. A database view is automatically created in the underlying database when it is activated.
    Application programs can access the data of a database view using the database interface. You can access the data in ABAP programs with both OPEN SQL and NATIVE SQL. However, the data is actually selected in the database. Since the join operation is executed in the database in this case, you can minimize the number of database accesses in this way. Database views implement an inner join
    <b>Projection Views </b>
    Projection views are used to hide fields of a table. This can minimize interfaces; for example when you access the database, you only read and write the field contents actually needed.
    A projection view contains exactly one table. You cannot define selection conditions for projection views.
    There is no corresponding object in the database for a projection view. The R/3 System maps the access to a projection view to the corresponding access to its base table. You can also access pooled tables and cluster tables with a projection view.
    <b>Help Views </b>
    You have to create a help view if a view with outer join is needed as selection method of a search help.
    The selection method of a search help is either a table or a view. If you have to select data from several tables for the search help, you should generally use a database view as selection method. However, a database view always implements an inner join. If you need a view with outer join for the data selection, you have to use a help view as selection method.
    Regards,
    Pavan

  • How to pass data between components?

    Hi everyone,
    How can I pass data between components? If possible, please
    give me sample code. Thanks.
    Note: I am using Flex 3.
    May

    There are lots of examples in the doc. You can start here:
    http://livedocs.adobe.com/flex/3/html/mxmlcomponents_advanced_1.html
    Stephen

Maybe you are looking for

  • How to install USB flash drive in windows 7

    Could anyone please help to install USB flash drive to Windows 7. This will enable me to hook up keyboard and mouse to my laptop. Thank you so very much for any assistance.   

  • Upgrading a database from 8.1.6 to 9.2.0

    Hi, Oracle provides scripts to directly upgrade a database from an older release to the latest release. In the 9.2.0 installation, scripts are available to upgrade from 8.0.6, 8.1.7 and 9.0.1. No scripts is present for upgrading my 8.1.6 database to

  • Selective Deletion of the Cube contents in Abap Program of the PChain

    Dear Experts I need to selectively delete the contents in Basic Infocube using Process Type - ABAP Program in the Process Chain in BW 3.5 For this I have to give the Variant and Program name in the Process Type - ABAP Program in the Process Chain The

  • Preview PDF grayed out

    I am using Designer for the first time, and I wanted to preview the PDF after I had added a few fields to a new form.  But when I go to turn on the View > Preview PDF tab the selection is grayed out.  I can publish the PDF and tehn look at it, but th

  • Auto Increment Primary Keys

    I am trying to migrate from SQL Server. I want to setup tables which generate sequencial Primary keys on adding records to the table. I have a VB application which is using ADO with an ODBC connection. How does one use the Oracle Enterprise Console M