Separate UI logic and database operation

Hi,
For better performance i want to separate UI logic that is within PAI event and my application logic that is insert operation.
any good idea?? shall i use function module??
Thanks
Regards,
Virat

Hi,
There will not any performance issue as such as all the code will be executed by the same Dialog workprocess in the application server.
But it is alwys good to keep you flow logic and application logic seperated, so flow logic just calls the methods and the methods are in a different component like a static method of a class or function module in a function group.
Best thing is Function Group as you can have screens in a Function pool.
Regards,
Sesh

Similar Messages

  • How to separate UI logic and applcation logic

    Hi,
    For better performance i want to separate UI logic that is within PAI event and my application logic that is insert operation.
    any good idea?? shall i use function module??
    Thanks
    Regards,
    Virat

    Hi,
         The best way to seperate is to WRAP all your business logic into some ABAP objects class or some Function module and then in the PAI call appropriate methods.
    Still you will have the method call in the PAI but atleast the business logic is in a seperate component and you can transport it seperatley.
    Regards,
    Sesh

  • Where to find how to use JSF and database operation(eg. JDBC) together?

    Thanks very much!

    Hi zhouen & Andrea,
    Actually you should avoid using the SQL tags for antyhing but a trivial application.
    I previously posted on this topic here;
    http://forum.java.sun.com/thread.jsp?forum=427&thread=418247&message=1851795#1851795
    and here;
    http://forum.java.sun.com/thread.jsp?forum=427&thread=435179&message=1957499#1957499
    And as Craig noted in his follow up to the first post it is very important to separate your business logic from the view.
    Basically your application will be hard to maintain and extend if you embed access to the databse in your JSP's. For example, consider a search page. If you embeded the SQL into a JSP the app could be made to work, but consider a late breaking requirement 'we need to access the search functionality from a webservice'. How would you accomplish such an extension if the SQL was in the page. Hard to do at best.
    TTFN,
    -bd-

  • Logical AND , OR operations in calculated Column

    Hi Frzz,
    I need to apply AND & OR operators in IF statement of Calculated Column. Could some one help he how to achieve this.
    IF( employeetype = = 'temporary' AND experiance == '5years' )
         IF( employeeDesignation == ' BA' )
             logic
        ELSE IF (employeeDesignation == 'AC')
             logic
       ElSE
            logic
    ELSE IF ( employeetype = = 'temporary' OR experiance == '5years' )
         IF( employeeDesignation == ' BA' )
             logic
        ELSE IF (employeeDesignation == 'AC')
             logic
       ElSE
            logic
    ELSE
    Logic
    Best Regards,
    Krishna.

    Hey Krishna, ( feels like calling myself )
    Just have a doubt here, before proceeding for the solution
    1) Why do you want to convert it into a string if it is a number?
    2) what is the data type of the field?  is it VARCHAR?
    If you feel like it has to be converted , then why don't you convert everything into a string so that
    1) if there is a number it will get converted into a string
    2) if there is string, it will again convert ( which should not be  a problem )
    Can you be more clear on what you wanted to do there?
    Regards,
    Krishna Tangudu

  • Separate Oracle Software and Databases?

    I need to install the Oracle application software to one disk volume, and allow Oracle to store it's databases on another distinct disk volume. I'm also doing this with a headless response file. I initially thought that the ORACLE_HOME and ORACLE_BASE settings in the response file may be what I need:
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    ORACLE_BASE=/u01/app/oracle
    However, since ORACLE_HOME is a subdirectory of ORACLE_BASE, I can't mount both locations to different volumes.
    How can I do this?
    Doug.

    895588 wrote:
    I need to install the Oracle application software to one disk volume, and allow Oracle to store it's databases on another distinct disk volume. I'm also doing this with a headless response file. I initially thought that the ORACLE_HOME and ORACLE_BASE settings in the response file may be what I need:
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    ORACLE_BASE=/u01/app/oracle
    However, since ORACLE_HOME is a subdirectory of ORACLE_BASE, I can't mount both locations to different volumes.
    How can I do this?
    Doug.Oracle datafiles do NOT need to reside under ORACLE_BASE

  • Logic behind database cache - war behind complexity - funny

    Guys, help ne out...
    I know that you want to separate application server and database server to different machines so that you will not just be taxing one machine. That is you want a database server as a back end to service database requests...You want your application server as a middle tier on another machine to coordinate clients request and database servicing...
    Now you put in a cache on the application server w/c really is an oracle instance doing "replication" functions with the database server...Don't you get the same problem as before --- "Application and Database" on the same machine --- Besides, the database server also has to do "synchronization" with this "cache", won't this be an added "procedure" for the database...Might as well, just use the J2ee server Oracle 8i and use a webserver to
    KIS!S.
    Actually, I am really frustrated with my Database cache installation...it hungs on me by 98 % saying that it cannot resolve tnsnames with the origin database...If you go looking at other topics posted by others,,it seems that a lot has the same problem as mine...but, I cannot really find a decent, responsive reply from an Oracle rep to help us guys out...You'd think, they do not know how to resolve the issue..Oh, yeah they say, that check your listener and tnsnames.ora, funny thing is if you use NET 8 Assistant, it will reject the default tnsnames.ora service name <HOST>-icache because you have a "-" in the name. So much so for their war against complexity...

    Guys, help ne out...
    I know that you want to separate application server and database server to different machines so that you will not just be taxing one machine. That is you want a database server as a back end to service database requests...You want your application server as a middle tier on another machine to coordinate clients request and database servicing...
    Now you put in a cache on the application server w/c really is an oracle instance doing "replication" functions with the database server...Don't you get the same problem as before --- "Application and Database" on the same machine --- Besides, the database server also has to do "synchronization" with this "cache", won't this be an added "procedure" for the database...Might as well, just use the J2ee server Oracle 8i and use a webserver to
    KIS!S.
    Actually, I am really frustrated with my Database cache installation...it hungs on me by 98 % saying that it cannot resolve tnsnames with the origin database...If you go looking at other topics posted by others,,it seems that a lot has the same problem as mine...but, I cannot really find a decent, responsive reply from an Oracle rep to help us guys out...You'd think, they do not know how to resolve the issue..Oh, yeah they say, that check your listener and tnsnames.ora, funny thing is if you use NET 8 Assistant, it will reject the default tnsnames.ora service name <HOST>-icache because you have a "-" in the name. So much so for their war against complexity...

  • Configuring both logical and physical standby databases.

    Hi,
    I am trying to set up one primary and two standby databases which are physical and logical. together. What I am wondering is if i tis posiible to set both log_archive_dest_n parameters in init.ora of primary db to 'LGWR ASYNC'.. I tried to do that but I noticed that while redo data goes the first remote log destination including LGWR statement properly but for the second it does not.
    So my assumption is only one remote archive dest. can be set for the LGWR process. Is ıt right?
    Regards
    ALPER ONEY
    email:[email protected]

    Hi,
    when I set remote archive dest _n parameter for logical  standby database to the value like 'LGWR AYSNC' and for the phy. standby to 'ARCH', it is ok. But if I change both parameters to 'LGWR'. I can see that only one destination receives the redo data and this destination is also the first destination configured for receiving redodata . I am just wondering that LGWR process is able to serve two or more to destinations at the same time. If it is ok, I am wrong and I better to try harder to solve the problem. I read the Dataguard document for 10GR' and the example for the case I created (two standby databases),, it uses ARCH process to send redo data and so everything is ok in that example.
    P.S I also configured standbys for real time apply.
    Waiting for your comments.
    Regards.
    ALPER ONEY

  • Logical Standby Database and XMLDB

    I couldn't find a proper group to post this message and thought I would try here.
    I want to set up a Logical Standby Database for our production database server 9.2.0.4.0 with XMLDB. I am having problem with some system tables that were created when I registered some XML schemas.
    These tables are in the standby database but Oracle complains the object does not exist.
    Any idea?

    >
    The "may be" is because I have tested flashback of a physical standby to before resetlogs, but not a logical standby.
    >
    A physical standby keeps the DBID of the primary - a logical standby does not. That is exactly the problem that restricts the reconversion into physical from logical, and you did not encounter that problem.
    >
    I haven't used "keep identity" but from what I read it relates to "convert to physical" not "flashback database".
    >
    Exactly. And that is what the OP wants to do: convert to physical (from logical).
    You mentioned that this might be possible with flashback.
    Problem: During the conversion from physical to logical, the DBID gets changed unless you specify (in 11g) KEEP IDENTITY. This would make it possible to reconvert into phyiscal from logical.
    In short: If there is no solution for the changed DBID of the logical standby in order to flashback it into physical as you suggested, then it is not possible .
    When I saw your first answer, I thought that you might have a solution in mind in order to solve that obvious problem. Sorry for having bothered you.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • CPU patch procedure with physical and logical standby database in place

    Hello All,
    I've also placed this in the Upgrades forum, but perhaps this is the best place to have put it.
    I'm trying to compile a decent set of steps for applying the CPUOCT2008 patch to our production RAC cluster which has both a logical and physical standby in place. I've read a tonne of documentation, including the CPU readme, DOCID 437276.1 and 278641.1. I''ve also read through the Upgrading Databases in a Data Guard Configuration chapter of Dataguard Concepts and Administration. The last doc mentioned is really for upgrading a full version of Oracle rather than applying a CPU (at least I think that's the case). DocID 437276.1 is rather sparse on details.
    I guess what I'm trying to understand is the proper method for applying the patch with the logical standby in place. The physical standby looks pretty straightforward. After running opatch on it as well, it will basically have all of the changes applied to the primary shipped over and applied as per the normal primary/standby relationship. Will the same be true for the logical (having applied the patch, and then re-enabling SQL apply)? Should I aim to have it work that way? By that I mean start it up and re-enable sql apply and then upgrade the primary. Or, am I to apply the catcpu.sql script to it as well before re-enabling the sql apply? Am I wrong in regards to the physical standby as well i.e. should the catcpu also be applied directly to it?
    Thanks very much in advance.
    Cheers,
    Chris
    Edited by: chris.baron on Dec 12, 2008 11:38 AM

    Given the fact that your system is far from main-stream I'd recommend opening an SR with Oracle Support Services (metalink) and asking them.
    If you would like to publish a White Paper on your experience after you have successfully completed the project let me know off-line.

  • How to get a column by applying logical AND operator on two column ?

    All column are VARCHAR2 data type.
    I have table output in this way :
    col1 col2
    True True
    True False
    False FalseBut i want a additional column in this way :
    col1 col2 result
    True True True
    True False False
    False False FalseAs the output indicates its clear that resut column is logical AND operator
    on col1 and col2. How to achieve this ?

    try this
    WITH logic AS
         (SELECT 'TRUE' col1, 'TRUE' col2
            FROM DUAL
          UNION ALL
          SELECT 'TRUE' col1, 'FALSE' col2
            FROM DUAL
          UNION ALL
          SELECT 'FALSE' col1, 'TRUE' col2
            FROM DUAL
          UNION ALL
          SELECT 'FALSE' col1, 'FALSE' col2
            FROM DUAL)
    SELECT col1, col2,
           CASE
              WHEN 'FALSE' IN (col1, col2)
                 THEN 'FALSE'
              ELSE 'TRUE'
           END AS log_and,
           CASE
              WHEN 'TRUE' IN (col1, col2)
                 THEN 'TRUE'
              WHEN 'FALSE' IN (col1, col2)
                 THEN 'FALSE'
           END AS log_or
      FROM logic 
    Explain complete.
    PLAN_TABLE_OUTPUT                                                              
    | Id  | Operation        | Name | Rows  | Bytes | Cost (%CPU)|                 
    |   0 | SELECT STATEMENT |      |     4 |    32 |     8   (0)|                 
    |   1 |  VIEW            |      |     4 |    32 |     8   (0)|                 
    |   2 |   UNION-ALL      |      |       |       |            |                 
    |   3 |    FAST DUAL     |      |     1 |       |     2   (0)|                 
    |   4 |    FAST DUAL     |      |     1 |       |     2   (0)|                 
    |   5 |    FAST DUAL     |      |     1 |       |     2   (0)|                 
    |   6 |    FAST DUAL     |      |     1 |       |     2   (0)|                 
    Note                                                                           
       - 'PLAN_TABLE' is old version                                               
    16 rows selected.regards,
    friend

  • Difference between physical and logical standby database

    What is the difference between physical and logical standby database?

    Hi,
    Physical Standy where its a read only DB.
    Logs are applied.
    Logical Standy where it can be Read / Write DB and the logs are applied in terms of SQL Statements.
    Thanks & Regards,
    Pavan Kumar N

  • What  type of  database  operations  effectd  with  Unicode  and  non  unic

    Hi  Friends,
       I want  to  know what  type of  database  operations  effects  with  Unicode  and  non Unicode  Programing  .
    Thanks,
    Ravi Kumar Mukkera

    Hi ,
    Check these links .
    http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtoot/docs/library/uuid/ff99cb90-0201-0010-e389

  • Operating System And Database Patch

    Hello everyone,
    Does Sap have a specific note about operating system and database patch management? It is important for
    me for applying operating system and database patches.

    I'm not exactly sure what you're asking about but usually the operating system vendors have to make sure that applications work as before after a patch.
    Since SAP applications run on many different combinations of operating systems and databases together with different kernels and/or database clients it's impossible to test them all in all combinations.
    SAP has no notes with "don't use Hotfix A,B,C on your Windows machine together with Hotfix D or E on the database server"; known issues are listed in the notes for the patches themselves (on the vendors websites, not SAP).
    Markus

  • Operating system and database

    Dear SdnService,
    I'd like to suggest to open a forum for operating system and database questions regarding SAP. If there is already a place that I can put there my questions, please guide me.
    Please Advice,
    Dimitry Haritonov

    Then this would probably be the best place so go ahead and post your question there and maybe we'll be able to help you find an answer.

  • TADM70: SAP System: Operating System and Database Migration

    Dear Colleagues,
    SAP is offering a rare opportunity to participate in "TADM70: SAP System: Operating System and Database Migration" in North America.
    For details please see
    <a href="https://service.education.sap.com/sap(bD1lbiZjPTAwMSZkPW1pbg==)/bc/bsp/sap/hcm_learning/trainingtype.htm?sap-params=b3R5cGU9RCZvYmppZD03MDAxNjA1MA%3d%3d">TADM70</a>
    Usually this class is held only at overseas locations. SAP is willing to arrange it in North America. However we need to gather enough participants for this event to occur.
    If you are interested and eligible to participate you could prebook this class at SAP Education Portal  <a href="https://service.education.sap.com/sap(bD1lbiZjPTAwMSZkPW1pbg==)/bc/bsp/sap/hcm_learning/prebookings.htm">TADM70 Prebooking</a>  and you could also contact Annie Normand [email protected] or myself.
    Best regards,
    Alexander Perelygin
    SAP NetWeaver Team Lead
    Terasen Gas Inc
    E-mail: [email protected]
    Phone: 604-592-7519

    Dear Collegues,
    TADM70 : SAP System: Operating System a Classroom Training
    will be held
    09-Jun-2008 - 11-Jun-2008
    at SAP Toronto Training location.
    TADM70: SAP System: Operating System and Database Migration
    Schedule
    Day Date From To
    Monday 09.06.2008 09:00 17:00
    Tuesday 10.06.2008 09:00 17:00
    Wednesday 11.06.2008 09:00 17:00
    Availability
    Location Language Price Free Places Start Date 
    SAP Toronto English 2325.00 CAD Yes 09.06.2008 Add to Shopping Cart
    Taxes are not included in the price. 
    Contact Information
    Address:  SAP Toronto Bloor
    1600-2 Bloor St. East
    M4W 1A8 - Toronto  Phone:  416-929-9746  Fax:  416-927-2160 
    Those who interested please book it at SAP Education web site or by phone.
    Alexander Perelygin

Maybe you are looking for

  • When I publish a pdf collection with index to a CD, the index won't load

    I am using acrobat XI pro. I have a pdf collection with 30 chapters, a table of contents that is linked to each chapter, and an index. I have inserted a bookmark for the table of contents in each chatper. There are lots of cross chapter links. It all

  • Trouble exporting from Premiere Pro 2.0 to FLV

    Just installed Premiere Pro 2.0.  I imported a sample clip (24p HDV from Canon HV20) and am trying to export as FLV.  I did not have Quicktime installed when I installed Premiere, but have since installed QT 7.0 and upgraded to Pro (Probably a waste

  • Asha 501 can't fetch large MMS

    My Nokia Asha will not receive pictures that are over a certain size limit. If I send a large photo to the Asha 501, it says "Can't download message." If I send a small photo to the Asha 501, it has no trouble displaying the photo. I have 64MBs of fr

  • Does OSB support XQuery import module feature ?

    In OSB version 11.1 and Oracle Weblogic Server Version: 10.3.6.0 I need to create library of XQuery functions (reusable components), to achieve this, I need to use XQuery import module feature. When I tried to use it, I got this error message 'Module

  • Regarding BP transaction

    Hi Experts, I am new to CRM, I have some doubt in bp transaction, for a business partner in display role for sold to party in Marketing Attributes tab we have some profiles. For each profile we have some attributes. now my question is for each busine