New to Graphics in ABAP

Hi all!! I have a requirement to create a program that shows a graphic chart, but must show 2 graphic on the same chart, that is a bar graph and a line graph on the same chart. This is to compare actual data with data from previous years, so it must be done on the same chart but with a different type.
I've been looking for examples on trx GRAL, on SAP Help, but I've found nothing like this.
Have anybody done something that might help?
Thanx
Jesus

Hi,
Refer to the following code:
REPORT ZZ__GRAPH .
DATA: BEGIN OF ITAB_DATA OCCURS 0,
DATANAME(15),
QUANTITY1 TYPE I,
QUANTITY2 TYPE I,
QUANTITY3 TYPE I,
END OF ITAB_DATA,
BEGIN OF ITAB_OPTIONS OCCURS 0,
OPTION(20),
END OF ITAB_OPTIONS.
ITAB_DATA-DATANAME = 'Electricity'.
ITAB_DATA-QUANTITY1 = 55.
ITAB_DATA-QUANTITY2 = 62.
ITAB_DATA-QUANTITY3 = 59.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Gas'.
ITAB_DATA-QUANTITY1 = 35.
ITAB_DATA-QUANTITY2 = 52.
ITAB_DATA-QUANTITY3 = 44.
APPEND ITAB_DATA.
ITAB_DATA-DATANAME = 'Water'.
ITAB_DATA-QUANTITY1 = 18.
ITAB_DATA-QUANTITY2 = 22.
ITAB_DATA-QUANTITY3 = 19.
APPEND ITAB_DATA.
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
COL1 = 'Jan'
COL2 = 'Feb'
COL3 = 'Mar'
TITL = 'Utility Expenses in US$.'
TABLES
DATA = ITAB_DATA
OPTS = ITAB_OPTIONS
EXCEPTIONS
OTHERS = 1.
Just copy & paste it in a new program & see the output.
Hope this helps.
Reward if helpful.
Regards,
Sipra

