Custom connection using many Aplication Modules

Hi all,
for my ADF Swing application I am using custom connection defined in JCLoginDialog:
JUMetaObjectManager.setErrorHandler(new JUErrorHandlerDlg());
JUMetaObjectManager mgr = JUMetaObjectManager.getJUMom();
mgr.setJClientDefFactory(null);
BindingContext ctx = new BindingContext();
ctx.put(DataControlFactory.APP_PARAM_ENV_INFO, new JCLoginDialog(configFile));
ctx.setLocaleContext(new DefLocaleContext(null));
HashMap map = new HashMap(4);
map.put(DataControlFactory.APP_PARAMS_BINDING_CONTEXT, ctx);
mgr.loadCpx("view.DataBindings.cpx" , map);
This works correctly for 1 Application module. If I have more than one application module. The first application module is using information entered in JCLoginDialog. Other Application modules are using connect information from bc4j.xml files and I'm not able to change it.
Thanks for help
Karel

Yes I have written my own class which extends ApplicationPoolImpl. In that class you need to set the correct connect string.

Similar Messages

  • How to create customer By using SD_CUSTOMER_MAINTAIN_ALL function module

    Hello all,
    I want to create customer By passing( T_CUST_HIER_IP - customer no, account group, company code, distribution channel, division, name1, search team, city, country).
    using BAPI or function module I am using SD_CUSTOMER_MAINTAIN_ALL
    LOOP AT T_CUST_HIER_IP INTO W_CUST_HIER_IP.
        MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNA1.
        MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNB1.
        MOVE-CORRESPONDING W_CUST_HIER_IP TO W_KNVV.
      CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
       EXPORTING
         I_KNA1                              = W_KNA1
         I_KNB1                              = W_KNB1
         I_KNVV                              = W_KNVV.
    ENDLOOP
    But it gives error SALES_AREA_NOT_VALID.

    Hi,
       Check in TVKO and TVTA  master tables, for Sales Area (Sales OrganizationDistribution ChannelDivision) is vaild or not..
       If no entreis availble , it will raise the exception SALES_AREA_NOT_VALID.
    -somesh
    reward points if it is helpful

  • Is it possible to connect labview with opc server without using NI dsc Module ?

    Hellow sir,
    I want to get data over labview using OPC server and i am not using any dsc module vi (Alams, print, GUI, security).I am using share variable to get data from OPC server to labview. Now i want to deploy that application to third party computer. (where there is no NI software is installed)
    i am using labview 8.6 and 2009.
    Many ? like....
    1) what is the procedure to install that application in third party computer.
    2) Do i need to use my dsc run time licence..?
    waiting for your valuable feed back.
    Thank you.
    CLAD
    Labiew programmer

    Hi, When you connect to NI OPC Server by creating New I/O Server > OPC Client. You will see all registered OPC Servers running on local machine or remote machine. I used KepServerEx from Kepware and LSIS OPC Server from LG with no problems. Just make sure that the OPC server is running.
    Hope it helps
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology
    Attachments:
    LG.png ‏57 KB

  • Aplication Module Connection

    Is it possible to specify the connection that a certain Aplication module/transaction uses?
    I need to have a connection open for each user, thats's why i need to tell the application module the connection to use...
    Please this is very important...
    Daniel Campelo

    1 - out.println("JDBCURL = "+
    appModule.getDBTransaction().getConnectionMetadata().g
    tJdbcURL());
    2 - appModule.getDBTransaction().disconnect();
    3 - out.println("Is connected =
    "+appModule.getDBTransaction().isConnected());
    4 -
    appModule.getDBTransaction().connect(this.getConnectio
    5 - out.println("URL = "+
    this.getConnection().getMetaData().getURL());
    6 - out.println("Is connected =
    "+appModule.getDBTransaction().isConnected());
    7 - out.println("JDBCURL = "+
    appModule.getDBTransaction().getConnectionMetadata().g
    tJdbcURL());
    1 - is printed the JDBCURL of the transaction
    2 - Disconnect
    3 - Confirmation
    4 - The new connection
    5 - gets the url of the new connection (directly)
    6 - Confirms the new connection
    7 - Here he should print an URL equal to the one
    shown in the line 5... Instead it shows an emptye
    string...Shouldn't the DBTransactionImpl class
    actualize the metadata for the new connection?
    I'm getting really desperate...Please is there anyone
    who knows how to or even know if this is a bug or a
    missing feature of the connection? I really need the
    connection done like this.
    TIABH,
    Daniel CampeloSollution :
    Process all listed steps making the following change in the step 4 :
    4 ->
    //Here is the class i needed!!!!!
    DBTransactionImpl2 dbTrans = (DBTransactionImpl2)(appModule.getDBTransaction());
    //And now this method it's not deprecated :)))))))
    dbTrans.connect(this.getConnection());
    So it should be in the end like this :
    1 - out.println("JDBCURL = "+
    appModule.getDBTransaction().getConnectionMetadata().g
    tJdbcURL());
    2 - appModule.getDBTransaction().disconnect();
    3 - out.println("Is connected =
    "+appModule.getDBTransaction().isConnected());
    4 -//Here is the class i needed!!!!!
    4.1 - DBTransactionImpl2 dbTrans = (DBTransactionImpl2)(appModule.getDBTransaction());
    //And now this method it's not deprecated :)))))))
    4.2 - dbTrans.connect(this.getConnection());
    5 - out.println("URL = "+
    this.getConnection().getMetaData().getURL());
    6 - out.println("Is connected =
    "+appModule.getDBTransaction().isConnected());
    7 - out.println("JDBCURL = "+
    appModule.getDBTransaction().getConnectionMetadata().g
    tJdbcURL());

  • Custom extractors using function modules

    Hey all
    Does anyone has a document regarding how to <b>Develop Custom extractors using function modules?Step by step method would be great</b>
    Also document regarding <b>CTS in BW?</b>
    Appreciate it
    Thanks

    Hi,
    See here:
    Generic Extractors
    Generic data sources
    Generic DS
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    Best regards,
    Eugene

  • Use of function module 'FTP connect'

    when we use the function module 'FTP connect', and 'FTP_R3_TO_SERVER'

    Hi,
    The Function module GUI_DOWNLOAD is used to download the data into presentation server and Dataset concepts to download the data into Application server. Sometimes we may require to download the data from other system (3rd Party System) to SAP and Vice Versa. In such scenarios, the concept of FTP commands comes into picture.
    the various FTP commands are:
    HTTP_SCRAMBLE, FTP_CONNECT, FTP_R3_TO_SERVER, FTP_DISCONNECT, RFC_CONNECTION_CLOSE function modules.
    FTP_CONNECT : This is used to connect to other system from SAP with the help of Userid & amp; scrambled password & Host string & destination (default 'SAPFTP').
    FTP_R3_TO_SERVERThis is used to transfer the internal table data as a file to other system in the character mode.
    for more details refer to link:
    Transferring Data from SAP to Other Systems
    Thanks
    Rajesh Kumar

  • How many number of database connections used in a transaction

    Hi All,
    We are using weblogic 8.1 with Oracle 9i both running on windows 2000. We are trying to estimate the potential resource usage in the system we are building. As part of this activity we want to find out how the database connections are used for entity beans -
    If a session bean calls more than one entity beans
    (each method in the entity bean doing one update) does weblogic use the same database connection for all the entity beans or does it use seperate connections ? Is such behaviour documented somewhere ?
    Here the assumption is all the entity beans are linked to the same datasource.
    If the (default) behaviour is to use seperate connections is there a way to make it use one connection across multiple entity beans.
    Thanks
    Kingshuk

    Hi Bodapati,
    Sorry for the delay in replying to this.
    There is optimization, which will use the XA
    connections from the pool. Can you tell me what your
    observations are? I may be able to see if we can tune it.From our tests the XA driver too appear to make use of one connection only for the life of the transaction. There is a good document here explaining how it is ensured that only one connection is used - http://e-docs.bea.com/wls/docs81/oracle/trxjdbcx.html#1083132
    Quoting from the above URL :
    When a thread attempts to use a connection, the XA jDriver calls xa_open (and xa_start) to create the connection and associate it with the thread. After the database connection is created, the connection remains associated with the thread; the driver does not call xa_close. When the thread subsequently needs a database connection, it uses the same database connection associated with it, even though it appears to get and return a connection from the JDBC connection pool
    I am not sure why you say the connections will be
    blocked. One connection will be blocked only if you are > using non-XA driver to setup the pool, until the
    transaction commits. For XA there is no need to reserve
    the same connection for the transaction.Probably my understanding on this is incorrect and I need to read up. I was under the impression that - once a transaction begins, each connection used within that transaction, is enlisted as a part of that transaction and can not be used by in another transaction until the transaction commits or rollsback.
    Thanks
    Kingshuk

  • How to get list of custom objects used in abap report program?

    Hi friends,
    I have a requirement in which I have to scan the entire abap report and retrieve list of custom objects used in it for example custom tables, data elements, structures, table types etc,. Is there any provision in SAP like fuction modules to do this functionality?  As of now I am coding everything manually where so many possibilities are there for all kinds of objects. Provide your answers and suggestions...
    Thanks,
    Nastera

    Hi,
    The best way to do this is environment analysis. Follow the steps:
    1. Open se38, type in the program name (don't click on on display/change or create button, stay on first screen only)
    2. Click on environment analysis button (hot key SHIFT+F4)
    3. It will throw a pop-up, which will ask for type of object you want to see, which are linked /used by this program. select all (or may be if you are only interested in Tables, then select table only)
    4. Hit 'Enter'
    You will get the full list of all objects used in this report program. Just note down the one which starts with Z or Y and that's it.
    Cheers,
    Anid

  • Can i use the Service Module?

    Hello all,
    can i use the service module w/ the ff. scenario?
    items are manage by serial numbers., but we dont sell it, we purchase the item for internal use only. this are the ff. information that i want to track.
    1.     track the history of the item everytime it has undergone for repair
    a.     some cases the repair takes place within the company, meaning employees within the company take care on the labor but only parts will be purchase
    b.     some cases the repair takes place in business partner, (PO Service in this case)
    2.     track the parts that was replace
    what will be my work around for this. please advice
    best regards,
    Fidel

    Hi Fidel,
    You would need the following is you wanted to use the Service Module to track internal serialized inventory/hardware:
    1.  Set up a customer record that would represent the internal use/company/department
    2.  Manually create the Customer Equipment Card (when receiving the equipment on GRPO or AP invoice, you would want to use a warehouse that represents internally-used equipment/assets)
    Repairs:  you could update the status of the CEC record when it's being repaired (or have a repair WH for when it's sent off-site).
    Expenses:  related expenses could be done by creating a Service Call linked to the CEC with details/purpose, etc. which would be tracked on the Expenses tab but the transactions don't include AP (PO's), the assumption being that any expenses would be charged back to the customer, which in this case would be internal.
    If you want the expenses linked to the item/CEC then you could use Activities from Service Call and you can link the PO/AP invoice thru the Activity. You could have one S/C record that would be for tracking equipment repairs and leave it open for as long as you have the item - that would be the link between the Activities and the CEC/equipment record. Whenever repairs are to be record, you would only need to pull up the CEC record and drill-down to the S/C to create a new Activity record. This will also enable you to see how many repairs are being down - you could even breakdown the Activity on internal vs external (have it as a Type, on which you can then report on overall as well as by item).
    It will depend on what info you want to capture and if you need anything for reporting that would be that detailed (i.e. down to a serialized item) as to what process & setup you want to use. Try out the above and hopefully something will work out.
    HTH,
    Heather

  • How many application modules do I have to have ?

    Sir,
    In my JClient application, there is a model project which contains view objects for two forms. One of the forms is opened witin the other form.
    If I include all view objects in one application module, will the two forms share one database session and be committed at the same time?
    If I want to open these two forms in different database session, how can I get it?How many application modules should I create? And how to arrange these application modules?
    Thanks
    Stephen

    Frank,
    Now I create two application modules for the two forms in the same model project, and one of the forms has a JCLoginDianlog created, the other one has no JCLoginDialog. And I unselect the deploy password checkbox for the connection.
    How can I open the second form within the first form without the second login procedure? I mean, can I keep the first login credential and use it for the second form login?
    In Forms Builder, the end user need to login once when opens the main window, and don't need login when opening subcequent forms. Can Jdeveloper do that?
    Thanks
    Stephen

  • How Many Application Module should I have ?

    Hi All,
    Could you please share your experience...
    I am developing a ADF Faces + BC application, how can I determine how many application module should I have ?
    I have modules , i.e :
    Sales
    AR
    Inventory
    Purchasing
    GL
    Can I say that I should have 5 application modules ? ( one for each module ? )
    Thank you for your info,
    xtanto

    Its difficult to know if 80 is too much or jus right...The danger is that if you have many application modules, and for example a particular UI page requires you to manipluate data in many application modules then this has potential to be "overkill"...each AM requires a check out from the AM pool and database connection etc. etc. etc.
    If you need to manipulate many app modules on a single UI page if you were to nest these application modules then this might be more reaslistic...However, if a couple of UI pages requires manipulation of only one app module this sounds reasonable...
    I dont know if that really helps you
    So if on pages A, B and C you maintain Sales Order (which is one app module) then thats ok.
    If in pages X, Y and Z you manipulate Quotation (which is one app module) that would be ok as well.
    If the use case is that in page F, G and H you maintain Sales and on page J you maintain Quotation then you might want to nest one inside the other.
    If your use case is on screen K, L M, N, O, P and Q you access 4-5 different app modules then that would raise a concern with me...
    Again, don't know if that helps,,,
    One way of lookin at this is to create your VOs based on the way you want in the information to appear on your pages and from those pages think about the "uses case" and create your app modules based on those use cases...
    Does that help?
    regards
    Grant

  • Data Center Connection using ONS 15530

    Hi!
    1. I am connecting 2 Data Center using DWDM on ONS 15530. The client is GE and planning on running Gigabit Etherchannel.
    2. My question is, whish one is better? Using the multirate transponder or GE aggregation card to connect to GE client?
    3. Either way, how does client and ONS component interconnect?
    - If transponder is used, how does the OADM, OSC, trunk card and transponder connect to each other?
    - If muxponder is used, what component is needed ad how does it connect?
    4. FYI, I come from ONS 15540 ESPx background where everything connect externally. Apreciate you guys expert response. Thanks.
    Rgds
    Helme

    You have three options:
    1/ Use 8 port aggregation card (15530-FCGE-8P) together with 10G ITU card (4 port aggregation card is not cost effective if you are carrying only GE traffic). 10G ITU is the expensive part.
    This 8 port aggregation module is connected to 10G ITU module via ONS15530 electrical backplane (not optical); 10G ITU and 8 port module both have 4x 2,5G backplane connections. 10G ITU is connected OADM using external MU-MU optical patch cords.
    You can also use 2,5G ITU card but then you can only use 2 ports of the 8 port module card.
    2/ Use 8 port multiservice muxponder (15530-MSMP-xxxx), this card has 2,5G capacity and card is SDH/SONET based. DWDM laser is embedded in the card, so this card is connected directly to OADM using external MU-MU optical patch cords (no backplane connections). Remember that this card is 2,5G so if you plan to use only GE you can utilize only 2 ports from the module.
    3/ Use Transponders (15530-TSP1-XXX2) as you do in ONS15540. One Transponder - one client signal - one lambda. Transponder is connected directly to OADM using external MU-MU optical patch cords (no backplane connections).
    What solution fits best for you depends on how many GE connections you need, what are future needs for more ports, what is your optical power budget, do you need high availability (no single point of failure) etc. Cheapest way to run only 2x GE is using option 2 above.
    rgds,
    Jp

  • I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    I want to use the Web module to publish to the a website... What kind of server do I need to be able to publish my website?

    You don't need a server, you just need a web hosting package such as the ones from GoDaddy or many other hosts. You then send the web gallery directly from LR to your web space.
    As you're asking such basic questions, it might be best if you read articles like this and see if a friend or colleague can get you started.

  • How to connect our outbound function module to the message type

    how to connect our outbound function module to the message type any transcation code exits to assign the message type with the function module .
    Thank in advance .
    A. Thiru

    Hi Thiru,
    Standard Transaction Codes, have their own Function Modules for generating Outbound/Indbound Idocs. Where these Function Modules will be configured to a particular Process Codes.
    For E.g for PO's
    Process code : ME10 - IDOC_OUTPUT_ORDERS - for creation
    In case if its a Z Function Module, It depends on the case how you use IDOC types. either directly through Z Program or through Inbound/Outbound Process  codes with respective Function modules.
    Regards,
    Anbalagan

  • How can i use reuse_alv_fieldcatalog_merge function module

    I am using below steps for populating the final internal table.How can I use reuse_alv_fieldcatalog_merge function module in the place of declaring all these fields.How canI put title of the report in reuse_alv_fieldcatalog_merge function module.
    FORM BUILD_FIELDCATALOG .
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'KUNNR'.
      FIELDCAT-SELTEXT_M = 'Customer Name'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VBELN'.
      FIELDCAT-SELTEXT_M = 'Invoice Reference'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKBUR'.
      FIELDCAT-SELTEXT_M = 'Sales Office'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKGRP'.
      FIELDCAT-SELTEXT_M = 'Sales Person'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'POSNR'.
      FIELDCAT-SELTEXT_M = 'Item No'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FIANL'.
      FIELDCAT-FIELDNAME = 'ARKTX'.
      FIELDCAT-SELTEXT_M = 'Item Description'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.

    Hello,
    It is very easy to use reuse_alv_fieldcatalog_merge.
    You try this it will work.
    example
    data:
    DATA : gv_repid        TYPE syrepid VALUE sy-repid .  " Report id
      PERFORM set_field_catalog USING gst_struct CHANGING lst_fieldcat.
    FORM set_field_catalog  USING uv_tab TYPE slis_tabname
                         CHANGING  xt_fieldcatalog TYPE slis_t_fieldcat_alv.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = gv_repid
          i_internal_tabname     = uv_tab
          i_inclname             = gv_repid
        CHANGING
          ct_fieldcat            = xt_fieldcatalog
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " set_field_catalog_spec

Maybe you are looking for

  • Used supply in use

    Dear , I don;t know why my Laserjet M1217 show in screen " Used supply in use" , Would you please kindly tell me what happenning of my printer. Thank you very much. This question was solved. View Solution.

  • PDF opening in Gibberish!!!!

    We use PDF's to quote customers, and most are coming back to us saying that the PDF is in gibberish and unable to be read. I can open it on my system and it looks fine. The version I am using is reader X 10.1.13......... This is driving us nuts, and

  • Dreamweaver template problems

    Is anyone else having trouble with templates? I save the template and it does not change the template pages or somewhat inconsistently. What is the deal.

  • Zen micro media explo

    i got the new firmware for my zen micro 5 gb. since then zen micro media explorer wont work so i'v had to use the Creative MediaSource Organizer and i dont like it. Is there a way for me to update Zen Micro Media Explorer so i can organize my player

  • FrameMaker server vs single user licensing requirements for WebWorks Automap?

    Hi guys, Does anyone happen to know if a FrameMaker server license is required to support a WebWorks Automap HTML generation process?  Or is a single-user license acceptable (so long as only one user is accessing the machine).  My understanding is th