WAD export web table to BSP application

Hi all,
I need to extract value from a wad table and after insert them to a table in a bsp page. I've first create a table on a wad page ,i've apply a check box filter then the problem for sent filtered date to a bsp page.
it's possible? may i do that? please show me the best way.
thanks.

Hi Matthias, i think that the only solution is using a parallel structure with all character type colums.  Also use 'SAP_CONVERT_TO_CSV_FORMAT' to convert the internal table to csv format in order to be readable by ms excel.
Regards,
Andrez

Similar Messages

  • Download internal table from BSP application to C:\ drive of the user

    Hi,
    How do we download a internal table data from a BSP application to the C:\ drive of the user. Have tried GUI Download, but it doesn't work. Also don't want a pop up to appear while this is happening. The code has to there in 'OnInputProcessing' event.
    Regards,
    Jaison

    Hi Raja,
    I went through few of the blogs and wrote the below code for downloading data. My requirement is that in the InputProcessing event i need to write a subset of data to the users C:\ drive. But even after doing the below change i'm unable to get the requirement done. Can you please tell me as to what i'm missing. I'm new to BSP development and help would be highly appreciated.
    if not it_messages1[] is initial.
      clear wa_messages1.
      loop at it_messages1 into wa_messages1.
       clear temp_string.
       concatenate wa_messages1-PROJECT wa_messages1-FILENAME.......
       into temp_string separated by CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
       concatenate main_string temp_string into main_string separated by
       CL_ABAP_CHAR_UTILITIES=>CR_LF.
      endloop.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
      EXPORTING
        TEXT                 = main_string
        MIMETYPE        = 'APPLICATION/MSEXCEL;charset=utf-16le'
      ENCODING       =
    IMPORTING
       BUFFER         =  xmain_string.
    EXCEPTIONS
      FAILED         = 1
      OTHERS         = 2
    CALL METHOD cl_bsp_utility=>download
    EXPORTING
        object_s = xmain_string
        content_type = 'APPLICATION/MSEXCEL;charset=utf-16le'
        content_disposition = 'attachment;filename=test.xls'
        response = mresponse
        navigation = navigation.
    Edited by: Jaison Yohannan on Jun 3, 2009 2:16 PM

  • Calling web query from BSP application: Session handling

    I would like to call a BI 7.0 web query from a BSP application.
    Therefore, I generate a link like http://<server>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=CR_M_0001_SALESFORECAST_0&VARIABLE_SCREEN=X
    Now, I have the problem that I have to log in again.
    The BSP application is embedded in the portal. SingleSignOn works for the BSP application, but not for the following link to the query.
    Anybody know how to execute the query w/o login again?

    i guess this is more related to ITS.
    which ITS are you using?
    integrated or standalone.
    i checked in both (using standard webgui service) i dont see any problem using /n or /<transaction>
    Regards
    Raja

  • Script error in IC web client ( CRM_UI_FRAME bsp application)

    When I launch CRM_UI_FRAME bsp application, the following errors occur:
    'SAM_SessionQueueSender' is not defined
    'SAM_SessionQueueReceiver' is not defined
    'nty_is_active' is not defined
    And navigation bar cannot appear.
    I suppose the RFC connection between ECC and CRM is ok,because i can download referrence customer from ECC to CRM successfully.
    Can you give me some idea to fix this problem?
    Thank you in advance.

    I find out SAM error relate to SAP ABAP Messaging service, but problem still occur.
    An error occurred during initialization of the application
    An exception occurred during the internal HTTP communicationException Class CX_BSP_WD_HTTP_RESPONSE_ERROR
    Text: HTTP answer has status 404
    Additional Info: Not Found
    Program: CL_BSP_WD_STREAM_LOADER=======CP
    Include: CL_BSP_WD_STREAM_LOADER=======CM002
    Source Text Row: 61
    I also check role in SU01, role SAP_CRM_UIU_IC_AGENT was assigned.

  • Insert a  BSP Application in  Web Application designer template (WAD)

    Hello to all
    I like to place a BSP Application in my Web Application designer template (WAD). Have someone a good idea how to display a BSP in a web item.
    We use BW 7.0 .
    Thanks a lot for any good idea.
    Christian
    Edited by: Christian Baumann on Nov 10, 2010 3:46 PM

    Christian,
    There are many ways you can do this ...
    1. In Portal - you can have two iviews for the same and run both of them together ( there was something called client side eventing or something like that before - I am not sure if it still exists
    2. In WAD - use frames - use one frame for the WAD template and the other for the BSP ( I have never tried it in WAD 7.0 but it works in 3.x where you can introduce frames
    3. Possibly have the BSP as a link in the template so that it opens up separately ..?
    4. Instead of embedding the BSP into your WAD - embed your WAD into the BSP ..? this is also possible since the output of the template is HTML - but then you will have a hard time getting the context menu , export to excel etc which are all taken for granted in WAD.

  • WAD template with BSP Application - how to read selection screen values

    Hello,
    I've created Web template with Web Application Designer (WAD).
    I would like to extend  that page with BSP Application...
    Purpuse of this application is to read some information from tables
    on BW transaction server and display them within Web page.
    Question: How to read selection screen values from a Web template ?
    Thanks for any help,
    Pawel Borowiec

    Hi,
    The selection screen parameters will be on an inputField, so try and get the is of the inputfield generated by doing View source...
    And once you get the inputfield Id, you can read the value in the InputField(InF) by
    using the following code...!
    data : if_value type ref to cl_htmlb_inputfield.
    data : variable type string.
    if_value ?= cl_htmlb_manager=>get_data( request = request
                                                name    = 'inputField'
                                                id      = 'InF_ID_here'
           if if_value->value is not initial.
             variable  = if_value->value.
           endif.
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • Internal table content not retained in statefull BSP application.

    Hi Forum,
    I have a statefull BSP application with two pages.I fill an internal table ITAB in the OnInputProcessing eventhandler of first page and then transfer this ITAB to second page , but when i navigate back from second page to first page , the internal table ITAB is cleared.I need the data in ITAB when i come back to first page.
    The internal tables that i fill in the OnCreate eventhandler of the first page are intact but this  ITAB that  i fill in OnInputProcessing is cleared.
    I tried using
    runtime->keep_context = 1.
    but it is not helping either...and i have checked the code carefully to ensure that ITAB is not cleared anywhere using CLEAR ITAB.
    ITAB is declared in PAGE ATTRIBUTES using a tabletype.
    What might be the problem?
    Thanks,
    Anubhav.

    Hi Heth,
    I carried out a small test application as follwos:
    1)Filled an internal table ITAB_ZSCMG in OnCreate event of first page.
    2)Filled an internal table ITAB_MATERIALS in OnInputProcessing for the OnClick of button event.
    When my application was stateless the internal table ITAB_ZSCMG was initial in the OnInputProcessing event .
    When i switched to STATEFULL mode , it contained data in the OnInputProcessing .
    3)Crearted one more page SECOND.HTM.
    4)in the OnClick event for button in OnInputProcessing eventhandler i navigated back to FIRST.HTM .
    Found that all the internal tables were initial , although my page was statefull.
    All these ITABs were declared using Page Attributes.
    So i guess , a statefull application just means that DATA is retained between different eventhandlers of the SAME PAGE and not if we navigate from that page....
    Hence in my case i have to transfer the ITAB back to first page again using SERVER SIDE COOKIES..
    Please correct me if my derivations are wrong!!!
    But the question still remains....
    How to retain data after navigation?
    Do we have a solution in BSP or we need to use SET/GET or EXPORT/IMPORT or COOKIES?
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Jun 19, 2008 9:04 AM

  • Create a table view in my BSP Application!.

    Hi All,
    I am using CRM version 4.0 here i want to crate a new table view in my own BSP Application and want to display in the CRM_IC Application.
    The problem now i am facing is.. there is now provision to create the table view via the wizard. I tried to copy the BSP code, changed the code accordingly also i changed the inheritance for the context node class from
    CL_BSP_WD_CONTEXT_NODE to CL_BSP_WD_CONTEXT_NODE_TV.
    i also copied the iterator attribute.
    still the view is coming with an error saying that page have some problem.
    can anyone suggest any easy method to create the table view!.
    or else can you tell me what i have to do further!.
    Thanks n regards,
    sudeep v d.

    Hi,
    The problem is not only at the .htm page!. I think some changes are required at the context node level. for
    here is the BSP code I m using for displaying the table view..
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="CRM_BSP_IC" prefix="crmic" %>
    <crmic:tray2 id     = "MoreFields"
                 title  = "<%= otr(crm_ic_appl/BuPaAccount) %>"
                 height = "100%,603"
                 width  = "100%" >
      <crmic:trayBody2>
        <crmic:gridLayout cellSpacing    = "1"
                          columnSize     = "1"
                          rowSize        = "10"
                          height         = "100%"
                          width          = "100%"
                          widthPredefine = "TRUE">
        <crmic:gridLayoutCell columnIndex = "1" rowIndex    = "4" >
            <crmic:tableView design          = "STANDARD"
                             width           = "100%"
                             id              = "Address"
                             table           = "//Address/Table"
                             visibleFirstRow = "3"
                             visibleRowCount = "4"
                             selectionMode   = "LINEEDIT"
                             onRowSelection  = "select"
                             fillUpEmptyRows = "TRUE"
                             headerVisible   = "FALSE"
                                           >
              <crmic:tableViewCols>
                <crmic:tableViewColumn columnName = "STREET"
                                       title      = "<%= otr(CRM_IC_APPL/BuPaStreet_t) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "POSTL_COD1"
                                       title      = "<%= otr(CRM_IC_APPL/BUPAPOSTCODE_T) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "CITY"
                                       title      = "<%= otr(CRM_IC_APPL/BUPACITY_T) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "REGION"
                                       title      = "<%= otr(CRM_IC_APPL/REGION) %>"
                                       edit       = "TRUE" />
                <crmic:tableViewColumn columnName = "REGIONNAME"
                                    title      = " "
                                       edit       = "FALSE" />
              </crmic:tableViewCols>
            </crmic:tableView>
        </crmic:gridLayoutCell>
       </crmic:gridLayout>
      </crmic:trayBody2>
    </crmic:tray2>
    In the above code i have given
    table    = "//Address/Table"
    here the 'Address' is defined as a page attribute type ref to the context node class ( CL_CRM_IC_BUPAMOREADDRESS_CN01 ).
    the same class is used in the CRM_IC application works fine!.
    also i entered the attribute entry for the 'Address' in the _CTXT class the view.
    still the same error 'page  cannot be displayed'.
    what could be the problem anyone plaese help!.
    Thanks n regards,
    sudeep v d.

  • A BSP application involving multiple table

    Hi.. I am in learning process of BSP .
    I have a requirement as below . I am getting confused as to which part of coding I write in layout and in even handler.
    Each time the loop runs I need to get the corresponding itab-feild records which are there in  *itab_final * 
    This is the sample code in abap editor.
    Loop at itab .
    Loop at  itab1.
             Read itab2 with key feild1 = itab1-field1.
                If sy-ubrc <> 0.
           move  table1-field1 to itab_final.
           append itab_final.
                endif.
    Endloop.
    Write : Records for tab1-fld.
             Loop at itab_final.
                  write : / itab_final-field1.
             Endloop.
    Endloop.
    Can plz some one suggest me how do i go about this requirement to implement in a BSP application.

    Hi Sravan,
    Till now I worked on small BSP application where in there is a single select query using which all record go in to a single internal table(which is genrally  written in event handler)  which can be displayed writing code in layout tab.
    Now my requirement is that I have a internal table itab  and for every single record of itab I have few records which are appended to itab2. I need to display  the records in itab2 for each loop pass of itab.

  • Call a ABAP Web-Dynpro-application via a BSP-Application

    We have a BSP-Framework, that call several applications among other things other BSP-Applications, ITS-Application and other systems. Now I want to integrate a ABAP Web Dynpro-Application.
    For the moment I can call the ABAP Web Dynpro-Application from our application.
    This application runs in the same session as the Framework (verify in transaction sm04).
    When I want to call another application in the Framework, the session will be killed (no more sessions in sm04). This happens also, when I want to call the ABAP Web Dynpro-Application a second time.
    I guess, that the ABAP-Framework thinks I want to go outside the system (for example www.google.de) and close the session. I found out, that this wouldn't happen, if the application were suspended. But I found no way to tell the application via a url-parameter to suspend.
    Can someone help me?

    Thx for the tip,
    but I can't firea suspend plug. Because I'm in BSP. I understand the docu so, that you have the option to call a other apllication like BSP from a ABAP Web Dynpro.
    I want to call the ABAP Web Dynpro form BSP like this way.
    1. Start BSP-Framework
    2. Call ABAP Web-Dynpro-Application from BSP
    3. Call another Application from BSP without automatically logout by unload ABAP Web Dynpro. (I have a chance to call the ABAP Web Dynpro again via url to suspend before I call the other app.)
    Regards Stefanie

  • How to put bsp application mime object path in WAD 7.0?

    hi all.
    I'm already know 'bwmimerep:///sap/bw/mime/Customer' will be changed to /sap/bw/customer/  mime repository path when it's published in WAD7.0.
    but is there any way get mime path custom BSP Application?
    for example If I made test.jpg in 'ZBW' bsp application
    I should use full url   'http://domain:8000/sap/bc/bsp/sap/zbw/test.jpg'  instead of relative url '/sap/bc/bsp/sap/zbw/test.jpg' if I include url in WAD7.0
    is there any idea put relative url in WAD 7.0 certianly I don't want include full url because develop and product server domain is different.
    thanks.

    it looks like bwmimerep:/// prefix is the only one available which points to SAP->BW under mime repository.
    the standard help states (http://help.sap.com/saphelp_ppm400/helpdata/en/44/5001d197c01193e10000000a155369/frameset.htm) to use custom images in WAD
    "You can store your MIME objects anywhere in the MIME Repository under SAP->BW"
    May be we need a mechanism to create bcmimerep, publicmimerep, etc.
    Regards
    Raja

  • Master Table for Work Items from BSP Application

    hello guys,
    just want to ask if there is a master table for work items (and other details) from BSP application?

    Hi,
          Ya its true but i want to connect my customized application to UWL in Enterprise Portal and there after approval i want my workitems to be punched in R/3 system.Is there any source code available,so that my application directly contact UWL in sap enterprise Portal as a link or workitems where user should have an option to approve or reject.
    If u have any idea plz let me know.
    Thanks in Advance
    Regards
    Santosh Saraf

  • Visual Composer VC implemented in WAD BEx Web Application

    Hi,
    is it possible to implement visual composer graphic into simple WAD BEx Web Template? If yes, how? Thank you for any hints.
    Greetings
    Standa

    Hi,
    Pls Refer these doc's on BEX with Visual Composer
    What is Visual Composer? User Guide
    http://help.sap.com/saphelp_nw04/helpdata/en/01/4b7e40417c6d1de10000000a1550b0/frameset.htm
    SAP NetWeaver Visual Composer - How to Guides
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/16244247-0a01-0010-3294-d81c21e7e86e
    Creating Applications Using SAP NetWeaver Visual Composer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2456bf8a-0a01-0010-709a-ffc91ade9f42
    How to Model Portal Content Using SAP Visual Composer – No Programming Required!
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ff65b5a2-0a01-0010-5b97-e747192a1d49
    Troubleshooting VC:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8ee70a47-0a01-0010-d198-f94c2d7d320c
    VC e-Learning:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5a35194b-0a01-0010-7598-a4bb10e0c5c9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cb294d33-0501-0010-17b9-e9c65bc84e57
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=4411
    What is Visual Composer ?
    What is Visual Composer or VC, how to install, Useful URLs
    Visual Composer: Finding the Documentation
    Visual Composer and NDS
    *Hope this helps*
    Regards
    CSM Reddy

  • BSP Application in Portal and WebAS Authentication popup

    Hello,
    we have a very well running SAP Portal SP14 and a BSP
    application running WebAS 6.20.
    SSO between Portal and WebAS works perfect. Profiles are maintained and verify.der is imported.
    But:
    From time to time we have users which open logon to
    portal and execute the bsp application, authentication is successfull, but after a certain period of time or any unknown incident these users get a popup from webas and they are asked(forced) to enter their username and password. It seems to be that their session expired and they have to re-authenticate. But they are still logged on to Portal.
    Can we prevent this popup from beeing shown to the user? Problem is, that they enter any password and they et locked
    Does anybody have the same problem?
    Thanks
    Maik

    Hello Maik,
    i am newbee in SAP.I have little proble with SSO.I am using Ep7.0
    Though i have imported the verify.der file and installed the certificate still SSO
    doesn't seem to be working.I am getting error as:
    "not authorized for executing BSP application".
    Do i need to give any particular role to users or  is any other setting required?
    regards!

  • Calling a BSP application on a Web-Dynpro screen

    Hi all,
    We have a requirement as below:
    In the SAP Standard Web-Dynpro screen we have a Tab-strip control, where there are 2 tabs.
    We need to enhance the tab-strip control and add a new tab. On the same tab we need to call a BSP application.
    It meas when we select the tab we should be able to see a specific BSP Application there.
    How can this be made possible?
    One way that I can think of is by creating the Service calls... However, I am not sure how can the service call can be created and used to call a BSP App to be displayed on the screen.
    Waiting for your replies.
    Regards,
    Kunjal Patel

    Hi Thomas,
    Thanks for the reply. It was quite helpful in analyzing the available options for the development.
    Now, with the further analysis from your inputs, following are the findings:
    1. BSP is a Stateful BSP.
    2. Yes, We are using this web-dynpro in the portal. How can we go about with the alternative way suggested by you about the iView? As i have very limited knowledge about the Portal hence a little more help from you will be helpful.
    Is it like we can provide a button on the screen and then when a user clicks the button the result is a new window of the browser with the given portal link?
    Please suggest.
    Regards,
    Kunjal Patel

Maybe you are looking for