Pre-filling Office documents with SAP data?

have a requirement to have Word/Excel type file templates that we can open and have pre-filled with data attributes from SAP objects.
I know that we can do this relatively easily from within the SAP GUI in transactions such as SCASE etc... but our solution needs to have this type of functionality invoked from WebDynPro screens that are delivered through the Portal.
We have looked at Adobe Document Services which will give us the fucntionality as described, but because of licencing constraints we are unable to use ADS at this stage.
Does anyone have any knowledge or ideas on how we may achieve pre-filling of Word templates etc. from WebDynPro screens?

Paul,
  Did you figure out how to do this? We have a very similar requirement now. Appreciate any suggestions you may have.
Thanks
Madhu

Similar Messages

  • Pre-fill Office documents with SAP data from WebDynPro screens

    I have a requirement to have Word/Excel type file templates that we can open and have pre-filled with data attributes from SAP objects.
    I know that we can do this relatively easily from within the SAP GUI in transactions such as SCASE etc... but our solution needs to have this type of functionality invoked from WebDynPro screens that are delivered through the Portal.
    We have looked at Adobe Document Services which will give us the fucntionality as described, but because of licencing constraints we are unable to use ADS at this stage.
    Does anyone have any knowledge or ideas on how we may achieve pre-filling of Word templates etc. from WebDynPro screens?

    Paul,
      Did you figure out how to do this? We have a very similar requirement now. Appreciate any suggestions you may have.
    Thanks
    Madhu

  • XML generation with SAP data using XML schema - Reg

    Hello experts,
      My requirement is , SAP( ztable data )  data has to be transferred to third party software folder.Third party using XML so they requires output from SAP in XML format.
    For that third party software guys told me that they will give their own XML schema to me.I have to generate XML file with SAP data using their XML schema.
    Generating XML file with their Schema should be underlined.
    I studied that call transformation statement helps for this.
    Even then i don't have clear idea about this topic.
    Please brief me about how to use their XML schema to generate XML with my own sap data.
    Thanks in advance experts.
    Kumar

    please  try this  same program    and see  it ....
    *& Report  z_xit_xml_check
      REPORT  z_xit_xml_check.
      TYPE-POOLS: ixml.
      TYPES: BEGIN OF t_xml_line,
              data(256) TYPE x,
            END OF t_xml_line.
      DATA: l_ixml            TYPE REF TO if_ixml,
            l_streamfactory   TYPE REF TO if_ixml_stream_factory,
            l_parser          TYPE REF TO if_ixml_parser,
            l_istream         TYPE REF TO if_ixml_istream,
            l_document        TYPE REF TO if_ixml_document,
            l_node            TYPE REF TO if_ixml_node,
            l_xmldata         TYPE string.
      DATA: l_elem            TYPE REF TO if_ixml_element,
            l_root_node       TYPE REF TO if_ixml_node,
            l_next_node       TYPE REF TO if_ixml_node,
            l_name            TYPE string,
            l_iterator        TYPE REF TO if_ixml_node_iterator.
      DATA: l_xml_table       TYPE TABLE OF t_xml_line,
            l_xml_line        TYPE t_xml_line,
            l_xml_table_size  TYPE i.
      DATA: l_filename        TYPE string.
      PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:temporders_dtd.xml'.
    * Validation of XML file: Only DTD included in xml document is supported
      PARAMETERS: pa_val  TYPE char1 AS CHECKBOX.
      START-OF-SELECTION.
    *   Creating the main iXML factory
        l_ixml = cl_ixml=>create( ).
    *   Creating a stream factory
        l_streamfactory = l_ixml->create_stream_factory( ).
        PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
    *   wrap the table containing the file into a stream
        l_istream = l_streamfactory->create_istream_itable( table = l_xml_table
                                                        size  = l_xml_table_size ).
    *   Creating a document
        l_document = l_ixml->create_document( ).
    *   Create a Parser
        l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
                                          istream        = l_istream
                                          document       = l_document ).
    *   Validate a document
        IF pa_val EQ 'X'.
          l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
        ENDIF.
    *   Parse the stream
        IF l_parser->parse( ) NE 0.
          IF l_parser->num_errors( ) NE 0.
            DATA: parseerror TYPE REF TO if_ixml_parse_error,
                  str        TYPE string,
                  i          TYPE i,
                  count      TYPE i,
                  index      TYPE i.
            count = l_parser->num_errors( ).
            WRITE: count, ' parse errors have occured:'.
            index = 0.
            WHILE index < count.
              parseerror = l_parser->get_error( index = index ).
              i = parseerror->get_line( ).
              WRITE: 'line: ', i.
              i = parseerror->get_column( ).
              WRITE: 'column: ', i.
              str = parseerror->get_reason( ).
              WRITE: str.
              index = index + 1.
            ENDWHILE.
          ENDIF.
        ENDIF.
    *   Process the document
        IF l_parser->is_dom_generating( ) EQ 'X'.
          PERFORM process_dom USING l_document.
        ENDIF.
    *&      Form  get_xml_table
      FORM get_xml_table CHANGING l_xml_table_size TYPE i
                                  l_xml_table      TYPE STANDARD TABLE.
    *   Local variable declaration
        DATA: l_len      TYPE i,
              l_len2     TYPE i,
              l_tab      TYPE tsfixml,
              l_content  TYPE string,
              l_str1     TYPE string,
              c_conv     TYPE REF TO cl_abap_conv_in_ce,
              l_itab     TYPE TABLE OF string.
        l_filename = pa_file.
    *   upload a file from the client's workstation
        CALL METHOD cl_gui_frontend_services=>gui_upload
          EXPORTING
            filename   = l_filename
            filetype   = 'BIN'
          IMPORTING
            filelength = l_xml_table_size
          CHANGING
            data_tab   = l_xml_table
          EXCEPTIONS
            OTHERS     = 19.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Writing the XML document to the screen
        CLEAR l_str1.
        LOOP AT l_xml_table INTO l_xml_line.
          c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data replacement = space  ).
          c_conv->read( IMPORTING data = l_content len = l_len ).
          CONCATENATE l_str1 l_content INTO l_str1.
        ENDLOOP.
        l_str1 = l_str1+0(l_xml_table_size).
        SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
        WRITE: /.
        WRITE: /' XML File'.
        WRITE: /.
        LOOP AT l_itab INTO l_str1.
          REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN
            l_str1 WITH space.
          WRITE: / l_str1.
        ENDLOOP.
        WRITE: /.
      ENDFORM.                    "get_xml_table
    *&      Form  process_dom
      FORM process_dom USING document TYPE REF TO if_ixml_document.
        DATA: node      TYPE REF TO if_ixml_node,
              iterator  TYPE REF TO if_ixml_node_iterator,
              nodemap   TYPE REF TO if_ixml_named_node_map,
              attr      TYPE REF TO if_ixml_node,
              name      TYPE string,
              prefix    TYPE string,
              value     TYPE string,
              indent    TYPE i,
              count     TYPE i,
              index     TYPE i.
        node ?= document.
        CHECK NOT node IS INITIAL.
        ULINE.
        WRITE: /.
        WRITE: /' DOM-TREE'.
        WRITE: /.
        IF node IS INITIAL. EXIT. ENDIF.
    *   create a node iterator
        iterator  = node->create_iterator( ).
    *   get current node
        node = iterator->get_next( ).
    *   loop over all nodes
        WHILE NOT node IS INITIAL.
          indent = node->get_height( ) * 2.
          indent = indent + 20.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
    *         element node
              name    = node->get_name( ).
              nodemap = node->get_attributes( ).
              WRITE: / 'ELEMENT  :'.
              WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
              IF NOT nodemap IS INITIAL.
    *           attributes
                count = nodemap->get_length( ).
                DO count TIMES.
                  index  = sy-index - 1.
                  attr   = nodemap->get_item( index ).
                  name   = attr->get_name( ).
                  prefix = attr->get_namespace_prefix( ).
                  value  = attr->get_value( ).
                  WRITE: / 'ATTRIBUTE:'.
                  WRITE: AT indent name  COLOR COL_HEADING INVERSE, '=',
                                   value COLOR COL_TOTAL   INVERSE.
                ENDDO.
              ENDIF.
            WHEN if_ixml_node=>co_node_text OR
                 if_ixml_node=>co_node_cdata_section.
    *         text node
              value  = node->get_value( ).
              WRITE: / 'VALUE     :'.
              WRITE: AT indent value COLOR COL_GROUP INVERSE.
          ENDCASE.
    *     advance to next node
          node = iterator->get_next( ).
        ENDWHILE.
      ENDFORM.                    "process_dom
    reward  points  if it is use fulll ....
    Girish

  • Printing/Converting Office documents from SAP

    Hi all,
    When I try to print office documents by using CV120_START_APPLICATION. I don't receive feedback from the application (ie: Word, Excel etc) to SAP about error/success of printing.
    is there another way to print office documents from SAP and reveice feedback?
    Another question:
    Is there a way to convert office documents (doc, xls, ppt)to pdf files without using external program?

    Hi All,
    I am also facing the same problem,
    When I try to print office documents by using CV120_START_APPLICATION. I don't receive feedback from the application (ie: Word, Excel etc) to SAP about error/success of printing.
    Is there another way to print office documents from SAP or should I use some other FM like CV120_GET_APPL_FROM_REGISTRY?
    Advance thanks.
    Regards,
    Balaji Viswanath.

  • How to fill selection box with clientside data?

    i want to make a html form that reads option values from the client.
    Because there are too many data, it's not reasonable for me to design a page which connects to server each time to fill the selection boxes.Instead i want to check if data resides at the clientside, if so fill selection boxes with that data, if not download it for the first time and store it on the client for later local retrieval.In addition i must be able to update that data residing on the client when i want.

    Hi,
    I can tell you some hints. Use cookies to store the information on to the client-side. You can read data from cookies using JavaScript. If you want to store huge amount of data on to the client-side, perhaps this would not be a better idea. In J2EE architecture we often use sessions to store values. You need to design your implementation in such a way that for the first time you fetch all the values from the database and put it in a session, and the next time onwards you can get the values from the session itself and thereby you can avoid going to database each and everytime. Write a Java class which has all the necessary get and set methods and store the object in the session. Using that object reference you can set and get the values from it. I hope this will help you.
    Thanks

  • Oracle BI Apps with SAP data sources

    What is the delivered content provided by Oracle BI Apps to map with SAP data sources?
    Thank you!

    As things stand right now SAP R3 is only supported on a much older release of BI Apps (7.8.4). That release used the Informatica SAP PowerConnect technology to populate the Warehouse.
    I posted before on this forum the list of supported SAP Modules.
    BI Apps cannot use SAP BW. BW can be a direct data source for BI EE however.
    In the near future our support for SAP will be up to date and back on track. There are internal efforts underway that I cannot discuss here in the forum.

  • How to fill internal table with no data in debugging mode

    Hi all,
             I modified one existing program.Now I want to test it.I am not given test data.So in the middle of my debugging, I found that one internal table with no data.My problem is how to fill that internal table with few records in that debugging mode just as we change contents in debugging mode.If I want to proceed further means that internal table must have some records.
    Please I dont know how to create test data so I am trying to create values temporarily in debugging mode only.
    Thanks,
    Balaji

    Hi,
    In the debugging do the following..
    Click the Table button..
    Double click on the internal table name..
    Then in the bottom of the screen you will get the buttons like CHANGE, INSERT, APPEND, DELETE..
    Use the APPEND button to insert records to the internal table..
    Thanks,
    Naren

  • Help to fill BPS Cube with same data in a Cube with these conditions

    Hi,
    I need some help in implementing BPS in a small project. (Integrated Planning is not available).
    An existing cube, Cube1 has: Year/month, Year, char1, char2, keyfig1, keyfig2
    Keyfig1 is filled directly from R3 with actuals; keyfig2 (planned values) is  filled manually filled with a monthly flat file load.
    Now, there is a change in direction to fill keyfig2 through BPS features and bring in additional key figures all based on keyfig1.
    Cube2 has been created only for the purpose of this BPS project. Cube2 was a copy of Cube1(with no data). For Cube1, I have created a Planningarea1 and PlanningLevel1; and for Cube2, Planningarea2 and PlanningLevel2 in BPS0.
    How do I fill the BPS Cube2 with the same data as in BPS Cube1 with the following conditions:
    keyfig1 : same as source value from R3 (not modifiable)
    keyfig2 : modifiable by users only on the first and second of the month.
    keyfig3 : keyfig1 * 1.1
    keyfig4 : keyfig1 of previous Year/month 
    keyfig5 : same as source value from R3 (But modifiable)
    keyfig6 : same as keyfig5 as of last day of 20th of the current month (not modifiable)
    The goal is to create a multi planning area to join the two cubes. Hints all that will also be appreciated.
    Thanks

    Your thought of having a multi area is right.
    Create a multi area and being the basic areas to which you have assigned cube 1 and cube 2 underneath the multi area.
    UNder your planing package, create a function of type Formula and create a parameter set like this:
    = * 1.1.
    Just this one line will is enough.
    TO get keyfig 4 as previous month's key fig; you need another fox. To do this, you need to have a BPS variable to et previous month and use this variable in the parameter set.
    Your fox will be like this.
    DATA CURRMONTN TYPE 0CALMONTH.
    DATA PREMONTH TYPE 0CALMONTH.
    {KEYFIG4, CURRMONTH} = {KEYFIG1, PREMONTH}.
    To make users modify only on days 1 and 2, you need to define a dara slice.
    Ravi Thothadri

  • Filling in pdf with FDF Data gives me square blocks

    Hi,
    I am trying to fill in a form with fdf data using pdftk but whenever I do, it gives me square characters instead of the actual text. Does anyone know why it does this?
    I am using Arial font

    Hi George, thanks for your help
    Here is the FDF:
    %FDF-1.2
    1 0 obj<</FDF<< /Fields[
    <</T(FIELD1)/V(BLAH)>>
    ] >> >>
    endobj
    trailer
    <</Root 1 0 R>>
    %%EOF
    I don't even have Helvetica on my computer
    EDIT: To be honest, I think it may have something to do with my PDF file, because I am trying to populate the fields using pdftk-php and it is doing the same thing.

  • How to make link between xcelsius components with sap data using Web servic

    Hi all,
    I have a doubt regarding connection between Xcelsius components and SAP data.
    I created one Web service using Function module and made a connection between xcelsius and that web service using binding URL. It shows imput and output parameters perfectly.
    But I cant get any idea as to how to connect Xcelsius components with these parameters.
    Can anybody help me out..
    please its urgent.
    Thanks,
    Simadri

    Have you bound your output parameters to ranges of cells? Select the item, then click the icon to the right of the Insert In: box and select the cells.
    Add a spreadsheet component to your chart and bind it to the cells, then preview the model. Do you see the data coming through?
    If you do, then you can click File > Snapshot > Export Excel Data. Then close Preview mode, and import data from spreadsheet and select the sheet you just exported. This gives you real data to work with when designing the dashboard.
    Hope that helps.

  • How to call and run parameters in Procedures with Sap Data Services?

    Hello Guys,
    Migrating'm all SSIS2008 packages for Sap Data Services.
    During this process I found a difficulty about running Stored Procedures (Sql Server 2008 R2) within the Sap Data Services.
    I need help to convert this code sample:
    EXEC dbo.prcInserirLogExecucaoSSIS
    @FEED = ?,
    @TIPO_ENTRADA = 'NOVA_CARGA',
    @ARQUIVO = ?
    to Sql ('datastore', 'example') with parameter passing ...

    Import the stored procedure as a function in a datastore.
    Drag the stored procedure to your query browser and you will be set. 

  • ABOUT INTERGRATING BO WITH SAP DATA

    Hi all, kindly help me out in this problem.
    we are in the project to develope crystal reports XI r2 in the BO platform.
    with out using any ETL part or data integrator.kindly clarify is it possible to get data without ETL .And clarify the SAP intergration tool kit.. any body help me out...kindly urgent..
    regards
    paneer

    Hi,
    This may be of help.
    BEST PRACTICES FOR CRYSTAL REPORTING WITH SAP Dan Kearnan, Business Objects
    http://sfarea.org/P13.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10c3bca6-7dbc-2a10-7aa8-81d2731c7bb1
    Best Practices for implementing Business Objects on top of BW 
    /people/ingo.hilgefort/blog/2008/02/07/businessobjects-and-sap-part-i
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    /people/ingo.hilgefort/blog/2008/02/27/businessobjects-and-sap-part-3
    /people/ingo.hilgefort/blog/2008/03/23/businessobjects-and-sap-part-4
    /people/ingo.hilgefort/blog/2008/03/24/businessobjects-and-sap-part-5
    /people/scott.jones/blog/2007/09/13/installing-and-configuring-sap-interactive-forms-by-adobe-for-the-sap-netweaver-composition-environment
    Hope this helps.
    Thanks,
    JituK

  • Free Webinar: Integrate your ABAP Documents with SAP Mobile Documents

    Learn how to integrate documents stored in your ABAP-based application into SAP Mobile Documents. In this webinar, you will also learn how to share documents out of your ABAP application with SAP Mobile Documents.
    For further details check out http://scn.sap.com/docs/DOC-60383.

    The recording of the session is now available at http://scn.sap.com/docs/DOC-60383. There is also a new blog on what you have to do to share your documents from your ABAP system How to share your documents from ABAP with SAP Mobile Documents.

  • Free Webinar: Integrate your SCM Documents with SAP Mobile Documents

    Learn how to integrate documents stored in SCM into SAP Mobile Documents. In this webinar, you will also learn how to share documents out of your SCM system with SAP Mobile Documents.
    For further details check out http://scn.sap.com/docs/DOC-60383.

    The recording of the session is now available at http://scn.sap.com/docs/DOC-60383. There is also a new blog on what you have to do to share your documents from your ABAP system How to share your documents from ABAP with SAP Mobile Documents.

  • Free Webinar: Integrate your PLM Documents with SAP Mobile Documents

    Learn how to integrate documents stored in PLM into SAP Mobile Documents. In this webinar, you will also learn how to share documents out of PLM with SAP Mobile Documents.
    For further details check out http://scn.sap.com/docs/DOC-60383.

    The recording of the session is now available at http://scn.sap.com/docs/DOC-60383. More detailed documentation about how to do the coding is available at How to share your documents from ABAP with SAP Mobile Documents.

Maybe you are looking for

  • Custom BIOS for GE60 2oc

    Hello! I would like to request a custom bios for my laptop (MSI GE-60 2oc). I have had problems with low CPU utilization after updating the embedded controller with official MSI firmware update. At the same time I was supposed to update the BIOS, but

  • Material block with quantity transfer

    Dear all,         I have searched some information from library, and it is useful for our company, can anyone help to tell me how to make the configure to achieve it ? Thanks in advance!!        The information is below:        "If another user tries

  • Zip files with webstart

    Is there a way to have webstart download zip files to the client and allow them to be used in the trusted environment. Obviously I'm having a problem, since the zip file can't be signed like my jar's can.

  • Palm Pre Plus hotspot won't turn on

    All of a sudden this morning I got the message that the "sharing service" is not activated, contact service.  It's been working fine for months.  Anyone else?

  • SAP F&R:: Trend + Seasonality

    Hi Guys, I have been trying to generate forecast for a set of consumption data where the data has a trend and a seasonality component. However, when I generate the forecast, the system at best ONLY takes into account the trend in the forecast. The se