Report to show Number of sent and received messages

Hi,
We are on PI 7.1 EHP 1.
I'm wondering if there is a way to set up a daily report that will output the number of inbound and outbound messages by message type?
I know this can be done manually in the RWB but is there a way to automate it?
Thanks,
Gareth

Yes, is possible using standard AbapStack function & tables.
Check in SDN Forum, this is an old 3D.
Re: Get count of the messages to particular Interface in a day and send email
*& Report ZPI_MESSAGES_COUNT
REPORT zpi_messages_count.
TYPES : BEGIN OF gty_filter_t,
ob_system TYPE ait_sndr,
ob_name TYPE rm_oifname,
END OF gty_filter_t.
DATA : im_filter TYPE sxi_msg_select,
pids TYPE sxms_sel_options,
pid TYPE sxmsselopt,
gt_msg TYPE sxmsmsgtab,
gt_fil TYPE TABLE OF gty_filter_t,
gs_fil TYPE gty_filter_t,
gs_fil_t TYPE gty_filter_t,
gs_msg TYPE SXMSMSGLST,
gv_lines TYPE int4,
cnt TYPE i.
PARAMETERS : s_st_dat TYPE sxi_msg_select-exedate OBLIGATORY,
s_ed_dat TYPE sxi_msg_select-exe2date OBLIGATORY,
n_hits TYPE int4 OBLIGATORY.
START-OF-SELECTION.
im_filter-exedate = s_st_dat.
im_filter-exe2date = s_ed_dat.
pid-sign = 'E' .
pid-option = 'EQ'.
pid-low = 'CENTRAL_BACK'.
APPEND pid TO pids.
CLEAR pid.
pid-sign = 'E' .
pid-option = 'EQ'.
pid-low = 'RECEIVER_BACK'.
APPEND pid TO pids.
CLEAR pid.
pid-sign = 'E' .
pid-option = 'EQ'.
pid-low = 'SENDER_BACK'.
APPEND pid TO pids.
CLEAR pid.
pid-sign = 'E' .
pid-option = 'EQ'.
pid-low = 'PE_ADAPTER'.
APPEND pid TO pids.
CLEAR pid.
pid-sign = 'E' .
pid-option = 'EQ'.
pid-low = 'PE_PROCESS'.
APPEND pid TO pids.
CLEAR pid.
im_filter-pids = pids.
CALL FUNCTION 'SXMB_SELECT_MESSAGES_NEW'
EXPORTING
im_filter = im_filter
im_number = n_hits
im_adapter_or = '0'
im_process_mode = '0'
IMPORTING
ex_msgtab = gt_msg
EX_RESULT =
EX_FIRST_TS =
EXCEPTIONS
persist_error = 1
missing_parameter = 2
negative_time_range = 3
too_many_parameters = 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.
DESCRIBE TABLE gt_msg LINES gv_lines.
SORT gt_msg BY ob_system.
LOOP AT gt_msg INTO gs_msg.
MOVE-CORRESPONDING gs_msg TO gs_fil.
APPEND gs_fil TO gt_fil.
CLEAR gs_fil.
ENDLOOP.
LOOP AT gt_fil INTO gs_fil.
gs_fil_t = gs_fil.
cnt = cnt + 1 .
AT END OF OB_SYSTEM .
WRITE :/ cnt, gs_fil_t-ob_name .
CLEAR cnt.
ENDAT.
ENDLOOP.
WRITE :/ gv_lines, 'Records Received'.

