Save the image in the application server directly

Hi,
      I have developed a report which displays piechart as the output and saves the image on the presentation server. For that i have used the following code.
   when 'SAVE'.
DATA : D TYPE GFW_EXP_DATA,
R TYPE SYMSGNO.
DATA: S TYPE STRING,
N TYPE I.
CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT
EXPORTING
FORMAT =
IF_GRAPHIC_PROXY=>co_format_bmp
WIDTH = 50
HEIGHT = 200
name = 'C:\Documents and Settings.........'
IMPORTING
CONTENT_TYPE = S
CONTENT_LENGTH = N
CONTENT = D
RETVAL = R
I have a requirement where i have to save the output of the screen(piechart)  in the application server directly with out using the presentaion server.
Is there any method to do so.
Thanks and regards,
Parvatha Reddy

Hi parvatha ,
your question is really good.
Well i really haven't come across your scenario i many years . But my suggestion is to  can use java code to achieve the same .
Or try to use hexadecimal type in your normal class to read the pie-chart and use transfer with same type .

Similar Messages

  • To upload excel file directly to the application server using OLE concept

    hi experts
    i have done a coding in OLE to download excel with graph to presentation server, is it possible to upload excel with graph directly to the application server  , the excel should have graph while downloading to presentation server fom app server.
    Moderator message - duplicate post locked
    Edited by: Rob Burbank on Jun 25, 2009 9:49 AM

    HI,
    have a look at tcode cg3z and then FM 'C13Z_FILE_UPLOAD_ASCII'.
    What you can do is, first create the file on presentation server using OLE automation, and then using this FM, write the file to Application server

  • How can i display a image file which is placed in the applications server

    Hi all,
    Can any one help me how can I display a image file which is present in the application server.
    With regards,
    M.Ramana Murthy

    hi,
    *& Form TOP_OF_PAGE
    * text
    FORM F_TOP_OF_PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_LISTHEADER
    i_logo = Logo name
    * I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    rgds
    Anver

  • Save PDF-file on the application server

    Hello experts,
    I convert my Smartform to a PDF-File. I copied the code from  Suresh Kumar Parvathaneni (REPORT zsuresh_test). At first, thank you Suresh Kumar for that!
    Now, I would like to save the PDF-File on the application server and not local.
    Could you tell me how to do this. Especially, where do I have to put the abap-code in the given code from Suresh Kumar.
    I thank you very much for your help in advance.
    With kind regards.
    gokselin

    Hi,
    You can use the OPEN DATASET statment.
    Probably you must be having an output table which you are downloading to the local machine.You can use the same and loop at it. and if the OPEN dataset returned sy-subrc 0, use the TRANSFER statment.
    Remember the data will be binary for pdf. So you have to open the dataset in binary mode.
    regards,
    Advait

  • Save string data type text in the application server file opened in binary

    Hi All,
    My requirement is to save the string "abcd    23432423   asdada" to the text file in the application server.
    I have written like this. but its not getting saved properly in the text file. Please help.
      constants X_LINESIZE type I value 128.
      types X_LINETYPE type X length X_LINESIZE.
    data: WA_TAB_X type X_LINETYPE.
      data: str1(64) type C.
      data: WA_TAB_X_HDR1 type xstring.
      str1 = 'abcd    23432423   asdada'.
      CONVERT TEXT STR1 INTO SORTABLE CODE WA_TAB_X_HDR1.
      concatenate F_FILENAME1 SY-SYSID F_FILENAME2 '/' TAB_REGUT-TSNAM '.TXT' into F_FILENAME1.
      open dataset F_FILENAME1 for output in binary mode .
      if SY-SUBRC = 0.
        transfer WA_TAB_X_HDR to F_FILENAME1.
        loop at TAB_X into WA_TAB_X.
          transfer WA_TAB_X to F_FILENAME1.
        endloop.
      endif.
      close dataset F_FILENAME1.
    Edited by: madhuri sonawane on Jun 2, 2009 4:05 PM

    HI,
    constants X_LINESIZE type I value 128.
      types X_LINETYPE type X length X_LINESIZE.
    data: WA_TAB_X type X_LINETYPE.
      data: str1(64) type C.
      data: WA_TAB_X_HDR1 type xstring.
    data : file (1000) type c.
      str1 = 'abcd    23432423   asdada'.
      CONVERT TEXT STR1 INTO SORTABLE CODE WA_TAB_X_HDR1.
      concatenate F_FILENAME1 SY-SYSID F_FILENAME2 '/' TAB_REGUT-TSNAM '.TXT' into F_FILENAME1.
      open dataset file for output in binary mode .
      if SY-SUBRC = 0.
        transfer WA_TAB_X_HDR to file.
        loop at TAB_X into WA_TAB_X.
          transfer WA_TAB_X to file
        endloop.
      endif.
      close dataset file.
    regards,
    Munibabu.k

  • BDS: How do I save an attachement to the application server?

    Dear all
    I have following problem:
    We have certain attachements to an object in this case an XML file.  These attachements are viewable via the Business Document Navigator and can be exported manually in foreground from there.
    But how do I export (copy) it in background towards a directory on the application server?  I don't seem to find any function capable of doing that.
    So currently I'm thinking of reading the contents (via BDS_BUSINESSDOCUMENT_GET_TAB) and storing it myself via OPEN DATASET on the application server...  but if there would be a more general approach I would rather use that.
    Please advice!
    Thanks in advance!

    Hi,
    Please see below code:-
    [http://wiki.sdn.sap.com/wiki/display/HOME/Objectservicefilestoe-mail-(Canbeusedforcustomportal,workflow+applications)]
    Hope it helps you.
    Regards
    Abhii...

  • FIle Creation in the Application Server With Unicode-8 and Byte-Order Mark

    Hi Guys,
    I've requirement of creating a file in the Application server with the Data.
    The Data Format Should be in UTF-8 and Byte-Order Mark.
    I need to supply this data from SAP to PRMS.
    I'm able to create a file with Unicode, but any of the guys have worked on Umicode with Byte-Order Mark, please let me know.
    Thanks,
    Adi.

    Hi Mathieu,
    If you haven't found an aswer yet, you can check in transaction SE24 CL_ABAP_FILE_UTILITIES method CREATE_UTF8_FILE_WITH_BOM. You can check the code of the method (it's very short) so you can understand how it works. It's also a static method so you can call it directly in your program.
    Ex:
    CALL METHOD cl_abap_file_utilities=>create_utf8_file_with_bom(your_file_name).
    I hope this helps.
    Pax Vobiscum.
    ~ Eric

  • Saving XXL file in the application server

    Hi everyone,
    I'm using FM XXL_FULL_API to easily (without much knowledge of it's own capabilities) generate an excel file from this tree list i have built.
    The thing is, now i'm being asked to store the file in some folder of theirs, in the Unix system, where the application server is located.
    Any thoughts?
    Thank you in advance.
    Duarte

    Hi,
    At AL11, if you have the proper authorizations, you should see a Configure button.  After that, enter:
    - Directory Name:
    server-name\directory
    - Param. Name: Z_<directory>
    - ServerName: all
    Then, click on Save.
    Take into account that SAPServiceSID user should have read access to the share.
    Regards,
    Maximiliano

  • Creating a directory statically in the Application Server

    Hi,
    I need to create a directory in the application server statically (not through code), in which I later have to store and read files. Most forums talk about doing this through AL11 --> Configure.
    While this does create an entry in the directory list in AL11, I doubt if the directory was actually created in the AS. Double clicking this directory name shows an error message in the status bar (Wrong order of calls <- CALL opendir: No such file or directory). So I believe the directory is not created at all.
    How do I set up a directory which I can browse and see, and use for creating / reading files?
    My AS is on AIX OS.
    Thanks,
    Z

    Hi,
    Yes, Could we not do it from SAP screens?
    Go to Al11 and in that you can see a tab Configure.
    There you can create the Directory and say Add button
    and then Save .
    and after that Using
    Open Data set ds1 for Output.
    will create the File if it is not there .
    you can specify the path in which you can create the files.
    check this thread as well:
    Creating a directory & subdirectory on Application Server
    Sachin
    Edited by: Sachin Dhingra on Jan 22, 2009 11:02 AM

  • Sending IDOC information in the XML format on the application server

    Hello All,
    We have a requirement like, while creating a billing document, an IDOC should be generated and the XML file should be created for that data in IDOC and that XML file would be sent to further via XI.
    For this purpose, we have created
    1. Logical Sender Receiver Systems  We are sending the data from DL3 system 100 client to DL3 800 client
    2. Assigned the clients to the logical system.
    3. Created the distribution model with the message type INVOIC.
    4. Created the partner profiles.
    5. Created an XML port in transaction WE21, in which the  application server file path is mentioned on which the xml file would be generated and the function module is provided which will only generate the file name is mentioned. In the outbound trigger tab the RFC destination is mentioned which is of type TCP/IP LOCAL_EXEC
    6. In transaction WE20, for the 100 logical system added the message type INVOIC as a outbound parameter and same for the 800 client. The receiver port is mentioned as XML port which we have created.
    Now, when we create the billing document via VF01 transaction, we give the transmission medium as ALE in the output. Hence the IDOC gets generated. The XML file also gets generated but the contents of the file are ONLY control records of the IDOC.
    And not the data record and the status records.
    The IDOC, if we see in WE02 displayes all the data in control , data and status records.
    We want the control, Data and Status records of the IDOC to be populated in the XML file.
    Please suggest if any extra configuration is required in this case. We are working on SAP 4.6.
    Thanks in advance for your answers.
    Regards,
    Anuja

    Hi Rob,
    Ya ,i will take care your suggestion from next time..
    Yes, we have downloaded the file using transaction CG3Y and opned it with IE as suggested by you. Howerver the contents are still seems to be control record.
    For your reference putting the contents of the file.
    <?xml version = "1.0"?><INVOIC01><IDOC BEGIN="1"><EDI_DC40 SEGMENT="1"><TABNAM><![CDATA[EDI_DC40]]></TABNAM><MANDT>100</MANDT><DOCNUM>0000000000227012</DOCNUM><DOCREL>46C</DOCREL><STATUS>30</STATUS><DIRECT>1</DIRECT><OUTMOD>2</OUTMOD><IDOCTYP>INVOIC01</IDO
    Please advice.
    Thanks.
    Regards,
    Anuja.

  • An error has occured while trying to save the application. Please try again.

    Hi,
    When i try to add application on my primary CRS node i am getting below error
    An error has occured while trying to save the application. Please try again.
    This also happens if i edited another existing scripts
    CCX version is 8.0
    thanks

    How about if you try to add it on the HA server?
    Which server is master at this time?
    Chris

  • Schedule to Save the application report

    Hi,
    I have a application with a report in it.....
    I would like to schedule a process to save a copy of the report everyday at night to users common drive or shared drive.....
    Please let me know if we can schedule to save the application report data....
    Regards
    BI

    Hello,
    You want to do that directly from APEX?
    I normally use PLSQL and dbms_scheduler (dbms_job) for that. Basically my PLSQL code is generating my csv file or pdf report and the job is running that every so often. Would that be an option for you?
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • How do upload a file to the application server into a directory?

    hi to all,
    i want to upload file into the database..i need upload the file into the application server and save it to a directory..is there any way?where i can read about this?any information?
    ashwiny

    Hello,
    First, we need to determine the terms we are using, in order to avoid confusion. We (including the documentation) are using "upload" to describe storing the file on the server, and "download" to pull it from the server into local machine.
    You can use the "File Browse" item to upload any file you need from your local machine and into a database table. The default APEX configuration (in the dads.conf file) stored the uploaded file in a table called wwv_flow_file_objects$. In your application, you can access this table using a view called APEX_APPLICATION_FILES.
    After you uploaded a file, any user can access it, using the download procedure described in the reference I gave you. The download procedure gives you an option to store the download file anywhere you need, using the "Open/Save" dialog box.
    I believe this is covering everything you need. If you still having problems, please consider posting the relevant application pages on apex.oracle.com. It will be easier to understand and help you.
    Regards,
    Arie.

  • How to change the format in the application server

    The following is the uploading file in the application server:
    Directory:  /usr/sap/tmp
    Name:       ZMIRACA_SD27_LIUNIN_20070109_111913.csv
    ,0,000,ZMAT_TERRY,,19.12.2006,test material by terry,
    ,0,000,ZMAT_TERRY,,19.12.2006,test material by terry,
    I click the menu System->List->Save->Local file->Spreadsheet and give a name: a.csv, then I open "a.csv", I find ",0,000,ZMAT_TERRY,,19.12.2006,test material by terry,,,EXTERNAL P,1.000,000,EA,," in one cell,but I want to separate them in different cell according to comma. Do you have some idea?
    Thanks in advance!
    Nina

    HI Nina
    Have created a CSV file myself on application server using the following example code:
    parameters: fname type filename obligatory lower case.
    data: it_t001 type table of t001.
    data: str type string.
    field-symbols: <wa>, <fld>.
    select * into table it_t001 from t001.
    open dataset fname for output in text mode encoding default.
    if sy-subrc ne 0.
       write:/ 'Unable to open file.'.
    else.
       loop at it_t001 assigning <wa>.
            clear: str.
            do.
              assign component sy-index of structure <wa> to <fld>.
              if sy-subrc ne 0.
                 transfer str to fname.
                 exit.
              elseif sy-index = 1.
                 move <fld> to str.
              else.
                 concatenate str <fld> into str separated by ','.
              endif.
            enddo.
       endloop.
    endif.
    After executing the program, have checked the file using following methods and i dont have any problem:
    1. FTP transfer to PC.
    2. AL11 -> Display -> Menupath: System->List->Save->Local File->Spread Sheet
    3. Transfer via transaction: CG3Y.
    In all the cases, the values are in separate cells. Please verify.
    Kind Regards
    Eswar

  • Browse folder in the application server

    Hi there,
    In a program, I need to create an output file, and to save it either in the applictaion server or in the presentation server.
    But I want the user to be able to choose the folder where to save it, not the file itself. Browsing the Web I have found a method of a class, the cl_gui_frontend_services=>directory_browse, by means of which I achieved displaying a screen to select a folder in the computer.
    But I couldn't find a function module for displaying a screen for the user to choose a folder from the application server.
    Sending an 'A' in the parameter i_server in function module F4_DXFILENAME_TOPRECURSION won't work, since the window displayed is to choose a file and not a folder.
    Thanks a lot in advance.
    Regards,
    Ignacio

    SELECTION-SCREEN BEGIN OF BLOCK 002 WITH FRAME TITLE text-002.
    PARAMETERS : p_aps LIKE rlgrap-filename MODIF ID pth .
    SELECTION-SCREEN END OF BLOCK 002.
    DATA : path_name(150) TYPE c.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_aps.
      SUBMIT rs_get_f4_dir_from_applserv AND RETURN.
      IMPORT path_name FROM MEMORY ID 'PATH_NAME_SDL'.
      p_aps = path_name.
    [Retrieve application server file names in F4 help|http://searchsap.techtarget.com/tip/0,289483,sid21_gci943422,00.html]
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file1.
    PERFORM application_server_path.
    *& Form application_server_path
    FORM application_server_path.
    IF p_read = 'X'.
    *& Selecting file from server on pressing f4
    CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
    EXPORTING
    directory = '.\'
    filemask = ' '
    IMPORTING
    serverfile = p_file1
    EXCEPTIONS
    canceled_by_user = 1.
    ELSE.
    MESSAGE 'F4 is only valid for transfering data from Server to PC' TYPE 'S'.
    ENDIF.
    ENDFORM. " application_server_path

Maybe you are looking for

  • Issue With Report Builder After Installing SP3 for SQL 2008 R2

    Hello.  We are experiencing an issue with Report Builder 3.0 since installing SP3 for SQL 2008 R2 over the weekend.  You can no longer launch Report Builder from the Reporting Services URL (http://dicomweb/ReportServer/ReportBuilder/ReportBuilder_3_0

  • Verizon Customer Service?

    Verizon Customer Service? A Verizon Supervisor just told me on 1/08/2011 and I quote: “ You can't expect first class service if your only paying for coach.” and So  I'm writing this to express my dissatisfaction with Verizon home phone and internet s

  • Wireless Router reset.  Iphones will no longer connect to Wifi.  Help?

    My wife recently reset our wireless router and now both our iphones won't connect to the WIFI? As I look into Settings it looks like it's continuously trying to connect to our network.  However it never connects......

  • Reg: Item ok check box in MIGO

    Hi All,     Could some one tel how / wer to make the item check in MIGO as mandatory in item tab .. In standard the it would be mandatory in detail data but while doing subcontracting the user is allowed to remove the check(tick mark ) in item column

  • Are scripts for converting HTML unnecessary now?

    These scripts were needed before for applets made with a newer Java-version, when Internet Explorer had an old Java-version. Nowadays, when Windows XP and Internet Explorer has no Java, I suspect that this script causes trouble instead. Is it best to