Better code or better maintenance

A question of semantics.
I am working on an application for a client. The application is deployed in the field using access as the DB, and in the office using SQL as the db. The code already exists.
I have been tasked with making an improvement in the application. Simply put the section that I am dealing with makes a copy of large amounts of data, mapping new primary keys with newly created records etc.
My dilemma and question. I feel that the SQL version should implement a mostly SQL solution, using the power of the DB to do the work. This would make this section of the application have to be maintained in two places though as the Access version would likely use a java based solution as it does now.
What do the experts think? Should I split the code or should I improve the java based solution?
I have to update the java based solution anyway so doing the SQL work would be extra work up front. The payoff would be in the performace of the SQL version.
Thanks for thoughts.

My first thought is that there's little point in having a DB if you don't use it properly.
However, it's also a bad idea to branch the code.
The ideal solution would be to add a layer of abstraction in between the DB and the business logic such that both solutions look the same from the business layer. That kind of design is lot easier to implement from the beginning.

Similar Messages

  • Bonjour. je ne me souviens plus de mon code PIN est maintenant mon Iphone est bloquer ..  Comment faire pour le dÃbloquer ???, bonjour. je ne me souviens plus de mon code PIN est maintenant mon Iphone est bloquer ..  Comment faire pour le dÃbloquer ???

    Bonjour. je ne me souviens plus de mon code PIN est maintenant mon Iphone est bloquer ..
    Comment faire pour le débloquer ???
    Merci d'avance

    Zazzz wrote:
    Is it possible to not lose its data during a restore??  If so, how??  Is ICloud does the work??
    Y a-t'il une façon de ne pas perdre ses données lors d'une restauration??  Si oui comment??  Est-ce que ICloud fait le travail??
    Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    Connectez-vous via le câble à l'ordinateur que vous utilisez pour la synchronisation. A partir d'iTunes, sélectionnez l'iPad / iPod, puis sélectionnez l'onglet Résumé. Suivre les indications pour la restauration et assurez-vous de dire «oui» à la sauvegarde. Vous serez averti que toutes les données (applications, musique, films, etc) seront effacées, mais, comme les finitions de restauration, il vous sera demandé si vous souhaitez le contenu de la sauvegarde à copier à l'iPad / iPod. Encore une fois, dire «oui».
    Sorry for my French.  I'm an American!
    Désolé pour mon français. Je suis un Américain!

  • Event code in table maintenance generator

    Hi All,       Need to call event in Table maintenance generator of the z table. I have to use 1st event (Select ’01’ – Before saving data in the database).     Need to do fallowing job: Table cleaning : Delete all records with value year =< 2011 -New rule :      No save can be done with value (Pst Var, PA,PSA, Cost = ‘ *,*,*,*’). I am attaching table entry with this mail, I have written the code for this but not sure please suggest me modification if required for this.Because i have never done this before. Thanks and Regards Sankil     

    hi Sankil
    Some variable is not available in your code and you did not modify EXTRACT table.
    Try to modify your code as blow:
    This event has no standard routine. The following global data is available for the realization of the user routine:
    •internal table TOTAL
    •field symbols
    •field symbols <ACTION> and <ACTION_TEXT>
    •<STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table
    TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM
    refer event 01: http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm
    regards,
    Archer

  • Trancation code to table maintenance

    I have a custom table with table maintenance view. Our end users don't have authorization of SM30 transation. Can we attach transaction code to the table maintenance so that user can inser or modify or delete records by using T-code. Even though he dont have authorization of table maintenance.
    Please suggest

    Hi,
      Try the following routine in a custom program as mentioned by Andreas:
    FORM call_view .
      DATA: l_i_selections TYPE TABLE OF vimsellist INITIAL SIZE 0,
            rec_selections TYPE vimsellist.
    *plant
      rec_selections-viewfield = 'WERKS'.
      rec_selections-operator = 'EQ'.
      rec_selections-value = p_werks.
      APPEND rec_selections TO l_i_selections.
      CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
        EXPORTING
          action                       = 'S'
          view_name                    = 'TCODE'
        TABLES
          dba_sellist                  = l_i_selections
        EXCEPTIONS
          client_reference             = 1
          foreign_lock                 = 2
          invalid_action               = 3
          no_clientindependent_auth    = 4
          no_database_function         = 5
          no_editor_function           = 6
          no_show_auth                 = 7
          no_tvdir_entry               = 8
          no_upd_auth                  = 9
          only_show_allowed            = 10
          system_failure               = 11
          unknown_field_in_dba_sellist = 12
          view_not_found               = 13
          maintenance_prohibited       = 14
          OTHERS                       = 15.
      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.                  
    regards
    Aveek

  • Creation of New T-Code for mass maintenance of SA

    SAP currently does not have a facility to mass-maintain schedule agreements.  The business alone has over 16,000 schedule agreement lines.  Manual maintenance is very time consuming.
    There are some key items of data that can require amendent for a particular vendor.  The new program would permit the maintenance of:
    Planned delivery time                EKPO-PLIFZ
    GR proc Time                           EKPO-WEBAZ
    Firm Zone                                EKPO-ETFZ1
    Trade off Zone                          EKPO-ETFZ2
    Binding Grp                             EKPO-KZSTU
    Conf Control Key                     EKPO-BSTAE
    Vendor Material number           EKPO-IDNLF
    Stock type                              EKPO-INSMK
    Creation profile                        EKPO-ABUEB
    approach  from my functional consultant:
    basically i want to update the fileds on a  screen of   tcode : memasspo (mass maintenance of purchase orders )
    if i select pur ord item in the initial screen,
    it allows me to enter pur doc values and item values
    after that
    if i select fields symbol button on left side
    and i can select  fields which i have to be updated  in the right side in the Popup screen
    if i choose fields they will come along with pur doc and item in the screen
    My question is :
    pur doc and item values  with additional fields data is available in the flat file that should be updated
    pl let me know the approach to upload whether i go for eigther BDC or BAPI
    Note :
    i can update for newly added fields  in the  user defined SAP Screen  itself for porders
    but if i enter the purchasing doc as scheduling agreement no it wont allow you  to update
    i need to update for Scheduling agreements ?
    <removed_by_moderator>
    Thanks in advance
    Edited by: Julius Bussche on Sep 3, 2008 9:56 AM

    Hi Hariprasad,
    If restricting certain fields using field selection option is not suitable for you, you can go ahead with the option Screen Variend
    Also refer the link
    [https://wiki.sdn.sap.com/wiki/display/Snippets/Transaction%20Variant%20-%20A%20Step%20by%20Step%20Guide%20for%20Creation]

  • Is there any way to make location codes a user maintenance function?

    Are volume of new location codes that the business adds to all company codes is taking too much development time.  Is there any way to update the table to be handled by the business without transports?

    you can set your strokes to not scale by using the properties panel when a stroke is selected.

  • Transaction code for maintenance view

    Hi all
          I created a maintenance view and I also generated the table maintenance dailog for the view.Now I am changing the values using the transaction code SM30.But I have to create a transaction code for this maintenance view to access it and update the table instead of using sm30 for this purpose.Please help me.
    Thank You.
    Regards
    Giri.

    Hi
    create transaction using 'se93'
    select parameter transaction and give below attributes
    Transaction code ZTX1
    Transaction text Maintain View ZSDCZTVIEW
    Transaction SM30 Screen 0
    From module pool
    Name of screen field Value
    VIEWNAME = ZSDCZTVIEW
    UPDATE = X
    Thanks

  • Use of transaction code IP30

    Hi all,
    Could anyone please tell me the use of Transaction code IP30.
    Actually we have scheduled some order but they did not get created when the date of creation came. Then we ran IP30 transaction code to see their deadline.
    Then scheduled object got converted into the service order but the service orders dont have sold-to party (consumer nos.).
    Please guide me how should we use IP30 Transaction and what should i do so that service order can have consumer no. when they get created.
    Thanks and Regards
    Mahavir

    Hi,
    Please tell me is it necessary to run the IP Transaction code for each maintenance plan that we have scheduled?
    Yes if it is needed that the plan should generate orders it needs to be scheduled either in backgroud job or needs manually executed.
    Can a service order be generated automatically without running IP30 if we have scheduled a maintenance plan?
    Yes you can get a service order (PM Order ) against this plant maintenance order with control key as pm03 you can get PR from PR You can get service order agin here MM intergration if the auto po concept used then auto po (service order) gets generattted.
    But if u want to avoid lengthy process u can use IP10.
    During each IP10 run if call falls within the date u will get maint call object that is pm order -
    >pr------->po
                              pm order----->fo (frame work order)
                              pm order -
    >service contract -
    >value / qty
    (These tab u will get in pm order operation header genarl data)
    Hope this is in line with your requirement.
    Thanks and Regards
    Ramesh

  • Issues on XK99 t-code

    Hai experts,
                While using T-code XK99 mass maintenance for vendor master,i have an issue after making some changes in the field .Now i try to save at the time system throwing a message ie "Messages were saved in the Application Log MASS LFA1 000632" for this message were i can see by using which T-code ..
    Thanks in advance to all
    Seeenu

    Hi,
    This has indicated that your vendor master (General Data) has been updated (in Table LFA1) and MASS transaction.
    Cheers,
    HT

  • Report for maintenance order equipment wise

    hi expert,
    is there any t-code fr displaying maintenance reprt equipment wise in that report i could see painding maintenance, service order & completed maintenance order & service order.
    regards,
    santosh

    hi
    you can use the T code IW38 or IW39 in that you can select in process,or completed order to display what are all the order which has not completed .
    system will not show the order which are pending because of want of material ,man etc unless you have activated the user status for the order which show the respective one
    regards
    thyagarajan

  • FV11 Restriction at Co.Code level?

    Dear MM experts,
    I have checked up entire forum for the above subject matter.
    Kindly let us know whether  FV11 T-code  is restricted at Co.code leve.
    We have two company codes and userwise we would like to restrict while updating FV11 condition " JMIQ" .
    FYI, updating FV11 for key combination " Plant/Vendor/Material"
    Requirement is the above condition,  User1 has to exclusively update FV11 for Co code 1 & User2 has to exclusively update FV11 for Co code 2.
    Kindly help
    Thanx in advance.
    Srihari

    Hi,
    You can create a new access sequence for the condition type JMIQ (e.g. co.code/Plant/Vendor/Material) including company code.
    While maintening the condition records for the condition you can seperate the the condition values by co.code.
    i.e. for Co.code = 0001 the conditon will have 16% and for
                Co. code =0002 the condition will have 18% vaue.
    Cheers,
    Satish Purandare

  • Certification Course Code

    Hi Experts,
    I am going for SAP PM certification Now i want to confirmed that whether the below given course code is Correct code for Plant Maintenance (PM Module ),Also in description it is given ERP 2005 may know what is this ERP 2005.
    Course Code :- PLM300 u2013 305 u2013 310 u2013 315 u2013 318 u2013 TPLM30
    Description :- mySAP PLM u2013 Maintenance & Repair with mySAP ERP 2005.
    Please give your proper guide line to attend the proper exam code.
    AR

    yes, this is for SAP Plant maintenance.
    i believe the certification code  is C_TPLM30_05
    regards

  • PL/SQL Packages that have lots of Remarked code

    Thanks in advance,
    Does having lots of code that is remarked in PL/SQL packages take up space in the database and impact performance ?
    I have inherited a system that has lots of remarked code in PL/SQL Packages. And I would like to know if I should remove it with an advantage of improving preformance?

    Does "remarked" here refer to comments in the code? If so, there is no meaningful performance impact to having comments in the code and substantial maintenance benefits, so you shouldn't be removing comments. You should be quite appreciative that you've inherited a system that is reasonably well documented.
    Justin

  • View maintenance dialog

    Hi all,
    I am facing an issue in view maintenance dialog, during UCCHECK, it is showing as error with description as follows:
    Generated Code for View Maintenance Dialog is not Unicode-Compatible You can
    regenerate with the program RSVIMT_UC_VIEW_MAINT_GEN
    I am still doubt. What is the impact if I generate it as proposed? Are our own coding removed after generation? Thus we need to code manually again.
    Thanks !
    Chika

    It seems that you're in the Unicode system and the dialog is not Unicode compatible. This program will not remove any code, as long as it has been added using the proper methods (user exit, designated enhancement, etc.). In the worst case it will display an error message.
    You might want to check in advance whether your code is Unicode compatible though.

  • What is the function code of create new session?

    what is the function code of create new session?
    thanks...

    Hi
    Please put a "/n" (to open a new session after killing the current session)
    or "/o" (to open a new session without killing the current session)
    or "/i" (to end the current session) before the below T Codes as per your requirement...
    <u><b>For more Tcodes check the following</b></u>
    =>smartforms - Smartforms (SAP Form Builder to Create and Adjust Forms)
    =>cmod - Enhancements, User Exits (Project Tool to coordinate changes into projects for the purpose of activating all user exits for a particular project)
    =>sale - ALE Customizing
    =>bale - Distribution Administration (ALE)
    =>wedi - IDOC Type and EDI Basis
    =>shdb - BDC (Transaction Recorder)
    =>lsmw - LSMW
    =>bapi - BAPI
    =>spau - Display Modified DE Objects
    =>spdd - Display Modified DDIC Objects
    =>sara - central idoc archiving
    =>stms - Transport Management System
    =>wedi - IDOC Type and EDI Basis (IDOC Configuration)
    =>bd21 - Analyze change pointers - create IDOC from change pointer
    =>bd10 - Send Material Master
    =>bd12 - Send Customer Master
    =>bd14 - Send Vendor Master
    =>bd50 - Activate Change Pointer for Message Type
    =>bd55 - Conversion rule user exit (Link conversion rule user exit to the different system \ partner combinations)
    =>bd54 - Maintain Logical Systems
    =>bd71 - Distribute Customer Model
    =>bd87 - Process Inbound IDOCs
    =>bd88 - Process Outbound IDOCs
    =>bdm2 - Cross-system IDOC Reporting
    =>bdm7 - ALE Audit - statistical analyses
    =>bdm8 - ALE Audit - sending confirmations
    =>bd61 - Activate Change Pointer generally
    =>bmv0 - Direct Input Data Transfer Administration
    =>rz04 - Operation Mode
    =>rz12 - RFC Server Group Maintenance
    =>sar3 - Archiving object customizing
    =>s001 - SAPoffice Inbox
    =>s010 - Standards Texts (SAP Script)
    =>se01 - Transport Organizer (Extended View - Performing and managing the transport of development object across different systems)
    =>se09 - Transport (Workbench) Organizer (Controlling and keeping track of Development work and Development Objects)
    =>se24 - Class Builder (BAPI)
    =>se30 - Runtime Analysis
    =>se36 - LDB
    =>se37 - Function Builder
    =>se38 - ABAP Editor (to modify ABAP programs)
    =>se39 - Split-Screen-Editor
    =>se11 - ABAP Dictionary
    =>se16 - Data Browser (Table contents display)
    =>se41 - Menu Painter
    =>se51 - Screen Painter
    =>se71 - SAPScript Forms
    =>se73 - SAPScript Font Maintenance
    =>se75 - Graphic Objects and Graphic IDs Sapscript Settings
    =>se78 - Administration of Form Graphics (Import Graphics into SAP System)
    =>se80 - Object Navigator
    =>se84 - ABAP Repository Information (search for SAP objects)
    =>se91 - Message Maintenance
    =>se93 - Maintain T codes
    =>su01 - User Maintenance (Security)
    =>su02 - Maintain Authorization Profiles
    =>su03 - Maintain Authorizations
    =>slg1 - Evaluate Application Log
    =>sm12 - Lock Entries
    =>sm21 - System Logs
    =>sm36 - Background Job Scheduling
    =>sm37 - Background Job Monitoring (display batch jobs)
    =>sm31 - Table Maintenance
    =>sm30 - Calling View Maintenance
    =>sm35 - Batch Input Monitoring (Error Logs)
    =>sm50 - Process Overview
    =>sm58 - Transactional RFC Monitoring
    =>sm59 - Maintain RFC Destinations (Define RFC Configuration)
    =>snro - Number Range Objects (for IDOCs)
    =>scc4 - Client Overview (Create, Quick Delete, Modify)
    =>spro - Customizing, Execute Project
    =>sp01 - Spool Administration
    =>sq01 - Maintain SAP Queries
    =>st02 - Buffer Analysis (Status Overview)
    =>st03 - Workflow Analysis
    =>st05 - Performance SQL trace (Tracking the Database calls from the System Transaction and Programs)
    =>st22 - ABAP Dump Analysis, check logical runtime errors
    =>/h - ABAP Debugger
    =>we02 - Display IDOC
    =>we05 - IDOC lists
    =>we07 - IDOC statistics
    =>we12 - Inbound processing of outbound file - convert outbound to inbound file
    =>we14 - Process (dispatch) IDOCs through Port - RSEOUT00
    =>we15 - Outbound IDOC from NAST - message control
    =>we16 - Inbound File
    =>we18 - Generate status file
    =>we19 - Test tool
    =>we20 - Add new Message Type to Partner Profile
    =>we21 - Maintain Port Definition
    =>we30 - IDOC Type development
    =>we31 - IDOC Segment development
    =>we41 - Process Code Outbound
    =>we42 - Process Code Inbound
    =>we46 - IDoc Administration
    =>we47 - Status Code Maintenance
    =>we57 - Assign function module to logical message and IDoc type
    =>we63 - IDOC Type for Parser Output
    =>we82 - Assign IDOC to Message Type
    =>we60 - IDOC Documentation - IDOC Types
    =>we61 - IDOC Documentation - IDOC Record Types
    =>we81 - Create new IDOC Message Types
    =>we82 - Assign IDOC to Message Type
    =>pa20 - Display HR Master Data
    =>pa30 - Maintain HR Master Data
    =>bd59 - Create and assign Filter Object Type for Message Type
    =>bd64 - Maintenance of ALE or any other Distribution Model
    =>db02 - Storage Management and Database Performance
    =>db14 - Database monitor
    =>se18 - BADI definitions
    =>se19 - BADI implementations
    =>fd03 - Accounts Receivable Master Data (Display Customer in Accounting)
    =>me22 - Change Purchase Order
    =>me21 - Create Purchase Order
    =>me51 - Create Purchase Requisition
    <u><b>Official source of SAP T Codes -</b></u>Go to se11 or se16 and view table entries for
    TSTC and TSTCT. This will give you the Transaction List.
    Reward all helpfull answers
    Regards
    Pavan

Maybe you are looking for

  • B/W G3 and OSX

    Have a B/W G3 with an OEM hard drive (IBM Model DTTA-351290 E182115 HG) running System 9. Could not get OS 10.3 to install properly (always froze a quarter of the way through installation). Removed the hard drive and put in in a G4. Then installed 10

  • Acrobat DC - wrong color when opening document

    I've set up color management via Adobe Bridge for Indesign, Photoshop, Illustrator and Acrobat. After updating to Acrobat DC I had to synchronize via bridge again. Now it says "synched". BUT: When I open a document the colors the colors are not shown

  • Wi-fi says not connected?

    I just got home from the Apple Store.  They replaced my iPad because the home button on my old one was not working.  Now that I am home my iPad is saying that it is not connected to Wi-Fi.  What am I doing wrong?

  • Table Borders

    I am using DW CS3, although I don't know that this is a DW problem. I am making a table to display some data, with the top row as text headings. I want to have borders show up between the data rows but not around the table headers. I want those heade

  • Google documents and sites windows will not load but web and email do.

    I have tried every browser chrome, firefox, explorer, safari none of these will open google documents at my school although they were working a couple of weeks ago. What can I try? Thanks, Gail Bushey