What is the use of commit work and rollback work

hao friends,
what is the use of commitwork and rollback work where we can use these open sql statements .
thanks,
anji

hi all
i have written the following code in my development system to change the records of my database.
SELECT * FROM zyikostl INTO TABLE itab.
  LOOP AT itab INTO wtab.
    tabix = sy-tabix.
    DO.
      READ TABLE itab INTO ktab WITH KEY kostl_alt = wtab-kostl_neu.
      IF sy-subrc = 0.
        wtab-kostl_neu = ktab-kostl_neu.
        MODIFY itab FROM wtab INDEX tabix.
        CONTINUE.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
  ENDLOOP.
MODIFY zyikostl FROM TABLE itab.
In the development system i have only few records its working fine,but when it is been moved to test system there are 2500 records in the database so the report is taking much time(more than 5 hours )
i sthere any solution for this ....
thanks,
vaasu.

Similar Messages

  • What is the use of COMMIT in BDC?in what situation we can use it?

    what is the use of COMMIT in BDC?in what situation we can use it?

    Hi sunil,
    Function modules that run in the update task can run synchronously or asynchronously. You determine this by the form of the commit statement you use:
    COMMIT WORK
    This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.
    COMMIT WORK AND WAIT
    This form specifies synchronous processing. The commit statement waits for the requested functions to finish processing. Control returns to your program after all high priority (V1) function modules have run successfully.
    The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.
    regards,
    keerthi

  • What is the use for lock object and how to use the lock objects

    Hi Guru's,
    I am new to ABAP .Can you please clarify the that what is the use of lock object and how to use the loct object .what is use of the Deque & Enque  function modules .

    hi ,
    below are some minfo about lock objects :
      Lock Objects
    These types of objects are used for locking the access to database records in table. This mechanism is used to enforce data integrity that is two users cannot update the same data at the same time. With lock objects you can lock table-field or whole table.
    In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built-in on database tables. Developers can also lock objects over table records.
    To lock an object you need to call standard functions, which are automatically generated while defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defines LUW i.e. Logical Unit of Work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases the lock at the end of transaction. The LUW starts when a lock entry is created in the system table and ends when the lock is released.
    Creating Lock Objects
    Lock object is an aggregated dictionary object and can be defined by using the following steps:
    o From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen
    o Enter short text as usual and the name for primary table.
    -Save
    -Select Tables option
    From this screen you can:
    Select secondary tables, if any, linked by foreign key relationship.
    Fields for the lock objects. This option allows you to select fields for objects (R/3 system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.
    1) Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected.
    2) Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected.
    3) Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.
    Also, last but not the least, locking the object is logical (locking with any enqueue ) .so, you have to use the lock object while trying to access from second program .
    reward if helpful ,
    Regards,
    Ranjita

  • What are the uses of MVC, Extension and how to create it for begineers pls

    what are the uses of MVC, Extension and how to create it for begineers pls
    dont give link for tutorials please explain ,
    thank you,
    Regards,
    Jagrut BahratKumar Shukla

    Hi,
    Check out this link :
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/content.htm</a>
    It is the best possible explanation and documentation that you'll get.
    Thanks,
    Tatvagna.

  • What is the difference between Commit, Commit_Form and Post ?

    What is the difference between Commit, Commit_Form and Post ?

    Commit() and commit_form() are exactly the same. The changes done into the databased blocks are made in the database select/insert/update and commited.
    post() does the same, but without the last commit in the database (so that you can rollback).
    Francois

  • What is the use of ST05 ? and how to use  " ST05 "

    can anybody tell me what is the use of  " ST05 "
    and how can we handle it.

    SQL Trace
    SQL trace(ST05) provides the developer with the ability to analyse database select statements. Simply execute ST05
    to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05
    and click on list trace to view the details.
    You can also perform traces on other items such as authorisation objects.
    Authorisation trace analysis 1. Open two sessions
    2. Execute transaction ST01 in one of the sessions
    3. Select the authorisation checkbox, note the other traces
    you can perform (SQL, RFC, Table Buffer etc)
    4. Click the 'Trace On' button
    5. Within your other session execte the transaction/report
    you want to trace or get the user in question to do it
    6. Return to the session where you turned the trace on and
    click on 'Trace Off' otherwise it will continue to record
    all athorisation checks
    7. Click on the 'Analysis' button
    8. Enter appropriate data into selection screen such as
    Username, type of trace records (i.e. Authorization check)
    9. Click on the Execute button.
    10. Report displaying trace results will now be displayed
    http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm
    Some useful transaction related to this are ..
    ST01 SAP system trace
    ST02 Buffer statistics.
    ST03 Workload analysis.
    ST04 Database performance analysis.
    ST05 SQL trace .
    ST06 Operating system monitor ...
    From the recorded SQL trace you can deduce:
    · Which SQL statements your application carries out
    · Which values the system uses for specific database accesses and changes
    · How the system translates ABAP OPEN SQL commands (such as
    SELECT) into standard SQL commands
    · Where your application positions COMMIT statements
    · Where your application makes repeated database accesses
    · What database accesses or changes occur in the update section of your
    application
    Look at the below links, you will get the idea
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm
    http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html
    Check the following links:
    http://www.sapbrainsonline.com/TOOLS/RUNTIMEanalysis/SAP_runtime_analysis.html
    http://www.sapbrainsonline.com/TOOLS/SQLTRACE/SQL_TRACE.html
    Use
    The Performance Trace allows you to record database access, locking activities, and remote calls of reports and transactions in a trace file and to display the performance log as a list. It also provides extensive support for analyzing individual trace records.
    SQL Trace: This allows you to monitor the database access of reports and transactions.
    Enqueue Trace: This allows you to monitor the locking system.
    RFC Trace: This provides information about Remote Function Calls between instances.
    While the trace is switched on, the SQL Trace function records all database activity by a particular user or group of users. The R/3 System takes OPEN SQL statements and converts them in to embedded SQL statements that it passes to the database. It is the embedded SQL statements, their parameters, return codes, and the number of entries retrieved, inserted, or deleted that are recorded in the SQL Trace file. The log file also contains the runtime of the statement and the place in the application program from which it was called.
    The SQL trace tells you:
    The SQL statements executed by your program.
    The values that the system uses for particular database access and changes.
    How the system converts ABAP Open SQL statements (such as SELECT) into Standard SQL statements.
    Where your application executes COMMITs.
    Where your application repeats the same database access.
    The database accesses and changes that occur in the update part of your application.
    Refer
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/cb632772cd0cd4e10000000a1553f7/frameset.htm
    Regards
    Vasu

  • What are the uses of table control and tabstrip control

    can anyone tell me the uses of table control and tabstrip control

    Hi,
    table control is more comfortable for customizing.scroll bars all possible in this.where as it is not possible in step loops.
    check this example.
    PROGRAM ZBHTCTRL.
    TABLES: LFA1, EKKO.
    DATA: OKCODE1 LIKE SY-UCOMM,
    OKCODE2 LIKE SY-UCOMM.
    CONTROLS TABC TYPE TABLEVIEW USING SCREEN 1001.
    DATA: BEGIN OF ITAB OCCURS 0,
    MANDT LIKE EKKO-MANDT,
    EBELN LIKE EKKO-EBELN,
    BSTYP LIKE EKKO-BSTYP,
    BSART LIKE EKKO-BSART,
    END OF ITAB.
    MODULE USER_COMMAND_1000 INPUT.
    CASE OKCODE1.
    WHEN 'BACK'.
    SET SCREEN 0.
    WHEN 'NEXT'.
    SET SCREEN 1001.
    SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
    LIFNR = LFA1-LIFNR.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    MODULE MOVE_DATA OUTPUT.
    EKKO-MANDT = ITAB-MANDT.
    EKKO-EBELN = ITAB-EBELN.
    EKKO-BSTYP = ITAB-BSTYP.
    EKKO-BSART = ITAB-BSART.
    ENDMODULE. " MOVE_DATA OUTPUT
    MODULE USER_COMMAND_1001 INPUT.
    CASE OKCODE2.
    WHEN 'BACK'.
    SET SCREEN 1000.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 OUTPUT
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'MENU'.
    SET TITLEBAR 'TIT'.
    ENDMODULE. " STATUS_1001 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'DMENU'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_1000 OUTPUT
    FORM ON_CTMENU_FORM1 USING CMENU TYPE REF TO CL_CTMENU.
    CALL METHOD CMENU->LOAD_GUI_STATUS
    EXPORTING
    PROGRAM = ' ZBHTCTRL'
    STATUS = 'CMENU'
    MENU = CMENU.
    CALL METHOD CMENU->ADD_FUNCTION
    EXPORTING
    FCODE = 'RX'
    TEXT = 'RECIEVE'.
    ENDFORM.
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    LOOP AT ITAB WITH CONTROL TABC CURSOR TABC-TOP_LINE.
    MODULE MOVE_DATA.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    LOOP AT ITAB.
    ENDLOOP.
    for more info check this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    thanks
    Ashu.

  • What are the uses for Macbook pro and Macbook air?

    Hi! I am deciding between MBA and MBP and need to know what the different uses for each one was. Like what would you use the MBA for and what would you use the MBP for?? All opinions welcome!!

    They're actually pretty comparible in what they can do if you're talking about the base model of both (say 13") with 4GB RAM. At that level, the Pro has the advantage if you're going to watch or burn DVD's or CD's, as the Air has no optical drive. But otherwise, they're pretty much the same--full-sized, backlit keyboard, camera, beautiful screen, etc. If you're going for more than a basic 13" Pro, then things start to change. For example, you can get up to 8GB RAM on the Pro, and a huge hard drive, you can also get a 15" or 17" size. You will be paying a lot for these, but, obviously, if you're going to be working on, say, making videos (which you may then want burn onto disk) the Pro is very much what you'll want.
    However, if you don't need or want any of that--if, for example, you plan to do the usual programs (word processing, games, web surfing, music, etc.), then you really won't see much difference between the two. At 4GB RAM and a 13" screen, the big difference is going to be thickness and weight, not power. And in this the Air will have the advantage--it's really amazingly slim, light and with a SSD, faster (you pay extra--a lot extra--to get SSD on the Pro).
    Just to make the point, I switched from a 13" Pro to an 11" Air. My hard drive size is half what it was with a Pro, but I was barely taking up half of that amount on the Pro, and so have plenty of room on my 128GB Air (you can get 256GB for the 11" if you order it online). Absolutely everything my Pro did, my Air does (sans optical drive), only faster and lighter and more compact--meaning it takes up less table space, slips in and out of my bag faster, balances on my lap easier, etc. But there was no interruption of service--I switched pretyt seamlessly from 13" Pro to 11" Air.
    The Pro offers you more options for power, screen size, HD size and optical drive. But it's really pretty surprising how few of us need that much power, that much room, or the optical drive. It's very freeing to realize that less can be more than enough.

  • What is the use vss in java and how to use it?

    can i know what is vss in java and how to use it and also can you tell me related vss like svs?
    and what are tools for configuration in real we will use?
    am i student i want to know these all?

    jduprez wrote:
    You do not need to know them all, but one for sure, since it is a must for multi-developer team.8o( ?????
    It is a must. Period.
    OK, let's tone down: it is a must for any job related to software production. Not only development.That begsl the question, What does it mean to "know" one of these systems? I would expect Product Management, Documentation, QA, and Support staff to be conversant with the fundamentals of such a tool--check in, check out, version/revision numbers--but not much more than that. Developers, on the other hand, I would generally expect "know" the system with a much higher level of expertise--query language, branching, merging, and so on.

  • What is the use of fms SSF_OPEN and SSF_CLOSE

    hi to all experts,
    im printing one material id per page  .i want the dialog box for printing appear just once and all the records should be printed for that i have used ssf_open and ssf_close. but still the dialog box is coming.Is my code correct
    form print_smartform1X3.
    DATA : fm_name TYPE RS38L_FNAM.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'ZMM_IM_001'
       IMPORTING
         FM_NAME                  = fm_name
       EXCEPTIONS
         NO_FORM                  = 1
         NO_FUNCTION_MODULE       = 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.
      CALL FUNCTION 'SSF_OPEN'
    *   EXPORTING
    *     ARCHIVE_PARAMETERS       =
    *     USER_SETTINGS            = 'X'
    *     MAIL_SENDER              =
    *     MAIL_RECIPIENT           =
    *     MAIL_APPL_OBJ            =
    *     OUTPUT_OPTIONS           =
    *     CONTROL_PARAMETERS       =
    *   IMPORTING
    *     JOB_OUTPUT_OPTIONS       =
    *   EXCEPTIONS
    *     FORMATTING_ERROR         = 1
    *     INTERNAL_ERROR           = 2
    *     SEND_ERROR               = 3
    *     USER_CANCELED            = 4
    *     OTHERS                   = 5
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT it_smart INTO wa_smart.
    CALL FUNCTION fm_name
      EXPORTING
        wa_display                 = wa_smart
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CLEAR wa_smart.
    ENDLOOP.
    CALL FUNCTION 'SSF_CLOSE'
    * IMPORTING
    *   JOB_OUTPUT_INFO        =
    * EXCEPTIONS
    *   FORMATTING_ERROR       = 1
    *   INTERNAL_ERROR         = 2
    *   SEND_ERROR             = 3
    *   OTHERS                 = 4
    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.                    " print_smart
    form2x4
    Edited by: mozam khan on Feb 24, 2009 9:15 AM

    SSF_OPEN initializes Smart form with below Contril parameters you can pass:
    SAP Smart Forms: General Indicator
    SAP Smart Forms: General Indicator
    Output device
    SAP Smart Forms: General Indicator
    Print preview
    Return of OTF table. No printing, display, or faxing
    Language key
    Language key
    Language key
    Language key
    SAP Smart Forms: Object name
    SSF_CLose , closes the smart form with current job details.

  • What is the use of HFM workspace and Web service manager?

    Hi experts,
    Can any one explain me the difference between Hyperion Workspace - Agent Service and
    HFM-Web service manager?
    And how these services usefull for HFM workspace?
    Thanks
    Chandu

    Hi Chandu,
    I would recommend you take a look at the Oracle Hyperion Enterprise Performance Management System Installation and Configuration Guide. It has all the answers to your questions. Here is the link:
    http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_11121/launch.html
    Cheers,
    Mehmet

  • Can anyone help me what is the use of business and proxy service in osb?

    Hi,
    I am new in Osb what is the use of business service and proxy service in osb.
    I know little bit proxy service is used for actual message flow. I saw some project proxy service invoking the (using service callout,routing and publish) service,but the wsdl of the services of the proxy and business service is same.
    Please can anyone explain the flow while executing through soapUI?(that means it will hit 1st business services or proxy service)
    I have this project structure
    business service
    1.reference.biz----> this is the wsdl of ex:reference.wsdl
    2.external.biz----> this is the wsdl of ex:external.wsdl
    proxy service
    1.referece.proxy--->this is the wsdl of ex:reference.wsdl(in this proxy we are routing to reference.biz proxy service both contains same wsdls why?)
    xqueries of request and response.
    Best Regards,
    Raju.
    Edited by: 996674 on Apr 2, 2013 10:53 PM

    Hi Raju,
    Proxy Service - It is the starting point of you OSB application which deal with receiving messages, inducing logic in it like transformation, if-else, replace, java call outs,etc. You can put in your program logic here and then invoke a business service to route it to your Database or to any other queue as per your requirement.
    Business Service - It is generally used for routing purposes, like inserting the input in your Database or sending it to a different queue or BPEL process, etc..
    Cheers,
    Rit

  • What is the use of Node Manager?

    OBIEE Oracle Business Intelligence 11.1.1.5
    I have started up the WebLogic server which delivers the WL Server Admin Console as well as the Fusion Middleware Control.
    I have ignored NodeManager. It hasnt been started.
    What is the use of NodeManager?
    Oracle tells us:
    Note: In order to start the Managed Server using the WebLogic Server Administration Console, the Node Manager must be running.
    http://download.oracle.com/docs/cd/E21043_01/bi.1111/e10541/components.htm
    But my Manged Server is running ok - I can check http://<host>:7001/console and its ok.
    So why do I need to bother with NodeManager?
    I only have WLS and OHS installed - no BI instance.
    DA

    Answers inline:
    As I have installed weblogic server 10.3.5 on windows. while am starting it using cmd am getting two ips as
    1**.*.... for weblogic server one is (channel default 4... .. and one is default 1) kindly explain.
    - It doesn't generate any IP. If you have installed successfully, weblogic will run on your system and it's ip will remain same. You can access it using your systems'IP:portnumber
    Also tell as I have to use cmd for starting servers how can i use unix commands for the same??
    - You have installed on windows so unix command won't work for you. You can either start by going into services window in windows or start using command by going to path weblogichome\domains\domainname\bin. Execute startWebLogic.cmd
    Also explain what is the use of node manager and weblogic scripting tool which are also installed in the system.
    - Node manager is used for communication bentween two or more servers in a domain.
    As am looking to install OIM 11g so kindly tell what are all the things I need to know about weblogic so that i can learn OIM easily.
    - To install OIM, install weblogic, install oracle database. Use RCU utilities to create database and then install SOA, OIM and configure them. You can get all kinds of guides and steps for OIM 11g r2 here:
    http://docs.oracle.com/cd/E27559_01/index.htm
    regards,
    GP

  • What is the use of bean?

    I'm new to JSP.What is the use of bean? And how do we write it? Can I do the JSP which connect to database without using the bean?

    You don't need JavaBeans when working with JSPs. For info on JavaBeans look here: http://developer.java.sun.com/developer/onlineTraining/Beans/beans02/
    As a general rule of thumb it's not a very good idea to have JSPs connect directly to a database. I'd higly recommend you pickup "Java Servlet Programming" from O'Reilly, it covers Servlets, JSPs and how to tie them together.

  • What is the use of Host in Technical system

    Hi experts,
    While creating Technical sytem what is the use of creating Host.
    while creating Business System we create Logical System.When we are creating for Sap system then there we give client logical sytem name,but while creating for third party systems what is the use of it.....
    while creating Technical system and Business system v have 4 radio buttons
    Web As ABAP
    Web as Java
    Standalone
    thirdParty
    what is the use of Standalone when and in which senario we use this Standalone.
    Note:valuable anser will be rewarded.
    Regards,
    Phani

    Hi
    1. Third Party: Can be any Tech System. For example you want to send a xml message from a file adapter residing on your PC. You can define your PC as a 3rd party Tech/Business System.
    2. StandAlone Java: WEBAS640 has got Basis and Java Stacks. If you installed <b>only the standalone java Stack on a server</b>, then you define a standalone java tech system.
    Regards
    krishna

Maybe you are looking for

  • How can i organize a huge number of events?

    I just began with mac and iphoto. I imported a lot of photos from windows (google picasa) in iphoto (>17000). Now I have a huge number of events, which i would like to sort by e.g. years and months. Within the years and months, the events should be p

  • Net Protect Plus

    Hi all I have been using BT's Net Protect Plus since i have been with BT as my isp. A few weeks ago i formatted my harddrive and installed and fully updated my computer.After i had everything installed and updated i started to install world of warcra

  • Apple OS X Lion Compatibility with Apple OS Lion

    Is Adobe CS 5 compatible with Apple OS X Lion?

  • Safari browser running slow!

    Hi, I know this seems to be a common problem, but my iMac Safari browser has been running increasingly slowly for the last few months, when I first try to launch a new webpage it can take up to 20-30 seconds to load up. I appear to up to date with my

  • How to Copy customizing data from one company code to another company code

    Hi Big Boss opened a new company, we need to implement SAP system for this new company. this new company has same business with our one old company. so, we may almost use old the company customizing data for this new company. anybody can tell me how