Webdynpro Abap Office control problem

Hi Gurus,
I'am using the office control to display stored word document and I'm facing the following problem :
when I visualize a word document from my webdynpropage, I got access to the toolbar menu(print save and all the tools displayed on the top of the control) but once I open another page to visualize another word document I loose the access to the toolbar menu in my first page, but I can do so in my second opened page.
It seems that I can not use the office control toolbar in multipple document. and once I open a page this feature is disabled on the previews pages.
any idea please?
Regards,
Simo

Hi
Try to use thid below code I think it will solve your problem.
Code for File download in action method
  DATA lr_conv   TYPE REF TO cl_abap_conv_out_ce.
  DATA lv_data   TYPE        string.
  DATA lv_xfile  TYPE        xstring.
  lv_data = 'Example text, which will be opened in MS Word.'.
  cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
  lr_conv->convert( EXPORTING data   = lv_data
                    IMPORTING buffer = lv_xfile ).
  cl_wd_runtime_services=>attach_file_to_response(
                     EXPORTING i_filename  = 'wd4a.doc'
                               i_content   = lv_xfile
                               i_mime_type = u2018applicaton/mswordu2019)
Thanks & Regards,
Ravi Kiran.

Similar Messages

  • WebDynpro ABAP iview display problems

    Hi everybody,
    I am new to Portal and need some help with the display of a webdynpro iview in the portal. We use portal 7.0 and wish to insert a new webdynpro iview for ABAP in the portal. The webdynpro application displays well the first time, clicking on all options within the applications returns everything as intended and everything looks great. However the second time when we click on a particular option in the application, some icons do not get displayed.
    It is as if the second time the iview gets the contents from cache or something. We switched off all cache options within the iview, but it doesn't seem to have any effect.
    Has anyone had any experience with this? Does anyone know the solution?
    Thank you.
    Vedad

    Hi Vedad,
    can you tell us your portal and R/3 ERP version?
    Read the following notes :
    979479, 1033496, 970850, 1052625
    Also :
    Re: wda stylesheet via sap-cssurl parameter
    Brad

  • WebDynPro ABAP Scrren Shot Problem

    Dear All,
    I have a scenario to  upload the screen shot in .Doc format in the database table in webdynpro application and the same senario like i need to download the screenshot in .DOC Format in the System.
    Please let me know how can I acheive this task.
    Thanks&regards,
    Aditya.

    Hi
    Try to use thid below code I think it will solve your problem.
    Code for File download in action method
      DATA lr_conv   TYPE REF TO cl_abap_conv_out_ce.
      DATA lv_data   TYPE        string.
      DATA lv_xfile  TYPE        xstring.
      lv_data = 'Example text, which will be opened in MS Word.'.
      cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
      lr_conv->convert( EXPORTING data   = lv_data
                        IMPORTING buffer = lv_xfile ).
      cl_wd_runtime_services=>attach_file_to_response(
                         EXPORTING i_filename  = 'wd4a.doc'
                                   i_content   = lv_xfile
                                   i_mime_type = u2018applicaton/mswordu2019)
    Thanks & Regards,
    Ravi Kiran.

  • The webdynpro/ABAP (WDA) calling RFC enabled FM of other ECC systems

    The webdynpro/ABAP (WDA) has problem calling RFC enabled FM of other ECC systems.
    WDA expects all the ABAPs, RFC FMs  of remote system(DEV, QA..) to reside inside its own instance.
    It is hard to transport and maintain these ABAPs FMs into a portal ABAP WDA instance.
    Proxy generation at WDA client:
    =======================
    1. If we can make an XI enable  an ABAP or RFC enabled FM of the remote ECC,
    I think the XI proxy classes can be generated at the client WDA system.
    Other options?
    How do I do it?  Can you give some tips.
    2. How do I manually code the RFC Call to BAPI/FM from Webdynpro controller or other interface?
    I am stuck with the above as the webservice option is not available at our ECC server.  It does not have a java engine installed for webservice to be available.
    Can you help on the above 2 options?

    Hi Mike ,
    <b><b> Answer of 2.</b></b>
    How do I manually code the RFC Call to BAPI/FM from Webdynpro controller or other interface?
    I am doing same thing for my current SRM implementation.I am taking data to SRM server from another R/3 server .
    This is solution I have used
    1) First of all I have made ABAP connection in SM59 .
    Go to SM59 .In ABAP Connection creat ABAP connection with system with which u want communicate .
    Eg I am connection with Systems PB1.
    So i developed Connection call PB1CLNT800.
    2) In my requirement I have taken data in my context from another r/3,
    I have give called RFC in my supply function of node.
    Call to RFC is as usual.
    In my case,
    CALL FUNCTION 'RFC_MATNR'
    DESTINATION 'PB1CLNT800'
    TABLES
    IT_MATNR = IT_MATNR.
    Onwards I have read my itab IT_MATNR and populated data to context.
    Hope solution will serve your purpose.
    Give point if it works .If any problem i have other ways.
    Cheers
    Parry B

  • Import Data from Office Control (Web Dynpro for ABAP) into internal-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control into  a internal-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks
    ram
    Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
    Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • Import Data from Office Control (Web Dynpro for ABAP) into SAP-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control in a SAP-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a SAP-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks in advance,
    Philipp
    Edited by: Philipp Hiebler on Feb 11, 2008 10:15 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

  • ABAP webDynpro MS Office component usage throws -  Access via 'NULL' object

    I am trying to include MS office word in my custom ABAP webDynro application based on the sample SAP Package SIOS for all the MS office component usage. <br>
    In WDMODIFY method  , when the courser is reaching the point to call office component  it throws a Null pointer exception. Not sure , if i am missing some thing here or skip a step. Please advice. <br>
    get the IOS interface <br>
      wd_this->factory ?= office->_method_handler. <br>
    Below is the code for WDMODIFY <br>
    method WDDOMODIFYVIEW . <br>
    DATA: <br>
        office TYPE REF TO cl_wd_view_element, <br>
        office_res TYPE REF TO cl_wd_view_element,<br>
        mime_repository TYPE REF TO if_mr_api,<br>
        content TYPE xstring, <br>
        url TYPE string VALUE <br>
    '/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration' & <br>
    '/iostest_fields.doc'. <br>
      DATA refexp TYPE REF TO cx_ios_exception.
      DATA: msgid TYPE syst-msgid,
         msgnr TYPE syst-msgno,
         msgty TYPE syst-msgty.
      get message manager
      DATA: l_current_controller TYPE REF TO if_wd_controller,
            l_message_manager    TYPE REF TO if_wd_message_manager.
      DATA envproxy TYPE REF TO if_ios_environment.
    just do it once
      CHECK first_time = abap_true.
      mime_repository = cl_mime_repository_api=>get_api( ).
      CALL METHOD mime_repository->get
        EXPORTING
          i_url     = url
        IMPORTING
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    get the office control
      office ?= view->get_element( 'GENERIC_OFFICE' ).
      ASSERT ID sios_demo CONDITION  office IS BOUND.
    not possible : Missing bugfix component bc-wd-aba
    office_res ?= view->get_element( 'RESULT_DOCUMENT' ).
    ASSERT ID sios_demo CONDITION  office IS BOUND.
    get the IOS interface
      wd_this->factory ?= office->_method_handler.
      ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.
    wd_this->factory_res ?= office_res->_method_handler.
    ASSERT ID sios_demo CONDITION wd_this->factory_res IS BOUND.
      TRY.
          wd_this->factory->get_wordprocessing_proxy(
             IMPORTING proxy = wd_this->document  ).
          ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
         wd_this->factory_res->get_wordprocessing_proxy(
            IMPORTING proxy = wd_this->document_res  ).
         ASSERT ID sios_demo CONDITION wd_this->document IS BOUND.
    *calling    setfields
          DATA co_error_info_getfields TYPE REF TO if_wd_context_element.
          DATA co_error_info_getfields_stru TYPE wdr_ext_attribute_pointer.
          co_error_info_getfields = wd_context->get_lead_selection( ).
          co_error_info_getfields_stru-attribute_name =
    'error_info_getfields'.
          co_error_info_getfields_stru-element = co_error_info_getfields.
          DATA fields TYPE if_ios_wordprocessing=>fields_type.
          DATA fieldstable TYPE if_ios_wordprocessing=>fields_type_table.
          DATA co_fieldcontent TYPE REF TO if_wd_context_element.
          DATA co_fieldcontent_stru TYPE wdr_ext_attribute_pointer.
          DATA inputfield1 TYPE xstring.
          DATA tabulator TYPE xstring.
          DATA endofline TYPE xstring.
          DATA: conv TYPE REF TO cl_abap_conv_out_ce.
          DATA: testfielddata TYPE string.
          testfielddata = 'SAPTEST'.
          conv = cl_abap_conv_out_ce=>create( encoding = '4110'
    ignore_cerr = abap_true ).
          CALL METHOD conv->convert( EXPORTING data = 'field1'
                                           IMPORTING buffer =
    fields-fieldidentifier  ).
          CALL METHOD conv->convert( EXPORTING data = testfielddata
                                           IMPORTING buffer = fields-value
          CALL METHOD conv->convert( EXPORTING data =
    cl_abap_char_utilities=>horizontal_tab
                                           IMPORTING buffer = tabulator  ).
          CALL METHOD conv->convert( EXPORTING data =
    cl_abap_char_utilities=>cr_lf
                                           IMPORTING buffer = endofline  ).
          wd_context->set_attribute( name = 'inputfield1'
                                     value = testfielddata ).
          APPEND fields TO fieldstable.
          wd_context->set_attribute( name = 'fieldcontent' value =
    fieldstable ).
          co_fieldcontent = wd_context->get_lead_selection( ).
          co_fieldcontent_stru-attribute_name = 'fieldcontent'.
          co_fieldcontent_stru-element = co_fieldcontent.
    document is set through datasource!
          wd_this->document->setfields( EXPORTING fieldsptr =
    co_fieldcontent_stru
                                                  tabulator = tabulator
                                                  endofline = endofline
                                                  errorinformation =
    co_error_info_getfields_stru ).
    *calling    opening result document
          DATA co_error_getcontent TYPE REF TO if_wd_context_element.
          DATA co_error_getcontent_stru TYPE wdr_ext_attribute_pointer.
          co_error_getcontent = wd_context->get_lead_selection( ).
          co_error_getcontent_stru-attribute_name = 'error_getcontent'.
          co_error_getcontent_stru-element = co_error_getcontent.
          DATA co_createdcontent TYPE REF TO if_wd_context_element.
          DATA co_createdcontent_stru TYPE wdr_ext_attribute_pointer.
          co_createdcontent = wd_context->get_lead_selection( ).
          co_createdcontent_stru-attribute_name = 'createdcontent'.
          co_createdcontent_stru-element = co_createdcontent.
    waiting of ACF Patch!
         wd_this->document->getcontent( errorinformation =
    *co_error_getcontent_stru
         contentpointer_result =  co_createdcontent_stru ).
    *calling    reopening template
          DATA error_opendocument TYPE REF TO if_wd_context_element.
          DATA error_opendocument_stru TYPE wdr_ext_attribute_pointer.
          error_opendocument = wd_context->get_lead_selection( ).
          error_opendocument_stru-attribute_name = 'error_opendocument'.
          error_opendocument_stru-element = error_opendocument.
         wd_this->document_res->if_ios_document~opendocument( EXPORTING errorinformation = error_opendocument_stru ).
        CATCH cx_ios_document INTO refexp.
        CATCH cx_ios_communicationwrapper INTO refexp.
        CATCH cx_ios_factory INTO refexp.
        CATCH cx_ios_environment INTO refexp.
        CATCH cx_ios_exception INTO refexp.
      ENDTRY.
      IF refexp IS NOT INITIAL.
        refexp->get_message( IMPORTING
                  mtype = msgty
                  number = msgnr
                  mid = msgid ).
        l_current_controller ?= wd_this->wd_get_api( ).
        CALL METHOD l_current_controller->get_message_manager
          RECEIVING
            message_manager = l_message_manager.
      report message
        CALL METHOD l_message_manager->report_t100_message
          EXPORTING
            msgid = msgid
            msgno = msgnr
            msgty = msgty.
      ENDIF.
    endmethod.
    Edited by: suryajoshi on Jan 13, 2011 5:04 PM

    Thanks for your reply.
    I have defined DATAS attribute  as XSTRING.  You are right i am using SIOS code from WDMODIFY.
    I am getting exception at this line:  Please advice. Its seems that factory is not been recognize. I double check , factory is present in attributes Tabs of the View.
    get the IOS interface
      wd_this->factory ?= office->_method_handler.
      ASSERT ID sios_demo CONDITION wd_this->factory IS BOUND.

  • MS office control in WD ABAP

    Hi,
    I want to display the excel with data in webdynpro.
    I have data in XSTRING format in node, that i binded to the datasource of MS Excel UI element, I can able to download the xstring to desktop in excel format. but the same xstring i cant able to display in WD UI.
    Only excel with blank values are displayed, I checked service pack of SAP, IE Active X control all are fine.
    Please help me how to display data in MS office control Excel in WD UI.
    Regards
    Virkly

    Hello,
    Please refer to the following sample:* Excel File Upload And Display Data Using Web DynPro ABAP*
    Link: [http://wiki.sdn.sap.com/wiki/display/WDABAP/ExcelFileUploadAndDisplayDataUsingWebDynPro+ABAP]
    Have a look at the source code given in 14 which converts xstring to string.
    Hope this helps!
    Regards,
    Srilatha

  • Problems in Office control

    Hello Everyone,
       I am stuck with a problem using office control.
    The requirement is to display the excel file contents present in the application server to the office control.
    The problem is with reading the contents of the excel file.
    here is the method i used:
      data:
        mime_repository type ref to if_mr_api,
        content type xstring,
        url type string value '/MIG/D/TEST/TEST.xls'.
      mime_repository = cl_mime_repository_api=>get_api( ).
      call method mime_repository->get
        exporting
          i_url = url
        importing
          e_content = content.
    * DATA is binded to the office control contents
      wd_context->set_attribute( name = 'DATA' value = content ).
    The GET method returns a sy-subrc = 3, which means file not found.
    whereas the same code works for another application server with its path.
    Where am i going wrong?  or is there any alternative method to get the content from the file?
    Regards,
    Kinshuk
    Message was edited by:
            Kinshuk Saxena

    Hi Kinshuk,
    I think you should place your file in the exact folder where WDA can recognize, I mean try placing it @ the folder...
    "/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration".
    Regards
    Raja Sekhar

  • HELP?  webdynpro for abap - office integration??

    Hi ALL:
         Do you know how to use the cl_wd_office_control ?
        I  use 'WORD' or 'EXCEL' to display with webdynpro application and change the data ,now,i want to save the data into SERVER (word or excel).the action 'ON_SAVE' how to write?
    Thanks in advance!
          kind regards,
            Vallis.

    >
    gmasfk wrote:
    > Hi Abhi:

    >   I don't understand the Actions:onsave and onclose  which cl_wd_office_control include,
    >  
    >  like " IOS_TEST_HELLOWORLD_MS " ,it use other button to achieve it.but i'm not.

    >  The 'WORD' has function of 'SAVE' ,i want to use itself's.
    >
    >  Can it be coming true??

    >  Vallis.
    >
    > Edited by: gmasfk on Apr 27, 2009 8:38 AM
    Hi,
    You have the on_save event in the Office Control. This event will be triggerd when you press ctrl+s or press the save button.
    see the help here
    [https://cw.sdn.sap.com/cw/docs/DOC-45207|https://cw.sdn.sap.com/cw/docs/DOC-45207]
    on the event handler you have the changed copy of the document available in your context attribute of type xstring.
    You can use the put method mime-repository like Abhi described.

  • Problem in Office Control

    Hi all,
            I am trying to work with office control. I had created a value node called "DocumentSourceNode".
    created a supply function with the name fillNode.. Under fillNode i wrote the following code.
    ISimpleTypeModifiable mod = node.getNodeInfo().getAttribute("DocumentContent").getModifiableSimpleType();
    ModifiableBinaryType bin = (ModifiableBinaryType)mod;
    bin.setMimeType(new WebResourceType("doc", "application/msword", false));
    IPrivateOfficeView.IDocumentSourceNodeElement element = wdContext.nodeDocumentSourceNode().createDocumentSourceNodeElement();
    node.addElement(element);
    String filename = "";
         try
                    filename = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), "example.doc");
                    byte[] bytes = getBytesFromFile(new File(filename));
                    element.setDocumentContent(bytes);
         catch (WDAliasResolvingException e)
                    throw new WDRuntimeException("No datasource available: " + filename);
         catch (IOException e) {
                //handle exception
    when i am executing, i am getting this exception....
    catch (WDAliasResolvingException e)
                    throw new WDRuntimeException("No datasource available: " + filename);
    I had stored a msword document say example under mime/applications/com.sap..../example... am i stored the document in a right area? Please help me....

    Hi  aarthi,
                 Thanks for ur suggestion. Since i got error in my catch block i added this lines in the catch block
    catch (WDURLException e)
                    throw new WDRuntimeException("No datasource available: " + filename);
    So i m getting this error,
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: No datasource available

  • Webdynpro ABAP Caching Problem in Portal

    Hi All,
    We have developed custom applications using Webdynpro - ABAP, using FPM and accessing those applications through SAP Netweaver Portal 7.0. I have deactivated all the caching techniquies in Portal @ iview level and Page level, Portal Runtime and ContentFetch side, But still causing the same problem.
    I have a doubt, wether this is happening because of SAP Logon Caching @ SAP WAS system level. I have checked the SSO parameter settings in RZ10 Profile parameters. Our basis people have set both accept and create parameter value = 1. Is this causing issue?
    Or Is there any other settings which is required to do in Portal or SAP system level. Please let us know , really appreciate your value suggestions and help.
    Please find the below links, which im referring to...
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/d2/91553b4d53273de10000000a114084/frameset.htm
    http://help.sap.com/SAPHELP_NWPI71/helpdata/EN/48/69eb40e8a607d6e10000000a42189c/content.htm
    Thanks in Advance
    PRadeep
    Edited by: Pradeep on Jan 28, 2009 9:10 AM

    The delete icon will not show up in the line of the favorite/templates, if no hours are recorded on it. There is no transfer to the backend either, unless hours are recorded on these working time attributes. also ensure note 1986356 is implemented for details column check CAC2 for the CATS profile attached to the user in CVR in Su3

  • Webdynpro abap ALV export to excel with images problem

    Hello experts,
    I'm having problems with standard excel export functionality in webdynpro abap ALV.
    In my table i have images taken from content server (employee photos) linked with URL to a table_cell Image, when i export the table to excel using standard function the images is showed as a broken picture with the following text:
    "The linked image cannot displayed. The file may have been moved, or deleted. Verify that the link points to the correct file and location."
    I'm running on sap basis 7.02 SP13 and implemented the notes 1975765 and 1985288 but not resolved this issue.
    Do you have any ideas?
    Thank you.

    Hi Jorge,
    Are you able to download the ICONs from alv table? try to use some icon source '~Icon/Add' and check out if you can download it to excel successfully.
    FYR:
    Regards,
    Rama

  • Problem in developing webdynpro ABAP ?

    Hi all,
    I have a problem in execution of my first webdynpro ABAP application.
    I did my program based on the instructions given in the given link.
    http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_I.pdf
    In doing that program i didn't get any errors,
    but while executing its giving error that http:500 internal error.
    If any body know how to resolve this issue .
    Plz help me in this issue.
    Thanks

    Error when processing your request
    What has happened?
    The URL http://sapserver:8001/sap/bc/webdynpro/sap/zwd_hellosr was not called due to an error.
    Note
         The following error text was processed in the system DM0 : Die URL enthält keine vollständige Domainangabe (sapserver statt sapserver.).
         The error occurred on the application server sapserver_DM0_01 and in the work process 0 .
         The termination type was: RABAX_STATE
         The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: LATE_CONSTRUCTOR of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
         If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DM0 in transaction ST22.
         If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapserver_DM0_01 in transaction SM21.
         If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server sapserver_DM0_01 . In some situations, you may also need to analyze the trace files of other work processes.
         If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 800 -u: NEELIMAK -l: E -s: DM0 -i: sapserver_DM0_01 -w: 0 -d: 20101207 -t: 130320 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

  • DMS Document not getting created thru Webdynpro ABAP Strange Problem

    Dear all,
    My requirement is that I have a Webdynpro ABAP application sitting on SAP Server1 and I am having a FileUploadUI Element in there for uploading files and we have SAP Server2 with the DMS configured. So, what we have done is we have an RFC in SAP Server2 and we are calling it from our webdynpro ABAP application sitting on SAP Server1. And we are calling BAPI_Create2 with all the necessary parameters in this RFC to create the DMS document with the file from webdynpro ABAP application. But its not working. I am passing the Presentation Server File Path of the File to the BAPI_create2.Even if I write the file to the application server of SAP Server2 and then pass this file path to the BAPI_Create2 then also it doesn't work but when I execute this RFC locally in the SAP Server2 with the presentation server file path It executes successfully.
    I don't know what I am missing.
    Please help.
    Thanks and regards,
    --Sonal

    Dear Thomas,
    Suppose I have got the file copied to the application server in SAP Server2 using datasets from WDA in SAP server1.
    Now I have an RFC say ZFILE_UPLOAD in SAP Server2 for which we have made an SAP ABAP RFC Connection from SAP Server1. In this RFC I am calling BAPI_create2 using the application server filepath(of SAP Server2) in docfile parameter along with ur suggested destination then also it doesn't work. Gives an error that "error in storing and checking file" i.e. Error 253.
    One more query how to handle the file upload of different file types say I am uploading a pdf file from my webdynpro abap application in SAP server1. Then I get the xstring and pass it to ZFILE_UPLOAD and convert it into binary and write it there in SAP Server2 using datasets. Is it possible to upload any kind of file and then creating the DMS document out of it?
    and how to call this RFC?
    Thanksn and regards,
    --Sonal

Maybe you are looking for

  • I can't update or reinstall adobe flash player on my mac 10.9.5.

    I am having trouble updating or re-installing my adobe flash player on apple laptop. I checked preference on safari to ensure there were block on plug-in. The update says it has failed or keeps asking me to close safari.

  • Won't detect full memory clock speed on DiMM 3-4

    Hey guyz... got a little bit of a strange situation with my MSI K8N-F PCB 1.0 systemboard hope you can share you're knowledge on this... I got a 2x256MB VR Kingston DDR400 Single sided ram that I installed on DiMM 1-2 and was able to read the memory

  • Flex SDK 3.4 Tree Item Renderer Root Folder displays Tooltip for Child

    I have a Flex Tree that uses a custom item renderer.  The item renderer extends Tree Item Renderer and I add my button in commit properties (since the data is dynamic) and I use update displaylist to move it to the right position.  I set the button t

  • Albums not displaying in Safari

    Hi All iWeb '09 - Safari 4.0.5 - OS X 10.6.3 I just updated a site that did work, added 3 new photo albums, things work fine on a PC and with Firefox. But the Albums page is blank in Safari. Any thoughts? Thanks

  • Iphone auto synch issue?

    When I connect my Iphone 4s to my Mac via wire Itunes does not open but another application (Photo Mechanic) does. How do I control this behavior? Thanks for your thoughts and help.