How to count " How many times the ' commit work ' Statement is executed.

Hi all sap Champions,
One of the client requirement, That is
How to count " How many times the ' commit work ' Statement is executed.
It's urgent.
Please can anybody help me for this.
Thanks
Basu

hi,
when report try like this.
declare a variable as
data: counter type i value 0.
COMMIT.
counter = counter + 1.
write:/10 counter 'NO. OF TIMES COMMIT WORKED'.

Similar Messages

  • Need help: Sending mail to internet address without commit work statement

    Dear Experts,
            I have a problem in sending mails from sap to internet address.Am using the function module
    SO_NEW_DOCUMENT_SEND_API1 and am passing parameters like,
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_TYPE  = 'RAW'
              DOCUMENT_DATA  = DOC_CHNG
              PUT_IN_OUTBOX  = 'X'
         TABLES
              OBJECT_CONTENT = OBJCONT
              RECEIVERS      = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              OPERATION_NO_AUTHORIZATION = 4
              OTHERS                     = 99.
    submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
    My problem here is,with the commit work statement after FM, the mail is triggering correctly.but if, am not using the commit work statement,at the very first time of execution mail is not triggering, and the second time of execution first mail is triggering like wise it is going.The status of the message is waiting in queue.
    i have refresh receiver's list also.I want to use this concept in badi.So anyone can pls help me,how to send a mail without commit work statement.
    Thanks in advance.

    There is a parameter Commit_Work pass it as 'X'
    <code>
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
    DOCUMENT_TYPE = 'RAW'
    DOCUMENT_DATA = DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    commit_work = 'X'
    TABLES
    OBJECT_CONTENT = OBJCONT
    RECEIVERS = RECLIST
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    OPERATION_NO_AUTHORIZATION = 4
    OTHERS = 99.
    submit rsconn01 with mode = 'INT'
    with output = 'X'
    and return.
    </code>
    Edited by: Saravanan Ramasamy on Nov 11, 2009 1:31 PM

  • How to count how many times the caller calls by using UCCX script?

    Hi there,
    My customer wants to do a few changes for their script as below:
    At the beginning of the script they are planning to add a new menu item, it will announce their new privacy policies and to continue the user must press the number one to continue to the Welcome.  If they do not press 1 then the message should repeat itself and if they again do not press 1 they should be transferred over to a live operator who will explain things and then be able to transfer them back to the message so that they can press 1 and continue.
    I modified their script as attached file, but i don't know how to count how many times the caller calls in "Get Reporting Statistic".
    Any helps would be appreciated.
    Thanks.

    Hi Aaron,
    At beginning, i want to use a variable to get number of mistake for the same caller, then we will send the call to right place to fulfill the customers' needs. 
    Do you have any suggestion for the new posted script?
    Thanks.

  • Find out how many times the application was touched by a particular user

    Hello,
    can anyone please help me out with this issue.
    I want to find out how many times the application was accessed by a particular user,their session IDs for each of the applications in a particular workspace. I am using a role based authorization scheme for my application. I am using Oracle APEX 3.2 version. Are their any underlying APEX tables/Views to find out the above details.
    thanks,
    Orton

    Hi,
    Have you check views APEX_WORKSPACE_ACCESS_LOG and APEX_WORKSPACE_ACTIVITY_LOG
    Regards,
    Jari
    Edited by: jarola on Oct 20, 2010 7:37 AM
    This might help also
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#CHDDHGJI

  • How Many times the report has run

    Dear All,
    I am trying to find out if there is any standard report which shows me as to how many times the Z or Y repor has been used.
    This is really needed for me decide.
    with regards
    Ranjith Singh

    we created a solution that reads the information from STAT and stores it in a custom table for later retreival. we can then more closely monitor the amount of statistics kept without basis involvement. the function module to read the STAT information is:
      call function 'SAPWL_STATREC_READ_FILE'
           destination servers-rfcdest
           exporting
                read_client                 = sy-mandt
                read_end_date               = pstop
                read_end_time               = pstopt
                read_exclude_username       = 'SAPSYS'
                read_start_date             = pstart
                read_start_time             = pstartt
           tables
                v2_normal_records           = stats
           exceptions
                wrong_parameter_combination = 1
                others                      = 2.
    it takes some time to develop history, but we can now go back over a year to look at run time and execution trends by program, both ours and SAPs.
    HTH

  • How do count how many 'A' s in this string using sql stmt?

    hi all,
    i have a string like 'AAAAARAMAAAAKRISHNAAAA'.
    in this ,i want to find out how many 'A's .
    how do find out this using select stmt.

    (length(s) - nvl(length(replace(s, 'A')), 0)) / length('A')but consider (by modifying the question slightly to "how do count how many 'AA' s in this string using sql stmt? ")
    SQL>  select (length('AAAAARAMAAAAKRISHNAAAA') - nvl(length(replace('AAAAARAMAAAAKRISHNAAAA', 'AA')), 0)) / length('AA') x from dual
             X
             6
    1 row selected.couldn't I argue that the result should be 10 as e.g. in
    SQL>  select * from xmltable('let $str := "AAAAARAMAAAAKRISHNAAAA"
                            let $search := "AA"
                            for $i in 1 to string-length($str)
                              where substring($str, $i, string-length($search)) = $search
                              return substring($str, $i, string-length($search))' columns x varchar2(10) path '.')
    X        
    AA       
    AA       
    AA       
    AA       
    AA       
    AA       
    AA       
    AA       
    AA       
    AA       
    10 rows selected.Matter of definition I suppose .... ;)
    btw. regexp_count also yields 6:
    SQL>  select regexp_count('AAAAARAMAAAAKRISHNAAAA', 'AA') x from dual
             X
             6
    1 row selected.

  • HOW MANY TIMES TOP OF PAGE WILL BE EXECUTED ?

    HOW MANY TIMES TOP OF PAGE WILL BE EXECUTED IF THERE ARE MULTIPLE PAGES AND MULTIPLE WRITE COMMANDS IN A REPORT, SAY THERE ARE 10 PAGES TO BE PRINTED.
    BEST REGARDS,
    RYAN.

    if you process n times then n times the top of page will be executed.

  • I just upgraded from my 2008 MacBook to a new Macbook Pro. How do I get my time capsule to work on my new MacBook? I did data migration, but the time capsule did not pick it up. Any ideas?

    I just upgraded from my 2008 MacBook to a new Macbook Pro. How do I get my time capsule to work on my new MacBook? I did data migration, but the time capsule did not pick it up. Any ideas?

    If you migrated all the info from time machine to your new MBP. The TM will usually ask to connect to the old backups.. sorry I am not sure is this what you want to do.. Personally I think you start a fresh backup.
    BTW Time Capsule does not do anything.. it is a dumb hard disk in a box.. it is TM that does everything.
    Look at B5 and B6 here about connecting to your backup.
    http://pondini.org/TM/Troubleshooting.html

  • If I install Windows 7 on iMac (what we have done many times and it works very good) does windows support the fusion drive?

    if I install Windows 7 on iMac (what we have done many times and it works very good) does windows support the fusion drive?

    Welcome to the Apple Support Communities
    Fusion Drive is created by software on OS X. On a computer with Fusion Drive, Windows is installed on the HDD, but when you install the Boot Camp drivers, you will be able to read Macintosh HD, so it looks like it supports Fusion Drive but only for read

  • How can I copy and paste the art work from album covers?

    How can I copy and paste the art work from album covers?

    I don't think the list style transfers. Copy and paste the text in to Mail, select it and then choose "Insert Numbered List" as a work around.

  • How to Add  3 queries in the same work book?

    Hi Gurus,
    Can any one tell How to Add  3 queries in the same work book?
    Example, daily report,Monhly and yearly reports for sales should be in the same workbook.
    Please help me if any one have a pointer or a how to doc if available.
    <<Text removed>>
    Thanks
    James
    Edited by: Matt on Apr 26, 2010 9:36 AM

    Hi James,
    According to BI 7.0 Version
    Steps of creating workbook and to insert more than one query in a workbook.
    When you run a query and it opens in Bex Analyzer you can click the save button and pick "Save as Workbook".
    Once you save it as a workbook Click on the "Design Mode" button in the Bex toolbar (looks like an A).
    Click in the sheet where you want the new query to go, click the "Analysis Grid" button. It will add the analysis grid to your new sheet.
    Right click on the Analysis grid and go to properties.
    Click on button to change data provider and select the query you want to attach.
    Exit design mode and you should be all set.

  • I m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me. thanks ravi

    i m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me.
    thanks
    ravi
    <Email removed by Host>                                                                                                                                                                                                                                       

    sounds more like Bluetooth rather than moue, but w/o knowing w/o posting mac model type/year we... will... not... know... what you have
    All computers are personal computers, a PC though is also "non-Apple" in common usage.
    Mac also is platform and OS.
    Very confused reading what you are trying to tell us.

  • My mac book air suddely disconnects many times the wifi while using wifi

    my mac book air suddely disconnects many times the wifi while using wifi

    Lots of things can impact wifi connections.  If you are at the marginal edge of the wifi range (which depends not only on distance, but what's between you and the transmitter) you may find the connection dropping in and out.  Sometimes a minor repositioning of the computer or transmitter can solve the issue.
    As well, interference can also create problems.  For instance, microwave ovens are really good at disrupting 2.4Ghz signals, and that the frequency used most often in wifi routers--so if someone turns on the microwave and it's between you and the transmission point it won't be surprising if the connection drops.  As well, metal blocks the signal fairly effectively, so if (say) ductwork is between the CPU and the wireless router there can be problems.
    Finally, I've run into some combos of devices and routers that just don't seem to like each other :-) .  That said, I've not hit that problem with either Air I'm running (an 11" and a 13"), though obviously I've not tried to connect them to every type of router out there.
    Just this week I was at a hotel and in my room the hotel wifi was "interesting" with every device I tried (iPhone, Android phone, Kindle Fire, iPad and the two Airs) dropping connection regularly from the work desk.  Turned out if I moved the devices over to the nightstand on the other end of the room (not the best work environment) all of the problems went away, so it clearly was a signal issue and the exact layout of that room and the hotel's wifi.
    If the machine has a problem when positioned close to a variety of routers, then I'd suspect a hardware issue with the wifi card in the Air and get that checked by Apple.  Similarly, if your problem is with your home router, I'd check to see if other devices also are getting dropped, since there could be a hardware issue on the router.

  • How to disable delete option in the receipt work bench thorugh formpersonal

    Hi Team,
    Please let me know, how to disable delete option in the receipt work bench through form personalization

    Hi.
    Condition
    Trigger Event: WHEN-NEW-ITEM-INSTANCE
    Trigger Object: RGW_FOLDER.M_PAYMENT_METHOD_DSP
    Actions
    Type: Property
    Object Type: Block
    Target Object: RGW_FOLDER
    Property Name: DELETE_ALLOWED
    Value: FALSE
    Note: The button will remain visible and if the user presses it, the system will ask if he/she want to delete the receipt. However, if the OK button is pressed the receipt will not be deleted and a message will be shown ("You cannot cannot delete this record")
    Hope this helps.
    Octavio

  • Hi I have got a iPad1 and tried to update to version 5.0.1 many times but never work.please help me.

    Hi I have got a iPad1 and tried to update to version 5.0.1 many times but never work.please help me.

    alway say it was corrupted
    Restore the iPad as a new device....
    How to set up your iPhone, iPad, or iPod touch as a new device

