" *COMMIT "  statement - Question

*XDIM_MEMBERSET P_ACCT = CE0004010
*XDIM_MEMBERSET TIME = 2006.DEC ,2006.Nov,2006.OCT
[#CE0661000]  = 500
*COMMIT
In the above logic, how many records will get updated?
I am guessing  the above logic will update 3 records(based on teh time dimension) , is that correct?

Dear Sapki6,
Sorry I did not clear your script logic. If you want to create a new record into BPC table, please you have to use *REC() statement and combine with *COMMIT() statement. *COMMIT() statement is used to write down a data into tables and maybe you want to view a new record, please you do not put *COMMIT() statement in your script and BPC will write down in memory. So, you can see log of data for a new record which BPC created it.
Kind Regards,
Wandi Sutandi

Similar Messages

  • Commit statement in user exit

    Hi All,
    We found that while doing PGI , it takes some time to COMMIT the table VBUK. Due to which we are getting old values of VBUK-KOSTK field while executing select query at later point of time in the flow.
    My question --
    Can I use COMMIT WORK statement in user exit MV50AFZ1 --> FORM USEREXIT_SAVE_DOCUMENT so that all the related tables
    get committed immediately.
    Thanks
    Saurabh

    Hi Saurabh ,
    Normally , you shoud not specify COMMIT stmt in any user exit , badi etc..
    SAP has its own COMMIT statement while execuiting the standard transactions .
    Addition of a COMMIT might lead to problems elsewhere .
    Thanks
    Supriya

  • Each procedure have commit statement

    I call five procedure individually, and each procedure have commit statement from .net environment i.e. click event of submitt button call five procedure
    but now i want only one commit statement for all five proceduce if all procedure successfully
    executed.
    suppose first two procedure successfully execute then third procedure raise some exception, in that case previously execute procedure data successfully comitted, but i want them rollback because all five procedure does not successfully execute.

    What does this have to do with OCI? Sounds like a transaction control question...
    The answer is to commit at the end of the transaction from the client code, and not at the end of each procedure call.

  • How to execute commit statement in a procedure optionally?

    We have a procedure which has DML operations and at the end there is a commit statement.
    I want to execute commit statement optionally.
    Like, when procedure runs directly it must execute commit statement, but when this procedure is called from a trigger don't run commit.
    As you know commit operation is not allowed in triggers.
    How can I understant the code is triggered from a trigger or any other (manuel exec or from another procedure).
    I am looking for the reserved word that solve my problem. Like INSERTING, DELETING ....
    Serkan
    Thanks.

    Hi oraserkan,
    You do of course know it's dangerous to have a commit inside a procedure?
    Consider this:
    SQL> create table t (text varchar2(25))
    Table created.
    SQL> create or replace procedure p
    as
    begin
       insert into t(text)
           values ('Insert PROCEDURE');
       commit;
    end p;
    Procedure created.
    SQL> insert into t(text)
        values ('Insert SQL')
    1 row created.
    SQL> exec p
    PL/SQL procedure successfully completed.
    SQL> rollback
    Rollback complete.
    SQL> select * from t
    TEXT                    
    Insert SQL              
    Insert PROCEDURE        
    2 rows selected.You should instead clearly state the procedure has a commit by making it autonomous, and then have two procedures, one that commits, and one that don't
    SQL> drop procedure p
    Procedure dropped.
    SQL> drop table t purge
    Table dropped.
    SQL> create table t (text varchar2(25))
    Table created.
    SQL> create or replace procedure p_transactional
    as
    begin
       insert into t(text)
           values ('Insert PROCEDURE');
    end p_transactional;
    Procedure created.
    SQL> create or replace procedure p_autonomous
    as
       pragma autonomous_transaction;
    begin
       p_transactional;
       commit;
    end p_autonomous;
    Procedure created.
    SQL> insert into t(text)
        values ('Insert SQL')
    1 row created.
    SQL> exec p_autonomous
    PL/SQL procedure successfully completed.
    SQL> rollback
    Rollback complete.
    SQL> select * from t
    TEXT                    
    Insert PROCEDURE        
    1 row selected.
    SQL> drop procedure p_transactional
    Procedure dropped.
    SQL> drop procedure p_autonomous
    Procedure dropped.
    SQL> drop table t purge
    Table dropped.Regards
    Peter

  • COMMIT statement

    Hi Guys,
    I have a RFC function module which updates a field on the Portal side and no updates are done on the R/3 side. I pass parameters to the FM and it updates the field on the portal side.So do we need a COMMIT statement in this situation.
    IS COMMIT statement necessary for every BAPI or RFC function module. What are the situation under which a COMMIT statement is used.

    Hi,
    IF you are exporting a data from SAP to other system you doesn't need this but if you are importing a data from others systems to SAP you need to use the statement COMMIT WORK.
    COMMIT WORK is required for transactions developed externally to the R/3 System that change data in the R/3 System via BAPI calls.
    When you call BAPIs in your program that change data in the R/3 System, afterwards you must call this the FM "BAPI_TRANSACTION_COMMIT" to write the changes to the SAP database.                                                                 
    <b>Use function module BAPI_TRANSACTION_COMMIT to do this.</b>
    Regards.
    Marcelo Ramos

  • Commit statement in badi method

    hi all,
    i am using commit statement in badi method save_data, it is put after function module,
    in function module i have used insert and update statement, if i do like that then the commit statement refresh the global data but update the table,
    if i create one perform inside function module and put commit statement in that perform, then it shows message update was terminated,
    i also want the global data for processing thats why i can't use commit statement after FM in method, please give Suggestion,
    Points will be awarded.

    Hi,
    sounds as if you call that FM in update task. Update function modules do not allow all actions. They should only include the neccessary SQL statements and must include any COMMIT.
    For more information read SAPDOCU of COMMIT WORK and everything of SAPS update concept (start immed. V1, start delayed V2 and so on).
    ATTENTION. Most BADIs designed to save customers data may be used several times and standard data may be saved after them. To avoid inconsistent data inside those BADIs normally no COMMIT should be done.
    Kind regards,
    HP

  • Comment after the commit statement.

    Hi Everyone,
    Please do have a look at this.
    Commenting on COMMIT: Example The following statement commits the current transaction and associates a comment with it:
    COMMIT COMMENT 'In-doubt transaction Code 36, Call (415) 555-2637';
    Now where can I see that comment? What is the data dictionary, which will have this detail?
    Regards,
    BS2012.

    If you look into the document for the COMMIT statement you will see this.
    COMMENT Clause
    Specify a comment to be associated with the current transaction. The 'text' is a quoted literal of up to 255 bytes that Oracle Database stores in the data dictionary view DBA_2PC_PENDING along with the transaction ID if a distributed transaction becomes in doubt. This comment can help you diagnose the failure of a distributed transaction.

  • Issue a commit statement for every 10000 rows updated

    Hi,
    I have a update statement, updating huge number of records.
    I wanted to issue a commit statement for every 10000 rows updated.
    Can this be done?
    Thanks,
    Dinesh

    user522952 wrote:
    Hi,
    I have a update statement, updating huge number of records.
    I wanted to issue a commit statement for every 10000 rows updated.
    Can this be done?
    Thanks,
    Dinesh Why do you want to issue commit statement frequently? Do you have a possible reason?
    If you think it will improve performance, you are 200% wrong. It will not improve performance it will only degrade performance. It will destroy the integrity of your data. It will screw you up big time.
    Ever heard of [ORA-01555 Snapshot too old|http://asktom.oracle.com/pls/asktom/f?p=100:11:4217554330904383::::P11_QUESTION_ID:275215756923] error? Your approach has a likely chance of getting that too.
    Do it in a single UPDATE. How big the table is does not matter. Do it in a single update, Oracle is fully capable of doing it.

  • Force a commit statement

    Hello,
    Is it possible to automatically force a commit statement in a JSP page after you have inserted or updated a record ?
    Greetz

    Commiting is done by DataHandlerComponent.jsp in your JSP sample project.
    Add following line (it's inside DataHandlerComponent.jsp - but launched only on Commit event) to page which is loaded next to edit page.
    <jbo:Commit appid="<%=amId%>" />

  • How commit statement works

    Hi,
    I want to know the procedure of how commit statement executes.
    I have a transaction in which I have updated 10000 rows of table A having 10lakh records and after this update I am updating 1 row in table B having 1000 records.
    after both these update statement I am executing commit statement.
    so, how this commit will work? does it commits the data in sequential order of updation of table A and B or it will be parallel for both the tables? Does it take time to do the commit?
    Thanks

    Arjit wrote:
    Hi,
    I want to know the procedure of how commit statement executes.
    I have a transaction in which I have updated 10000 rows of table A having 10lakh records and after this update I am updating 1 row in table B having 1000 records.
    after both these update statement I am executing commit statement.
    so, how this commit will work? does it commits the data in sequential order of updation of table A and B or it will be parallel for both the tables? Does it take time to do the commit?
    Thankswhen all else fails Read The Fine Manual
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/sqllangu.htm#sthref864
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/transact.htm#sthref1302
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/transact.htm#sthref1320

  • Commit or no commit statement in procedure

    Hi all,
    i have two version of the same procedure.
    procedure A
    --loop
    ---fetch into record
    --update a flag as processed
    commit;
    end loopprocedure A'
    -- loop
    --fetch into record
    --update a flag
    end loop In procedure A, i do a commit after every row. In A', i do not issue any commit statement. Will oracle auto commit the changes done in A' after the procedure finishes?
    Because i realise in procedure A, it takes a long time finish. Whereas in A' it takes a relatively less time to finish.
    Any harm if i choose procedure A' ?

    Any harm if i choose procedure A' ?No.
    But this way I prefer to commit.
    Commit inside the loop surely slow down the performance.
    If it is a huge table, then commit after every few set of trasactions will be advisable.
    Procedure A
    loop
    fetch into record....
    update or whatever your task....
    end loop;
    "commit";
    end procedure A.

  • COMMIT statement generates error in trigger

    My COMMIT statement generates error from my 'when-button-pressed' trigger.
    First I issue a very simple Insert statement, then a commit, but I get:
    FRM-41009. Function key not allowed. Press Ctrl+F1 for list of valid keys.
    Do you think I have a trigger somewhere else that could be affecting this commit ?
    Bob

    I FIGURED IT OUT, FOLKS.
    I was in query mode before issuing the commit. I simply chose a record and it worked.
    Thanks anyway,
    bob

  • How to type comma "," and question "?" without going to "123" sub menu?

    How to type comma "," and question "?" without going to "123" sub menu?

    I use Comma and question mark frequently at text messaging, email.....using my iPhone 4.
    Apparently, there's no short cut for this and I request Apple Support to create a shortcut for "," and "?' so there the Apple device can be more user friendly.
    Jackson

  • Oracle 10g - Default commit state

    Hi,
    Does anybody know what the default commit state for Oracle 10g is upon installation?
    Your help is very much appreciated!
    Thanks.

    Do you mean auto-commit on or off? If so, Oracle has no auto-commit (some client apps may).

  • Can it be used commit statement in user-exits?

    Can it be used commit statement in user-exits?
    How to badi is different from other enhancement?
    What are the two default components systems automatically creates when we create a new badi?
    What is the business object for purchase order?

    Hi,
       1) commit statement in userexit:
    You should not do that.
    After the user exits code is triggered, the transaction's own commits statements will commit the database anyway
    2)You could say: BAdI = enhancement using interfaces
    It is just the most up-to-date version of SAP's enhancement concept.
    go thru this.
    http://www.esnips.com/web/BAdI
    http://www.allsaplinks.com/badi.html
    New to Badi
    Regards
    Kiran Sure

Maybe you are looking for