Saving business graphics into XL

Hi,
Is there a possibility to save the Business graphics , images , Business Charts into an XL file from a WebDynPro ABAP Application?
Thanks,
Prasath N

Hi Prasath,
as this class is totally independent from Web Dynpro it belongs to you where to use it in your application. Create an instance of this class, provide data and customizing and let the IGS render the chart. Finally you ask the instance for the image and e.g. save it.
A good starting point is the SAP Chart Designer that you can download from the SDN downloads page. As part of the package you will find documenation about the data XML. Create the customizing XML by interactively designing your chart and save the settings as XML.
Regards, Kai

Similar Messages

  • Saving business objects into xml file

    I have the following XML file parsed into a DOM tree, with 2 different types of nodes "TestCase" and
    "RealCase". Then I mapped each type to a different type of business object, TestCaseObj and RealCaseObj.
    Now, there may be addition of new objects, or modifications to the data stored in the business objects
    by my application. Eventually when I save the business objects back into the XML file, how should I go
    about doing that?
    <ROOT>
    <TestCase TestID="T1">
         <Element1>Data1</Element1>
         <Element2>Data2</Element2>
    </TestCase>
    <TestCase TestID="T2">
         <Element1>Data1</Element1>
         <Element2>Data2</Element2>
    </TestCase>
    <RealCase ID="R1">
         <Element1>Data1</Element1>
         <Element2>Data2</Element2>
         <Element3>Data3</Element3>
    </RealCase>
    <RealCase ID="R2">
         <Element1>Data1</Element1>
         <Element2>Data2</Element2>
         <Element3>Data3</Element3>
    </RealCase>
    </ROOT>

    The DocumentBuilder class does not allow you to parse a portion of the xmlfile. Therefore, it will not be possible to read "TestCase" into the DOM without bringing in "RealCase" nodes as well. As such, these codes will parse the entire xml file into DOM:
    DocumentBuilder builder = builderFactory.newDocumentBuilder();
    Document document = builder.parse( xmlFile );
    However, your problem can be solved by reading only "TestCase" nodes in DOM, as follows:
    NodeList elementNodeList =
    elementNode.getElementsByTagName("TestCase");
    Your codes will then change the data in the elementNodeList, without affecting "RealCase" although it is loaded into DOM. You can be sure that elementNodeList contains only "TestCase" nodes.
    Once you have made your changes, save the DOM back to the XML file, using the serializer method as discussed earlier.
    Good luck.

  • Graphs using business graphics

    Hi all,
    I am trying to generate graphs in webdnpro using business graphics but I want to view those graphs in Adobe. Is that possible?
    What is the place where these graphs which are generated in NWDS are saved?what if I can pick the graphs geerated there and then push them into adobe somehow?
    Please help me out.
    Thanks and reagards,
    Gaurav

    Hi Gaurav,
                  To create  business graphics dynamically, you can do like this
    [if(firstTime){
    //Create as many as you want         
    IWDBusinessGraphics bg1 = (IWDBusinessGraphics) view.createElement(IWDBusinessGraphics.class,"bg1");     
    // set type and other properties
    bg1.setChartType(WDBusinessGraphicsType.BARS);
    But this is for first time when you open the view. If you want to change the number of graphs displayed at runtime. Access the graphs runtime and set visibility
    //access them again
    IWDBusinessGraphics bg1_mdfy =(IWDBusinessGraphics) view.getElement("bg1");
    //if you want to hide
    bg1_mdfy.setVisible(WDVisibility.NONE);
    regards,
    Siva

  • Business Graphics API in WEBAS J2EE

    Hi,
    i have a business graphic integrated into my webdynpro application. I checked the api documentation for business graphics and found out, how to change the type of the business graphic and the number of dimensions programmatically.
    On the API, i cannot find out any further possibilities of modifing the chart programmatically. I wonder about this, because the business graphic UI - element in NetWeaver Developer studio provides much more configuration possibilities on charts.
    For example, i would like to use the averagre functions or adapt the number of labels on the chart axis. But all dynamically.
    Has anyone experience, with such advanced business graphics features and nows if it is somehow possible to get to theses features by using the NetWeaver API?
    Thank you very much in advance.
    Regards
    Christoph

    As I understand, your user management is through database, so when a user is created in your application, the parameters pass through the Action Handler -> service class-> DAO. So a better way would be write an additional class with the user management implementation of BO with a constructor or a method which would take the required user creation parameters and call it in the service class just under the user creation method of your DAO.
    As the user in your system passes some information from the front end, the same can be used to create user in BO.

  • Business system into xml format

    Hi all,
               Can u please explain hoe to convert business system into xml format.
    Thanks in advance
    Naveen

    Hey
    you dont convert business system name in XML format,
    do you want to use ur business system name in message mapping?if yes,then use the following UDF code to get BS name in message mapping
    String Sender = "";
    String key = "SenderService";
    // get runtime constant map
    map = container.getTransformationParameters();
    // get value of header field by using variable key
    Sender = (String) map.get(key);
    return Sender;
    Note: the above code is from the following thread
    Fetching the business system name during graphical mapping
    Thanx
    Ahmad
    Message was edited by:
            Ahmad

  • Business Graphics Rendering Issue

    Hi Experts,
    I am trying to use Business Graphics in my Web Dynpro application. However, I am getting following message:
    Graphics Rendering Problem.
    I looked into following Blog:
    /people/sap.user72/blog/2005/03/23/business-graphics-in-webdynpro
    As per the blog, we have to look <MUX> tag in the igs.xml.  Tyhe xml should be located in \usr\sap\NTH\JC00\igs\conf\igs.xml. First of all, I can not find any path as mentioned in blog. I can not find path "\usr\sap\NTH\JC00\igs\conf".
    I have found one igs.xml in server and is located at \usr\sap\somename\somename\j2ee\JSPM\config\igs.xml.
    This XML is pasted below:
      <?xml version="1.0" ?>
      <!DOCTYPE kernelPatches (View Source for full doctype...)>
    - <kernelPatches name="BC-FES-IGS" vendor="sap.com" sequenceFile="IgsTasksSequence.xml" sequence="process">
    - <os code="*">
    - <cmdVersion extractor="SAPCAR" archiveId="IGS" cmd="igswd">
      <arg value="-version" />
      </cmdVersion>
      <sar name="IGS.SAR" pattern="IGS.*\.SAR" dir="igs" id="IGS" manifest="igsmanifest.mf" opCode="X" required="Y" />
      <sar name="SAPCAR" opCode="C" required="N" dir="igs" />
      </os>
    - <os code="WIN">
    - <cmdVersion extractor="SAPCAR.EXE" archiveId="IGS_WIN" cmd="igswd">
      <arg value="-version" />
      </cmdVersion>
      <sar name="IGS.SAR" pattern="IGS.*\.SAR" dir="igs" id="IGS_WIN" manifest="igsmanifest.mf" opCode="X" required="Y" />
      <sar name="SAPCAR.EXE" opCode="C" required="N" dir="igs" />
      </os>
    - <os code="OS4">
    - <cmdVersion extractor="SAPCAR" archiveId="IGS_OS4" cmd="igswd">
      <arg value="-version" />
      </cmdVersion>
      <sar name="IGS.SAR" pattern="IGS.*\.SAR" dir="igs" id="IGS_OS4" manifest="igsmanifest.mf" opCode="X" required="Y" />
      <sar name="SAPCAR" opCode="C" required="N" dir="igs" />
      </os>
      </kernelPatches>
    Above XML does not contain any <MUX> tag.
    My questions are -
    1) How to find out whether IGS server is installed or not in my env?
    2) Why we can't see <MUX> tag in above XML?
    Please help me in resolving the issue.
    Regards,
    Brian

    Hi Brian,
    I guess your IGS version is 7.00. the file igs.xml only exists in IGS 6.40. The IGS configuration is in the instance profile with IGS 7.00. When your instance number is 00 the default HTTP listener port of the IGS is 40080.
    Refer to note <a href="http://service.sap.com/sap/support/notes/704604">704604</a> to see how the IgsUrl is maintained. Please check if the value is correct and also try out localhost instead of the hostname.
    Best regards
    Matthias

  • Business graphics need more than one category

    Dear All,
         We have a issue for business graphics need more than one category about web dynpro abap.
       Our data:
       plant   month   qty
      1000   201101  10
      1000   201102  30
      2000   201101  30
      2000  201103   40
    Now we need one category for "plant" and other category  for "month", Data is qty.

    Hello Bill,
    could you explain bit more about your requirement? How would you like the graph to be renderded with two categories. Can't you club Plant and Month into one single category (1000-201101) and display it?
    BR, Saravanan

  • Business Graphics Customizing

    Hi,
    i want to set customizing for my business graphics element in Abap WebDynpro.
    If i click with the right mouse button on the BG element, and change something and then click ok, the transport request dialog appears. I select one and click ok.
    But the system does not create the Folder "MIME Objects" in the WebDynpro Component! In another system it creates this folder and includes the created customizing xml file. But not in this system. Why?
    The consequence is that it ignores the customizing if i run the wd component.
    Can anybody help?
    Kind Regards,
    Thomas

    If you use the chart designer tool (by clicking secondary mouse button on the business graphics ui element), it automatically sets an url into "customizing".
    you find this generated xml in mime repository -> sap > bc > webdynpro > <application_name>.
    My question now is:
    How can i use the settings i made dynamically in a method?
    i tried it by setting an id like this:
    lr_series_element->set_attribute( name = 'CUSTOMIZING' value = 'Series2' ).
    In View designer i set "CustomizingID" to the corresponding node in context..
    Thx a lot!

  • [Business Graphics] Translation of captions

    Hi,
    I have some Business Graphics elements in my Web Dynpro component.
    I used the Chart Designer to customize the appearance and add some titles (chart, X-axis, ...) but - to my opinion - this result in an XML file located in the MIME repository: SAP/BC/WebDynpro/SAP/Zxxx/4OQN7xxxxxx.xml
    Now, I have to make available in 5 languages.
    Does anyone know how should I proceed to translate the texts that are embedded within this XML file... ?
    Should I keep the XML file and implement another layer for the translation trough METHODHANDLER attribute (reference variable of type IF_WD_BUSIN_GRAPHICS_MTD_HNDL) of the Business Graphics control in the WDDOMODIFYVIEW( )?
    I guess this should be possible to load the initial XML file, use regular expressions to change the various captions, and inject the modified XML??
    --> this looks very much like what is done in report GRAPHICS_IGS_CE_TEST...
    Thanks in advance.
    Best regards,
    Guillaume
    Edited by: Guillaume Garcia on Feb 7, 2012 6:32 PM / Report GRAPHICS_IGS_CE_TEST

    Download your initial XML, translate, upload with name business_graphic_customization_<LANG(1)>.xml
    method WDDOMODIFYVIEW .
      data:
          lr_bg_control type ref to cl_wd_business_graphics,
          lr_bg_method_handler type ref to IF_WD_BUSIN_GRAPHICS_MTD_HNDL.
      check first_time = abap_true.
      lr_bg_control ?= view->get_element( 'CHART' ).
      lr_bg_method_handler ?= lr_bg_control->_method_handler.
      DATA pict_wa   TYPE xstring.
      DATA mime_api TYPE REF TO if_mr_api.
    DATA: mr      TYPE REF TO if_mr_api,
          lurl    TYPE        string.
    * get name of component
    data: l_component type ref to if_wd_component,
          l_component_info type ref to if_wd_rr_component,
          l_name type string.
    l_component = wd_comp_controller->wd_get_api( ).
    l_component_info = l_component->get_component_info( ).
    l_name = l_component_info->get_name( ).
    * get mime object
      mr = cl_mime_repository_api=>get_api( ).
      CL_WD_UTILITIES=>CONSTRUCT_WD_URL( exporting APPLICATION_NAME = l_name
                                                   importing OUT_LOCAL_URL    = lurl ).
      mime_api = cl_mime_repository_api=>get_api( ).
      concatenate lurl '/business_graphic_customization_' sy-langu '.xml' into lurl.
      mime_api->get( EXPORTING i_url = lurl
                     IMPORTING e_content = pict_wa
                     EXCEPTIONS OTHERS = 4 ).
      data : DOCUMENT TYPE REF TO CL_xml_document.
      CREATE OBJECT DOCUMENT.
      DOCUMENT->PARSE_XSTRING( pict_wa ).
      lr_bg_method_handler->SET_DIRECT_CUSTOMIZING_MODE( abap_true ).
      lr_bg_method_handler->ADD_DIRECT_CUSTOMIZING( exporting I_CUSTOMIZING = DOCUMENT->M_DOCUMENT ).
    endmethod.

  • Business Graphics and Adobe Interactive Form

    Hi Friends,
    I generated charts in webdynpro using business graphics.
    Now, I need put this charts into a Adobe Form using Interactive Form Component. Is that possible? How can I do this?
    Thanks,
    Cristian

    Hi Cristian Teles,
    YOu can use the Business graphics even in Adobe forms. In the Adobe Designer you can find the various graphical UI elements. Please go through them.
    Structure of the Chart Designer
    The Chart Designer is divided into three areas:
    ·        The graphics preview
    The area on the left-hand side in which the business graphic is displayed. This area is used to display a preview of the Customizing settings. Changes to these settings are displayed immediately in the graphics preview, which lets you implement necessary changes in the business graphic display instantly.
    ·        Overview of graphical elements
    The area in the upper-right side that contains the list of graphical elements. For a detailed description and list of all graphical elements, see SAP NetWeaver ® Application Platform (SAP Web Application Server) ® ABAP Technology ® UI Technology ® Frontend Services.
    Each graphical element, in turn, has one or more properties. To change a property, select a chart element either from the chart window or by name in the chart element window. The properties of the chart element are then displayed, and you can edit and change the values of the properties.  
    ·        The property list
    The properties are listed in the area below the graphical elements. To change a property, select a graphical element either with the mouse in the graphics preview or from the overview of graphical elements. The properties of the graphical element are then displayed. You can change the values of these properties.
    http://help.sap.com/saphelp_nw70/helpdata/EN/0a/2f77b0cbb8914eb071b411991f6019/frameset.htm
    Thanks
    Suresh

  • Accessing Business Graphics using the WebDynpro API

    I would like to access Business Graphics created with IGS using the WebDynpro Business Graphics API.
    I have no problem displaying the graphic in WebDynpro UI, but i have no idea how to access the binary data of the graphic to work with it outside of WebDynpro UI (in fact i want to embed it into a PDF form).
    Is there any possibility to do this using the WebDynpro API?
    I would appreciate your help!
    Regards,
    Christoph

    Thanks, but this al clear to me. I am able to display business graphics on web without problem (I have dynamic Business Graphic in my WebDynpro User Interface).
    The Problem is, that i want to make further processing with the graphic. Therefore i need to access the binary data of the graphic.
    Do you know if there is any possibility to get the binary data of the bmp - image generated by IGS into a byte array?

  • Business Graphics - Download/Email

    Hello,
    I would like to download the graph generated using the Graphics FM to presentation server/send the graph as an email attachment. Is there any standard FM to do this. Any input is highly appreciated.
    Thank you.

    Uma,
      I have changed my program to use the IGS Graphs instead of the SAP Business Graphics.  The program will now run in the background and you can save the file to the app server, local PC or email the file.
      A sample program for the IGS graphics is GRAPHICS_IGS_CE_TEST.
      Sample charts can be produced using the SAP Chart Designer.  The XML commands generated can be included into the program to produce the desired result.  The SAP Chart Designer can be downloaded from the SDN Downloads section.
    https://www.sdn.sap.com/irj/sdn/nw-appserver-tools
    Regards
    Darryl

  • Business Graphic show elements sorted

    Hi ,
    i use a business graphic UI Element to display some results.
    Categorie -String (Projectname)
    1 Serie -Integer (Changelists sum)
    How could i show these elements sorted on diagram? I have sorted the elements by using the function node.sort(Comparator), but the Business Graphic UI Element seems not to match it.
    my Comparator class:
    private static final  Comparator DEFAULT = new  Comparator(){
         public int compare(Object o1, Object o2) {
         if (o1 == null && o2 == null)
                                  return 0;
         if (o1 == null)
                                  return -1;
         if (o2 == null)
         return +1;
    IPrivateBusinessGraphics.ICategoriesPieChartElement     
    o1_new =(IPrivateBusinessGraphics.ICategoriesPieChartElement)o1;
    IPrivateBusinessGraphics.ICategoriesPieChartElement o2_new=(IPrivateBusinessGraphics.ICategoriesPieChartElement)o2;
    if(o1_new.getChangeListsSum()>o2_new.getChangeListsSum()){
    return 1;
    else if(o1_new.getChangeListsSum()<o2_new.getChangeListsSum()){
    return -1;
    else{
    return 0;
    Could you help please to solve this problem?
    Thank you in advance!
    Best Regards,
    Daria

    use the  following steps...
    1. open that chart editor using Edit Customizing Option.
    2. from the Overview select Series node. Right click on it and Add Series.
    3. Series1 will be added. now select Series1 and in the below section go to Area Properties node.
    4. expand it and choose the color you want for the first series.
    5. similarly add Series2 with teh desired color.
    6. then go to the view designer after saving the required changes.
    7. go to the properties of simpleseries1 and in customizingID field write 'Series1'.
    8. similarly fill other simpleseries also with the respective values.
    save it
    activate and its done.
    thanks
    sarbjeet singh
    Edited by: sarbjeet  singh on Apr 28, 2011 3:58 PM

  • Refresh the Business Graphics Data on click of next page event of a table

    Hi Experts,
    We are using Business Graphics UI element in Web dynpro Java to display a table data.
    We are limiting the graphics data to 12 table entries at a time.
    Now, I just want to know how can we refresh the Business Graphics data when the user clicks on the Next Page option at the bottom of the table.
    This is applicable if we have more than 12 table entries and we've restricted the visible row count to 12.
    So, for more than 12 entries; when the user selects the next page, I want the next set of data to be displayed in the Business Graphics UI element.
    But I am not able to get the action for the Next Page event.
    Please note that we are on Netweaver 7.01.
    Kindly suggest as how can we achieve this functionality.
    Kind Regards,
    Anurag

    check this
    Web Dynpro Java Table Paging Unleashed: Optimizing Heavy Table Performance

  • Importing new business systems into Integration Directory PI 7.1

    Team SDN,
    Team We have presently upgraded to PI 7.1(inline upgrade XI 3.0 was the older version).  There are some changes like Import of software component version from SLD to ESR. intially we use to do in Xi 3.0 by selcting tools and import, but now we have to do different manner like going to ESR click on new and under work areas we have SCV. Do we have any new procedure fro importing business system into integration directory PI 7.1.
    Please share with members if wht are the new changes in PI 7.1 work proceses  like the one i mentioned above importing SCV(please don't start ESR and blah blah) any real issues wht we will encounter in termsof PI 7.1
    Thanks SDN.

    Hi Madhu,
    If you want to create a communication component for a business system from the System Landscape Directory (SLD), choose the Business System menu option.In the wizard, select a business system from the SLD and create a communication component for it in the Integration Directory.
    refer below link..
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/3e/60653f0c9fa075e10000000a114084/content.htm
    Regards,
    Raj

Maybe you are looking for

  • IMac or Mac Pro

    I have asked this question before and I'll be honest - I was sorta confused with some of the responses so I am back with what I hope are better thought out questions. I am torn between the iMac 3.06 and the Mac Pro 2.66 4-core. I am not a pro but thi

  • Trigger email if no file found

    Hi, I have a requirement like below: Every day interface will run between 4.00 AM to 4.30 AM. In this case file will be picked from aplication server(NFS) and processed by using proxy(FILE to PROXY communication). In this stipulated time 4.00 AM to 4

  • What is app-jazn-data.xml

    Hello What is app-jazn-data.xml. Do modifications in system-jazn-data.xml automatically update app-jazn-data.xml? Thanks

  • Why the ScrollDemo sample can not be debugged in Eclipse?

    Hi, All, I am an newer of the Swing/JFC. When I debugged the ScrollDemo in Eclipse 3.0.2, it always reported an exception at setRowHeaderView(...). But it could run perfectly. So I am confused. Who can tell me whether it is a bug of Eclipse or a bug

  • Photoshop element 9: no thumbnails

    Hi! When I import picture tubnails is not showing up, only timeglas even how long I wait the tubnails is not executed I tried to update from 9 to 9.03 but it did not worked out either. Any help would be much appriciated, Best regards Kenneth