Graph in a subscreen area

Hi Experts,
How do you create a graph in a subscreen?
I checked out transaction GRAL but all the graph charts popup in a separate screen.
Moreover I do not want the BOXES internal table attached to the chart.  How do you suppress this functionality? Because in it's place I need an ALV tree instead.
Thanks!

Hi Guys,
Very helpful, but this presents a new problem.
The chart data is not static, I need to refresh the graph when data is changed.
The Gantt chart generated by the Chart Designer is an XML file that is very very huge to code into abap using the IF_XML_ELEMENT classes as per sample program GRAPHICS_GUI_CE_DEMO.
So I would like to use the XML file as a template in my dialog program and change it when the data changes. Any ideas how to do this?
Thanks!

Similar Messages

  • Display Logo in Subscreen Area Using OO-ABAP

    Hello,
    I have a requirement to display a logo in SCREEN, Which contains TABSTRIP , In that A SUBSCREEN AREA.  What could be the procedure to display the LOGO . let me know if any suggenstions.
    I have already uploded the IMAGE in to SAP Form GRAPHIS Via SE78.
    Thanks in Advance
    Regards
    Nags

    Hi Naganjaneyulu,
    Check the below sample program.
    put a custom control on the subscreen and write the logic in the subscreen's PBO....
    Screen Flow logic
    PROCESS BEFORE OUTPUT.
      MODULE pbo.
    PROCESS AFTER INPUT.
      MODULE pai AT EXIT-COMMAND.
    Program
    DATA : go_container       TYPE REF TO cl_gui_custom_container,
           go_pic             TYPE REF TO cl_gui_picture,
           gt_picbin          TYPE solix_tab,
           gt_filetable       TYPE filetable,
           gv_bindata         TYPE xstring,
           gv_filename        TYPE string,
           gv_url             TYPE char255.
    PARAMETERS : p_object TYPE tdobjectgr DEFAULT 'GRAPHICS',
                 p_name   TYPE tdobname   DEFAULT 'SAP LOGO + TRADEMARK',
                 p_id     TYPE tdidgr     DEFAULT 'BMAP',
                 p_btype  TYPE tdbtype    DEFAULT 'BMON'.
    CALL SCREEN 100.
    MODULE pbo OUTPUT.
      SET PF-STATUS 'BASIC'.  " just a BACK button with application type 'E'.
      PERFORM fetch_binary_data.
      PERFORM create_url.
      CREATE OBJECT go_container
        EXPORTING
          container_name = 'CUSTOM'. " name of custom control
      CREATE OBJECT go_pic
        EXPORTING
          parent = go_container.
      go_pic->load_picture_from_url( EXPORTING url = gv_url ).
    ENDMODULE.                 " pbo  OUTPUT
    MODULE pai INPUT.
      SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.                 " pai  INPUT
    FORM fetch_binary_data.
      CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
        EXPORTING
          p_object  = p_object
          p_name    = p_name
          p_id      = p_id
          p_btype   = p_btype
        RECEIVING
          p_bmp     = gv_bindata
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.
      gt_picbin = cl_document_bcs=>xstring_to_solix( gv_bindata ).
    ENDFORM.                    "fetch_binary_data
    FORM create_url.
      CALL FUNCTION 'DP_CREATE_URL'
        EXPORTING
          type    = 'image'
          subtype = 'X-UNKNOWN'
        TABLES
          data    = gt_picbin
        CHANGING
          url     = gv_url
        EXCEPTIONS
          OTHERS  = 4.
      CHECK sy-subrc = 4.
      MESSAGE 'Exception occured' TYPE 'I'.
    ENDFORM.                    "create_url
    ~Jose.

  • Script doesn't work, if GUI subscreens are collapsed

    Hello all,
    I am to code some scripts to automate some boring, but necessary steps in trainings. Unfortunately my scripts don't work ("The control cound not be found by ID"), if the GUI looks different compared to the reording phase (e.g. other tabs are selected or subscreens are collapsed).
    The problem with the tabs could be solved by clicking on the needed tab regardless whether it is already open or not.
    But I was not able to solve the problem with the collapsed subscreens. Clicking on the "Open subscreen"-button without looking at the current status doesn't help. The state just toggles and noone can say, whether its closed or open afterwards. Furthermore, according to the API-Doc, there is no possibility to check, whether a control is available or not. Is that true? If there was a method, I could make use of an if-clause to click on the "open subsreen"-button conditionally.
    Has anyone good advise for me?
    Thx a lot!
    Klaus

    I found another possible issue while looking at a similar problem. I was unable to execute a PowerShell script as a Task Scheduler action, even though the script ran correctly when logged into Windows as the target user and running within PowerShell.
    Task Scheduler would consistently display the 0xFFFD0000 error when I nominated the script in the task's action arguments using what I believed to be normal PowerShell quoting rules:
    -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'
    PowerShell acquiesced and Task Scheduler fired off the task immediately and without issue when I changed the quotes I used from single to double:
    -ExecutionPolicy Bypass -File "D:\full path\to\script.ps1"
    Dropping to a command prompt and executing the full command immediately revealed the problem:
    D:\>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'Processing -File ''D:\full path\to' failed: The given path's format is not supported. Specify a valid path for the -File parameter.
    Notice the strange use of two single quotes before the path and one single quote after.
    The moral of the story: When feeding the full path of a script to PowerShell as a command line parameter,
    use double quotes!

  • Facing problem with call subscreen area in standard infotype

    Dear SAP Guru's,
    I have enhanced standard infotype 0185 from PM01, in assign enhancement tab it create multiple screens ,
    my program name ZP018500, screen number 0200 generated,
    on  0200 screen i need to display two subscreens tfor that
    i have created subscreen area  on srcreen 0200 which is already a subscreen.
    and i am calling two subscreen 0201 and 0202 on that  subscreen area.
    while creating entries for 0185 infotype  my screen keep going in continious loop for call subscreen statement on 0200 screen number.
    roll in fail, session terminated error coming because of this.
    is it correct to create subscreen area on subscreen and calling subscreen on that.
    Guide me to solve the issue.
    Thanks and Regards,
    Syed

    Dear Gopal,
    Thanks for the reply,
    But i can't make 0200 screen as normal screen because it is automatically generated by system while enhancing the standard infotype,
    Please let me know any other solution.
    Regards,
    Syed Taj

  • Dialog Programming(module pool):call a screen to subscreen area.

    Hi experts,
    I want to call a screen created in the function group into my
    subscreen area of current screen of main program.
    I have done the below way :
    1. Created a screen 100 in the module pool program z_bpmodule.
    2.created a subscreen area SUB in screen 100.
    3. I hav created function group :zfungroup
    and  a screen 300,a function module Z_EXPORT_FUN for exporting the data to the screen 300 from report.
    Now my prog is lik below :
    PROGRAM  Z_SUBSCREEN1.
    DATA : ZMATNR LIKE MARA-MATNR.
    DATA : DYNNR LIKE SY-DYNNR .
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  EXPORT_DATA  OUTPUT
          text
    MODULE EXPORT_DATA OUTPUT.
    CALL FUNCTION 'Z_EXPORT_FUN'
                              EXPORTING Z_INPUT = ZMATNR.
    ENDMODULE.                 " EXPORT_DATA  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXP'.
    DYNNR = '0300'.
    *ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    and the flow logic is lik this :
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    MODULE EXPORT_DATA.
    CALL SUBSCREEN SUB INCLUDING SY-REPID ' 0300'.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN SUB.
    Now the main problem is i am not able to call the screen from function group to subscreen area...
    kindly provide the solution.....
    Thanks a lot in adv ....
    Brahma.

    I am just getting the main screen and the subscreen is not at all displaying .....
    but when i perform the PAI .. I am getting the dump ..
    Short text
        Dynpro does not exist
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "Z_SUBSCREEN1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        The system attempted to use dynpro 0000 in program "Z_TX1".
        This dynpro does not exist.
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DYNPRO_NOT_FOUND" " "
        "Z_SUBSCREEN1" or "Z_SUBSCREEN1"
        "EXPORT_DATA"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    hope i have given the full information.
    Thanks a lot.

  • Can I include a "SelectionsDynpro" in a Subscreen Area``?

    Hello at all,
    i have a questions about Dynpros/ Selections???
    I have a "normal Dynpro" with one Subscreen Area.
    In this Subscreen Area i want include another Dynpro, which is defined by "SelectionsDynpro".
    Is that possible??
    With Kind regards
    ETN

    Hi,
    Please check if this one is ok for your requirement.
    You say you havent been able to include a selection screen in your subscreen. What you can do is, place a table control, remove the headers and make it look like a selection screen. You can add the parameters and select options by defining it in the program and using the 'Add from Program' button. Let say you have placed a table control with three columns. Let the first column be for the selection screen text. Try to populate them in the PBO manually.
    When you are using a parameter, disable the third column cell so that it acts like a parameter. For the select option, you can leave the third column enabled, so that it acts like LOW and HIGH. For an F4 on the parameters and select-options on the table control, you can find a lot of threads on how you can implement an F4 differently for different rows and different columns.

  • Dynpro - Subscreen area

    Hello ,
    I have to display error message or resultats of querry in subscreen area or sub screen  of main  screen .
    Could someone tell me how to push them (results , messages )to right place .
    Thank you
    Krsto

    HI Krsto,
    Without knowing your code it is hard to suggest what you want to transfer to Sub Screens.
    Please go through the program
    demo_dynpro_subscreens
    Cheerz
    Ram

  • Unable to declare fields in the subscreen area of the the tabstrip created.

    Hi All,
    I am doing the screen enhancement for the Tcode ME52N using exit MEREQ001. I have added a screen 0111 in the Function Group XM02. On this subscreen i have created a tabstrip with 2 tabs and created element of the type Subscreen Area in the tab strip.
    My requirement is to create few fields in the tabstrip subscreen area for update or display. But in the screen painter when i am trying to insert any of the screen elements i get the error "Illegal type for page element in Tabstrip".
    Please advice me on how to get this done.
    Thanks

    Hi ,
    I am afraid that this forum is not a correct forum for this issue. Since this forum is discuss about Windows form development. In my opinion, it is an issue regarding Windows System. I suggested you to post this thread to
    answer.microsoft.com-Windows OS
    Have a nice time!
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Subscreen and subscreen area

    Hi all
        Can anybody please explain both subscreen and subscreen area..
    Thanks and regards
    popin

    Hi,
    Subscreens are screens which can be embeded into another screen. These can be used and created with both selection screen as well as screen painter.
      They differ from normal screens in the way that that they don't have OK_CODE field of ther own and there PBO and PAI transfer data to the ABAP program in which these screens were created and the cannot have module calls which change status or leave screen and module call AT EXIT-COMMAND AND E type function codes.
    In screen painter(SE51) choose the subscreen tool button and draw a subscreen area on the screen,this subscreen area will be used to hold the subscreen at run time.To make a subscreen select the attribute screen type as subscreen and specify the size of the subscreen according to the size of the subscreen area in which it will be placed.
    We use ABAP statement to embed and start the flow logic of the subscreen area in the PBO of a screen. A subscreen can contain another subscreen.
    CALL SUBSCREEN subscreen_area INCLUDING program screen_number.
    A similar call should also exist in PAI of screen.It will also call the PAI modules of the subscreen and will transfer data from subscreen to ABAP program.
    CALL SUBSCREEN subscreen_area.
    Subscreen can be created in selection screen using ABAP ststement and can be used with tabstrip defined on the selection screen or with the screen defined in the screen painter.
    SELECTION-SCREEN BEGIN OF SCREEN screen_number AS SUBSCREEN NO-INTERVALS.
    SELECTION-SCREEN END OF SCREEN screen_number .
    to use such a subscreen with tabstrip defined on the selection screen we should
    use the DYNNR compnent of the structure which is created when the tabstrip is created and specifying the number of the screen .We can also define the subscreen statically for such a tabstrip by using
    DEFAULT PROGRAM program SCREEN subscreen_number when declaring a tabstrip in selection screen.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tab_area FOR height LINES.
    SELECTION-SCREN TAB (width)tab_name USER_COMMAND funct_code DEFAULT program SCREEN subscreen_no .
    END OF BLOCK  tab_area .
    For each tabbed apge TAB addition is used with SELECTION-SCREEN statement. At the initialization event we can fill the tabstrip structure to dsiplay the default screen or specify it with DEFAULT addition.
    tab_area-PROGRAM = SY-REPID.
    tab_area-DYNNR  =  subscreen_nummber.
    tab_area-ACTIVETAB = tabname.
    Regards,
    Sruthi

  • Subscreen area

    Hi Gurus,
               How to disable controls of subscreen area.
    m calling subscreen area and creating controls on subscreen area.
    i want to disable controls when i selected check box selecte = 'x'.
    M using Module pool programming .
    Thanks and Regards
    Vinayak Sapkal

    Hi,
    Same requirement in this [Link|Re: diabling subscreen]
    follow the same, hope it helps.
    Regards!

  • Graph X-Axis Labels are appearing in middle for negative y-axis values

    Hi,
    In my Graph Output, the X-Axis Labels are appearing in the middle (where zero is appearing) if the Y-Axis values are negative.
    It's a Line-Graph.
    Can anyone let me know how to move the X-Axis Labels to down?
    I'm using a custom Function module same as 'GFW_PRES_SHOW_MULT' wherein I'm modifying the line colors and appearance. I have to edit in this Function Module to make the X-Axis Labels appear correctly (below) even when there are negative values.
    Please let me know which Parameter of the Class CL_CU_AXIS I've to use.
    Here's the piece of code:
    CALL METHOD graphic_proxy-ref->add_cu_bundle
                EXPORTING
                  port   = if_graphic_proxy=>co_port_chart_y_prim_axis
                  bundle = bundle_axis
                IMPORTING
                  retval = local_retval.
    Thanks & Regards,
    Sowmya

    Hi Sowmya,
    Im Lakshmi working as an ABAP Developer. I have seen your profile in SCN. I saw  your postings about OLE charts.
    I have a requirement to
    1) Output data from an internal table into excel, and
    2) Create a chart from the data in excel
    So far I have been able to export the data using OLE calls, created a chart object,.
    My question:
    1. How to put Data Lables
    2. How to put Data Table under the Chart
    3. How to rename the series names.
    Below is the recorded Macro. I don't know how to convert it to ABAP.
    Sub Macro1()
    ActiveSheet.Shapes.AddChart.Select
    ActiveChart.ChartType = xlColumnClustered
    Application.CutCopyMode = False
    ActiveChart.SetSourceData Source:=Range("B1:E4")
    ActiveChart.SeriesCollection(1).Name = "=Sheet2!$A$2"
    ActiveChart.SeriesCollection(2).Name = "=Sheet2!$A$3"
    ActeChart.SeriesCollection(3).Name = "=Sheet2!$A$4"
    ActiveChart.SetElement (msoElementDataLabelOutSideEnd)
    ActiveChart.SetElement (msoElementDataTableWithLegendKeys)
    End Sub
    I have attached the current output and expected output.
    I have searched about this in google but i could not find any solution for this.
    Your help is greatly appreciated.
    Thanks,
    Lakshmi.

  • Excel graphs in Word document are totally black

    I have a large word document that contains quite a few excel graphs.  Many of the graphs translated into acrobat fine, but some of them are totally black with the line portion of the graph showing up on a black background.  Any ideas what may be causing this?

    If you are having problems creating a PDF, there are two steps you should do FIRST
    Go to the appropriate vendor web site and apply all updates to the program you are using (several recent messages have concerned problems with MS Word conversion, with the response that different versions of Word have different BUGS that must be fixed by a download from Microsoft - and MS Office products are not the only ones which may, from time to time, need to be updated to work properly)
    Go to the Acrobat update page and apply the updates for your version of Acrobat
    IN NUMBER ORDER (updates are not cumulative so, using version 8 as an example, you must apply 8.1.0 before the 8.1.1 update)
    http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    Acrobat 7.0 has several updates to apply

  • Anchor point in the Graph Editor and where are the Tips

    Hello All,
    What is the purpose of an anchor point in the Graph Editor when you have "Show Transform Box when multiple keyframes are Selected" engaged.   The pointer automatically turns into a PanBehind tool.   I moved it inside, outside, on the line and it doesn't seem to have any inpact on the scaling of the transform box.  Not only that, it pops back to the center when you switch from "Edit Speed Graph" and "Edit Value Graph"
    I haven't used the graph editor much, if ever and was also curious to know what/where are the graph tool tips.  I haven't seen any difference when Show Graph Tool Tips is selected.
    Thanks in advance
    on a mac   cs5.5

    OK, I see the Tool Tips are displayed when you hover over a keyframe or the path that is made.

  • How to select a set of points in a xy graph contained in an area draw with the cursor ?

    I'm using tIhe XY graph to plot a Pointcare representation of RR intervals (heart beat). I would like to use the mouse to draw a polygone surrounding the points of interest and get their indexes from the original array. Thank you to oriented me to some strategy!
    Olivier 
    Solved!
    Go to Solution.

    This can be done, but unfortunately is not trivial. Since this is the second request I have seen in the last week for this type of functionality, I would encourage you to post the idea to the LabVIEW Idea Exchange.
    All graphs have a front, middle, and back image, which is set using a picture control data type.  You can use this to draw your cursor using an unfilled rectangle.  You can capture mouse events on the XY graph using the event structure, and update your enclosed rectangle (or ellipse, or whatever you would like to draw) when the mouse moves.  You can extract the enclosed data points from your original data set when a mouse up event occurs or when the user clicks inside the rectangle after drawing it.  You may also want to include ways to tweak the boundaries of the rectangle.
    This is relatively straightforward if you have used the event structure before, but could be very confusing if not.  Let us know if you need more information or help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Can we use same subscreen area with two tabs in same tabstrip

    I have a tabstrip and i want to use same pushbutton for both the tabs.
    Is it possible

    problem solved.
    we have to give same subscreen name in the attribute of the second tab
    regards,
    kushagra

Maybe you are looking for