Similar Messages

  • How to Generate and Display SVG Graphics in ABAP

    Hi everybody,
    I tried to complete the Tutorial "How to Generate and Display SVG Graphics in ABAP, Part 1" by Siarhei Ulasenka (https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ad83a990-0201-0010-d680-a189f8bc20fa).
    Unfortunately when I tried the example to display an SVG Drawing in an ABAP Report I get the error message "Es ist ein Laufzeitfehler aufgetreten, ungültiges Zeichen" (english should be something like "Runtime Error, unkown character"). But it works when I open the svgfile in a new IE Window (parameter in_place from cl_gui_html_viewer->show_url). Also when I open a svg file from the local disc it works fine.
    The code:
        CALL METHOD html_control->load_data
          EXPORTING
            url            = 'chart.svg'
            type         = 'image'
            subtype    = 'svg+xml'
          CHANGING
            data_table = lt_svg
          EXCEPTIONS
            OTHERS     = 1.
        CALL METHOD html_control->show_url
          EXPORTING
            url        = 'chart.svg'
            in_place   = 'X'
          EXCEPTIONS
            cntl_error = 1.
    Has anyone a solution? Thanks in advance for your help!
    Regards
    Kathrin

    Hello Alex,
    The Corel SVG viewer has problems loading and displaying the examples (see the list of limitations at their site). Try to use the Adobe viewer instead.
    Regards,
    Sergei Ulasenka

  • Error 7 occurred at Copy in ABAPI Dist New VI Library.vi​- ABAPI Dist Chk for Destinatio​ns.vi- ABA​PI Copy Files and Apply Settings.v​i- EBEP_In​voke_Build​_Engine.vi​- EBUIP_Bu​ild_Invoke​.vi- EBUIP​_Build_Inv​oke.vi.Pro​xyCaller

    When I try to build executables in LabView 8.01 I get message:
    Error 7 occurred at Copy in ABAPI Dist New VI Library.vi->ABAPI Dist Chk for Destinations.vi->ABAPI Copy Files and Apply Settings.vi->EBEP_Invoke_Build_Engine.vi->EBUIP_Bu​ild_Invoke.vi->EBUIP_Build_Invoke.vi.ProxyCaller
    Best Regards

    I got the same error as I tried to build my application, the reason was the string I set for the 'Build specification name' property of my build.
    I changed from '3DC - Dlog Data Compacter ' to '3DC' and it worked afterwards..quite strange behaviour..

  • How to generate new perner number using Abap Code in pa0002. what is the fu

    how to generate new perner number using Abap Code in pa0002. what is the function Module used.

    hi
    define internal number ranges for ur implementation then when u run PA 40  do not input any employee number , system will generate the employee number automatically.
    Regards
    sameer

  • I want to upgrade my MacBook's graphic to the brand new apple graphics, what should I do?

    I want to upgrade my MacBook's graphic to the brand new apple graphics, what should I do?
    coz mine doesn't supports CAD, or any high graphic game pls don't tell me, that ain't possible.

    unfortunately it's been 5 months .
    but that ain't sounds cool that we can't upgrade our devices or there is no promotion for an exchange :-/

  • Starting new database LUW inside ABAP during IDoc posting

    Hi all,
    During posting of an inbound IDoc, I am trying to update my Z-table in user-exit. I want to do it regardless of the result of IDoc posting. The problem is: if IDoc posted successfully - table is updated because COMMIT WORK is called at the end of the posting, however, if IDoc not posted - ROLLBACK WORK is called and table is not updated. So, my aim now is to commit the update of Z-table in any case, but it is the only thing that should be committed - no other prior update FMu2019s should be committed.
    I'm aware about the following thread
    http://forums.sdn.sap.com/thread.jspa?threadID=1884700
    Author of this thread says that he solved a problem by means of RFC and STARTING NEW TASK. But ABAP help says
    that starting asynchronous RFC triggers immediately a database commit in the calling program (which is unacceptable because all prior update FMu2019s will be committed ). I've checked and it is really the case.
    From my point of view SET UPDATE TASK LOCAL with COMMIT WORK should work in such kind of tasks, but in case of IDoc processing the whole process runs in a local update (see SET UPDATE TASK LOCAL in FM 'IDOC_INPUT'), so writing once again SET UPDATE TASK LOCAL has no effect.
    I tested SUBMIT statement as well. It had no effect and then I found out from ABAP help that SUBMIT ... AND RETURN starts new SAP LUW, but NOT a DB LUW. That is if I update my Z-table in the program called by SUBMIT - all ROLLBACK statements still affect my  Z-table update.
    Is there any simple solution? Please suggest.
    Thanks in advance!

    Hello,
    Try SUBMIT VIA JOB.....
    Sample Code
    call function 'JOB_OPEN'
    exporting
    jobname = name
    importing
    jobcount = number
    exceptions
    cant_create_job = 1
    invalid_job_data = 2
    jobname_missing = 3
    others = 4.
    if sy-subrc = 0.
    submit z_idoc_create_process_order and return
    via job name number number
    with p_aufnr = it_header1-aufnr
    with p_werks = it_header1-werks
    with p_autyp = c_autyp
    with p_auart = it_header1-auart
    with p_dispo = it_header1-dispo
    with p_opt = c_opt
    with p_mestyp = c_mestyp.
    if sy-subrc = 0.
    call function 'JOB_CLOSE'
    exporting
    jobcount = number
    jobname = name
    strtimmed = 'X'
    exceptions
    cant_start_immediate = 1
    invalid_startdate = 2
    jobname_missing = 3
    job_close_failed = 4
    job_nosteps = 5
    job_notex = 6
    lock_failed = 7
    others = 8.
    if sy-subrc 0.
    endif.

  • New SAP NW AS ABAP 7.01 SP03 Unicode with standard sapinst installer (beta)

    Hello community,
    a new SAP NW AS ABAP 7.01 SP03 version with the Standard SAPINST installer (note: the "trial version" is beta!) and optimzed single user memory consumption (~2GB pagefile) is available for testing purposes.
    NOTE: The installation step "LOAD DATABASE" may take up to 8h depending on your harddisk (1h on a fast disk). Next release will install faster.
    Recommended: Use Download Manager
    Please report problems here.
    Best Regards, Oliver

    I have installed the Microsoft loopback adaptor, and I still got asked for a DNS entry.  However I've unchecked it and continued...
    After now several attempts at installing and uninstalling and trying again, I got this on the last attempt - this was after starting a new installation and choosing the 'copy to a new folder' option rather than continuing with the former installation...  (It said 'Please inform the installation development' at the end)
    Caught a known exception during service selection. Errortext: ESAPinstException: error text undefined  Message stack: Opened sylib701_1.dll exe dir is C:/Users/James/AppData/Local/Temp/sapinst_exe.1420.1236786919 MessageLib initialized successfully. Opened C:/Users/James/AppData/Local/Temp/sapinst_exe.1420.1236786919/iaguieng701_1.dll receiving and sending on port 21200 Environment variable SAPINST_JRE_HOME set to value 'C:/Users/James/AppData/Local/Temp/sapinst_exe.1420.1236786919/jre'. exe dir is C:/Users/James/AppData/Local/Temp/sapinst_exe.1420.1236786919 Creating file C:\Program Files\sapinst_instdir\x. Removing file C:\Program Files\sapinst_instdir\x. Opened C:/Users/James/AppData/Local/Temp/sapinst_exe.1420.1236786919/iakdblib701_1.dll  This is SAPinst, version 701_1, make variant 701_REL, build 1015514 compiled on Oct 3 2008, 03:27:10  showing dlg diProductChoice <dialog sid="diProductChoice"> <title>Welcome to SAP Installation Master</title> <dialog/> Login in progress Connection request to guiengine backend by host 10.10.0.10 Protocol version is 3.1 Send connect information client logged on Waiting for an answer from GUI CDialogHandler: ACTION_NEXT requested <dialog sid="diProductChoice"> <dialog/> Creating file C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\x. Removing file C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\x. showing dlg diRestartOrCancel <dialog sid="diRestartOrCancel"> Dialog does not contain standard input handler, so the backend is not able to generate a log entry <dialog/> Waiting for an answer from GUI Creating directory C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\log_11_Mar_2009_16_56_41. Syslib info about system call. OS message 32 (The process cannot access the file because it is being used by another process. ) after execution of system call 'rename' with parameter (C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/dev_sapinst, C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/log_11_Mar_2009_16_56_41/dev_sapinst), line (377) in file (syxxcnode.cpp). Copying file C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/dev_sapinst to C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/log_11_Mar_2009_16_56_41/dev_sapinst Copied file 'C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/dev_sapinst' to 'C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/log_11_Mar_2009_16_56_41/dev_sapinst'. Account James-PC/James has ADS path 'WinNT://James-PC/James' James has SID S-1-5-21-3327962229-488744679-1681228067-1000 existence check for user James returned true. inserted account (James, S-1-5-21-3327962229-488744679-1681228067-1000, USER) into the accountcache. Security descriptor of C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/log_11_Mar_2009_16_56_41/dev_sapinst set to O:BAG:S-1-5-21-3327962229-488744679-1681228067-513D:AI(A;ID;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;0x1200a9;;;BU)(A;ID;FA;;;S-1-5-21-3327962229-488744679-1681228067-1006) + PROTECTED_DACL_SECURITY_INFORMATION Removing file C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\dev_sapinst. Syslib info about system call. OS message 32 (The process cannot access the file because it is being used by another process. ) after execution of system call 'DeleteFile' with parameter (C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\dev_sapinst), line (202) in file (synxcfile.cpp). Moving file C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\dev_sapinst to: C:\sap540A.tmp. System call failed. Error 32 (The process cannot access the file because it is being used by another process. ) in execution of system call 'MoveFileEx' with parameter (C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\dev_sapinst, C:\sap540A.tmp, MOVEFILE_WRITE_THROUGH), line (223) in file (synxcfile.cpp). Unable to delete node C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/dev_sapinst with type file: The process cannot access the file because it is being used by another process. Removing file C:\Program Files\sapinst_instdir\NW701\AS-ABAP\ADA\CENTRAL\log_11_Mar_2009_16_56_41\dev_sapinst. Unable to move or rename node C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/dev_sapinst with type file/directory to C:/Program Files/sapinst_instdir/NW701/AS-ABAP/ADA/CENTRAL/log_11_Mar_2009_16_56_41/dev_sapinst: The system cannot find the file specified.  Please inform the installation development, execution will be terminated now.

  • Please help me with portfolio.I am new in graphic design.I need portfolio done immediately soon as possible otherwise my design advisor will not let me register for fall. I need 15 or 10 artworks to show.Please help me

    Please help me with portfolio.I am new in graphic design.I need portfolio done immediately soon as possible otherwise my design advisor will not let me register for fall. I need 15 or 10 artworks to show.Please help me.

    Farooq,
    If you look at the first one, you should be able to align quite easily as follows, View>Smart Guides being your friends:
    1a) ClickDrag the top flower with the Selection Tool (black arrow) so it is clear of the pointy part;
    1b) Click an empty spot on the Artboard to deselect, then ClickDrag the top flower by its bottom Anchor Point (Smart Guides say anchor when you are close enough to grab it) down to snap to the top Anchor Point on the pointy part (Smart Guides say anchor when you are close enough);
    1c) Do the same for the boroom flower.
    If you look at the third one, to get the triangles and the hexagon sized and aligned precisely, you may, creating them with stroke and no fill:
    3a) Click with the Polygon Tool and select a suitable/chosen Radius and 6 Sides, then Object>Transform>Rotate by 30 degrees (or use the Rotate option in the Transform palette), you may Object>Transform>Reset Bounding Box to have it look nicer;
    3b) Click with the Polygon Tool and select the same Radius and 3 sides, then deselect and ClickDrag the top Anchor Point to snap to the top Anchor Point of the hexagon;
    3c) Object>Transform>Rotate by 180 degrees clicking Copy, deselect, and ClickDrag the bottom Anchor Point to snap to the bottomAnchor Point of the hexagon;
    3d) Select all and Ctrl/Cmd+G to Group (for alignment purposes, you will know why if you try without grouping, see below).
    To create full symmetry, you may use circles rather than almost circular ellipses; you may:
    3d) Click with the Ellipse Tool and select a suitable/chosen Width = height;
    3e) Object>Transform>Move a copy vertically by the Height (= Width) twice (or you may Ctrl/Cmd+D to repeat), to get three circles over one another with no gaps;
    3f) Select the topmost and bottommost ones and Object>Transform>Rotate a copy by 120 degrees twice, to have all the seven circles precisley touching one another; you may Group them, but it is not necessary.
    To have everything aligned, just:
    3g) Select everything and click Vertical Align Center and Horizontal Align Center in the Align palette; you may click the pointy group or the circles ojnce more before aligning if you want to keep it in place (that will make it the key object that the other set is aligned to).
    These ways may also help you further.
    Edit: About half an hour after midnight here. High time to attend to other duties, before the sun is up.

  • New Iris graphics on newest MBP 13in 2.4ghz fast enough? Any lag?

    So I've been googling my heart out trying to find anyone who has bought the new MBP 13in 2.4ghz (any ram/hdd combo) and reported on this or not, and have yet to find any that didn't say "it SHOULD be totally smooth" (or the like). I bought my first MBA in September, but then found out about the October event, so I returned it in case the new MBP fit what I wanted better (although the battery life was absolutely amazing on the air).
    The final decision maker for me between buying another 13in Air, or going for the 13in MBP, is if the new Iris graphics can push the retina display without lag consistently.  I read about the 2012 retina models with the intel 4000 onboard graphics lagging for people due to it not being powerful enough.  I prefer the 13in model because it's size works best for what I need, and both just fit into what I can afford, so the 15in is off the table.
    Can anyone who has purchased the based MBP model comment on if the scrolling and general experience is smooth, or if they are experiencing any lag?  This will be my first macbook, and want the best experience I can get (for what I can afford obviously).  If the base MBP isn't strong enough for retina, I have no problem getting the Air with amazing battery life and still good screen quality, but I believe at 9hrs of battery and retina, the new MBP would fit the perfect balance for me of battery vs display quality. 
    I went into the apple store yesterday to judge for myself if retina makes enough of a difference to make it a second option (versus just getting the Air), and the retina is beautiful.  I thought the Air's screen looked great until I played on the retina for a bit, the colors look great, and for some reason, I've very anal about the quality of my fonts, and they just looked amazing on the MBP.  The reason I have turned to the community here is that, sure I did some very minor testing, but a little while in the store going through their demos isn't quite the same as someone who has used it for days in real life.  Obviously I can return one if I'm not satisfied and get the other, but who wants to get a computer setup the way they want, only to run into problems and return it a few days later.
    If this has been asked already, I apologize and if you could point me to that thread, I would be grateful.

    You should also ask this in the MacBook Pro forum. This is the forum for the 13” white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • I had a 'dead' iMac repaired and it needed a new HDD & graphics card, the repairer installed OSX 10.6.8 and i now need to install other software but I am being asked for 'User' password so I may do this, I've no idea what this will be.  Help please.

    I had a 'dead' iMac repaired and it needed a new HDD and graphics card, the repairer installed OSX 10.6.8 and i now need to install other software but I am being asked for 'User' password so I may do this, I have no idea what this will be.  can anybody help please?
    <Personal Information Edited by Host>

    On looking at the secure.log on the iMac with OSX10.6.8, I see these entries at each attempt to scp into the iMac:
    Dec 29 11:06:20 molika sshd[7248]: in pam_sm_authenticate(): Failed to determine Kerberos principal name.
    Dec 29 11:06:26 molika sshd[7246]: Accepted keyboard-interactive/pam for prowat from 137.110.243.132 port 35571 ssh2
    Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 created
    Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 attributes 0x20
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 dead
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Killing auth hosts
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 destroyed
    I don't know what to make of this.
    Peter R

  • Graphics in ABAP OO

    Hi,
         I have to do an application and I have doubt about using ABAP OO or JAVA: it is necessary using a gantt graphic, but the user can move the bars! I know that is possible in Java, using an applet, but would be better using ABAP OO. It's is possible?
    Tks,
    Regards,
    Rafael Soares

    Rafael,
       Take a look at the following Classes that deals with the Graphics:
        1. CL_ALV_GRAPHICS
        2. CLG_GRAPHICS_CHART
        3. CL_DC_GRAPH_RFW
        4. CL_GRAPH_TUT_CHART_MODEL
    It would help you.
    Thanks
    Kam

  • New Line Generation in ABAP

    Hi,
    I need to generate a new line in ABAP.Is there a command which generates a new line.
    For Example:
    Input: lv_string1 = 'ABC', lv_string2 = 'XYZ'
    Concatenate : lv_string1 <newline> lv_string2  INTO lv_string.
    Output:
    lv_string should look like this:
    'ABC
    XYZ'
    Regards,
    Roshith

    Hi Roshith,
    1. Ya, u can generate a new line character
    2. BUT, its effect won't be there
       while displaying using write
    3. try this code (just copy paste)
    report abc.
    data : v(100) type c.
    data : s(2) type c.
    class CL_ABAP_CHAR_UTILITIES definition load.
    v = 'amit'.
    concatenate 'amit'
    CL_ABAP_CHAR_UTILITIES=>newline
    'mittal ' into v.
    write :/ v.
    regards
    amit m.

  • Very New to Graphic Design and Printing

    Hi - I have recently gotten into graphic design for print...invitations, etc, and I purchased an Epson R1900 for my studio.  This is my first printer purchase and I am also very new to CS5 (self-teaching over the last 2-3 months).  So, you can only imagine my printer frustrations...first I had color management issues (still do, but much closer than before due to online research) and now I am trying to load custom paper and print from Illustrator (also using Mac with OSX 10.5.8).  I keep getting a message saying "The source selected in the printer driver is not appropriate for the paper that is loaded in the printer."  What is going on?  I can't have printer issues every time I go to print something!!!  Please help me! 

    In your Applications folder there should be an Epson Printer Utility. You need to change to the custom size there at the driver level and then again in your print dialog when printing the file.
    Many problems with Epson Printer Drivers. In my case I could never get the printer utility to show up on my Mac (even after updating drivers, resetting my printers, troubleshooting with Epson, etc). I finally gave up and started using my PC to print to this printer, so I could change to custom size and roll fed.
    Good luck.

  • New line character in ABAP

    Hi,
    How do ABAP stores new-line character internally?
    Thanks and Regards,
    Sharadha

    Hi Sharadha,
    You can use :
    data :str1(100) type c value 'aabbddcd/ddhdhd',
          count type i.
    vlen = strlen(str1).
    do vlen times.
    if str1(count)= CL_ABAP_CHAR_UTILITIES=>NEWLINE
    then <NewLine Character processing>
    else.
    count = count + 1.
    endif.
    enddo.
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • How to mail chart/graphics in abap

    Hi there,
    I have some abap that creates great charts using GRAPH_MATRIX.
    I have also abaps that send emails with attachments.
    Now I want to email a chart, but I don't know what to specify inn the SO_CONTENT.
    Has anyone experince with this please?
    I did found the following:
    "If the field SO_SEND is set to a value other than SPACE, then the graphic is NOT output on the screen. Instead, a SAPoffice document is generated which is described by the parameters SO_RECEIVER, SO_TITLE and SO_CONTENTS."
    any help appreciated!!
    danny

    Hi,
    You can see a PERFORM GR_SEND called in this function
    Which in turn calls functions SO_OBJECT_INSERT & SO_DYNP_OBJECT_SEND & SO_OBJECT_SEND
    in the include LGRAPFGL  to send the email.
    May be you can debug and check what is happening and you can include the same logic in your program.

Maybe you are looking for