How can I show message from server?

Has anyone idea, how can I show message from server? I want to show message after some files are uploaded via FTP.

Hi,
You can use OPEN DATASET for this purpose.
Try this code:
<b>****************************************</b>
Data:
A_FILE TYPE RLGRAP-FILENAME,   "Application server
P_FILE TYPE RLGRAP-FILENAME.   "Presentation server
DATA: BEGIN OF ITAB OCCURS 0,
LINE TYPE STRING,
END OF ITAB.
DATA: FILENAME TYPE STRING.
FILENAME = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    FILENAME                = FILENAME
  TABLES
    DATA_TAB                = ITAB[]
  EXCEPTIONS
    FILE_OPEN_ERROR         = 1
    FILE_READ_ERROR         = 2
    NO_BATCH                = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE            = 5
    NO_AUTHORITY            = 6
    UNKNOWN_ERROR           = 7
    BAD_DATA_FORMAT         = 8
    HEADER_NOT_ALLOWED      = 9
    SEPARATOR_NOT_ALLOWED   = 10
    HEADER_TOO_LONG         = 11
    UNKNOWN_DP_ERROR        = 12
    ACCESS_DENIED           = 13
    DP_OUT_OF_MEMORY        = 14
    DISK_FULL               = 15
    DP_TIMEOUT              = 16
    OTHERS                  = 17.
IF SY-SUBRC <> 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
OPEN DATASET A_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT ITAB.
  TRANSFER ITAB-LINE TO A_FILE.
ENDLOOP.
<b>*****************************************</b>
Hope this helps,
Regards,
Pragya

