Getting output format

I would like to get the output format (HTML, PDF, HTML etc.) that the user requested the report to be in on submission time.
I'm using XML Publish 6.5.3 in EBS 11.5.10CU2.
I have a report which contains a lot of columns. This is okay as long as the user chooses to get the output in XLS, TEXT or HTML but when the user chooses RTF or PDF it looks like sh.. parden my french.
I want to be able to do different formatting based on the output format that the user chooses when submitting the report from the concurrent manager inside EBS. Can this be achieved by using predefined context variables? I know that I can get the information by quering on the request in my report triggers, but it would be nice if there was some standard variable that I could use.
Thank you in advance.

Hi ,
I think if you are looking for integrating Excel to XI, then I will suggest to not consider the my above post.
I am sorry for the confusion. I am interpreted it as xml .....
Please refer below post for Excel to XI
Read Excel instead of XML through FileAdapter
SAP Network Blog: eMail Report as Attachment (Excel/Word)
SAP Network Blog: XI: Generating Excel files without the Java nor the Conversion agent not possible?
SAP Network Blog: How to send any data (even binary) through XI, without using the Integration Repository

Similar Messages

  • How to get this output format in ALV report

    Can any one pls let me know how to get the following output format in ALV report.Following are the outputfields
    companycode   location     position     approver
    300    800       01    watson
    null   null        03     candy
    null   null        04     smith
    null   null        05     michael
    one empty line after this again
    300     800     01     ryant
    null      null    02     gyan
    null      null    03     fermi
    null      null    04     ogata
    *Note: Null     indicates  empty space .( i.e I need to get empty space in  output where ever null is there.)
            Thanks in advance.
    Kind Regards,

    u can use 'REUSE_ALV_LIST_DISPLAY'
    'REUSE_ALV_GRID_DISPLAY'  function modules.
    *& Report  Y101982CHD
    *                         TABLES
    TABLES: vbak.    " standard table
    *                           Type Pools                                 *
    TYPE-POOLS: slis.
    *                     Global Structure Definitions                     *
    *-- Structure to hold data from table CE1MCK2
    TYPES: BEGIN OF tp_itab1,
           vbeln LIKE vbap-vbeln,
           posnr LIKE vbap-posnr,
           werks LIKE vbap-werks,
           lgort LIKE vbap-lgort,
           END OF tp_itab1.
    *-- Data Declaration
    DATA: t_itab1 TYPE TABLE OF tp_itab1.
    DATA : i_fieldcat TYPE slis_t_fieldcat_alv.
    *                    Selection  Screen                                 *
    *--Sales document-block
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.
    *--Display option - block
                alv_grid RADIOBUTTON GROUP g1.
    *file download - block
                p_file TYPE rlgrap-filename.
    *                      Initialization.                                *
    *                      At Selection Screen                            *
          dynpfield_filename = 'P_FILE'
          dyname             = sy-cprog
          dynumb             = sy-dynnr
          filetype           = 'P'      "P-->Physical
          location           = 'P'     "P Presentation Srever
          server             = space.
      PERFORM vbeln_validate.
    *                           Start Of Selection                         *
    *-- Fetching all the required data into the internal table
      PERFORM select_data.
    *                           End Of Selection                           *
      IF t_itab1[] IS NOT INITIAL.
        IF topc IS NOT INITIAL.
          PERFORM download.
          MESSAGE 'Data Download Completed' TYPE 'S'.
        PERFORM display.
        MESSAGE 'No Records Found' TYPE 'I'.
    *                           Top Of Page Event                          *
    *& Form           :      select_data
    * Description     : Fetching all the data into the internal tables
    *  parameters    :  none
    FORM select_data .
      SELECT vbeln
         FROM vbap
         WHERE  vbeln IN s_vbeln.
      IF sy-subrc <> 0.
        MESSAGE 'Enter The Valid Sales Document Number'(t04) TYPE 'I'.
    ENDFORM.                    " select_data
    *& Form        : display
    *  decription  : to display data in given format
    * parameters   :  none
    FORM display .
      IF alv_list = 'X'.
        PERFORM build_fieldcat TABLES i_fieldcat[]
                               USING :
    *-Output-field Table      Len  Ref fld Ref tab Heading    Col_pos
       'VBELN'       'T_ITAB1'     10   'VBAP'  'VBELN'    ''            1,
       'POSNR'       'T_ITAB1'     6    'VBAP'  'POSNR'    ''            2,
       'WERKS'       'T_ITAB1'     4    'VBAP'  'WERKS'    ''            3,
       'LGORT'       'T_ITAB1'     4    'VBAP'  'LGORT'    ''            4.
            *i_callback_program       = sy-repid*
    **        i_callback_pf_status_set = c_pf_status*
            *i_callback_user_command  = 'USER_COMMAND '*
    **        it_events                = t_alv_events[]*
            *it_fieldcat              = i_fieldcat[]*
            *t_outtab                 = t_itab1[]*
            *program_error            = 1*
            *OTHERS                   = 2.*
        *IF sy-subrc <> 0.*
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
      IF alv_grid = 'X'.
        PERFORM build_fieldcat TABLES i_fieldcat[]
                                 USING :
    *-Output-field Table      Len  Ref fld Ref tab Heading    Col_pos
         'VBELN'       'T_ITAB1'     10   'VBAP'  'VBELN'    ''            1,
         'POSNR'       'T_ITAB1'     6    'VBAP'  'POSNR'    ''            2,
         'WERKS'       'T_ITAB1'     4    'VBAP'  'WERKS'    ''            3,
         'LGORT'       'T_ITAB1'     4    'VBAP'  'LGORT'    ''            4.
            *i_callback_program       = sy-repid*
    **        i_callback_pf_status_set = c_pf_status*
            *i_callback_user_command  = 'USER_COMMAND '*
            *it_fieldcat              = i_fieldcat*
            *t_outtab                 = t_itab1[]*
       *program_error                     = 1*
       *OTHERS                            = 2.*
        *IF sy-subrc <> 0.*
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
    ENDFORM.                    " display
    *& Form        : vbeln_validate
    *  description : to validate sales document number
    * parameters   :  none
    FORM vbeln_validate .
      DATA: l_vbeln TYPE vbak-vbeln.
      SELECT SINGLE vbeln
        FROM vbak
        INTO l_vbeln
        WHERE vbeln IN s_vbeln.
      IF sy-subrc NE 0.
    ENDFORM.                    " vbeln_validate
    *& Form       :build_fieldcat
    * Description : This routine fills field-catalogue
    *  Prameters  : none
    FORM build_fieldcat TABLES  fpt_fieldcat TYPE slis_t_fieldcat_alv
                        USING   fp_field     TYPE slis_fieldname
                                fp_table     TYPE slis_tabname
                                fp_length    TYPE dd03p-outputlen
                                fp_ref_tab   TYPE dd03p-tabname
                                fp_ref_fld   TYPE dd03p-fieldname
                                fp_seltext   TYPE dd03p-scrtext_l
                                fp_col_pos   TYPE sy-cucol.
    *-- Local data declaration
      DATA:   wl_fieldcat TYPE slis_fieldcat_alv.
    *-- Clear WorkArea
      wl_fieldcat-fieldname       = fp_field.
      wl_fieldcat-tabname         = fp_table.
      wl_fieldcat-outputlen       = fp_length.
      wl_fieldcat-ref_tabname     = fp_ref_tab.
      wl_fieldcat-ref_fieldname   = fp_ref_fld.
      wl_fieldcat-seltext_l       = fp_seltext.
      wl_fieldcat-col_pos         = fp_col_pos.
    *-- Update Field Catalog Table
      APPEND wl_fieldcat  TO  fpt_fieldcat.
    ENDFORM.                    "build_fieldcat
    *& Form        : download
    *  description : To Download The Data
    *  Parameters  :  none
    FORM download .
      DATA: l_file TYPE string.
      l_file = p_file.
          filename                = l_file
          filetype                = 'ASC'
          data_tab                = t_itab1
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6.
      IF sy-subrc <> 0.
    ENDFORM.                    " download

  • How to get multiple output formats for each execution of the report?

    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

  • How to get the output format options of SAP QUERY

    Hi Gurus,
    I want to get the output options available for sapquery program.means when you execute the program "AQZZ/SAPQUERY/FDF1============" you will get output options like sap alv,display as table,wordprocessing  etc.
    i am not able to unsderstand the logic in that standard requirement is after fetching the data from the database i want to provide the ouput options SAP ALV,DISPLAY AS TABLE,WORD PROCESSING,SPREAD SHEET,FILESTORE.
    I can output the data in SAP ALV and i can store the data.But i am not able to use the the remaining options in my program.please provide me solution.
    I am very much thankful to the people who can provide me the solution.

    If you have a query then go to transaction 'SQ01' . Then press the change button . Then u will able to see the Output Options.Their u can select the option what ever u want.

  • Problem with Excel output format

    Hi Guys,
    I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
    Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
    Example Numeric fields --> Right Aligned, text fields --> Left Aligned
    One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
    Our client want excel output on priority.
    Is there any limitation for excel output format of reports?
    It is very urgent for us please help.
    Any help would be highly appreciated.
    Edited by: user11237443 on Aug 27, 2009 1:22 AM

    Hi Mahi,
    Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
    I have read that blog for excel limitations but i have more question?
    1) What about the negative values?
    if any field is displaying negative amount then excel not displaying right value for that:(
    2)How can we align header or data?
    Do XMLP with EBS provide any solution for formatting in excel?
    3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
    Here are so many formatting issues do we need to write any code in xml for that?
    Please help.
    Many Thanks,

  • Changing Oracle Report Output Format at runtime

    Dear All,
    I've custom Oracle Report in Oracle Apps., and would like to give the users an option to select the output format (XML, TEXT, PDF, etc.) whilst submitting the request.
    As a SYSADMIN, we can modify the Output Format value of the concurrent program(Oracle Report in this case) to one we like.
    But I would like the user to select this output format option at runtime, rather then hard coding at SYSADMIN level. For that I've to create a Value Set with the desired report output format options, and attach this to the concurrent program.
    My question is, how we can make the desired output format to work at runtime?
    If any one can help?

    Hi Steve,
    I couldn't get it...???
    I'm running an Oracle Report in Oracle Apps. release 11.5.9
    The default output format of this report is TEXT, which is defined in its concurrent program.
    This report is submitted using standard request submission screen, and after successful completion we can view the output by pressing "View Output" button on "Requests" screen. This will open an another window and we can view the output page by page. Using "Tools>Copy File..." menu option, we can view the same output in IE window.
    Now, how does your resolution fits here and how can I view the same report in XML format?
    Many Thanks,

  • Want text input containing HTML tags to appear as HTML in output format

    We have a table in Oracle database that has a column named detail,one of its values is like this: <bold><italics>Good Morning</italics></bold>. What our client wants is that the output format should show: <b><i>Good Morning</b></i>. That is,Bi Publisher should be able to parse the HTML tags and provide the desired output. Please tell me how to achieve this. Any help is much appreciated.
    Thanks and regards,
    [email protected]

    have a look here ( to get an idea.

  • Tutorials in SWF output format prompted "Do you trust this content to connect to the Internet?" when opening another SWF file

    Please help.
    I have a tutorial with in the output format of SWF and HTM. I have click boxes that On Success will open another tutorial (SWF file). When I click on the click box, I get prompted “Do you trust this content to connect to the Internet?” by the Adobe Flash Player. I can click “Yes” and continue, however I don’t want the user to get prompted for every click box with this action (there is one for every tutorial and navigation buttons to each tutorial). I also think that SCORM can't handle the prompt, because when I run the tutorial from the LMS the click boxes do not work at all.
    I have tried selecting “Always allow” in the Global Security Settings panel as per the instruction on this website: l.
    Any ideas?

    I wanted to add on a question to this posting.... I believe Rod's instructions must be followed on a per-PC basis, correct? Is there any way to disable this globally when/after I publish the files rather than telling 1000 users across the globe that they have to change their security settings? I don't think so from the article (very thorough) but just hoping there's something I can do?!
    Thank you!

  • Problem getting output in Excel

    I'm having problems with getting output in excel.
    I generated report that gives me xml and it was ok.
    Then I started concurrent to merge template and this xml and chosed Excel as output.
    When I try to open it in IE all I'm getting is
    End tag 'p' does not match the start tag 'a'. Error processing resource '
    <td class="c2"><p class="c8"><a name="Text35" id="Text35"><a name="Text34" id="Text34"><span cla...
    When I try to view output from Firefox(it's more forgiving for incorrect xml then IE) it opened the whole document as a text (no xml, no excel but text - I saw that on a page info).
    Anyway I realized that indeed generated xml wasn't correct since one <a tag wasn't closed.
    But I tried to copy/paste to text editor and save as .xls file and it opened it OK.
    But this certainly isn't the solution you would wan't to offer to a client.
    On this instance XML is 5.0.
    I tried bunch of things to make it open directly in Excel (I believe that then it wouldn't have any problems - ie when I used preview on defining template it offered me to open or save in Excel and I got what I wanted).
    I tried to define Viewer Options (added applications/ for XML, HTML, Text Desc: Microsoft Excel), set the profile Viewer:Application for HTML/XML/Text to Microsoft Excel). But that didn't help either.
    I even tried defining new Profile -> Viewer:Application for Excel based on similar Profiles. But this also didn't help.
    Every time the result is the same both in IE(stops because of bad xml) and Firefox (I get bad xml recognized as text).
    On another instance I have xmlp v 5.6.2
    There I have some sample report and sample template.
    When I there try to open output in Firefox once again I get xml recognized as text.
    When I try to open in IE(7.0) I get a page that looks like html in browser.On the Page file menu I have option to edit in Excel. When I choose that it opens Excel but instead of this same page I only get: Authentication failed.
    When I try to save this page it offers me only web formats (whole web page...). But nevertheless I tell it to save like test.xls. It saves ok. But when I try to open it. Excel starts but again all I get is: Authentication failed.
    When I open this in text editor it has only:
    From: <Saved by Windows Internet Explorer 7>
    Date: Thu, 30 Aug 2007 14:28:37 +0200
    MIME-Version: 1.0
    Content-Type: text/html;
    Content-Transfer-Encoding: 7bit
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
    <META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
    <BODY><PRE>Authentication failed.
    I really don't have any more ideas.
    I've searched this forum, metalink, web, but nothing yet helped.
    Can anyone help?

    Is your xml file being generated correctly?
    For the request that you submitted, click the 'View Details' button. If the 'View XML' button is enabled, click that and it will open your XML in a new browser.
    If it's not enabled, the request needs to be changed so its output is XML.
    Not sure if this will help, but at least it will eliminate that there is anything wrong with the file or data.

  • Problem with output format

    Hi ,
    Whle submitting AP prepayment balance report able to get the output in XML format.
    But, if for the same report when the output format is changed to PDF or Text not able to get the report.
    Anybody pls suggest any changes to be done in setup to resolve the problem.
    Thank you in advance.

    Are there any errors recorded in the log file of the concurrent request ?

  • APEX BIP report query output format - not able to set with a variable

    I have a Named Columns (RTF) report that is working great, but I can't control the output format with a variable. I can set the "Output Format" in the Report Query Attributes, but it doesn't work when I set the report output format to "Derive from item". No matter what the item contains, I always get PDF output. I can see the variable in my session, but it doesn't control the output format. I have tried using the values "xml", "XML", "rtf", and "RTF".
    Any help would be appreciated...

    My guess is that an exception is being thrown for some rows. Since you've stubbed out your catch phrase to do nothing you're not going to have any visibility into what exception was thrown. You need to put some kind of logging in the catch phrase to see
    what is happening.

  • Is any difference in the CDR output format of CUCM version 6.1.5 and 7.1.5?

    Customer has a CUCM 6.1.5 cluster which is getting upgraded to 7.1.5. currently the CUCM CDR is sent to a external system (performix) which generates required reports. I would like to know if there is any difference in the CDR output format of CUCM version 6.1.5 and 7.1.5/ its vital to confirm this prior to upgrade as the performix is managed by a different vendor.
    Please advise !

    You can review the CDR documentation here to find that out, most likely there might be some changes
    Maintain and Operate Guides
    CDR admin guides have the field definitions.
    If this helps, please rate

  • Error in REST Web Service with Output Format as Text

    Hi All,
    I am referencing a REST web service, and can successfully connect to it and retrieve results with the Output Format set to XML.
    I don't need the individual node values, I just want to capture the entire XML as a string, and populate a table column with it.
    When I create a new Rest web service reference, with Output Format set to Text, and then create a form/report to run it, I get the following error when I click 'Submit':
    ORA-06550: line 1, column 63: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( - + case mod new not null others avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
         Error      Error sending request.
    There are control characters in the XML, but surely this is handled by Apex, so I'm not sure what the problem is here.
    Any ideas most welcome.

    Application Express expects text response to actually be text response, delimited by other characters denoting a new value, and a new record set. You should leave the response as XML. The XML document will be stored in the xmltype01 column of the collection you specify. You can then convert that xmltype01 column to a clob if you like using .toClobVal().

  • Output formats

    Re: Elements Premier 10 in UK (PAL)
    I have just 'imported' a video clip from my Sony DV camcorder via the firewire port.
    It uses tape but is digital (I think) it save the file to disc in AVI format. This is good I know AVI.
    After I have edited the clip and save (share) it to computer I have various options to save it as. See below;
    I have saved the same clip in a variety of formats to compare them.
    The 'm2t' and 'Pal DVD' formats also create an additional file .xmpses
    However the m2t file plays after I have moved this 'extra' file to a different directory
    hdtv 720p 25 high quality.mpg
    hd720p 25.mpg
    hdtv 1080i 25 high quality.mpg
    hdtv 1080p 25 high quality.mpg
    mpeg2 1440x1080i 25.m2t
    mpeg2 1920x1080i 25.m2t
    pal dvd standard.mpg
    pal dvd widwscreen.mpg
    The physical image sizes as displayed on the laptop screen are different. some take up 1/4 of the screen and some 1/2 of the screen.
    They all expand to full screen. I am not sure if I can any difference in quality thought.
    Obviously the file sizes varies a lot.
    I don't seam to be able to output in avi format!!!!!!
    I intend to leave the files on my NAS drive to stream to my tv via a streaming box I will purchase soon, I am currently using a ps3, but may at some point in the future burn some clips to disc for friends and family
    I may also watch them on the computer screen.
    I appreciate the quality can never get better than the original but what output format should I use and is this extra file needed?

    Some reading...
    Importing Video
    Saving & Sharing
    Sharing for Computer
    Steve's Basic Training Tutorials... steps are the same for several versions
    Another help site or
    User Guide PDF
    Right click PDF link in the upper right corner and select to save to your hard drive
    -the page also has links to help pages for previous versions

  • Output format in html

    In Classical Report , i'm getting the correct output format. While spooling in sm37, the report  sent through mail in html format. In html format ,the output alignment is coming wrong. Plz hrlp to resovle this.


Maybe you are looking for

  • Plant/Site deifinition in SAP retail

    Dear SAP experts, I am facing a problem on the plant/site deifinitiion on the SAP retail side.The standard 4.6 c settings for plant look different then the ERP 6.0. I would appreciate if I could get some detailed information on th stup for organisati

  • Downloading information from a filled from into excel

    I have created a form using Adobe LiveCycle. I have added an e-mail submit button. The form looks great; however, when I test submitting  the file, I get a .xml document. When I try to get the results into a single excel file using the "merge data fi

  • Macbook sleeps when turned on

    I was using my MacBook today just checking out some websites and stuff when all of a sudden my computer went to sleep. I clicked using both the trackpad and a mouse that I like to use with it in an attempt to wake it up. I pushed some keys on the key

  • Game Levels in iPhone App

    I am working small card board game, in which I have three levels. I have finished completing level. I need to move to next level. I have a Main View.m, in which I have written code in all touches methods. I am little bit lost in setting levels and ga

  • Table name for authorization relevant InfoObjects

    Hi Gurus, In which table I could see all Authorization relevant InfoObjetcs ? Thanks Liza