Maybe you are looking for

  • Change Pointers are not getting populated in BDCPV table.

    Hi All,          I am trying to create IDOC for Activity type master - KL02 through change pointers. For that I have done following things. Message type - COAMAS 1. Created Custom message type - WE81 - ZIN_COAMAS_TCSMOBILE 2. WE82 - Config for Mess T

  • ASA 5510 8.0(2) WebVPN problems

    Hi, we have a fairly simple configuration running on our ASA and try to make use of the webvpn on occasion. The feature used to work great with 7.2, but after we upgraded to 8.0 we started having problems. Basically an user (network admin) can log in

  • Logo not printing

    Hi I am not able to print the logo in scripts. I have tried with another images. Nothing is working. Can anyone help me.what might be the problem.

  • Safari crashes when I try opening the bookmark tab (iPad 3, iOS 5.1.1)

    Hello, I was trying to sync my bookmarks from computer to iPad, and suddenly I couldn't open the bookmarks tab on my iPad any more. Safari just closes right away. I tried erasing all the history and rebooting, but it didn't work. Thanks for your help

  • SSD vs Mech HDD for AE CS4 Source Files?

    When starting a new AE project, should I copy all the assets, the source files to my SSD? Will AE work faster that way or should I just leave them on the mechanical drive? I'm running a Win7 64-bit system with 12G of RAM, a 6-core processor (core i7