Editable Table Creation using BSP Application

hi all,
I just want to create editable table creation if i enter any datas to that table.. it should be saved in Z table..
Could anyone explain me the procedure...
Thanks in Advance
Hema

Hi,
This is more a question for the BSP forum.
Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
runtime->server->response->set_header_field( name = 'Contnet-Type'
value = 'application/vnd.ms-excel' ).
runtime->server->response->delete_header_field( name = 'Cache-Control' ).
runtime->server->response->delete_header_field( name = 'Expires' ).
runtime->server->response->delete_header_field( name = 'Pragma' ).
Also check threads like
Download BSP data into Excel
export bsp-table to excel
Export BSP Table to Excel
Eddy
PS. Reward useful answers and earn points yourself

Similar Messages

  • How to Download displayed output to Excel Using Bsp Application

    Hi Experts,
    please give me some idea because I am New In BSP.
    How to Download displayed output to Excel Using Bsp Application.
    If any sample code please do send me.
    In my condition I am getting data in  2-3 table view formats on one page and i want download that in Excel.
    please help me.
    Regards & Thanks,
    Yogesh

    Hi,
    This is more a question for the BSP forum.
    Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
    runtime->server->response->set_header_field( name = 'Contnet-Type'
    value = 'application/vnd.ms-excel' ).
    runtime->server->response->delete_header_field( name = 'Cache-Control' ).
    runtime->server->response->delete_header_field( name = 'Expires' ).
    runtime->server->response->delete_header_field( name = 'Pragma' ).
    Also check threads like
    Download BSP data into Excel
    export bsp-table to excel
    Export BSP Table to Excel
    Eddy
    PS. Reward useful answers and earn points yourself

  • Creating a New PO using BSP Application

    Hello BSP Gurus,
    Newbie in BSP and want to create a BSP application that uploads PO data using Transaction ME21N. Its like this, an BSP application displays the Header and Line item data. and then I need to create a New PO by inputting the fields in the BSP Application.
    Any suggestions would be rewarded.
    Regards
    Leo

    <b>Since you are new to BSP refer the below links to create the BSP..</b>
    https://wiki.sdn.sap.com/wiki/display/BSP/Main
    http://www.sapdevelopment.co.uk/webapps/bsp/mvc_example1.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/e5/edae3b59e17646e10000000a11402f/frameset.htm
    http://www.sapdesignguild.org/resources/htmlb_guidance/
    Look at the below links.. Some of them are step by step procedures.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/weblogs/topic/24
    http://help.sap.com/saphelp_nw04/helpdata/en/7a/b86041397211d5992200508b6b8b11/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/7a/b86041397211d5992200508b6b8b11/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/ac0b94c47c11d4ad320000e83539c3/content.htm
    https://www.sdn.sap.com/irj/sdn/weblogs
    /people/durairaj.athavanraja/blog/2005/08/21/running-your-first-bsp-application-in-sap-netweaver-04-abap-edition--nsp
    www.thespot4sap.com/Articles/SAP_WAS_BSP_Apps.asp
    www.thespot4sap.com/Articles/SAP_WAS_Overview.asp
    help.sap.com/saphelp_nw04/helpdata/ en/56/e6f3409ade8631e10000000a1550b0/content.htm
    New to BSP
    New to BSP. Where do I start from?
    New to BSP's ....Please Help me.......................
    And also recommend you to go through the BSP Weblogs in the BSP forum...highly Suggested and Helpful
    ;\ New BSP Weblogs
    <b>TO Create the PO:</b>
    Get the data from BSP & Use the BAPI:- <b>"BAPI BAPI_PO_CRE</b>ATE1 " to create the PO.
    See the link for more detail..
    BAPI_PO_CREATE1
    <i>* Reward each helpful answer</i>
    Raja T

  • Display graphics using BSP Application

    Hi,
    I want to create a BSP application that displays a graphic on screen.
    I know how to do it using a smartfrom ,but is there any other way to display a graphic from SAP.
    We have stored Signatures of some users on SAP.
    When I enter a SignID of a user ,BSP Application should display signature on Portal screen.Is it possible.Please Advice.
    Thanks in Advance.
    Venkat

    BSP applications showing standart sap screens in netweawer.
    You can use Picture control for screen and select the mime object in system and show user in container.
    there is sample. I hope so the help.
    REPID = SY-REPID.
      CREATE OBJECT PICTURE_CONTROL_1
        EXPORTING
          PARENT = DOCKING.
      CHECK SY-SUBRC = 0.
      CALL METHOD PICTURE_CONTROL_1->SET_3D_BORDER
        EXPORTING
          BORDER = 5.
      CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
        EXPORTING
          DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
      CALL METHOD PICTURE_CONTROL_1->SET_POSITION
        EXPORTING
          HEIGHT = 40
          LEFT   = 5
          TOP    = 170
          WIDTH  = 90.
      IF URL IS INITIAL.
        DATA:
         qaktar TYPE  ZW3QUERY .
        REFRESH QUERY_TABLE.
    "SELECT * FROM ZUSER  FROM MIME OBJECT.
        qaktar-NAME  = '_OBJECT_ID'.
        qaktar-VALUE = 'YOUR MIME OBJECT'.
      "  APPEND QUERY_TABLE.
        APPEND qaktar TO QUERY_TABLE.
        CALL FUNCTION 'WWW_GET_MIME_OBJECT'
          TABLES
            QUERY_STRING        = QUERY_TABLE
            HTML                = HTML_TABLE
            MIME                = PIC_DATA
          CHANGING
            RETURN_CODE         = RETURN_CODE
            CONTENT_TYPE        = CONTENT_TYPE
            CONTENT_LENGTH      = CONTENT_LENGTH
          EXCEPTIONS
            OBJECT_NOT_FOUND    = 1
            PARAMETER_NOT_FOUND = 2
            OTHERS              = 3.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            TYPE     = 'image'
            SUBTYPE  = CNDP_SAP_TAB_UNKNOWN
            SIZE     = PIC_SIZE
            LIFETIME = CNDP_LIFETIME_TRANSACTION
          TABLES
            DATA     = PIC_DATA
          CHANGING
            URL      = URL
          EXCEPTIONS
            OTHERS   = 1.
      ENDIF.
      CALL METHOD
        PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
        EXPORTING
          URL = URL.

  • How to use bsp application SYSTEM for session handling.

    Hi All,
    We are implementing OCI.We have a few BSP applications that are called by standard ITS application.I need to destroy session at server side when the browser is closed for that..
    I copied the pages session_default_frame.htm and session_single_frame.htm from bsp application SYSTEM into my application and made necessary changes.
    I need to pass one url 'HOOK_URL' (this is related to OCI) from starting page of application to final page.
    Now suppose earlier there were two pages in my application page1.htm and page2.htm , so i was able to pass the HOOK_URL from page1 to page2 but after adding the two pages from SYSTEM application , i can pass the HOOK_URL from session_single_frame.htm  to page1.htm
    Page session_single_frame.htm:
    Page attributes:
    hook_url     TYPE     STRING (AUTO)
    OnRequest:
    navigation->set_parameter( hook_url ).
    but cant pass it from page1 to page2...what additional code is required?
    page page1.htm:
    Page attributes:
    hook_url     TYPE     STRING (AUTO)
    onRequest:
    navigation->set_parameter( 'HOOK_URL' ).
    the above code was working fine until i added the two new pages to my application.
    Hope i was able to explain the issue properly.
    Thanks,
    Anubhav.

    Hi,
    Let me describe the steps i have taken oncw again:
    1)Copy page session_single_frame and session_default_frame from SYSTEM application and changed the name in
    DATA: target_page               TYPE STRING VALUE 'session_test.htm'.
    to
    DATA: target_page               TYPE STRING VALUE 'mypage1.htm'
    2)Addes a page attribute HOOK_URL of type string (AUTO) to session_single_frame.htm .
    3)Added the line
    <i n p u t  t y p e="hidden" na m e ="HOOK_URL"  v a l ue = "< % =  hook_url %>">
    to page1.htm so that hook_url is passd to page2.htm (page2.htm has a page attribute HOOK_URL of type string and auto).
    The hook_url in page2.htm looks like:
    "http://sapupd.mycompanyname.com:8002/sap(cz1TSUQlM2FBTk9OJTNhc2FwdXBkX1NSTV8wMiUzYXJUaHBOdE1VZDdhWkVTa3hYZGtPTXRxY1NBTWo3VlAwN3NWQ2c2REYtQVRU)/bc/gui/sap/its/bbpsc02/?~OkCode=ADDI&~Target=_top&~Caller=CTLG&~sap-syscmd=NOCOOKIE&~client=200&~language=EN&~HTTP_CONTENT_CHARSET=utf-8";
    The problem is that after the page is submited , a blank page comes up .
    On closing this blank page the "Endig user session" window comes.
    Please help
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Oct 21, 2008 6:49 AM

  • Problem with table creation using CTAS parallel hint

    Hi,
    We have a base table (CARDS_TAB) with 1,083,565,232 rows, and created a replica table called T_CARDS_NEW_201111. But the count in new table is 1,083,566,976 the difference is 1744 additional row. I have no idea how the new table can contain more rows compared to original table!!
    Oracle version is 11.2.0.2.0.
    Both table count were taken after table creation. Script that was used to create replica table is:
    CREATE TABLE T_CARDS_NEW_201111
    TABLESPACE T_DATA_XLARGE07
    PARTITION BY RANGE (CPS01_DATE_GENERATED)
    SUBPARTITION BY LIST (CPS01_CURRENT_STATUS)
    SUBPARTITION TEMPLATE
      (SUBPARTITION T_NULL VALUES (NULL),
       SUBPARTITION T_0 VALUES (0),
       SUBPARTITION T_1 VALUES (1),
       SUBPARTITION T_3 VALUES (3),
       SUBPARTITION T_OTHERS VALUES (DEFAULT)
      PARTITION T_200612 VALUES LESS THAN (TO_DATE(' 2007-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_200612_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 ),
      PARTITION T_200701 VALUES LESS THAN (TO_DATE(' 2007-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_200701_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 )
      PARTITION T_201211 VALUES LESS THAN (TO_DATE(' 2012-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_201211_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 ),
      PARTITION T_201212 VALUES LESS THAN (TO_DATE(' 2013-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_201212_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 )
    NOCACHE
    NOPARALLEL
    MONITORING
    ENABLE ROW MOVEMENT
    AS
    SELECT /*+ PARALLEL (T,40) */ SERIAL_NUMBER     ,
      PIN_NUMBER        ,
      CARD_TYPE         ,
      DENOMINATION      ,
      DATE_GENERATED    ,
      LOG_PHY_IND       ,
      CARD_ID           ,
      OUTLET_CODE       ,
      MSISDN            ,
      BATCH_NUMBER      ,
      DATE_SOLD         ,
      DIST_CHANNEL      ,
      DATE_CEASED       ,
      DATE_PRINTED      ,
      DATE_RECHARGE     ,
      LOGICAL_ORDER_NR  ,
      DATE_AVAILABLE    ,
      CURRENT_STATUS    ,
      ACCESS_CODE        from CARDS_TAB T
    /Also base table CARDS_TAB has a primary key on SERIAL_NUMBER column. when trying to create a primary key on new table it throws exception:
    ALTER TABLE T_CARDS_NEW_201111 ADD
      CONSTRAINT T_PK2_1
    PRIMARY KEY  (SERIAL_NUMBER) USING INDEX
    TABLESPACE T_INDEX_XLARGE07
    PARALLEL 10 NOLOGGING;
      CONSTRAINT TP_PK2_1
    ERROR at line 2:
    ORA-02437: cannot validate (T_PK2_1) - primary key violatedThanks in advance.
    With Regards,
    Farooq Abdulla

    For parallel processing the documentation suggests the use of automatic degree of parallelism (determined by the system at run time) or choosing a power of 2 value
    Look at Florian's post in yours presently neighbour post How to Delete Duplicate rows from a Table to locate the violations (seemingly due to parallel processing)
    Regards
    Etbin

  • Why set up table not used in applications like FI, HR etc

    Hi,
    We all know that we use set up tables for LO Cockpit applications.
    But we dont have for non LO applications like HR , FI...why such a difference is made by SAP...
    One of the fellow suggested that for FI, HR etc, there is huge posting of data and so we dont want to store such a duplicate data
    is this the case?
    or there is some other reason...
    please suggest the same
    Thanking You,
    Tarun Brijwani.

    Hi,
    this question has already been asked a few times. Please search the forums for the answer.
    regards
    Siggi

  • How to  upload and display image using bsp application

    hi
    I  just wants to know that
    1- how to  upload image from BSP page with attachment into sap server .?
    2-how to display image in to BSP page(webpage).
    thanks

    Hello Gupta Prashant,
    Just to upload and display an image, import image in MIME repository. Not only still images but also flash files can also be uploaded in the MIME repository. Once you import the image in it, use normal html code for image call;
    <img src = "file.jpg/gif" width=  height=>
    Besides it, if your requirement is to store the image in the database and fetch it based on specified field-name, then you have to go for BLOBs i.e Binary Large Object, using this you can also store images, videos, pdfs, applications in the database.
    MBLOB - Medium BLOBs store videos and pdfs,
    LBLOB  - Large BLOBs store movie files and applications.
    You have got 2 ways to use it; some databases store BLOB objects into themselves and some store the path of the BLOB object maintained on the FTP server.
    You can also implement it in ABAP;
    read the following link and practice the tutorial;
    [ Use of MIME Types|http://help.sap.com/saphelp_45b/helpdata/en/f1/b4a6c4df3911d18e080000e8a48612/content.htm]
    also check this
    [TYPES - LOB HANDLE|http://help.sap.com/abapdocu/en/ABAPTYPES_LOB_HANDLE.htm]
    And looking at your question, in order to upload an image, you can make use of FILEUPLOAD tag provided by HTMLB.
    Step 1: FILEUPLOAD provides a browse button to choose desired image file.
    Step 2: Store that image in database using BLOBs.
    Step 3: Retrieve the image using normal select query and display it on the screen.
    Hope it helps you,
    Zahack

  • Dynamic table creation using JDBC

    hi all, i am working in JDBC and using prepared statements.the problem i have is i need to create and read from tables,dynamically and i should also create tables with keys dynamically,i.e the user gives the table name and i should create it using JDBC.the user does not enter the full query he just types the table name.i am using oracle as backend.i have tried prepared statements to retrieve datas from tables whose names r given dynamically like
    "select * from ?"
    and then using
    setString(1,the variable which holds the table name);
    but this doesnt seem to work.it says invalid table name.how can i do this.i shd also create tables the same way like
    "create table ? ..."
    is there a way out of this problem or is there any other type of statement that i can use.please give a detailed example.thanks in advance.

    Usually when I work with Oracle DBA's they get real excited when I suggest that the application could create the tables dynamically. Because this means that there is absolutely no chance that there is a coherent implemetation of table allocation.
    Seemed like a good point to me.

  • Dynamic Table Creation using RTTS - Question on Issue

    I am using the RTTS services to dynamically create a table.  However, when I attempt to use the get_components method it does not return all the components for all tables that I am working with.
    Cases and End Results
    1) Created structure in data dictionary – get_components works.
    2) Pass PA0001, P0001 or T001P to get_components and I do not receive the correct results.  It only returns a small subset of these objects.  The components table has all the entries; however, the get_components method only returns about 4 rows.
    Can you explain this and point me to the correct logic sequence? I would like the logic to work with all tables.
    Code excerpt below:
    The logic for the get components works for case 1, but not case 2. When I pass into this method a "Z" custom table or structure name for parameter “structure_name” and the get_components() method executes and returns the correct results. However, when I pass in any of the objects listed above in case 2, the get_components method does not return the correct number of entries. When I check typ_struct which is populated right before the get_components line, I see the correct number of components in the components table. 
    method pb_add_column_headings .
      constants: c_generic_struct type c length 19 value 'ZXX_COLUMN_HEADINGS'.
      data: cnt_lines      type sytabix,
            rf_data        type ref to data,
            typ_field      type ref to cl_abap_datadescr,
            typ_struct     type ref to cl_abap_structdescr,
            typ_table      type ref to cl_abap_tabledescr.
      data: wa_col_headings type ddobjname.
      data: rf_tbl_creation_exception type ref to 
                                      cx_sy_table_creation,
            rf_struct_creation_exception type ref to
                                      cx_sy_struct_creation.
      data: t_comp_tab type
                       cl_abap_structdescr=>component_table,
            t_comp_tab_new      like t_comp_tab,
            t_comp_tab_imported like t_comp_tab.
      field-symbols: <fs_comp> like line of t_comp_tab,
                     <fs_col_headings_tbl> type any table.
    **Get components of generic structure
      wa_col_headings = c_generic_struct.
      typ_struct ?= cl_abap_typedescr=>describe_by_name(
                                       wa_col_headings ).
      T_COMP_TAB = typ_struct->get_components( ).
    **Determine how many components in imported structure.
      typ_struct ?= cl_abap_typedescr=>describe_by_name(
                                        structure_name ).
      t_comp_tab_imported = typ_struct->get_components( ).
      cnt_lines = lines( t_comp_tab_imported[] ).

    Hi Garton,
    1. GET_COMPONENT_LIST
       Use this FM.
       It gives all fieldnames.
    2. Use this code (just copy paste)
    REPORT abc.
    DATA : cmp LIKE TABLE OF rstrucinfo WITH HEADER LINE.
    DATA : pa0001 LIKE TABLE OF pa0001 WITH HEADER LINE.
    CALL FUNCTION 'GET_COMPONENT_LIST'
      EXPORTING
        program    = sy-repid
        fieldname  = 'PA0001'
      TABLES
        components = cmp.
    LOOP AT cmp.
      WRITE :/ cmp-compname.
    ENDLOOP.
    regards,
    amit m.

  • DYNAMIC TABLE CREATION USING JSP

    I WANT TO CREATE A DATABASE TABLE IN AN INTERACTIVE WAY ie MY QUESTION IS: HOW TO CREATE A TABLE USING JSP WITH TWO ARRAYS(FIRST ARRAY CONTAINS FIELD(COLUMN) NAMES AND THE SECOND ARRAY CONTAINS ITS CORRESPONDING DATATYPE)BOTH ARRAYS ARE OF VARYING SIZE.IF THE USER ENTERS SUPPOSE '6' AS THE INPUT TO FORM A TABLE OF 6 FIELDS SO, THE QUERY SHOULD BE DYNAMICALLY FORME USING THE ARRAY NAME FOR FIELD AND THE ARRANAME FOR ITS CORRESPONDING DATATYPE.HAVE ANY IDEA ON THIS PLEASE LET ME KNOW.
    THANKS

    u need to know quite a few java technologies to make archieve your dream.
    JDBC, dynamic array and JSP.
    after reading tutorial regarding to these 3 materials, you should be able to get your job done.

  • Get DATA with BSP Application

    Hello Everyone,
    I want to get data from table SFLIGHT with BSP Application.
    I have used <htmlb:tableView and tableViewColumn tags
    but i am only getting the structure displayed in the browser, not the data, pls suggest some code to achieve that.
    Thank U
    Ravi Aswani

    Example:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<?xml version="1.0" encoding="UTF-8"?>
      2  <m:report xmlns:m="http://www.bea.com/alsb/example">
      3     <m:startTime>2013-06-04T14:02:08.168+04:00</m:startTime>
      4     <m:endTime>2013-06-04T14:02:23.417+04:00</m:endTime>
      5     <m:duration>PT15.249S</m:duration>
      6     <m:queryId>dummy</m:queryId>
      7  </m:report>') as xml from dual)
      8  --
      9  -- end of test data (in XMLTYPE datatype)
    10  --
    11  select x.*
    12  from   t
    13        ,xmltable(xmlnamespaces('http://www.bea.com/alsb/example' as "m"),
    14                  '/m:report'
    15                  passing t.xml
    16                  columns startTime varchar2(30) path './m:startTime'
    17                         ,endTime   varchar2(30) path './m:endTime'
    18                         ,duration  varchar2(30) path './m:duration'
    19                         ,queryId   varchar2(30) path './m:queryId'
    20*                ) x
    SQL> /
    STARTTIME                      ENDTIME                        DURATION                       QUERYID
    2013-06-04T14:02:08.168+04:00  2013-06-04T14:02:23.417+04:00  PT15.249S                      dummyNote, this is based on XMLTYPE input (you'll have to convert your data to that type)
    As for your timestamps etc. if you require those in TIMESTAMP or DATE datatypes you can convert those in the query

  • Pdf error in bsp application

    Hi,
    I produced PDF File by using BSP Application but I have a problem when I open PDF. I have an Error.
    Adobe Reader could not open 'example.pdf' because it is either not a supported file type or because the file has been damaged.
    my code is :
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
                EXPORTING
                  text           = output
                 mimetype       = 'APPLICATION/PDF;charset=UTF-8'
               IMPORTING
                 buffer         = l_xstring
            CONCATENATE cl_abap_char_utilities=>byte_order_mark_little
            l_xstring
            INTO l_xstring IN BYTE MODE.
            app_type = 'APPLICATION/PDF;charset=UTF-8'.
            DATA: response TYPE REF TO if_http_response.
           response = runtime->server->response.
           response->delete_header_field(
           name = if_http_header_fields=>cache_control ).
           response->delete_header_field( name = if_http_header_fields=>expires ).
           response->delete_header_field( name = if_http_header_fields=>pragma ).
           response->set_header_field( name = if_http_header_fields=>content_type
                                  value = 'APPLICATION/PDF' ).
            DATA:filename TYPE string.
            CONCATENATE 'attachment; filename=' 'leavestatus_' sy-datum
                        '.pdf'
                  INTO
                  filename.
            response->set_header_field( name = 'content-disposition'
                            value = filename ).
            DATA: l_len TYPE i.
            l_len = STRLEN( output ).
            response->set_cdata( data = output  length = l_len ).
            navigation->response_complete( ).
            CALL METHOD cl_bsp_utility=>download
              EXPORTING
                object_s            = l_xstring
                content_type        = app_type
                content_disposition = 'attachment;filename=example.pdf'
                response            = response
                navigation          = navigation.
    Thanks for your help.

    Hi,
    Check out this blog
    /people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
    plz search the forum before posting a thread....this issue is discussed before
    Regards,
    Anubhav

  • BSP application in BPS

    Hi All,
    I have a web interface created in BW-BPS to upload a flat file from the portal using BSP application.
    __Structure:__
    Cost Center Plan Upload
    Company Code
    Currency
    Version
    Year
    File Name
    Here cost center, company code, currency, version and year are variables (defined in planning level) and File name is to select the text file to be uploaded.
    Issue --> when I run the web interface through Tcode BPS_WIF0 it is not showing the path under File Name to select the file.
    But It is giving upload feature when I run  BSP application in SE80 through execute button.
    Note: It is working fine in Quality and Production systems but not in Dev.
    Any guidance on this issue would be really appreciated.
    Thanks & Regards,
    Ganesh.

    Hi Ganesh,
    Please double check your FQDN (Fully Qualified Domain name), because this will enable you to run the web interface properly.
    More over, please have a look at the following procedure/link to crosscheck the procedure and for your reference.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/708fc3f8-a61d-2a10-fb82-b7c237ae16ba?quicklink=index&overridelayout=true
    Thanks,
    Irfan.
    Momentive Group.

  • Access deinied error in browser while accessing bsp application in Portal

    Hi All,
    I'm integrating SRM in to Enterprise portal using SRM business package,in which i access CCM iviews which were buit using BSP  Application. EP in one host, and BSP Application resides in another host, so there are 2 different hosts. I define full hostname to both host, example, EPhost.domain.com and BSPhost.domain.com.  The iView can be displayed in Portal. However, when I click one of the button or drop down in that iview displayed on the iView's toolbar (e.g. buttons are New, Goto), it gives me "Access is denied".
    Any idea to fix this?
    Regards,
    Vinoth.M
    <b></b>

    Look at below thread, same issue discussed:
    Re: BSP Iview error message : Access denied
    Raja T

Maybe you are looking for

  • Specifically, how do i uninstall Firefox 4? (I want to go back to 3.6.16 ASAP)

    I love change, and I love Firefox. That said, I simply cannot stand Firefox 4. I HATE it. It has robbed me of all kinds of flexibility and customization and until that changes, I have absolutely NO INTENTION of using Firefox 4 on any of my Macs. Bott

  • Bridge CS5 won't launch

    I just installed Master Collection CS5. All software runs OK,  except Bridge. It just quits without starting with usual win7's "Adobe  Bridge CS5 has stopped working". Windows 7 64bit.

  • I need help in understanding the customization of Landscape in R/3.

    I need help in understanding the customization of Landscape in R/3. Setup of SAP Landscape from an SAP SD point of view. Being as SAP SD consultant what would be my role in customizing the Landscape server. Help needed. Thx

  • IDOC no. for outbound JIT calls

    Hi, I need to extract idoc number for all outbound jit calls that I  can view in Outbound JIT call monitor.Can anyone please tell me that which table is used to store the generated idoc no. for a particular call/component group in a call. Thanks, Gau

  • How to re-install Photoshop CS4 demo?

    I am interested in upgrading from CS3 extended, so I downloaded the demo of CS4. Yesterday I succeeded to install, worked OK, but because I had some video driver problems, not related to Photoshop, I had to roll back my system to several days ago (re