Writing messages in FM

Hi,
I am using the WRITE statement in the FM, and it is not very efficient because it doesn't write to the screen. What ABAP statement should I use to collect messages to a log or somewhere I can review later?
Thanks
RT
Message was edited by: Rob  Thomas

Generally if you look at the standard FM, there will be return table, where in all the messages will be appended.
For BAPI's it will have a return structure BAPIRET2.
Or like Suresh suggested, you can raise a exception, however by doing that the further execution of the function module will stop.
Regards,
Ravi

Similar Messages

  • How to turn my keyboard rotate when writing message

    How do turn on orientation lock?when writing message iPhone 4s keyboard can not rotate or clockwise. Where to switch on the function button

    First you ask how to turn on the orientation lock, then you say your screen won't rotate. If the orientation lock is on, the screen won't rotate. To verifiy if it is on, look by the battery symbol and you should see the little lock with a circular arrow around it. To toggle it on and off, double click the home button and swipe to the right to bring you to where the iPod controls are. The orientation lock is right there.

  • Posfix error writing message: File too large

    I was looking for a reason for my Mac hanging occasionally. In Console I found the following recurring error message.
    10/2/11 8:15:19 PM     postfix/master[656]     daemon started -- version 2.5.5, configuration /etc/postfix
    10/2/11 8:16:00 PM     postfix/pickup[657]     B6095D33A25: uid=501 from=<Al>
    10/2/11 8:16:00 PM     postfix/cleanup[664]     B6095D33A25: message-id=<[email protected]>
    10/2/11 8:16:00 PM     postfix/qmgr[658]     B6095D33A25: from=<[email protected]>, size=668, nrcpt=1 (queue active)
    10/2/11 8:16:00 PM     postfix/local[666]     B6095D33A25: to=<[email protected]>, orig_to=<Al>, relay=local, delay=0.08, delays=0.04/0.02/0/0.02, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/al for user al. error writing message: File too large)
    10/2/11 8:16:00 PM     postfix/cleanup[664]     C5ACFD33A28: message-id=<[email protected]>
    10/2/11 8:16:00 PM     postfix/bounce[667]     B6095D33A25: sender non-delivery notification: C5ACFD33A28
    10/2/11 8:16:00 PM     postfix/qmgr[658]     C5ACFD33A28: from=<>, size=2366, nrcpt=1 (queue active)
    10/2/11 8:16:00 PM     postfix/qmgr[658]     B6095D33A25: removed
    10/2/11 8:16:00 PM     postfix/local[666]     C5ACFD33A28: to=<[email protected]>, relay=local, delay=0.01, delays=0/0/0/0, dsn=5.2.2, status=bounced (cannot update mailbox /var/mail/al for user al. error writing message: File too large)
    10/2/11 8:16:00 PM     postfix/qmgr[658]     C5ACFD33A28: removed
    10/2/11 8:16:19 PM     postfix/master[656]     master exit time has arrived
    I haven't done anything with Postfix, but I'm guessing one of the monitoring utilities is set up to send me an email message if it finds an error.
    Looking for ideas on how to fix this.

    Well, I think I figured this out.
    I found this posting on a message board http://www.linuxquestions.org/questions/linux-networking-3/file-too-large-in-pos tfix-495988/#post2480213
    I ran this command in terminal: sudo postconf -e "virtual_mailbox_limit=0" then: sudo postfix reload
    That still didn't fix the error messages.
    Then I ran this command in terminal: sudo postconf -e "mailbox_size_limit=0" then: sudo postfix reload
    That stopped the "file too large" error message.
    Now the console message I get is:
    postfix/master[1630]          daemon started -- version 2.5.14, configuration /etc/postfix
    postfix/pickup[1631]          68EA012A66BD: uid=501 from=<Al>
    postfix/cleanup[1643]          68EA012A66BD: message-id=<[email protected]>
    postfix/qmgr[1632]          68EA012A66BD: from=<[email protected]>, size=707, nrcpt=1 (queue active)
    postfix/pickup[1631]          BA07112A66BE: uid=501 from=<Al>
    postfix/cleanup[1643]          BA07112A66BE: message-id=<[email protected]>
    postfix/local[1645]          68EA012A66BD: to=<[email protected]>, orig_to=<Al>, relay=local, delay=0.82, delays=0.5/0.09/0/0.23, dsn=2.0.0, status=sent (delivered to mailbox)
    postfix/master[1630]          master exit time has arrived
    I'm guessing this is normal function of the postfix system. However, I'm still not sure what postfix is doing. Maybe its the under-the-hood stuff for Apple Mail?

  • TS3694 i updated my iphone 4s to ios 7.0.04 thru itunes but i started to have problem  writing messages because oftentimes nag hang hang  , how can i fix it  the problem ?

    hi, can you help me  address this problem, I'm having a difficulty writing messages because my iphone suddenly hangs up. It started after I updated my phone to 7.0.04 IOS version

    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Then reset: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • SQLScript , writing messages to log file

    Hi,
    We're developing SQLScript and executing them directly on Unix via Unix command HDBSQL. We use the -o keyword with HDBSQL to write messages like comments, custom errors into a log file. The only way we know how to force custom messages into the log file is the SELECT "Text" FROM DUMMY.
    Now our SQL consists of multiple procedures that may be called in a nested fashion i.e Proc 1 calls Proc 2 which in turn calls Proc 3. We noticed that the SELECT FROM DUMMY way of writing comments into the log only works if the procedure is the first procedure in the line of nested calls(Proc 1). SELECT FROM DUMMY from a  sub/nested procedure does not make it to the log file.
    Is there any other way we can achieve this? Other DBs have options like DBMS.output which work well in such scenarios.
    I would like to thank this group for being ever so helpful in all the issues we have faced so far.
    Regards,
    Nehal

    Hello,
    I do not agree. have you taken a look at Oracle9i Supplied PL/SQL Packages and Types Reference?
    You can use UTL_FILE and DBMS_OUTPUT to achieve exactly what you want.
    Rgds
    Fidel

  • Writing Message Filters Script via CLI

    Is there any document to refer while writing scripts for message filters?
    My ESA is on version 8.0.1 and I am unable to make text "case insensitive" while checking that text under "contains" rule? Is there any mechanism to look for text by ignoring the case?

    using (?i) in either message or content filter will allow case insensitivity to be used.
    Ex.
    subject == "(?i)\\[SEND SECURE\\]” 
    * Q: What does (?i) do?  Case insensitivity.  Allows for “[SEND SECURE]”, “[send secure]”, “[SeNd SeCuRe]”, etc.
    http://www.cisco.com/c/en/us/support/docs/security/email-security-appliance/118013-config-cdc-00.html
    See either the Email Security End User Guide, or the older Advanced Configuration Guide - and look for the "Using Message Filters to Enforce Email Policies" section for full information and examples!
    http://www.cisco.com/c/en/us/support/security/email-security-appliance/products-user-guide-list.html
    I hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • Problem writing message Nokia6300

    I just bought a nokia6300 silver..
    The problem is when writing a message, I need to press the # several times to have the correct format (abc)... Can someone tell me how to set abc as default writing format? I am having arabic a default.. I already selected english but the writing format is killing me..
    Thanks

    Personally, I have never userd a Nokia phone with anything other than roman-alphabet languages on, so I'm not sure, but I thought it was determined by the "phone language" setting, not just the writing language setting, so it may default to Arabic if you have Arabic as the phone language.
    I think that the writing language settings just determine the T9 dictionary settings.

  • Writing message mapping function in Java in integration repository

    Hi XI Pundits,
    I am new to XI. I was working on Message mapping in intergration repository.
    To map the source messages to target messages, we do graphical kind of mapping like drag and drop.
    There are some functions aavilable at the bottom like concatehate, trim and etc. which we use if we need to modify the source message and map to target.
    But in case we face a situation when we don't find the function which suits our requirement, I guess we need to write a new function. We can write these new function using Java only.
    Can someone throw some light on this ?
    <b>What do we do to invoke java editor in integartion reposity to write mapping function in java ?
    Can someone give an example of snippet of code ?</b>
    Thanks.

    Hi Tushar,
    Go thro this help link. You will get all info about User defined function.
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/frameset.htm
    To get more understanding on mapping go thro this link(PDF File)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    Hope this helps.
    regards,
    P.Venkat
    Message was edited by: Venkataramanan

  • Writing messages to log file from database procedures

    Folks,
    Is there a way by which I will be able to write messages from a database procedure to a log file? I would like to know what a procedure is doing and if it has failed or suceeded just as we do in a Unix shell script where we can direct messages to a file.
    e.g. echo 'step 34 completed' >> $X_LOG
    Is there a log file in Oracle where we can check if a procedure has failed and what was the error. I am using Oracle 9i.
    Thanks.

    Hello,
    I do not agree. have you taken a look at Oracle9i Supplied PL/SQL Packages and Types Reference?
    You can use UTL_FILE and DBMS_OUTPUT to achieve exactly what you want.
    Rgds
    Fidel

  • Pop up notification while writing message

    what should i do with this: everytime i go to messages a notification will pop up saying: "cellular data is turned off -- turn on cellular data or wifi to acces data"
    my network doesn't support mms 3g and i'm using ios 4.3.3. anybody plssss...?????

    I am sorry but it is not possible to throw pop up every time, actually workflow consists of background task which got executed without user intervention and in those cases no pop up will come up.
    You can get pop up box for dialog task (such as user decision etc)you have to write down business object method code for that.
    there are many ways you can handle your situation:
    1. Write down the Check FM for FIPP-Posted Event where you can check it whether it is approved or not, If not then do not complete the workflow and start some dialog WI and send across to approvers
    (It is just outline, you have to formulate the solution around this outline).
    2. Also you can check for BAdi or user Exit and directly can write down message for that, It seems more easy.
    Cheers
    Jai

  • Problem in writing message to a file

    Hi all.
    I am now working on a message listener which will get the message from the queue, then write to a file and process the file to import the data into database.
    The message the listener gets is in XML format. But in my program, I just cast the message to TextMessage and then get the String by message.getText() and write to a file.
    The problem is I found extra space or characters appear in some of the xml tag. Would it be any problem of my coding? Do anyone have some ideas on it? Thanks for advanced.
    Priscilla

    Try to write arbitrary hard coded xml tags to a file using ur code. If its fine, then its in the message if not then it in ur code.

  • Putting thai on my N95 writing messages

    Can someone please help me. i'm in the uk and use the phone in english but i would like to be able to send some text messages in thai but the laguages are only europeon. i've read that you can do this by updating the firmware but where do i do this and will i loose the english laguage. i can afford to be without my phone as it's a work one but i'd like to be able to do this
    Please help
    Gumbigoon

    No, you will not lose English. Since FW for APAC always has English as a default. But we are not allow talking about changing product code to get what we could achive. Sorry about that. Try to search www.allaboutsymbian.com. Hope you get what you want.
    C6-00 with 8GB MicroSD

  • Changing T9 language while writing messages

    Hello, since it happens to me to send SMS messages in my language (italian) but also in english. I would like to know if there is a way to change the T9 dictionary corrections while in the messages application.
    I saw once an iPhone 2G doing it: on the bottom left side of the keyboard, there was a "globe" touch button that allowed to switch between local language and english.
    I do not see this touch button in my new iPhone 3GS...
    Thanks!

    Go to settings. The find the keyboard options (think it is under general).
    Find the keyboard languages you want to use and activate each one.
    Then the globe shows up on the keyboard to toggle between langs/keyboards.

  • E65 - Writing messages

    I am now on my 3rd Nokia E65 within 3 weeks, because when I write text messages the screen often flashes whenever I start a new line. However it is inconsistent and really quite random. Unfortunately it is highly irritating and it was not 3rd time lucky as phone number 3 is also doing it. Has anyone else encountered this? Please help!!!!
    Other than that the phone is pretty cool.

    This is a common problem on the E65. Mine does it too.
    It is a software problem and nokia have not released any software updates to fix this problem, along with it's bucket load of bugs.
    The E65 could be a great phone if nokia fixed it's dodgy software.

  • Writing messages and using emoticons (at least in ...

    Windows Phone shouldn't use emoticons in the middle of words. In finnish it is common to use structures like ":sta" and ":stä" for example in the end of words and now WP changes :s into a hidious smiley face.
    So :s should be changed but :sanything or anything:s probably should not.

    Agree with you. The WP os can't recognize a standalone :s which the user intends to convert to a smiley and one attached to other letters which is part of a word. The os must have been designed by *bleep*

Maybe you are looking for