How to downlad a string to the Presentation server

Hi all
How we can download a string to the presentation server <b>without</b> converting it to  the internal table.
Am having a XML data as string. I want to bring that to the presentation server without converting it to internal table.
I have tried that by converting to table and downloaded the same as BIN file ......since we are disturbing the string while converting to  itab am getting error while executing that XML file.
<b>Error as shown below.
Multiple colons are not allowed in a name. Error processing resource 'file:///D:/XXXXX.xml'. Line 705, Position 588
</w:fldData></w:fldChar></w:r><aml:annotation aml:id="3" w:type="Word.Bookmark.Start" w:name="Text9"/&g...</b>
Kindly help me in this regards.
Thanks in advance
Meikandan

us the following code to convert the xml to itab which can then be use with gui_download with file type 'BIN'
data: coutput type string ,
      xl_content type xstring ,
       binary_content     type solix_tab .
call transformation (`ID`)
              source flights   = flights[]
              result xml output.
    clear: xl_content .
*      xl_content = output .
    call function 'SCMS_STRING_TO_XSTRING'
      exporting
        text           = output
*   MIMETYPE       = ' '
*   ENCODING       =
     importing
       buffer         = xl_content
     exceptions
       failed         = 1
       others         = 2
    if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    refresh binary_content .
    call function 'SCMS_XSTRING_TO_BINARY'
      exporting
        buffer     = xl_content
      tables
        binary_tab = binary_content.
Regards
Raja