Similar Messages

  • Sent and received messages in same mailbox

    Hi,
    I'd like to set up a mailbox that collects messages that are sent from me and received by me for a specific project. When I set this up with a standard (using rules) or smart folder, sent and received messages look identical. I can of course add a "To" column to the mailbox but this is then also present in my inbox which list me under the column for every message. Not ideal
    Is there a way to differentiate sent and received messages in a mailbox by changing one set to italics or colour coding or something?

    you can set a "To" column in a smart mailbox. it will not be added to any other mailboxes. another option is to set a mail rule that colors incoming messages based on the criteria you used for the smart mailbox.

  • Can we fetch a report which shows the information carrying the emails sent and received by exchange servers?

    Can we fetch a report through scom 2007 r2 which shows the information carrying the emails sent and received  by exchange servers?

    Hi,
    Within the imported Exchange management pack, we have some default reports that could be run. Have your imported the proper MP to your management group, please check whether those default reports can achieve what you want.
    In addition, here is a powershell script to show total number of emails sent and received per user:
    Exchange 2007/2010 Email stats
    https://gallery.technet.microsoft.com/scriptcenter/bb94b422-eb9e-4c53-a454-f7da6ddfb5d6
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • I have just bought a new iPhone and gave my old one to my Mum. My problem is that even with a new SIM and phone number I seem to be getting her messages as well as mine on my thread. They are also being recorded as both sent and received so she must be pa

    I have just bought a new iPhone and gave my old one to my Mum. My problem is that even with a new SIM and phone number I seem to be getting her messages as well as mine on my thread. They are also being recorded as both sent and received so she must be paying twice for each SMS sent. Help please

    Wipe iPhone/iPad/iPod touch clean
    There are a few steps to do:
    Switch off iMessage in Settings > Messages
    Switch off FaceTime in Settings > FaceTime (iPod touch 4th Generation or later, iPhone 4 or later and iPad 2 or later)
    Delete iCloud in Settings > iCloud > Delete Account
    Finally Settings > General > Reset > Erase All Content and Settings.
    Un-register your device: https://supportprofile.apple.com
    Now you can sell/give.
    Now, you should get her a new Apple ID to sign in the options above.

  • TS1702 My iMessage is only allowing me to select messages to be sent and received from my email. If my number is an option, but it will not let me select my number, how do I get the iMessages to be sent to my number and not my email?

    My iMessage is only allowing me to select messages to be sent and received from my email. If my number is an option, but it will not let me select my number, how do I get the iMessages to be sent to my number and not my email?

    Try ejecting your iphone from iTunes and then close iTunes. Now retry. Hope this helps.

  • Each message shows same date and time for sent and received.

    Each of the thousands of messages in Mail shows that the message was sent and received at the same time. Somehow, Mail is displaying incorrect information. In other words, the "date sent" and "date received" columns are identical. What can I do to Mail to get it to put the correct "sent" time in the column?

    Are you asking a question or making a suggestion? If you're asking if you can change Messages to show the time stamp for every message, no, you can't. If you are trying to make a suggestion to Apple, the appropriate place to do that is here:
    http://www.apple.com/feedback

  • TS4268 My text messages are being sent and received with my email address instead of my phone number. How do I fix this?

    My text messages are being sent and received with my email address instead of my phone number. How do I fix this?

    This is with iMessages only.
    Go to Settings > Messages > Send & Receive and below the Start New Conversations From, select your cell phone number instead of your Apple ID email address.

  • Where do I find the code on my Mac to allow iPhone text messages to also be sent and received on iMac?

    where I can find the code that is supposed to be shown on my Mac to allow iphone text messages to also be sent and received on iMac?

    Hi,
    Long Answer.
    Enable the iPhone for Messages.  Make sure it Verifies and that your can Send from the iPhone Number.
    To do that you can Enable the iMessages account in Messages on the Mac using and Apple ID.
    The iPhone can then send from the iPhone Number to the Apple ID (Mac).
    Then add the Apple ID to the iPhone.
    The Mac will then get a pop up saying that the iPhone is using the Apple ID and the iPhone number.
    Accept this Pop up to enable the Mac to "sync" the iPhone Number iMessages.
    (Sync in this case is only "Display on All Devices").
    Now you can enable Text Forwarding on the iPhone.
    IF the Apple ID and iPhone Number are already linked this will launch the app if it is Quit and display the Code number you need.
    The number then need to be entered back on the iPhone to complete the process.
    The Text Forwarding option on the iPhone should then show the device(s)  that are linked this way.
    9:12 pm      Wednesday; March 11, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • We have 3 devices used by 3 different people under the same Apple ID, how do I stop getting my daughters texts, both sent and received?

    We have 3 devices used by 3 different people under the same Apple ID, how do I stop receiving my daughters texts? Both sent and received.

    When you use the same Apple ID on 3 devices it means you are all using the same (email, imessaging, calendar etc).  Since iCloud (MobileMe) is designed to be shared across all devices included Macs, it means all devices setup with the same ID will have access to the information.
    Text messaging is relevant only to the number you are texting.  This is done through your telecom companys lines and not on Apples.
    If you do not want to have others be able to read any of your information then it is best you each have your own account.

  • Iphone 4S - its gone crazy, imessages are sent and received and going thru my Ipad, phone and email. Facetime cannot be used, as I dont have the facetime logo in my contacts anymore. Help!!!

    Basically my Imessages thast are sent and received are going to both my Ipads, phone and sent messages are shown to receiver as an email.
    When I go into settings / send and receive, it has my email address and a mobile number which is greyed out and cannot be changed, the sim card in my fone is completely different to the one store in the settings. I have no facetime option in my contact list either, its completely gone.
    Can anyone help, Please

    Morning SalsB,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iOS: Troubleshooting FaceTime
    http://support.apple.com/kb/ts3367
    Best of luck,
    Mario

  • Feature request: get bytes sent and received

    Is there a way to get the number of bytes sent a received? For other stats, I use code such as:
    com.tangosol.coherence.component.net.Cluster cluster = (com.tangosol.coherence.component.net.Cluster)
                        ((SafeCluster)com.tangosol.net.CacheFactory.ensureCluster()).getCluster();
    PacketPublisher publisher = cluster.getPublisher();
    PacketReceiver receiver = cluster.getReceiver();So, I'm looking for a way to get bytes transferred info out of the publisher and receiver objects.
    Thanks,
    Matt

    Matt,
    First, I'd like to underscore the fact that all this is not a public API yet and may change without notice.
    Currently, you can get the number of sent and recieved packets:
    publisher.getStatsSent();
    receiver.getStatsReceived();To transalte this into bytes you'd have to factor it by the value of "cluster-config/packet-publisher/packet-size/preferred-length" element in "tangosol-coherence.xml" descriptor.
    Gene

  • How can I view the text messages sent and received from my phone?how can I view the past text messages sent to my phone

    How can I view the text messages sent and received on one of the other phones on my plan?

    You would have to view them on the other phone.

  • How to delete a phone number in "send and receive" imessage option (iOS 6.0) ?

    How to delete a phone number in "send and receive" imessage option (iOS 6.0) ?
    Thks for tip ;-)

    Why? Is the number incorrect? It gets your phone number from the SIM.

  • HT201320 I have two email accounts. However, the iPad automatically uses the account that I only want to use for business. How can I change the account from which mail is sent and received?

    I have two email accounts. However, the iPad automatically uses the account that I only want to use for business. How can I change the account from which mail is sent and received?

    You are most welcome

  • The Apple Mail group my sent and received similar messages in my inbox, how can i disable this? I just want to see the messages i received, not the ones i sent!

    The Apple Mail group my sent and received similar messages in my inbox, how can i disable this? I just want to see the messages i received, not the ones i sent!

    Mail/Preferences/Composing. Do you have the CC myself box checked?

Maybe you are looking for