Similar Messages

  • How can i  remove messages from faces context

    hi
    how can i remove messages from faces context
    with regards
    shannu sarma

    I'm also looking to find a way to remove message/s from FacesContext, and so far I've not been able to do this.
    The issues described below (if you have the patience to understand it) may uncover some JSF issues when combining different functionalities in JSF to come up with a solution.
    I have a requirement to display (let's just say error) messages in a message board. I do this in 2 steps: field-level validations are done first, and if all corrected (by the user), I do multi-field-level as well as business logic validation after model update (the way JSF seems to be designed to handle different types of validations). Let's say I have a combination of 3 combo-boxes that are dependent on one another. Selection from (1) requires dynamically filtering and setting a list for two and that in turn requires dynamically filtering and setting a list for 3, so the first two have valueChangeListener (try doing this in JSF!!!, I had to hack my way through to set this up with JSF, but that is not the issue). I have business rules associated with items within combo (1) and other entry fields entered by users (i.e. for simplicity let's just say, if material 'chain' is selected from combo 1, I should set combo (2) and (3), and validate that user entered at least four in # used entry field). Let's say I have a table with many rows of above combination of combo-boxes specified. Again for simplicity, assume we only have business rule violations (not field-level that would not go through model update):
    * User selects many combination of entried before submit (with no field-level error)
    * Business rules are checked and messages added to FacesContext and displayed in a message board
    * Next, all these messages disappear from the view when selecting any item from any combo-box (with valueChangeListeners attached to them) - 2 reasons: 1. a new FacesContext is created per valueChangeEvent 2. Business model update does not happen (so we don't generate these messages again and add them to FacesContext, it is not efficient to do so anyways)
    * we would like to display all those business logic validation messages so the user could correct them all (and not lose them by any combo-box selection)
    * As a workaround, I add these messages to session (which is another issue, since FacesMessages are not serializable) at the end of business logic validation, and retrieve and display them by (a.) forcing combo-boxes go through (field-level) validation, (b.) adding a new hidden field at the end of all fields in JSP page with a custom-validator that all it does is to get messages saved to session (from the last business logic validation) and add them to the FacesContext - this ensures that messages are not lost due to combo-box selections
    * The problem is that when user submits (to validate the business rules again), since the old Business validations messages are added to FacesContext at the end of field-level validation, I need to clear them, before adding the newly generated messages
    * But....I can't remove messages from FacesContext
    So here's a reason for this 'needed' functionality, based on whatever is available (as of JSF 1.1.01). Is there a better way to this, I'll be delighted to hear it (as I have tried different solutions myself with above combination of issuses), and have wasted some time trying to work-around the issues I've faced using JSF (in every one of those ways I've tried) ....part of which is described here...
    Thanks...

  • How can I divert messages from my MacBook Air to my iPhone

    How can I divert messages from my MacBook Air to my iPhone

    Use Export in iPhoto...
    See this Discussion...
    https://discussions.apple.com/message/15814652#15814652

  • How can I text message from iPad to the galaxy note 2 phone ?

    How can I text message from iPad to the galaxy note 2 phone ?

    You can only iMessage iDevices.
    You need 3rd party apps to text your Galaxy Note.

  • How can i stop messages from coming into my macbook air

    how can i stop messages from coming into my macbook air

    Open the Messages app on your MacBook Air.  Click Messages > Preferences from the menu bar.  Click the "Accounts" tab on top.  Uncheck "Enable this account" for each account that is currently enabled.

  • How to send Subtopic Message From Server-Side to Client ?

    I’m new at flex and i have a new question about Flex
    Message Service.
    How to send messages from Server-Side Java Code with
    Subtopic?
    For example.
    I customed a Flex Message Adapter in Tomcat Server , with
    this Adapter , i can send message to Client with following code .
    ---------------------Send message to Client------------
    MessageBroker msgBroker =
    MessageBroker.getMessageBroker(null);
    String clientID = UUIDUtils.createUUID(false);
    AsyncMessage msg = new AsyncMessage();
    msg.setDestination("CustomMsgServiceDes");
    msg.setClientId(clientID);
    msg.setMessageId(UUIDUtils.createUUID(false));
    msg.setTimestamp(System.currentTimeMillis());
    msg.setBody(clientID + "this is my message from server! \n");
    msgBroker.routeMessageToService(msg, null);
    ---------------------Send message to Client------------
    But i want send a message that have Subtopic to the Client ,
    How to do ?
    Thank you for reply.

    There's a white paper that talks about this subject -
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8f1eb6ea

  • How can i extract messages from icloud backup in apple 4

    how can i extract watsapp messages from icloud backup in apple 4

    When you backup messages in iCloud, your SMS will be stored in Network. As i know, you cannot view the SMS. But you can try to sync to your iPhone or backup in iTunes. After that, you can extract your messages from iTunes with iPhone backup Extractor apps.

  • How can I prevent Message  from showing home and other numbers?

    Message+ is offering ALL the phone numbers in the database!  It should only be offering mobile numbers.  How can I make it be more selective?  TIA

    I re-read my initial posting and I should have been more clear. When I use Messenger+ to send texts, it offers me all the phone numbers in the Contacts list. It should NOT offer me the Home, Work, Fax numbers that cannot be sent texts.
    Thanks.

  • How to send a message from server to a particular client

    Hi all,
    I need to send a message from one host to another host which are connected in local domain. Now I'm able to send a message from client to server and vice versa but what I need is the server should route that message which I send through one client to another host(client) .
    How can I do that ?
    Please give me some ideas how to do that .
    Thanks in advance
    Edited by: m.parthiban on Mar 5, 2008 1:20 PM

    ejp, thanks for your reply . can you please explain me bit more by providing code snippet ?
    This is what I have done till now :
    MyServer:
    package connection;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.PrintWriter;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class MyServer {
          * @param args
         public static void main(String[] args) {
              String ss ="",temp ="";
              Socket clientLink=null;
              try {
                        ServerSocket sockServer = new ServerSocket(6000);
                        while(true) {
                             clientLink = sockServer.accept();
                             System.out.println("Connection Established");
                             InputStreamReader isr = new InputStreamReader(clientLink.getInputStream());
                             BufferedReader bufReader = new BufferedReader(isr);
    //                         System.out.println("buf "+bufReader.readLine());
                             try {
                                  while ((temp=bufReader.readLine())!=null) {
                                       ss+=temp;
                                       System.out.println("ss   "+ss+"Temp "+temp );
                                  System.out.println("Client > "+ss);
                             } catch (IOException e) {
                                  System.out.println("while reading");
                                  e.printStackTrace();
                             OutputStreamWriter osw = new OutputStreamWriter(clientLink.getOutputStream());
                             PrintWriter pw = new PrintWriter(osw,true);
                             pw.write("Welcome -by Server !!!");
                             pw.flush();
                             clientLink.shutdownOutput();
                             clientLink.close();
              } catch (IOException e) {
                   System.out.println("Can't able to connect");
                   e.printStackTrace();
    }MyClient:
    package connection;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.PrintWriter;
    import java.net.Socket;
    import javax.swing.JOptionPane;
    public class MyClient {
          * @param args
         public static void main(String[] args) {
              try {
                   String serverMsg="",temp="";
                   Socket client = new Socket("127.0.0.1",6000);
                   PrintWriter pw = new PrintWriter(client.getOutputStream(),true);
                   pw.write("Hi ,Accecpt me");
                   pw.flush();
    //               pw.close();
                   client.shutdownOutput();
                   InputStreamReader isr  = new InputStreamReader(client.getInputStream());
                   BufferedReader bufRead = new BufferedReader(isr);
                   while ((temp=bufRead.readLine())!=null) {
                        serverMsg +=temp;
                   System.out.println("Server > "+serverMsg);
                   JOptionPane.showMessageDialog(null, serverMsg);
                   client.shutdownInput();
                   client.close();
              } catch (IOException e) {
                   System.out.println("Failed to connect");
                   e.printStackTrace();
    }Once again thanks for the time you spend to reply me.

  • How to download ALL messages from server - not just NEW messages?

    Good evening.
    The only pulldown menu options I find are for NEW messages.
    How can I retrieve ALL messages from the email server? (Yes they are all there).
    Thanks for your time.

    Did you try "WebMail to goto your mail server & Mark all Messages as Unread?", as I mentioned before?
    On the Server is where it's kept as to which ones have already been downloaded. I think marking the Unread should do it.

  • How can I prevent Messages from opening?

    Hello,
    I was a user of the Messages beta on Lion, and while it had its flaws, I was mostly happy with how it operated.  While it sometimes failed, it never bothered me unnecessarily.
    Since upgrading to Mountain Lion, though, I find that Messages will open every time I receive a new message from my wife.  I am not leaving the program open -- I quit after I send a message, and don't have an IM account set-up.  I only ever use it to send a message, then quit.
    This is annoying because Messages sometimes hangs when I open my laptop up, trying to catch-up and collect a conversation that occured on, say, my phone.
    I'd like to keep the app on my computer, but would like to keep it closed unless I prompt it to open.  I assumed there would be a preferences option for this, but if there is, I cannot find it.
    Any thoughts on what I can do to prevent this behavior in the future?
    Best,
    John

    Yes, I'm surprised too.  Makes me worry that this is either (a) really simple and we're overlooking it or (b) not yet possible to correct in new OS.
    Anyone out there want to put our minds at ease?

  • HT201287 How can I send messages from my number not email? My number is grayed out so I cannot select it. How can I ungray it select it

    when i text people they are getting my messages from email not number. I tried unselecting email but then my messages will not send. I tried resetting network and restarting everything but my number is still gray under sent and recieve. How can I get it to be black so I can select it?

    Try signing out of iMessage and back in.
    See also this article:
    iOS: Troubleshooting Messages - Apple Support

  • How can I  send messages from my iPad air

    I am trying to send messages from my iPad air and it won't let me but I can send from my iPhone 5

    iMessage on an iPad only works with other Apple iDevices.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • Can't remove messages from server

    Mail has randomly been failing to remove downloaded messages from the two independent servers that host our e-mail accounts. We've verified that all accounts have "remove copy.........: Right Away" selected in Advanced Preferences. Have gone so far as to deselect, close mail, and then open and reselect. Have also delected the MessageUidsAlreadyDownloaded2 file for each mailbox but the problem comes back after a few download cycles.
    We've also found one account where "Get Info" showed no messages on the server but logging in to that account using webmail showed 79 messages present.
    Must add that it deletes some messages and leaves others with no discernable pattern.
    We've repaired permissions, etc. but the problem persists.
    Any suggestions would be appreciated.
    Powerbook G4   Mac OS X (10.4.8)  

    Just when I thought the problem was solved - went all day yesterday without a hitch - this morning it left over 20 messages on the server immediately after the first "download" of the morning. Last night Mail was closed and the machine was in sleep mode. Opened mail and after it had completed the download went to the server and checked.
    So far there have been no reoccurrences. Will set up another machine to remove after moving from the Inbox and see what happens.
    Powerbook G4   Mac OS X (10.4.8)  

  • How can i show images from different folders  in image gallery

    Hi All,
             i have downloaded and executed photo viewer image gallery application.
              in that we r showing images sequentially what we have defined in xml file.
             but i want show images randomly or i want show images from different gallary.
    Can any one help me.
    thanks
    Raghu.

    WaqarLFC7 wrote:
    On Windows:
    Ctrl + click on the songs you want to group - then right click and click get info and it will ask you if you want to get info for multiple items click YES then under album name it whatever you want and them songs will be grouped into 1 album.
    Mac:
    Same procedure but hit SHIFT instead of CTRL.
    Actually, it's right click or ctrl click, same as windows.

Maybe you are looking for

  • How can I get a dial-up connection on the G4?

    Hi, This question is about a power mac G4 with a plate over the phone cord slot. I picked this computer up used for my sister. It works great with my ethernet cable internet service, but my sister will have to use dial up. I'm trying to get it all re

  • How to invoke a Web Service from PL/SQL with Complex Type as  input.

    Hello, I am trying to invoke a web service from PL/SQL using the UTL_DBWS package. The web service expects a complex type as input (defined below): <xs:complexType name="MsgType"> <xs:sequence> <xs:element name="sender" type="xs:string"/> <xs:element

  • SDK Bug in Weight calculation

    Hi, i've encountered a problem in my addon, implementing additional functionalities in the invoice document. When i use the following combination of events, sapB1 makes errors in weight calculation, even my addon doesn't use or set anything in Weight

  • Report Painter - Key Figures in Lead Column

    Hello - I am trying to create a report painter report. I would like the key figures in the lead column, but right now, I can only choose characteristics. Anywho know how to be able to select a key figure in the lead column? Thanks

  • [pol-5150] access violation in oracle lite database

    Hi, I am trying to connect to oraesb schema and getting the following error. [pol-5150] access violation. \\msql system/manager@jdbc:polite:orabesb is also failing. Basically I am trying to connect to SID oraesb in jdev. can someone help me on this.