BSP Graphics & IF_GRAPH_DATA_MODEL

Hello All,
I am, once again, trying to generate an MTA in BSP using <graphics:chart>. I already managed to generate the MTA hard-coding the values into the BSP page (this was fine for a prototype presentation), but now I have to integrate the MTA using data coming from a cube. 
I have created an internal table holding the data from the cube which looks something like this:
  Milestone    Actual Date     Plan Date
    M100         20060101       20060101
    M200         20060301       20060201
I have implemented (as suggested in my previous post by Raja:  BSP Graphics Extension (MTA))
a class with the interface IF_GRAPH_DATA_MODEL and have included all of the suggested coding from Raja's post, the only stuff I added being bold:
TYPES: BEGIN OF t_point_data,
               tooltip TYPE string,
               value   TYPE string,
               <b>value2  TYPE string,</b>
         END OF t_point_data.
  TYPES: t_point_data_tab TYPE STANDARD TABLE OF t_point_data.
  DATA: BEGIN OF t_series_data,
          tooltip    TYPE string,
          label      TYPE string,
          point_data TYPE t_point_data_tab,
        END OF t_series_data.
  DATA: l_ixml                                 TYPE REF TO if_ixml,
        l_ixml_sf                              TYPE REF TO if_ixml_stream_factory,
        l_istream                              TYPE REF TO if_ixml_istream,
        l_ostream                              TYPE REF TO if_ixml_ostream,
        l_document                             TYPE REF TO if_ixml_document,
        l_parser                               TYPE REF TO if_ixml_parser,
        l_root_element                         TYPE REF TO if_ixml_element,
        l_categories_element                   TYPE REF TO if_ixml_element,
        l_series_1_element                     TYPE REF TO if_ixml_element,
        l_series_2_element                     TYPE REF TO if_ixml_element,
        l_c_element                            TYPE REF TO if_ixml_element,
        l_s_element                            TYPE REF TO if_ixml_element,
        l_series_1_data                        LIKE t_series_data,
        l_series_2_data                        LIKE t_series_data,
        l_point_data                           TYPE t_point_data,
        l_category_name                        TYPE string,
        l_category_data_tab                    TYPE STANDARD TABLE OF string,
        l_tooltip                              TYPE string,
        l_apostrophe                           TYPE string VALUE  ''''.
  FIELD-SYMBOLS: <l_line> TYPE /sie/sbds_mta,
                 <l_field> TYPE ANY.
* fill category data <outtab> is an itab holding the values to be passed to graph
  LOOP AT outtab ASSIGNING <l_line> .
    ASSIGN COMPONENT 1 OF STRUCTURE <l_line> TO <l_field> .
    APPEND <l_field> TO l_category_data_tab.
  ENDLOOP .
* fill data for series 1
  LOOP AT outtab ASSIGNING <l_line> .
    ASSIGN COMPONENT 2 OF STRUCTURE <l_line> TO <l_field> .
    l_series_1_data-tooltip = 'Actual'.
    l_series_1_data-label   = 'Actual'.
    l_point_data-tooltip    = <l_field>.
    l_point_data-value      = <l_field>.
    <b>l_point_data-value2     = <l_field>.</b>
    APPEND l_point_data TO l_series_1_data-point_data.
  ENDLOOP .
* fill data for series 2
  LOOP AT outtab ASSIGNING <l_line> .
    ASSIGN COMPONENT 3 OF STRUCTURE <l_line> TO <l_field> .
    l_series_2_data-tooltip = 'Plan'.
    l_series_2_data-label   = 'Plan'.
    l_point_data-tooltip    = <l_field> .
    l_point_data-value      = <l_field>.
    <b>l_point_data-value2     = <l_field>.</b>
    APPEND l_point_data TO l_series_2_data-point_data.
  ENDLOOP .
  l_ixml = cl_ixml=>create( ).
  l_ixml_sf = l_ixml->create_stream_factory( ).
  l_document = l_ixml->create_document( ).
  l_root_element = l_document->create_element( name = 'SimpleChartData' ).
  l_root_element->set_attribute( name = 'version' value = '1.0' ).
  l_document->append_child( new_child = l_root_element ).
* create category xml
  l_categories_element = l_document->create_simple_element( parent = l_root_element  name = 'Categories' ).
  LOOP AT l_category_data_tab INTO l_category_name.
    l_c_element = l_document->create_simple_element( parent = l_categories_element  name = 'C' value = l_category_name ).
  ENDLOOP.
* create series 1 xml
  l_series_1_element = l_document->create_simple_element( parent = l_root_element  name = 'Series' ).
  l_tooltip = 'title='.
  CONCATENATE l_tooltip l_apostrophe l_series_1_data-tooltip l_apostrophe INTO l_tooltip.
  l_series_1_element->set_attribute( name = 'extension' value = l_tooltip ).
  l_series_1_element->set_attribute( name = 'label' value = l_series_1_data-label ).
  LOOP AT l_series_1_data-point_data INTO l_point_data.
    l_s_element = l_document->create_simple_element( parent = l_series_1_element  name = 'S' value = l_point_data-value ).
    l_tooltip = 'title='.
    CONCATENATE l_tooltip l_apostrophe l_point_data-tooltip l_apostrophe INTO l_tooltip.
    l_s_element->set_attribute( name = 'extension' value = l_tooltip ).
  ENDLOOP.
* create series 2 xml
  l_series_2_element = l_document->create_simple_element( parent = l_root_element  name = 'Series' ).
  l_tooltip = 'title='.
  CONCATENATE l_tooltip l_apostrophe l_series_2_data-tooltip l_apostrophe INTO l_tooltip.
  l_series_2_element->set_attribute( name = 'extension' value = l_tooltip ).
  l_series_2_element->set_attribute( name = 'label' value = l_series_2_data-label ).
  LOOP AT l_series_2_data-point_data INTO l_point_data.
    l_s_element = l_document->create_simple_element( parent = l_series_2_element  name = 'S' value = l_point_data-value ).
    l_tooltip = 'title='.
    CONCATENATE l_tooltip l_apostrophe l_point_data-tooltip l_apostrophe INTO l_tooltip.
    l_s_element->set_attribute( name = 'extension' value = l_tooltip ).
  ENDLOOP.
  l_ostream = l_ixml_sf->create_ostream_xstring( xml ).
  l_document->render( ostream = l_ostream ).
The problem I am having, and the reason I have added those lines of coding in bold, is that the MTA needs two date point to create a point on the chart. The internal table which holds the mta data is passing my values along just fine, but the method is missing the part where I create the two point values to be plotted on the graph.
I would be thankful if someone could help me figure this one out - I simply don't get it
Thanks a lot
Svenja

Hi,
what exactly is the problem?
Using the documentation about the data XML of the chart engine you should get the idea how the data is to be structured.
And finally use create_simple_element of iXML to create it accordingly. Take care of defining the correct parent node
Regards, Kai

Similar Messages

  • BSP Graphics Extension (MTA)

    Dear All,
    I am trying to generate an MTA using BSP graphics extension. I have managed to get the structure of the graphic:
    <Defaults>
    <ChartType>MTA</ChartType>
    <FontFamily>Arial</FontFamily>
    </Defaults>
    However, I am having trouble placing the values or points on the chart.
    As far as I understand, I can use "Series" to generate points on bar charts or line charts,
       <SimpleChartData>
            <Categories>
              <C>Category 1</C>
              <C>Category 2</C>
              <C>Category 3</C>
              <C>Category 4</C>
              <C>Category 5</C>
            </Categories>
            <Series>
              <S label="17.55%">17.55</S>
              <S label="17.10%">17.10</S>
              <S label="8.70%">8.7</S>
              <S label="8.25%">8.25</S>
              <S label="6.87%">6.87</S>
            </Series>
          </SimpleChartData>
    but this won't work for the MTA.
    I have defined the timeaxis
    <TimeAxis id="TimeAxis1">
       <Visibility>true</Visibility>
       <Extension></Extension>
       <Minimum>20060101</Minimum>
       <MinimumAutomatic>true</MinimumAutomatic>
       <Maximum>20080101</Maximum>
       <MaximumAutomatic>true</MaximumAutomatic>
       <Position>Secondary</Position>
    </TimeAxis>
    <TimeAxis id="TimeAxis2">
       <Visibility>true</Visibility>
       <Extension></Extension>
       <Minimum>20000101</Minimum>
       <MinimumAutomatic>true</MinimumAutomatic>
       <Maximum>20080101</Maximum>
       <MaximumAutomatic>true</MaximumAutomatic>
       <Position>Primary</Position>
    </TimeAxis>
    so my guess is it should go something like
       <SimpleChartData>
            <Categories>
              <C>Category 1</C>
              <C>Category 2</C>
              <C>Category 3</C>
              <C>Category 4</C>
              <C>Category 5</C>
            </Categories>
            <Series>
              <S label="20050101">20050101</S>
              <S label="20050601">20050601</S>
              <S label="20050601">20050601</S>
              <S label="20050701">20050701</S>
              <S label="20050701">20050701</S>
            </Series>
          </SimpleChartData>
    This won't work.
    I have looked all over the web, but there seems to be little to no documentation to the BSP graphics extension, and especially to time axis. I have also found a lot of examples of normal charts with time axis, but none which show a simple defition of fixed values.
    The chart is merely for show-case use, therefore using fixed values is no problem.
    If anyone has an idea as to what might work, please help
    Thanks
    Svenja

    i have used a model class.
    data: model type ref to ZCL_GRAPH_CPH_MODEL . " this class implements IF_GRAPH_DATA_MODEL interface
      create object model.
    <graphics:chart width               = "400"
                              height              = "300"
                              igs_rfc_destination = "IGS_RFC_DEST" >
                <graphics:data model="<%= model %>" />
                <graphics:custom>
                  <graphics:nativexml>
                    <?xml version="1.0" encoding="utf-8"?>
                    <SAPChartCustomizing version="1.1">
                     <GlobalSettings>
    in the method (IF_GRAPH_DATA_MODEL~GET_DATA_XML) i populate the values like this.
      TYPES: BEGIN OF t_point_data,
                 tooltip TYPE string,
                 value TYPE string,
               END OF t_point_data.
      TYPES: t_point_data_tab TYPE STANDARD TABLE OF t_point_data.
      DATA: BEGIN OF t_series_data,
              tooltip TYPE string,
              label TYPE string,
              point_data TYPE t_point_data_tab,
            END OF t_series_data.
      DATA: l_ixml                                 TYPE REF TO if_ixml,
            l_ixml_sf                              TYPE REF TO if_ixml_stream_factory,
            l_istream                              TYPE REF TO if_ixml_istream,
            l_ostream                              TYPE REF TO if_ixml_ostream,
            l_document                             TYPE REF TO if_ixml_document,
            l_parser                               TYPE REF TO if_ixml_parser,
            l_root_element                         TYPE REF TO if_ixml_element,
            l_categories_element                   TYPE REF TO if_ixml_element,
            l_series_1_element                     TYPE REF TO if_ixml_element,
            l_series_2_element                     TYPE REF TO if_ixml_element,
            l_c_element                            TYPE REF TO if_ixml_element,
            l_s_element                            TYPE REF TO if_ixml_element,
            l_series_1_data                        LIKE t_series_data,
            l_series_2_data                        LIKE t_series_data,
            l_point_data                           TYPE t_point_data,
            l_category_name                        TYPE string,
            l_category_data_tab                    TYPE STANDARD TABLE OF string,
            l_tooltip                              TYPE string,
            l_apostrophe                           TYPE string VALUE  ''''.
    * fill category data <outtab> is an itab holding the values to be passed to graph
      LOOP AT <outtab> ASSIGNING <l_line> .
        ASSIGN COMPONENT 1 OF STRUCTURE <l_line> TO <l_field> .
        APPEND <l_field> TO l_category_data_tab.
      ENDLOOP .
    * fill data for series 1
      LOOP AT <outtab> ASSIGNING <l_line> .
        ASSIGN COMPONENT 2 OF STRUCTURE <l_line> TO <l_field> .
        l_series_1_data-tooltip = 'Actual'.
        l_series_1_data-label = 'Actual'.
        l_point_data-tooltip = <l_field> .
        l_point_data-value = <l_field> .
        APPEND l_point_data TO l_series_1_data-point_data.
      ENDLOOP .
    * fill data for series 2
      LOOP AT <outtab> ASSIGNING <l_line> .
        ASSIGN COMPONENT 3 OF STRUCTURE <l_line> TO <l_field> .
        l_series_2_data-tooltip = 'Plan'.
        l_series_2_data-label = 'Plan'.
        l_point_data-tooltip = <l_field> .
        l_point_data-value = <l_field>.
        APPEND l_point_data TO l_series_2_data-point_data.
      ENDLOOP .
      l_ixml = cl_ixml=>create( ).
      l_ixml_sf = l_ixml->create_stream_factory( ).
      l_document = l_ixml->create_document( ).
      l_root_element = l_document->create_element( name = 'SimpleChartData' ).
      l_root_element->set_attribute( name = 'version' value = '1.0' ).
      l_document->append_child( new_child = l_root_element ).
    * create category xml
      l_categories_element = l_document->create_simple_element( parent = l_root_element  name = 'Categories' ).
      LOOP AT l_category_data_tab INTO l_category_name.
        l_c_element = l_document->create_simple_element( parent = l_categories_element  name = 'C' value = l_category_name ).
      ENDLOOP.
    * create series 1 xml
      l_series_1_element = l_document->create_simple_element( parent = l_root_element  name = 'Series' ).
      l_tooltip = 'title='.
      CONCATENATE l_tooltip l_apostrophe l_series_1_data-tooltip l_apostrophe INTO l_tooltip.
      l_series_1_element->set_attribute( name = 'extension' value = l_tooltip ).
      l_series_1_element->set_attribute( name = 'label' value = l_series_1_data-label ).
      LOOP AT l_series_1_data-point_data INTO l_point_data.
        l_s_element = l_document->create_simple_element( parent = l_series_1_element  name = 'S' value = l_point_data-value ).
        l_tooltip = 'title='.
        CONCATENATE l_tooltip l_apostrophe l_point_data-tooltip l_apostrophe INTO l_tooltip.
        l_s_element->set_attribute( name = 'extension' value = l_tooltip ).
      ENDLOOP.
    * create series 2 xml
      l_series_2_element = l_document->create_simple_element( parent = l_root_element  name = 'Series' ).
      l_tooltip = 'title='.
      CONCATENATE l_tooltip l_apostrophe l_series_2_data-tooltip l_apostrophe INTO l_tooltip.
      l_series_2_element->set_attribute( name = 'extension' value = l_tooltip ).
      l_series_2_element->set_attribute( name = 'label' value = l_series_2_data-label ).
      LOOP AT l_series_2_data-point_data INTO l_point_data.
        l_s_element = l_document->create_simple_element( parent = l_series_2_element  name = 'S' value = l_point_data-value ).
        l_tooltip = 'title='.
        CONCATENATE l_tooltip l_apostrophe l_point_data-tooltip l_apostrophe INTO l_tooltip.
        l_s_element->set_attribute( name = 'extension' value = l_tooltip ).
      ENDLOOP.
      l_ostream = l_ixml_sf->create_ostream_xstring( xml ).
      l_document->render( ostream = l_ostream ).
    Regards
    Raja

  • BSP graphics not displaying

    Hi guys,
    In DSWP transaction, OPerations-System monitoring, Gives below error.
    SAP Note
    The following error text was processed in the system:
    BSP Exception: Internal Error in Business Server Page Runtime.
    Program CL_BSP_RUNTIME================CP
    Include CL_BSP_RUNTIME================CM001
    Line 196 
    I can see below link get executed in browser
    http://pw200-3.xxx.xxxxxx.com:8000/sap/bc/solman/defaultUser/graphic/solmangraphic.htm?sap-language=E&sap-client=001&_appl=SOLMAN&CMD=GRDI&SLID=000000000100100&ASID=000000000000267&_cacheid=4913CC17C7734621E10000000A21C81A
    Question ?
    Is it a Service active problem?  or  Should i have to add the any Handler class CL_HTTP_EXT_BSP or etc in Handler List Tag?
    if so which SERVICE i have to set this?
    Any troubleshooting way?
    regards

    thanks

  • Business Graphics using BSP..

    Hello Every Body,
    I have to use Business Graphics in BSP..
    Can anybody tell me a procedure...
    how to do that ...

    Hi Kai,
    thanks for reference...
    Do u have some documents of  GRAPH_BSP_TEST for a reference.
    Please help me out about that BSP Application.
    Actually I have to do a Business Graphics. So according to u is it a same thing.
    Expecting your reply.
    thanks...

  • BSP iview HAP_CALIBRATION Graphic does not appear

    Hi there,
    I'm using HAP_CALIBRATION BSP application, search.htm page. When trying to show the graphic, it does not appear.
    I have configured IGS connections at SM59. I´ve already checked note 898918 and I have this correction installed.
    What can I do more? Can you send me some documentation? I haven't find nothing special.
    Thanks and best regards,
    Vasco Brandã

    Solved.
    It is necessary to create IGS_RFC_DEST_MBO RFC connection.
    Best regards,
    Vasco Brandã

  • 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.

  • Question regarding Graphics - Print Forms

    Hi,
    This is a print forms question. We are on ECC 5.0, basis release 640
    Currently, for all our SAPscripts, we have our graphics as TIF files stored as text modules.
    For our Smartforms, we loaded BMP files to the BDS using transaction SE78.
    Adobe brings up the exciting possibility of using smaller sized JPG/JPEG files.
    The only place I can think of storing the JPEG files in the SAP system is the MIME Repository. Looks like SE78 does not support JPEG files.
    Here's my requirement and question.
    In the mime repository, I created folder 'LOGOS' in SAP/PUBLIC. So, the path would be /SAP/PUBLIC/LOGOS
    The names of the files in the mime repository are 'LOGO_A' and 'LOGO_B'.
    We need to print the company logo based on company code.
    If company code is 'A' then 'LOGO_A' else, 'LOGO_B'.
    We are reluctant to read the graphic in the ABAP program and pass the whole content through the Interface.
    I cannot embed the graphic in the form since the LOGO will change based on company code.
    Since we can use an url for an image field in Adobe forms, how can I point the url to the mime repository?
    Any help on this is greatly appreciated.
    Thank you.
    Best regards,
    -Ramesh

    Thanks Markus.
    By what you said, I am inferring that you mean access to load the graphic files to the Mime Repository.
    My question is to read the Mime repository since users of bsp applications can still see the LOGOs in their bsp pages (I think. Never did BSP before).
    Here is what I am doing currently.
    Here's my interface:
    LOGO_DATA TYPE XSTRING.
    In my driver program, I am reading the Mime Repository graphic into an XSTRING and passing it through the interface to the LOGO_DATA field.
    I created a Graphic in the Context and set it to 'Graphic Content'.
    I am setting the 'Field' property to LOGO_DATA and MIME Type to 'image/jpeg'
    Now,
    Instead of reading and sending the whole binary content across through the function call, I am looking to see if the following would be possible:
    Interface:
    LOGO_URL TYPE STRING
    In the driver program, assign the URL of the Graphic to field LOGO_URL (Don't know how yet).
    In the context, create a Graphic and set it to 'Graphic Reference'
    In the URL property, set the Graphic URL property to LOGO_URL field and then clear out the delimiter field.
    If it is not possible with the Mime Repository, will it be possible with the Business Document Server (Transaction SE78).
    Thank you.
    Best regards,
    -Ramesh

  • ABAP reports or BSPs for publishing R/3 data to Enterprise Portal

    Dear Friends,
      We have got scenario where we need develop a product.As part of that we have got some data in SAP R/3 that need to be published through Enterprise Portal.
    Before me there are the below options.
    1.To write ABAP reports and publish with the help of ITS.
    2.To go for BSPs.(understood WAS should be > 6.10 )
    3.To write some BAPIs and build the interface using portal as middleware.
    Pl. suggest me which one would be best option considering If the reports contain some graphs also.
    Your suggestions are greatly appreciated.
    Thanks in advance
    Mrutyunjay

    Thanks Gopi for your inputs,
    But I heard graphs in ABAP are very resource intensive.
    I would request to through some light on presenting the data graphically through EP if the data is collected through BAPIs from SAP R/3.
    Thanks in advance.
    regards
    Mrutyunjay

  • Using BAPI functions BSP file upload

    Hello,
    Can anyone clarify me  that ' can I upload a file form front end using BSP to the BP as backend to store e the image using the BAPI functions. All this is to get each BP photo in the Solution manager.
    or I have use  the datasets for the file upload. Please help me out.
    With best regards,
    Suneetha

    Hi,
    Uploading LOGO in SAP
    http://www.sap-img.com/ts001.htm
    Upload graphics on
    The program RSTXLDMC can be used to upload graphics (file extension .tif on PC files) into individual standard text.
    <b>ws_upload</b>
    Transfer files from the frontend to the application server.
    Rgds,
    Prakash

  • Not able to SAVE changes in Graphical Screen Editor

    Hi All,
    I am not able to SAVE the changes which i do in SE51 using the Graphical Screen Editor.
    I get the below message:
    "EU_SCRP_WIN32 :connection to ctxprdcgy016.pcacorp.net"
    If i use my ID on my colleagues system I am able to SAVE the changes without any error.
    I am using Citrix Client to connect to remote server.
    PLease if anyone has any solution

    Hi
    If the connectivity speed is too slow, then you will get this error. Since you are Citrix connectivity, you will log on to client network using remote log on. This will make your connectivity slow.
    There is a note for this problem and note no is  Note 133903 - Upgrade of graphical Screen Painter.
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=133903
    Please go through below threads
    Screen painter error: EU_SCRP_WN32 : timeout during allocate / CPIC-CALL
    Error EU_SCRP_WN32 Time out
    Shiva

  • How to Debug Java Applet called in a BSP Component

    Hi All,
    In CRM Marketing->Segments->Graphical Modeler
    A click on settings button will load a Java Applet window.
    The settings window displays some elements. I want to translate a text displayed in that Java Applet window.
    Please let me know the ways to debug a Java applet loaded from BSP Component or ways the data is loaded into Java applet from SAP.
    Your help would be appreciated and points will be rewarded.
    Thanks a lot in advance.

    For the newbies, like me:
    Instruction to setup and debug an applet in Eclipse IDE via your Browser
    Java Console Setup for Applet debugging:
    1. Open up the Java Console Application by double clicking on it at C:\Program Files (x86)\Java\jre1.6.0_03\bin\javacpl.exe
    2. Select the Java Tab
    3. View Applet Runtime Settings button
    4. Enter in the Java Runtime Parameters the following: -Xdebug -Xrunjdwp:transport=dt_socket,address=5555,server=y,suspend=y
    5. Note: the port address 5555 can be anytime you want. You will need to enter whatever number you select into Eclipse IDE.
    6. Note: if you don�t need to debug code in the Applet�s init() method, then use....suspend=n (Not tested yet.)
    Eclipse setup for Applet debugging:
    1. Open up Eclipse and create your Applet. Once you are ready to debug go to the next step.
    2. Select the top level Run menu
    3. Pick the Open Debug Dialog� option
    4. In the left column select Remote Java Application
    5. Then select the �New� button to create a debug configuration for the remote session (the new button looks like a page with a yellow plus in the upper right hand corner)
    6. Give your session a name. I used the class name followed with the work remote for example: mainclassnameRemote
    7. Set connection type to Standard (Socket Attached)
    8. Host to localhost
    9. Port to 5555, or whatever you used in Java Console Setup step 5.
    10. Due not check the �Allow termination of remote VM�
    11. Due not close this window.
    Start debugging:
    1. Go to your Applet html launch file and launch in a browser
    2. Then go back to eclipse and select the debug button
    3. Eclipse should now throw you into the debugger mode.
    4. If it hangs, just retry again. It seems to work ok most of the time. A few time I need to close the browser and start over and then it seems to work.

  • Error in Graphic Tab

    Dear All,
    Can any one help me in resolving the following two problems.
    1. In the transaction SOLAR01 when I click the graphic tap I am getting the error
    “ The website cannot be found. The IP address for the website you requested could not be found”.
    2. when I enter the transaction SOLMAN_PROJECT on the lefthand side I am getting the list of project. When I click on the project I am getting the road map assigned to that project. But when I click on the scenario or process node under the project, I am getting the error “The website cannot be found. The IP address for the website you requested could not be found”.
    Warm Regards
    Saravanan

    Hi Saravanan,
    Make sure you use fully qualified hostnames!
    In one of my systems we kept keeping a logon/login popup when hitting the Graphic tabs. The note below solves this.
    Note 637995 - Problems with displaying the Component View / Graphic
    <b>This can be done as follows:</b>
    <i>Create a user (of type SYSTEM) with no authorizations.
    Call transaction SICF.
    Expand the following items: default_host->sap->bc->bsp->sap.
    Double-click on the item 'component_view'.
    In the following popup, in the field 'Anonymous Logon Data' fill in the
    corresponding data for the new user (Client, user, password). Check
    'Logon data Required'.
    Save the changements and activate the Service (see above).</i>
    <b>If the graphic is still not displayed,</b> <i>please call transaction SE80. Choose 'BSP Application' within the drop down listbox on the left hand side. Enter 'COMPONENT_VIEW' in the field underneath. Double-click the folder 'COMPONENT_VIEW' in the tree underneath. Press the button 'Activate'. Double-click the folder COMPONENT_VIEW->Pages with Flow Logic->cv_bpr.asp and press the button 'Activate'.
    Moreover, Business Server Pages require a fully qualified hostname. Please refer to note 434918 in order to make sure that the host name of your system is fully qualified.</i>
    I only executed the bottom part, because in the good system the first part was not implemented.
    What IP adres is you server pointing to? Does it exsist at all?
    Have a great day,
    Sjoerd Lubbers

  • BSP Chart Types Available

    Hi,
      I want to display Charts & Maps in BSP with the data driven from the Tables. I have seen <html:charts> which supports Bar,Line,Area,Pie(2D & 3D) Charts. But is there any component to show the Maps with the City.
      BW has some component called MAPS in BEX web application designer which comes from IGS. Is there any possibilities to use those type of Graphics in BSP.
      Has any experts done that?
    Thank you
    arun

    Hi Arun,
    the BW BEx mapping functionalities are not connected to the BSP framework.
    However, there's a <graphics:map>-Tag which would be able to display objects on top of a detailed map - unfortunately, SAP can't ship the map data together with the WebAS so this needs to be set up project-based in conjunction with a GIS partner/vendor.
    Regards,
    Philipp

  • How to use chart engine for web dynpro java(EP) for Graphics generation.

    Hi Frndz..
    now lookiing out for different types of dynamic graphics generations according to my requirment, n i saw the followiing blog
    Testing BusinessGraphics in Web Dynpro for Java
    Itz very nice to see that we can generate planty of types, but here our server is EP 7.0(not CE 7.1) and i gone thru  these links also
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/86/243f403f0a9354e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/0b/79553b066d9414e10000000a114084/frameset.htm
    https://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/frameset.htm
    here it seems to be Chart Engine n Chart Designer is mainly for BSP(R3), how best we can use this for web dyn pro java.
    Thanks in Advance
    Regards
    Rajesh

    hi
    if you want to use BusinessGraphics in WebDynpro java you have to configure IGS.
    IGS Configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4846ac90-0201-0010-099d-d3b4e271849c
    Business Graphics docs.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6
    ChartDeigner Usage
    http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm
    Generating Gantt chart using web dynpro business graphics

  • Your opinion on:  BSP or Java Webdynpro or ABAP Webdynpro?

    Could you please give me your opinion on the business scenario we have here:
    We are implementing SRM 4.0 with backend R/3 4.6C, WAS 6.4 and Portal 6.0. SRM has its typical shopping cart applications mainly for procurement and the workflow trail displaying the approval. The client wants us to build a few custom forms on the web frontend of SRM (or may be in Portal). The idea is to store these forms and display when needed with the status info just like a shopping cart.
    <b>Now the requirements for these forms are as follows:</b>
    1. These forms will have multiple fields which need to have the F4 kind of help. (the F4 options will reside in SRM or R/3)
    2. The form should have some kind of a ALV grid  (autoexpanding feature) which will allow the user to put in multiple line items so that they could submit more items on one form.
    3. Users need to be able to attach a spreadsheet to the form which should not be editable once the form is submitted. The attached spreadsheet should be stored. (We are planning on using Archivelink Filenet for this)
    4. Upon submission, a workflow will be kicked off as per the defined Org structure for approval of the form.
    5. After submission, the user should be able to go and view the approval status of the form and also print the summary of the values that he entered in the form. (may be a smartform could be provided for this)
    We looked at different options to accomplish this task:
    <b>BSP:</b>
    Creating BSP pages and giving access as links to the user on the webfrontend of SRM. Now, if we go the BSP route, we need to develop in SRM as the R/3 4.6 c does not have BSP development capabilities. If we take this approach, I am not sure if all the above requirements (specially like attaching spreadhseets) will be met with BSP pages.
    SAP Webdynpro Java: 
    It seems that the Webdynpro is easier to use because of the graphical tools available. But the only problem if we go this route is that we will have to find a java guy.
    SAP Webdynpro ABAP:
    We currently have WAS 6.4. As per the documentation, the ABAP Webdynpro development tool is available from NW04s onwards. So, we are still not sure if we could use it. But, we want to push towards upgrading if necessary. Being an old time ABAPer, developing ABAP Webdynpro seems do-able. (i know it may not be that easy).
    Last but not the least, DIALOG Program:
    Creating a dialog program in R/3 or SRM seems fairly simple. Then, an iview could be created on the portal for this transaction, though at this point I am not sure how a spreadsheet could be attached and stored within a dialog program.
    The creation of the workflow may not be that bad after the original form is designed. The graphical display of the approval trail might be difficult, but we might get away with a report for that. For printing the details of the form, I guess I could develop a smartform and put out a button on the screen to print it out in the display view.
    Could you please give me your opinion /  best approach for accomplishing this task, keeping in mind the complexities of these new dimension products?
    Thanks
    Sri

    I would say that all four solutions to solving your tasks are technically feasible.  Here are some thoughts that I had however:
    First ABAP Webdynpro: it is true that ABAP webdynpro is only available with Netweaver04s.  04S is still in ramp-up which means that only a subset of the customer base is allow to implement it.  It will not become generally available until later this year (check the service marketplace for current release estimates).  That being said, it probably elimintes WDA as a possiblity for your project unless you are will to wait and to upgrade.
    However having worked with WDA for a while it is probably the best tool to custom develop what you describe.  It has excellent built-in F4 value help.  It also has a damn fine ALV grid implementation.  The spreadsheet could be just as simple as file upload in binary or your could try your hand at office integration.  Finally for the form you could use Adobe Interactive Forms which also has very nice integration into WDA. 
    Now to Dialog Programming: You could of course use dialog programming.  It seems a little bit of a waste to custom build something so large if WDA is in your near future.  There are obvious disadvantages (little OO structure, no MVC, etc).  You would have ALV grid, office integration and of course F4 help.  You could still use Adobe forms if you implement this on the 640 system.  However there are integration points with dialog and Adobe Interactive Forms.  You could still use printed forms however. If you did the dialog program on the 640 system, you could use the integrated ITS to expose it to the web.  The integrated ITS in my experience has quite nice performance although the look and feel remains just like the SAPGui.
    The Java Webdynpro route:  Well you hit the nail on the head - if you don't have a Java programmer already and you don't have the bandwidth to invest in learning Java, this can be a problem.  The Java Webdynpro environment is quite nice.  There are some things I like better than ABAP and some things that ABAP is defintely still better at.  However when it comes to heavy integration with an ABAP backend - ABAP Webdynpro is still the way to go.  Java Webdynpro does have a help feature (OVS), but it isn't "for free" or nearly as nice as the ABAP Webdynpro (perhaps it will get there some day).  That is one of the major advantages of WDA - its closeness to the business data brings several framework advantages like F4 and field help.  WebDynpro Java in 640 also doesn't have an ALV grid implementation.  I am sure that this is something both environments will eventually have, but right now ABAP has the advantage.  On the other hand, Webdynpro Java has equal support when it comes to office integration, file upload, and Adobe Forms support.  You would have a more difficult time integration SmartForms however.
    Finally we come to BSP.  Honestly if I were in your position I would probably choose BSP (unless you could wait for the ABAP Webdynpro upgrade).  You could build a nice MVC OO application using BSP (stateful or stateless).  The BSP product is mature and quite well documented thanks to SDN.  You have the BSP Extensions which when used in Design2003 use the Unified Renderer.  That means that your output will look nearly identical to the same UI elements in Webdynpro.  Also BSP supports portal integration (session management, eventing, and themes). 
    The downside to BSP is that it isn't a full framework (also one of its advantages).  You can insert all your own html and javascript (unlike webdynpro). But this also means that SAP doesn't delivery as many framework services.  For instance there is no ALV or Value Help.  There is no Office Integration or Adobe Forms integration.  There is some farily good Smart Forms integration.  Now the upside- many people have already hit these limitations and overcame them.  In the weblogs on SDN and in a certain SAP Press book (cough, cough) you will find out of the box solutions for many of these problems.  You can find ready to use solutions for Adobe Integration, Office Integration (using Microsoft Office Web Controls), and F4 help.  It will mean investing a little more time up front to get this "home grown framework" up and running - but it is perfectly feasible. 
    There is a learning curve to all these new technologies however.  This sounds like an abmious project.  I wouldn't want to try and tackle this project in any of these technologies if I was new to them.  With Webdynpro or BSP - consider giving yourself time to learn the environment and cut your teeth on some demo apps before jumping into such a huge development.

Maybe you are looking for