Similar Messages

  • How to delete a local file in the presentation server.

    Hi All,
    How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let me know, how can i achieve this.
    Thanks in advance.
    Regards,
    Vishal

    data: l_rc type i.
      data: f_name type string.
        move 'c:\YourFile.txt' to f_name.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
          EXPORTING
            FILENAME             = f_name
          CHANGING
            RC                   = l_rc
         EXCEPTIONS
           FILE_DELETE_FAILED   = 1
           CNTL_ERROR           = 2
           ERROR_NO_GUI         = 3
           FILE_NOT_FOUND       = 4
           ACCESS_DENIED        = 5
           UNKNOWN_ERROR        = 6
           NOT_SUPPORTED_BY_GUI = 7
           WRONG_PARAMETER      = 8
           others               = 9
        IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

  • How to subtract a day from the presentation variable @{system.currentTime}

    Hello,
    How can subtract a day from the presentation variable - @{system.currentTime}
    I use the above as a title in the report. However I want to subtract a day from the above variable. How can I accomplish it?
    Thanks.

    Hi,
    Did you try the steps which I mentioned above. You can use TIMESTAMPADD function in many places in your report but I think not in title section of the title view.
    Also you can try using Narrative view instead of title view to achieve this. Follow below steos:
    * Pull another column in the report and change its fx to TIMESTAMPADD(SQL_TSI_DAY, -1, @{system.currentTime})
    * Now go to the Narrative view and add the below text in Narrative section of the view.
    Active Person Report as of @1
    Here @1 assuming the new column created is placed before all the columns in the request.
    * Also set the 'Rows to Display' as 1.
    * Delete Title view from the report and this narrative view on top of your report.
    Hope this helps.
    Thanks

  • How to search a string from the database?

    how to search a string from the database? starting with some character

    If you're trying to do this in a SELECT, you can use the LIKE verb in your WHERE clause.
    Here's an Example
      SELECT obj_name FROM tadir
        INTO prog
        WHERE pgmid = 'R3TR'
          AND object = 'PROG'
          AND obj_name LIKE 'Z%'.
    In this case it will select every row that obj_name starts with Z. 
    If you wanted to find every row that the field obj_name contains say... 'WIN'  you use LIKE '%WIN%'.
    Edited by: Paul Chapman on Apr 22, 2008 12:32 PM

  • How to download data to the presentation server in background?

    Hi,
    I would like to download data to the presentation server in background.
    Currently, the report uses FM GUI_DOWNLOAD to download in foreground.
    However, this FM does not work in the background.
    But please let me know how to download to the presentation server in background.
    Thanks and regards,
    Anishur

    Moderator message - FAQ - Please search before asking - post locked
    Rob

  • "Bad data format" when reading txt file from the presentation server

    Hello,
    I have a piece of code which reads a txt file from the presentation server to an internal table like below:
    DATA : lv_filename type string.
    lv_filename = 'C:\abap\Test.txt'. "I created a folder called abap under C:\
    CALL method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
    EXPORTING
       FILENAME              = lv_filename
    CHANGING
       DATA_TAB            = lt_tsd. " lt_tab has the exact same fields as the Test.txt's. Test.txt has only one line, tab delimited.
    When running this code, exception BAD_DATA_FORMAT is issued.
    Is it because of the file encoding or delimiter or other reason?
    Thanks,
    Yang

    Hello,
    If its tab delimited then use the has_field_seperator parameter and check
    DATA : lv_filename type string.
    lv_filename = 'C:\abap\Test.txt'. "I created a folder called abap under C:\
    CALL method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
    EXPORTING
       FILENAME                = lv_filename
       FILETYPE                 = 'ASC'
       HAS_FIELD_SEPARATOR          = u2018Xu2019
    CHANGING
       DATA_TAB            = lt_tsd.
    Vikranth

  • Reading file from the presentation server in the background

    Hi,
    I am trying to read a .csv file from the presentation server into an internal table in the background. what should I do for it? In the foreground it works fine.
    I have declared a selection parameter 'p_file' that has the path of the file. It wokrs fine in the foreground and how to set it up in the background?
    Any thoughts would be helpful. Thanks in advance,
    VG

    hii
    did you achieved the required functionality , i,e, accessing presentation server file i nbackground .
    I too got the same requirement, can you explain the process.
    There is no way you can do it... The best method is to put the file on Appln server and then call it in the background mode.
    Regards,
    Vishwa.

  • Prevent Editing the Presentation Server Administrators Group

    In OBIEE 10.1.3.4, I have created a Catalog Group "Second Tier Administrators" and grant it access to "Settings -> Administration -> Manage Presentation Catalog Groups and Users". How can I prevent the users in the "Second Tier Administrators" group from adding themselves to the "Presentation Server Administrators" group?

    Hi Evaldo,
    I don't see a way of you being able to edit one line without reading the entire file into memory.  You could hold the data you are writing to the file in a custom table in SAP, and when an edit is required, delete the old table and recreate a new one based on your custom table.
    Best of luck.
    SL

  • Get name of the presentation server

    Hi,
    How can I get the name of the presentation server (the name of the machine on which SAP Guia is installed)?
    Is there any Function Module on ABAP that can return this information?
    Thanks!

    I think that is possible to do that only when the discussion was created with the flag "Mark this discussion as a question":
    For some reason that I did not set the CheckBox in some of my questions.
    Note that the last one I could close for example:
    Sometimes the moderator unmark my discussion as a question and I don't get it.
    Thank you very much!

  • FM to validate the file path on the presentation server.

    Hi all,
                  We are downloading a file on to the presentation server.
    Is there any FM to validate the file path of the presentation server?
    Suggestions are also welcome.
    Regards,
    Sreekar

    You can call a class like a function module. See example below:
    TYPE-POOLS: ABAP.
    DATA: L_DIR TYPE STRING.
    DATA: L_BOL TYPE ABAP_BOOL.
    L_DIR = 'c:\windows'.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST
      EXPORTING
        DIRECTORY            = L_DIR
      RECEIVING
        RESULT               = L_BOL
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        WRONG_PARAMETER      = 3
        NOT_SUPPORTED_BY_GUI = 4
        others               = 5.
    IF NOT L_BOL IS INITIAL.
      WRITE: / 'Directory exists.'.
    ELSE.
      WRITE: / 'Directory does not exist.'.
    ENDIF.

  • Problem with downloading the internal table onto the presentation server.

    Hey folks,
    I have a problem where in i am downloading one year of sales done by the company. I wrote a program to download the file onto the presentation server . The error occurs in the FM GUI_DOWNLOAD where if the file exceeds 105843504 bytes its giving me a dump saying that
    When the program was running , it was established that more memory was needed than the operating system is able to safely to provide.
    The current program has to be terminted because of the program already requested 105843504 bytes from the operating system with malloc when the operating system reported after further memory request that there was no more memory space available.
    Could somebody provide an alternative soltuion for this.
    Its really urgent as i can download the file with 70,000,000 bytes
    Regards
    Rock

    Hi Rock,
    Please download the files on to Application Server, else as suggested by Ashish download into 2 or 3 files and merge them manually.
    Declare same internal tables may be 5 times.
    When you fill the internal table check for a counter and when you hit a certain number stop appending to it and start appending to the next.
    After you are done so download all the internal tables.
    I guess this would be a good way. I am not sure if there are any ther alternative good methods.
    Hope this helps.
    Shreekant

  • Find how many users are connected in the Oracle Server

    Hi,
    I am using Oracle 10g. My question is, is it possible to find how many users are connected in the Oracle Server. We are having one Server and we are having many client machines which will connect the Oracle.
    And one more question in the meanwhile i want to take Backup of one database which client as connected. Is it get any problem to the client machine which is accessing the server. And How to take the backup from the server machine. Any commands to process.
    Thank u...!

    Hi there.
    If You run
    select count(*) from v$session where username is not null;you'll get the number of users connected to Oracle server,
    and yes , you could do backup while users are connect to db you are backing up.
    cheers

  • Cannot start the presentation server

    Linux OS
    OBIEE 11.1.1.5.0
    Weblogic Server 10.3.5.0
    OBIEE gurus,
    I cannot start the presentation server via EM or via the command line ./opmnctl startproc ias-component=coreapplication_obips1.
    I get the error in the comman line:
    opmnctl startproc: starting opmn managed processes...
    ================================================================================
    opmn id=****:9501
        0 of 1 processes started.
    ias-instance id=instance1
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
        coreapplication_obips1/OracleBIPresentationServicesComponent/coreapplication_obips1/
    Error
    --> Process (index=1,uid=2107403675,pid=27813)
        failed to start a managed process after the maximum retry limit
        Log:
        $ORACLE_INSTANCE/diagnostics/logs/OracleBIPresentationServicesComponent/coreapplication_obips1/console~coreapplication_obips1~1.log
    I have checked the log above which contains:
    13/07/18 15:27:07 Start process
    13/07/18 15:27:14 Start process
    13/07/18 15:58:53 Start process
    13/07/18 15:59:00 Start process
    Not very helpful!
    I have checked the OPMN log at $ORACLE_INSTANCE/diagnostics/logs/OPMN/opmn/opmn.log which has the following errors:
    [2013-07-18T15:58:54][opmn][TRACE:1][][OPMN][code:libopmncustom]Process Ping Failed: coreapplication_obips1~OracleBIPresentationServicesComponent~coreapplication_obips1~1 (2107403675:27799) [No addresses matched the properties for the request.]
    [2013-07-18T15:58:54][opmn][TRACE:1][][OPMN][code:libopmncustom]Process Ping Failed: coreapplication_obips1~OracleBIPresentationServicesComponent~coreapplication_obips1~1 (2107403675:27799)
    [2013-07-18T15:58:54][opmn][TRACE:1][][OPMN][code:libopmncustom]Ping failed in Ready callback for proc:2107403675
    [2013-07-18T15:58:56][opmn][TRACE:1][][OPMN][code:libopmncustom]Process Ping Failed: coreapplication_obips1~OracleBIPresentationServicesComponent~coreapplication_obips1~1 (2107403675:27799) [No addresses matched the properties for the request.]
    [2013-07-18T15:58:56][opmn][TRACE:1][][OPMN][code:libopmncustom]Process Ping Failed: coreapplication_obips1~OracleBIPresentationServicesComponent~coreapplication_obips1~1 (2107403675:27799)
    [2013-07-18T15:58:56][opmn][TRACE:1][][OPMN][code:libopmncustom]Ping failed in Ready callback for proc:2107403675
    [2013-07-18T15:58:58][opmn][TRACE:1][][OPMN][code:libopmncustom]Process Ping Failed: coreapplication_obips1~OracleBIPresentationServicesComponent~coreapplication_obips1~1 (2107403675:27799) [No addresses matched the properties for the request.]
    I have tried refreshing the user GUIDS, loading another rpd file in through EM that I know works fine in another environment, cleaning the permissions in the web catalog but all so dar have not resulted in me being able to start the presentation server.
    I would welcome any feedback on this as it is driving me crazy!
    Thanks in anticipation.

    Hi ,
    I tried it but no use. That thread had some errors displayed in it. But i get just a warning.
    Pls help
    Type: Information
    Severity: 30
    Time: Tue Apr 06 10:39:41 2010
    File: project/sawserver/sawserver.cpp Line: 604
    Properties: ThreadID-1532
    Location:
         saw.sawserver
         saw.sawserver.terminatesawserver
         saw.threads
    Oracle BI Presentation Services are shutting down.
    Type: Information
    Severity: 30
    Time: Tue Apr 06 10:39:43 2010
    File: project/sawserver/sawserver.cpp Line: 386
    Properties: ThreadID-968
    Location:
         saw.sawserver
         saw.sawserver.initializesawserver
         saw.threads
    Oracle BI Presentation Services 10.1.3.4.1 (Build 090414.1900) are starting up.
    Type: Warning
    Severity: 30
    Time: Tue Apr 06 10:39:43 2010
    File: project/websubsystems/webextensionbase.cpp Line: 380
    Properties: ThreadID-968
    Location:
         saw.webextensionbase.init.workstationCheck
         saw.webextensionbase.init
         saw.sawserver
         saw.sawserver.initializesawserver
         saw.threads
    WARNING: The Oracle BI Presentation Server is running on a workstation class machine (Windows 2000 Workstation, Windows XP Professional, etc.). Number of concurrent users may be severely limited by the operating system.
    Type: Information
    Severity: 30
    Time: Tue Apr 06 10:39:43 2010
    File: project/sawserver/sawserver.cpp Line: 459
    Properties: ThreadID-968
    Location:
         saw.sawserver
         saw.sawserver.initializesawserver
         saw.threads
    Oracle BI Presentation Services have started successfully.
    Thanks
    Jaan

  • How to limited Media Encoder connect the media server?

    how to limited Media Encoder connect the media server?
    I have a adobe media server3 for liniux and  hava a live IP.
       I can  use the Media Encoder connenct the media server anywhere  when I use the live IP.
    I want to know how to limited Media Encoder connect the media server.
    thank you!

    You can use an authorization plugin, or you can use server side actionscript to validate credentials (as of FMS 3.0, you can use get variables in the RTMP URL)

  • How can I convert string to the record store with multiple records in it?

    Hi Everyone,
    How can I convert the string to the record store, with multiple records? I mean I have a string like as below:
    "SecA: [Y,Y,Y,N][good,good,bad,bad] SecB: [Y,Y,N][good,good,cant say] SecC: [Y,N][true,false]"
    now I want to create a record store with three records in it for each i.e. SecA, SecB, SecC. So that I can retrieve them easily using enumerateRecord.
    Please guide me and give me some links or suggestions to achieve the above thing.
    Best Regards

    Hi,
    I'd not use multiple records for this case. Managing more records needs more and redundant effort.
    Just use single record. Create ByteArrayOutputStream->DataOutputStream and put multiple strings via writeUTF() (plus any other data like number of records at the beginning...), then save the byte array to the record...
    It's easier, it's faster (runtime), it's better manageable...
    Rada

Maybe you are looking for