Dymanic viewing of the Output using Transform.

Hello,
I am testing out 'Transform','StreamSource','Templates' using 1.5.
I have a test XML document which has an associated XSL
This XSL displays the result of the above XML in HTML.
I am fetching the associated xsl for the above xml and dynamically converting into HTML.
The result of this transformation is stored in an 'ByteArrayOutputStream'.
My query is:
Is there a way to view the xsl output?
Or can I store the output in some HTML file and view this to see
if this is the correct output?
Thanks,
// Return the associated XSL for NewOrder.Single.
Templates order_transformtemplate =  m_templates.getTransformTemplate("Order.Single");
// Now create a Transformer
Transformer transformer = order_transformtemplate.newTransformer();
ByteArrayOutputStream out = new ByteArrayOutputStream();
//Transforms the XML Source to a Result.The 'orderDocument' is the XML document being transformed.
transformer.transform(new DOMSource(orderDocument), new StreamResult(out));
                   

All done.
Works as required.
Thanks

Similar Messages

  • Issues while generating the output(using VF02- header- output)

    Hi Group,
    I have issues while generating output using the tcode VF02.
    the issue is that, I have got an output type which is configured for the medium "Special Function" and the o/p program generates PDF depending on certain criteria.
    now, when I try to "repeat output" option to generate output again, I was getting errors. it works sometimes by choosing the option "Successfully processed" then selecting the record and then saving it. if I do the same thing again, the output make be running into error or success, it is varying everytime.
    I am not able to understand why the process is not working correctly, when doing the "Repeat output" option on the "Successfully processed" record, the system is giving error instead of a Successful message. it is succeeding once and sometimes not.
    Kindly let me know your inputs if you have encountered same kind of issue.
    Regards,
    Vishnu.

    hi Group,
    when I checked the configuration part of the o/p type I am currently processing, I could see that, in customizing part of this o/p type, there was a checkbox for Multiple Issuing - which is not checked.
    when it is not checked, it should not be possible to run the o/ps for multiple times, but when I tried to generate o/ps again and again, in a few attempts I could to generate the PDFs and in some cases not. I don't know why there is no relevance for this check box Multiple Issuing.
    Could you please let me know why this issuing of o/p is working in some occassions and not working work sometimes, which is  having the configuration of checkbox Multiple Issuing - not being checked.
    thanks for your help in advance.
    Regards,
    Vishnu.

  • Problem while placing a button in the Output using ALV OOPs

    Hi,
    I am using ALV OOPs to display  report output.
    In the toolbar i have to palce an update button  and if i click on that update it should then call the selection screen 500 .
    So,please  help me to achieve this using ALV OOPs.
    THANKS & REGARDS,
    Kiranmai.

    Hi,
    you can use set pf-status statement with the OOPs' concept where in you will have to give this in the events table and pass it to the method to display the alv ...
    Regards,
    Siddarth

  • Formating the output using SO_NEW_DOCUMENT_SEND_API1

    Hi ,
    I am using the FM 'SO_NEW_DOCUMENT_SEND_API1' for sending data in an internal table as an email . I am wondering whether it will be possible to to send it in the table format with the field names intact. Currently i am able to send the mail but without the table field names . Please help
    Regards,
    Tashi

    hello gurus,
    please check this below program.
    TABLES : ADR6.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : SPOOLNO TYPE TSP01-RQIDENT OBLIGATORY.
    SELECT-OPTIONS :  MAILS FOR ADR6-SMTP_ADDR DEFAULT 'xyz.com' OBLIGATORY NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA SEND_REQUEST  TYPE REF TO CL_BCS.
    DATA DOCUMENT      TYPE REF TO CL_DOCUMENT_BCS.
    DATA RECIPIENT     TYPE REF TO IF_RECIPIENT_BCS.
    DATA BCS_EXCEPTION TYPE REF TO CX_BCS.
    DATA SENT_TO_ALL   TYPE OS_BOOLEAN.
    DATA PDF_SIZE      TYPE SO_OBJ_LEN.
    DATA PDF_CONTENT   TYPE SOLIX_TAB.
    DATA PDF_XSTRING   TYPE XSTRING.
    DATA MAILTO TYPE AD_SMTPADR.
    START-OF-SELECTION.
      PERFORM CREATE_PDF.
      PERFORM SEND.
    *&      Form  send
    FORM SEND.
      TRY.
        -------- create persistent send request ------------------------
          SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
        -------- create and set document -------------------------------
          PDF_CONTENT = CL_DOCUMENT_BCS=>XSTRING_TO_SOLIX( PDF_XSTRING ).
          DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                I_TYPE    = 'PDF'
                I_HEX     = PDF_CONTENT
                I_LENGTH  = PDF_SIZE
                I_SUBJECT = 'sending pdf as email' ).           "#EC NOTEXT
        add document object to send request
          SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
        LOOP AT MAILS. " for sending multiple mails we can use this logic
            MAILTO = MAILS-LOW.
        --------- add recipient (e-mail address) -----------------------
        create recipient object
            RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( MAILTO ).
        add recipient object to send request
          SEND_REQUEST->ADD_RECIPIENT( RECIPIENT ).
      ENDLOOP.
        ---------- send document ---------------------------------------
          SENT_TO_ALL = SEND_REQUEST->SEND( I_WITH_ERROR_SCREEN = 'X' ).
          COMMIT WORK.
          IF SENT_TO_ALL IS INITIAL.
            MESSAGE I500(SBCOMS) WITH MAILTO.
          ELSE.
            MESSAGE S022(SO).
          ENDIF.
      ------------ exception handling ----------------------------------
      replace this rudimentary exception handling with your own one !!!
        CATCH CX_BCS INTO BCS_EXCEPTION.
          MESSAGE I865(SO) WITH BCS_EXCEPTION->ERROR_TYPE.
      ENDTRY.
    ENDFORM.                    "send
    *&      Form  create_pdf
    Create PDF Content
    1) get attributes of spool request
    2) convert spool request to PDF dependent on document type
    FORM CREATE_PDF.
      DATA RQ       TYPE TSP01.
      DATA BIN_SIZE TYPE I.
      DATA DUMMY    TYPE TABLE OF RSPOATTR.
      ------------ get attributes of spool request ---------------------
      CALL FUNCTION 'RSPO_GET_ATTRIBUTES_SPOOLJOB'
        EXPORTING
          RQIDENT     = SPOOLNO
        IMPORTING
          RQ          = RQ
        TABLES
          ATTRIBUTES  = DUMMY
        EXCEPTIONS
          NO_SUCH_JOB = 1
          OTHERS      = 2.
      IF SY-SUBRC <> 0.
        MESSAGE E126(PO) WITH SPOOLNO.
      ENDIF.
      --- convert spool request into PDF, dependent on document type ---
      IF RQ-RQDOCTYPE = 'OTF' OR RQ-RQDOCTYPE = 'SMART'.
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            SRC_SPOOLID              = SPOOLNO
            NO_DIALOG                = 'X'
            PDF_DESTINATION          = 'X'
            NO_BACKGROUND            = 'X'
          IMPORTING
            PDF_BYTECOUNT            = BIN_SIZE
            BIN_FILE                 = PDF_XSTRING
          EXCEPTIONS
            ERR_NO_OTF_SPOOLJOB      = 1
            ERR_NO_SPOOLJOB          = 2
            ERR_NO_PERMISSION        = 3
            ERR_CONV_NOT_POSSIBLE    = 4
            ERR_BAD_DSTDEVICE        = 5
            USER_CANCELLED           = 6
            ERR_SPOOLERROR           = 7
            ERR_TEMSEERROR           = 8
            ERR_BTCJOB_OPEN_FAILED   = 9
            ERR_BTCJOB_SUBMIT_FAILED = 10
            ERR_BTCJOB_CLOSE_FAILED  = 11
            OTHERS                   = 12.
        IF SY-SUBRC <> 0.
          MESSAGE E712(PO) WITH SY-SUBRC 'CONVERT_OTFSPOOLJOB_2_PDF'.
        ENDIF.
      ELSEIF RQ-RQDOCTYPE = 'LIST'.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            SRC_SPOOLID              = SPOOLNO
            NO_DIALOG                = 'X'
            PDF_DESTINATION          = 'X'
            NO_BACKGROUND            = 'X'
          IMPORTING
            PDF_BYTECOUNT            = BIN_SIZE
            BIN_FILE                 = PDF_XSTRING
          EXCEPTIONS
            ERR_NO_ABAP_SPOOLJOB     = 1
            ERR_NO_SPOOLJOB          = 2
            ERR_NO_PERMISSION        = 3
            ERR_CONV_NOT_POSSIBLE    = 4
            ERR_BAD_DESTDEVICE       = 5
            USER_CANCELLED           = 6
            ERR_SPOOLERROR           = 7
            ERR_TEMSEERROR           = 8
            ERR_BTCJOB_OPEN_FAILED   = 9
            ERR_BTCJOB_SUBMIT_FAILED = 10
            ERR_BTCJOB_CLOSE_FAILED  = 11
            OTHERS                   = 12.
        IF SY-SUBRC <> 0.
          MESSAGE E712(PO) WITH SY-SUBRC 'CONVERT_ABAPSPOOLJOB_2_PDF'.
        ENDIF.
      ELSE.
        MESSAGE E789(PO) WITH RQ-RQDOCTYPE.
      ENDIF.
      PDF_SIZE = BIN_SIZE.
    ENDFORM.                    "create_pdf

  • Query to show the output using SUBSTR or REGEXP_SUBSTR

    Hi All,
    I need a help..
    I want to populate the data from varchar2 column, if it has the value 1,2,3 stored in it.
    Then I need to pick the values between the commas and show some string for each value available with commas.
    For Example: for '1' I should show India.
    For '2' I should show US.. etc.
    Regards
    Suresh

    According to me, your algorithm should be as follows:
    1) Create table dfntn which defines the relation between id and nm
    e.g
    id    nm
    1     India
    2     US
    3     Other2) Develop generic code which splits the data of any given values..
    e.g. 1,2,3 ...
    changed to
    id
    1
    2
    3
    .Now join this id with the dfntn. This way u will be maintaining more robust code.. i.e. even though your id assignment changes, u can control that in the table level itself.
    Cheers,
    Manik.

  • Calling a transaction code in between the program and use the output

    Hi frnds,
              i want to call a transaction code in between the program   and pass the input .After getting the output, use that output in the program

    Hi Navin,
                     Why don't you sit with ABAPer he can explain better.
    Regards,
    HAri.

  • Querying the output of a batch/scheduled report

    We haven't move to Discoverer Viewer as of now. One of the questions I have to those who have already implemented it is, can you schedule a batch report in the viewer and then users are able to query the RESULT of it without querying back the database? We have concerns on performance during the day so scheduling reports to run at night would be convenient for us.
    thanks for any comments........

    In the concurrent program screen, select options . Under Notify the following person, eneter the email address where output needs to be sent.
    Other option could be to create a send mail package and call that from after report trigger of report. The email address can be inputed as a parameter. For more information for this visit
    http://sureshvaishya.blogspot.com/2008/02/email-through-plsql.html
    The third option could be to call the report from a shell script program and after report is completed email the output using mailx functionality.

  • Why Do we need to go for Alias? What are the Different uses of Aliases?

    Hello Everybody?
    I wanted to know the uses of aliases in RPD level. I do know some points like they will be used as a duplicate copy for the base tables and they will be used to remove the circular joins, otherthan this can anybody please give me a brief view about the different uses of Aliases.

    This article gives some good arguments for why you should use aliases:
    http://it.toolbox.com/blogs/achieving-great-bi/physical-layer-tips-and-gotchas-16445
    1. Import physical tables without FK joins turned on. Make the joins yourself, so there is nothing hidden that could cause problem. You should "own" your joins, not the other way around.
    2. Aliases are the technique one uses to eliminate circular joins. An easy example of how to use aliases is when you have a lookup table, like W_LOV_D - each version of it requires an alias, which will be joined to differently.
    3. With all tables & aliases, using a naming standard will guarantee that only one physical layer object will exist in one Business Model object. If you prefix every object in the physical layer with its Logical usage first (essentially making everything an alias), you will not be able to use the Customer (W_COUNTRY_D) table in the Employee logical table, as the standard would require you to use a table alias called Employee (W_COUNTRY_D).

  • How to avoid to print decimals in the output

    Hi,
    Please suggest me how to avoid getting decimals in the output.
    The variable that i am using is RKMNG. While declaring it i have used it in this manner,  rkmng type p decimals 0.
    but this only avoids fetching the data with decimals, when i am trying to print this value to the output using ALV FM, the decimals are appearing.
    Please can u provide me how to remove these three decimals that are appearing in the output.
    Thanks,

    do this :
    data : lv_var like i.
    move rkmng to lv_var.
    print lv_var.

  • Using Transformation in Workflow

    Hi
    I am looking forward for the steps using transformation if OWF. Are there any doc. to read except user Guide.
    Thanks
    mm

    Hi,
    Just like you include your mapping in your process flow you can include your transformations in your process flow .
    In your process flow follow this menu to add your transformation
    PROCESS FLOW ==> ADD==>OWB SPECIFIC ACTIVITIES ==>TRANSFORMATION.
    Is this what you are looking for.
    Regards

  • Attach the output of a standard OM report in email NTF

    Hi All,
    I have to attach the output of a standard Order Manangement report in the email notification. Can anybody please let me know what should be the approach for this.
    Thanks

    In the concurrent program screen, select options . Under Notify the following person, eneter the email address where output needs to be sent.
    Other option could be to create a send mail package and call that from after report trigger of report. The email address can be inputed as a parameter. For more information for this visit
    http://sureshvaishya.blogspot.com/2008/02/email-through-plsql.html
    The third option could be to call the report from a shell script program and after report is completed email the output using mailx functionality.

  • Using SXMB_MONI to view input and output messages

    Within XI can I view both the input message and the output message ?
    I have an IDOC Order being transformed into XML format.  Using SXMB_MONI I can see the transaction and the input IDOC Order but cannot see the resulting output XML Order.  Is it possible to do or is there some other transaction?

    Hi,
    Check in SXMB_MONI for xml message it is appearing the pipeline steps , if not do the below setting to appearing piepline steps in moni.
    Tcode : SXMB_ADM
    Execute integration engine and configuration
    click on specific configuration
    go to change mode
    Category : RUNTIME
    Parameter :  LOGGING
    Current value : 1
    then save..test the scenario once again.
    now go to moni double click the message check the xml message has left hand side pipeline steps are appearing..
      Expand Inbound mesage -> Expand the Payloads -> Double maindocument you will find the input payload
      Expadn Technical routing -> Expand the Payloads -> Double maindocument you will find the output payload
      then you will find the output xml payload.
    Regards,
    Venu.

  • To display the  output without clicking on the View Output button

    Hi,
    I have a requirement in which i created a menu option in PO through which i submit a PO report using the fnd_request.submit_request. Now there is an additional requirement to view the output of that report (submitted using menu option) without even going to the SRS window. I would like to know if there are any possibilities of doing this.
    Thanks.

    None.

  • Scheduling a Report from outside Scheduler but viewing the output in Plus

    We are using Discoverer 10.1.2
    I know that we can schedule a report within Discoverer Plus and the resulting out put can be seen in Discoverer under scheduled work books
    I am also aware that we put Discoverer command line commands in a DOS script and then schedule that script to run using an Enterprise scheduler and automatically export that report Excel.
    What I want is to schedule reports using our enterprise scheduler but view the resulting output in Discoverer under scheulded work books
    I was thinking that when we schedule a report Discoverer creates a package, something like EUL5_BATCH_PACKAGE080314170249.RUN;.
    Once that package is created, if I copy it and rename it and then schedule to run from our enterprise scheduler, would I be able to view the output from Discoverer ?
    ----- Added on 03/15/2008-------
    I did try running the above package EUL5_BATCH_PACKAGE080314170249.RUN from SQL Plus as I had indicated above. The settings on the report schedule were -
    - Run immediately
    - Never repeate
    - Delete the results after 9999 days ( maximum allowed )
    Now the first time the report ran automatically using DBMS_JOBS since I had set the report to run immediately.
    After that when I tried running EUL5_BATCH_PACKAGE080314170249.RUN from SQL Plus, the procedure completed but when I looked at the Discoverer front end, it indicated the run was in error with Unique constraint violation on EUL5_BQ_TABLES.EUL5_BQT_UK_1 index. However when I looked at the table it did not have any data in it.
    I the ran the procedure again from SQL Plus and this time it completed and when I looked at the Discoverer Plus front end, the results were ready for me to view.
    When I tried running the procedure again, it failed again with unique constraint violation and when the procedure was executed after that it again ran and i was able to view the results.
    So, ever alternate run from SQL Plus was successful. I would continue to try out different combinations of schedule parameters to see if I can get it to work.
    However, any one has already tried this before please let me know if what I am trying Is this possible ?
    Any help would be appreciated
    Thank you
    Message was edited by:
    manav_purohit
    Message was edited by:
    manav_purohit

    Thanks for the suggestion Rod. However, if I use DBMS_JOB.CHANGE, the report will still run using DBMS_JOB. What I would prefer is to not use DBMS_JOB.
    Running anything in DBMS_JOB means, the job is not visible in the enterprise scheduler that we use. Our enterprise scheduler is being monitored at a data center and if any jobs fail, appropriate on call individuals are contacted. Records are kept of failures and root cause is analyzed. So I want to take advantage of these procedures for scheduled reports as well.
    I am still looking for some alternative method.

  • Unable to view the output of a concurrent program

    Dear Members,
    I am using Oracle R12.1.3 Vision Instance.
    I have run the Create Accounting program. When I click on the view output button, the browser gets displayed and also gets closed immediately. I am unable to view the output.
    Can any one please help me in resolving this issue?
    Many thanks in advance.
    Regards.

    Dear Members,
    I am facing the above problem in IE.
    When I tried in Mozilla, I can view the outputs without any issues.
    Can any one suggest me why I am not able to view the output in the IE?
    Regards.

Maybe you are looking for

  • How can I set a graphic to link to a specific detail region?

    I have a master/detail region set. Works fine. I'd like to place a graphic below the menu(master region) that would link to a certain detail region. I'm using HTML data set. Any thoughts?

  • TAB functionality in a custom screen.

    Hi,    I need to develop a screen where in it contains table controls, different push buttons and Input output fields.  One of the button is TAB. This tab button should function as a TAB functionality in the keyboard. Meaning whenever I click on this

  • Printing photos with Titles?

    Can this be done? How?

  • OS9 sleep and display questions

    I'm running Mac OS 9.2.2 on a Beige G3 All-In-One. I often conduct downloads of large files on the computer (mostly transferring old software from my iDisk), and it seems a waste that there isn't an option to easily turn off the screen. If I put the

  • Error while trying to play youtube video

    Since 3 days back whenever I try to play any video in youtube , it says " An error occurred. Please tray gain later. Learn More" . (WinXP SP3, Firefox 30.0 , Flash 14) I tried all the options given in the Lear more link. But of no use. Videos are wor