Search some infos of classes about graph
hi,experts
i want to know more about serveral classes:"cl_gui_customer_container","cl_gui_chart_engine","cl_gui_chart_engine_win"....
thanks for your help!
regards.
ping wang
Check this out , I have recently written this code tutorial to show how to use CL_CHART_ENGINE:
REPORT zat_ce_demo.
* Global Data Portion
DATA: g_t_sflight TYPE STANDARD TABLE OF sflight.
DATA: wa_sflight LIKE LINE OF g_t_sflight. DATA : g_graph_container TYPE REF TO cl_gui_custom_container.
DATA : g_ce_viewer TYPE REF TO cl_gui_chart_engine. DATA: g_ixml TYPE REF TO if_ixml.
DATA: g_ixml_sf TYPE REF TO if_ixml_stream_factory.
DATA: okcode LIKE sy-ucomm.
* Start Of Selection
START-OF-SELECTION.
* Get Data to be displayed on the Chart
SELECT * FROM sflight INTO TABLE g_t_sflight.
* create global objects
g_ixml = cl_ixml=>create( ).
g_ixml_sf = g_ixml->create_stream_factory( ).
* Call the screen to display the chart
CALL SCREEN '100'.
Don't forget to create a dynpro screen having a custom controller using the screen painter. The ID of this custom controller should be 'GRAPH_CONTAINER'. In the PBO of this screen write the code given below :
* Module STATUS_0100 OUTPUT
MODULE status_0100 OUTPUT.
DATA: l_ixml_data_doc TYPE REF TO if_ixml_document,
l_ixml_custom_doc TYPE REF TO if_ixml_document,
l_ostream TYPE REF TO if_ixml_ostream,
l_xstr TYPE xstring. SET PF-STATUS '100'. * For initial display of graph data.
IF g_graph_container IS INITIAL.
* Create the object for container.
CREATE OBJECT g_graph_container
EXPORTING
container_name = 'GRAPH_CONTAINER'.
* Bind the container to the object.
CREATE OBJECT g_ce_viewer
EXPORTING
parent = g_graph_container. * Create XML data using data in internal table.
PERFORM create_xml_data USING l_ixml_data_doc.
l_ostream = g_ixml_sf->create_ostream_xstring( l_xstr ).
* Render Chart Data
CALL METHOD l_ixml_data_doc->render
EXPORTING
ostream = l_ostream.
g_ce_viewer->set_data( xdata = l_xstr ).
CLEAR l_xstr. * Create the customizing data for the chart
PERFORM create_customizing_data USING l_ixml_custom_doc.
l_ostream = g_ixml_sf->create_ostream_xstring( l_xstr ).
* Render Customizing Data
CALL METHOD l_ixml_custom_doc->render
EXPORTING
ostream = l_ostream.
g_ce_viewer->set_customizing( xdata = l_xstr ).
ENDIF. * Render the Graph Object.
CALL METHOD g_ce_viewer->render. ENDMODULE. " STATUS_0100 OUTPUT
* Form CREATE_XML_DATA
* -->P_L_IXML_DOC text
FORM create_xml_data USING p_ixml_doc TYPE REF TO if_ixml_document. DATA: l_simplechartdata TYPE REF TO if_ixml_element,
l_categories TYPE REF TO if_ixml_element,
l_series TYPE REF TO if_ixml_element,
l_element TYPE REF TO if_ixml_element,
l_encoding TYPE REF TO if_ixml_encoding,
l_value TYPE string. p_ixml_doc = g_ixml->create_document( ). * Set encoding to UTF-8
l_encoding = g_ixml->create_encoding(
byte_order = if_ixml_encoding=>co_little_endian
character_set = 'utf-8' ).
p_ixml_doc->set_encoding( l_encoding ). * Populate Chart Data
l_simplechartdata = p_ixml_doc->create_simple_element(
name = 'SimpleChartData' parent = p_ixml_doc ). * Populate X-Axis Values i.e. Categories and Series
l_categories = p_ixml_doc->create_simple_element(
name = 'Categories' parent = l_simplechartdata ). * Here you can populate the category labels. First you need
* to create all the labels and only then you can populate
* values for these labels.
LOOP AT g_t_sflight INTO wa_sflight.
l_element = p_ixml_doc->create_simple_element(
name = 'C' parent = l_categories ).
CONCATENATE wa_sflight-carrid wa_sflight-connid INTO l_value.
* Populate the category value which you want to display here.
* This will appear in the X-axis.
l_element->if_ixml_node~set_value( l_value ).
CLEAR l_value.
ENDLOOP. * Create an element for Series and then populate it's values.
l_series = p_ixml_doc->create_simple_element(
name = 'Series' parent = l_simplechartdata ).
* You can set your own label for X-Axis here e.g. Airline
l_series->set_attribute( name = 'label' value = 'Price' ). LOOP AT g_t_sflight INTO wa_sflight.
l_element = p_ixml_doc->create_simple_element(
name = 'S' parent = l_series ).
* Populate the Value for each category you want to display from
* your internal table.
l_value = wa_sflight-price.
l_element->if_ixml_node~set_value( l_value ).
CLEAR l_value.
ENDLOOP. * Similarly you can have number of Categories and values for each category
* based on your requirement
l_series = p_ixml_doc->create_simple_element(
name = 'Series' parent = l_simplechartdata ).
l_series->set_attribute( name = 'label' value = 'Max Capacity' ). LOOP AT g_t_sflight INTO wa_sflight.
l_element = p_ixml_doc->create_simple_element(
name = 'S' parent = l_series ).
* Populate value for another category here.
l_value = wa_sflight-seatsmax.
l_element->if_ixml_node~set_value( l_value ).
CLEAR l_value.
ENDLOOP. ENDFORM. " CREATE_XML_DATA
After setting up the data we need to pass the customizing data to the chart. Customizing data consists of various parameters which decide the look and feel of your chart. I have done in perform CREATE_CUSTOMIZING_DATA and the code for same is given below :
*& Form CREATE_CUSTOMIZING_DATA
* -->P_L_IXML_CUSTOM_DOC text
FORM create_customizing_data USING p_ixml_doc TYPE REF TO if_ixml_document. DATA: l_root TYPE REF TO if_ixml_element,
l_globalsettings TYPE REF TO if_ixml_element,
l_default TYPE REF TO if_ixml_element,
l_elements TYPE REF TO if_ixml_element,
l_chartelements TYPE REF TO if_ixml_element,
l_title TYPE REF TO if_ixml_element,
l_element TYPE REF TO if_ixml_element,
l_encoding TYPE REF TO if_ixml_encoding.
p_ixml_doc = g_ixml->create_document( ). l_encoding = g_ixml->create_encoding(
byte_order = if_ixml_encoding=>co_little_endian
character_set = 'utf-8' ).
p_ixml_doc->set_encoding( l_encoding ). l_root = p_ixml_doc->create_simple_element(
name = 'SAPChartCustomizing' parent = p_ixml_doc ).
l_root->set_attribute( name = 'version' value = '1.1' ). l_globalsettings = p_ixml_doc->create_simple_element(
name = 'GlobalSettings' parent = l_root ).
l_element = p_ixml_doc->create_simple_element(
name = 'FileType' parent = l_globalsettings ).
l_element->if_ixml_node~set_value( 'PNG' ). * Here you can give the Chart Type i.e. 2D, 3D etc
l_element = p_ixml_doc->create_simple_element(
name = 'Dimension' parent = l_globalsettings ).
* For 2 Dimensional Graph write - PseudoTwo
* For 2 Dimensional Graph write - PseudoThree
l_element->if_ixml_node~set_value( 'PseudoThree' ). * Here you can give the chart type
l_element = p_ixml_doc->create_simple_element(
name = 'ChartType' parent = l_globalsettings ).
* For Bar Char write - Columns
* For Pie Chart write - Pie etc
l_element->if_ixml_node~set_value( 'Speedometer' ). l_element = p_ixml_doc->create_simple_element(
name = 'FontFamily' parent = l_default ).
l_element->if_ixml_node~set_value( 'Arial' ). l_elements = p_ixml_doc->create_simple_element(
name = 'Elements' parent = l_root ).
l_chartelements = p_ixml_doc->create_simple_element(
name = 'ChartElements' parent = l_elements ).
l_title = p_ixml_doc->create_simple_element(
name = 'Title' parent = l_chartelements ). * Give the desired caption for the chart here
l_element = p_ixml_doc->create_simple_element( name = 'Caption' parent = l_title ).
l_element->if_ixml_node~set_value( 'Airline Details' ).
ENDFORM. " CREATE_CUSTOMIZING_DATA
You can use following Category base chart types : Lines, StackedLines, Profiles, StackedProfiles, Bars, StackedBars, Columns, StackedColumns,
Area, StackedArea, ProfileArea, StackedProfileArea, Pie,Doughnut, SplitPie, Polar,
Radar, StackedRadar, Speedometer.
Last but not the least we need to handle some buttons in our PAI.
* Module USER_COMMAND_0100 INPUT
MODULE user_command_0100 INPUT.
CASE okcode.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'BACK'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
Let me know if u need more information.
Similar Messages
-
Hi,
I would like to get certified for the SAP Crystal Reports. So, I would like to get some info about the currently available Certification Exams for Crystal Reports (2011/2013). Also, would greatly appreciate if you have any suggestions for this Certification Exam preparation materials from another 3rd party or from SAP directly . I would like to prepare or get trained well before taking the exam as I see it costs around $500.
Thanks in advance for your help in this regard!
Sincerely,
JPlease search here.. Training and Certification Shop for your desired certification or training. Don't forget to set your location.
Please use some summarized title for your query. -
Need some info about current market on SAP HANA
Hello all,
Iam ajay. I have 2 years experience on java and i learned SAP ABAP and want to learn SAP HANA. I I have some doubts regarding current market on SAP HANA and how people are using HANA now. I have searched a lot in google and contacted many people but i didn't get the good answer. I hope this post provide me the required info. Thanks in advance.
Can somebody please give some info. about the following.
What exactly does the following mean and what is the future of these areas?
BWI with HANA
BODS with HANA
HANA modelling and implementation.
HANA Migrations.
SAP UI5 with HANA.
please spare some of your valuable time and help me on this.
Thanks,
Ajay.Hi
I agree its a common HD webcam with a resolution of 1Mpix.
You can record the video in Mpeg format and the pictures would be taken in format: 160x120, 176x144, 320x240, 352x288, 640x480, 1280x720, 1280x800 -
Some info about database updation automatically based on date..
HI..Data base experts Can u give some suggestions...
some info about the system table date and system form...Hi
Nagaraj
Small Task...
in hr table i shown in the image..
active employee is there..
in administration staring date is there...
if any body will give date and then check box is true =y will be stored in the db..
to day date 05 01 12
if i give date 10 01 13 in staring date if i press add button
in check box column will be saved =Y and date will be saved in 10 01 13 not today date bcz i given 100113
ok
so.
days are running db valueat comobo box db value at date(i given)
today date = 05 01 13 Y 10 01 13
tomarrow = 06 01 13 Y
day after to = 07 01 13 Y
08 01 13 Y
09 01 13 Y
10 01 13 N 10 01 13
in sap particular table date is storing...
so ..if the date what i had given(100113) will be matches to the system date
if check box value entered(i had) Yes
this will become 'N'
automatically
not manually...................
Is it possible.......... -
Pls give some info about userexit
hi everyone,
i never did work on userexit before. Could you give some info about how to create userexit and some knowledge related to that. Any suggestion is appreciated.
Best Regards,
JulianUser exits (Function module exits) are exits developed by SAP.
The exit is implementerd as a call to a functionmodule.
The code for the function module is writeen by the developer.
You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for functionmodule exits is:
EXIT_<program name><3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3 digit suffix>
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
CUSTOMER EXITS-> t-code CMOD.
As of Release 4.6A SAP provides a new enhancement technique, the Business Add-Ins.
Among others, this enhancement technique has the advantage of
being based on a multi-level system landscape (SAP, country versions, IS solutions, partner,
customer, and so on)
instead of a two-level landscape (SAP, customer) as with the customer exits.
You can create definitions and implementations of business add-ins at any level of the system landscape.
You can use below code to find out user exits associated with particular transaction.
*& Report ZUSEREXIT *
*& Finding the user-exits of a SAP transaction code *
*& Enter the transaction code in which you are looking for the *
*& user-exit and it will list you the list of user-exits in the *
*& transaction code. Also a drill down is possible which will help you *
*& to branch to SMOD. *
REPORT zuserexit NO STANDARD PAGE HEADING.
TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
TABLES : tstct.
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name EQ enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
SELECT * FROM tadir INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
*---End of Program.
I hope it gives some basic idea.
Best Regards,
Vibha
*Please mark all the helpful answers -
Sharing some info about Export dumps
Just to share some info about exports happenig in our system
I have a 20GB Database but the dump size is 10GB it keeps growing..the data too grows but the dump has also getting increased significantly...
Has anyone seen encountered soemthing like this...
Strange but to live with it
Oracle 8i on Win2kIs this your Production Database? Did you schedule this export? During peak/off peak business hours? Production
Yes
Off Peak hours
Apart from this export, what database backup procedure you have in place? Full Backups/Incremental all in place
You said, you take export regularly as part of procedure. Is this a strange behavior today or did you observe this previously as well??I have been observing since i joined this company.It was 14GB and Dump was around 7 ..now the DB is 20GB and dump is around 10GB
I was just thinkking for a TB database how much the export would be...:)
Adding on i had a 100Gb db generating 8Gb dump...Looked strange..)BUt that 100GB did not have so amny objects like what i have now...
Thanks -
i would like to get some info of the iphone with serial number below: 7U******A4S and sim lock status. Thanks you!
<Edited By Host>What does it say when you look at Settings=>General=>About=>Carrier?
-
Satellite Pro A10 - need some info about RAM upgrade
Dear Fourm members
In regard to the above machine : please can anyone advise :- how many memory slots does it have.
I think it is two but am not sure.
Also what max size memory module can we have in this laptop please.
If it is 2 @ 1gb per module, then we would have a total of 2gb.
Is the hard drive on this machine a standard laptop hard drive. Can I take the small 20gb one out and replace it with a larger one. eg 120 gb etc
Thank you so much for your help.
IanOn satellite Pro A10 two memory slots are available. Notebook can handle with 1 GB RAM and you can use two compatible PC2100 512MB (PA3164U-1M51) modules.
This old machine uses 2,5 HDD with old IDE connector. I found some info that it was delivered with 20GB, 30GB and 40GB HDDs. I think you can upgrade it with HDD up to 100 GB but just be sure it has the same HDD connector.
If you have more questions you are welcome.
For more info post exact model number please. -
I Need some info about interfacing the PC or laptop to Spectrum analyzer using Labview
we need to control the spectrum analyzer using an interface that will be developed using Labview .
Spectrum analyzer will be connected to tha PC using RS 232C and the waveform observed will be seen in the PC interface of spectrum analyzer.
Pls send some info regarding dis.Using a spectrum analyzer with LabVIEW is a pretty common application, my first program 15 years ago did this. What we need to know to help you though is what model spectrum analyzer are you planning on using? Most of the ones I'm familiar with use the GPIB interface rather than RS232, but that isn't a major issue, the spectrum analyzers command set is the important one. There are a lot of LabVIEW drivers available for a larger number of analyzers, here on the National Instruments' site. Although most use the GPIB interface (or ethernet), they can be used as a starting point to develop an RS232 driver if one isn't available, assuming that there is a driver for the model that you have, or a closely related one (manufacturers frequently use similar command sets within a model type).
So, what type analyzer are you using, and what types of things are you planning on doing with it?
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
Looking for some info before deciding to install
Normally, I would try to some searching before posting, but I've been pressed for time lately. Anyways, I'm looking for some info about Solaris before deciding to dive into installing it.
1) Can it be installed on what's a currently triple-booting system without problems? In this case, Solaris would be installed onto half of the slave HD.
2) How difficult and lengthy is the installation process?
3) Does Solaris come with it's own unique bootloader? Can it recognize other operating systems? Is it possible to not install that bootloader and simply edit the configs for a preexisting GRUB to allow it to boot Solaris?The only way to get content into the Music app is via iTunes store downloads or syncing with itunes on a computer. You will need to find a third party media player such as VLC (whick integrates with DropBox and GoogleDrive, if that appeals to you).
-
Scenario: User enters some info, I only want to be able to see it for 3 day
User will be able to go to a site and enter some info, lets say its like a singles add. After the user submits, I only want the ad to show for 32 hours.
How would i go about flagging the record. I couldnt possibly run a program constantly checking the database for old records. Does anyone have any ideas on this.Hi,
Yes I am saving creation date. The only thing that I am confused on is flagging the record when the date is considered old. DO i have to constantly run a program checking for old dates? What if i run this program every minute. What happens if the data is crucial and if its an old date , it shouldnt even show for the minute in which the purge program hasnt run yet.
My example used hours, but what about using minutes and seconds.
I guess could add lets say 32 hours, 5 minutes to the creation date in the file. If its greater than now, dont show. Then run a purge program every couple of hours to get rid of the old data to speed up processing.
I think I just figured this out, but I am willing for any more input.
Thanks -
PIC01 - Search of Field "FFF Class"
Hi,
I have some FFF Classes created by MM01.
Whenever I go to t-code PIC01, I try to search (F4) for these classes, but only one appears.
The others are created in the same way. It looks like an error of the search in the field "FFF Class"... Any advice you can give me in order that if i search, all the classes are listed??
Thanks and Regards,
MCSAP Note 1668284
-
Need some info on SAP Business One
Hi, Need some info on these questions.
1. Out of this which is the full SAP Enterprise -level business system.
SAP Business One
mySAP All-in-One
mySAP Business Suite
SAP NetWeaver
R/3
2.SAP Business One allows users to export data directly to from screens to which of these:
Into Excel
Into Word
As JavaScript
As XML files
Thanks for the help guys.
NeehalHere is a link about SAP B1 :
http://www.sap.com/solutions/sme/businessone/index.epx
For SAP A1:
http://www.sap.com/solutions/sme/businessallinone/index.epx
Hope this will help
Bishal -
I have a 2.53ghz core 2 duo mac mini. I just purchased an i5 2.5ghz mac mini (with amd 6630m graphics).
Can I simply ermove the OS X boot disk from the core 2 duo mini and put it into the i5 mini and have the it boot up and run fine?
Some info I read suggests I can do this and it should be no problem and will work fine.
I am running 10.9.3 of OS X.
Thanks.- I would connect the two via FireWire
- Boot the new one Target Disk Mode
- Boot the old one in Recovery
OS X: About OS X Recovery
and then uses disk utility to restore the HD on the new computer from the starup disk of the old one.
You could also boot the old one normally, download SuperDuper and the clone the old one's startup disk to the new one. -
Yoga 10 HD+ OTA update- please provide some info
Today I saw a new uodate for my Yoga HD+. The size is approx. 70Mb, after the update (I accepted it) I still have 4.4.2 Android version, same as before the update. Can I ask for more info what was the target for this update and what changes in the system it suppose to make?
Actually, I'd like to read this info BEFORE the update goes to OTA, so I will have some idea what to expect, but it did not happen... Please provide some info now, if possible. The line on screen was about some fixes and new features. Hope tech support has this information.
Thank you.
mikeLenovo doesn't provide change logs for its Android tablet firmware, which is something needs to change.
Maybe you are looking for
-
IPhone stops getting email randomly, won't update???
My iPhone 4 sometimes stops getting email, pushed or fetched. This happens for all email accounts, 2 gmail and 1 mobileme/mac account. I'll suddenly realize that I haven't gotten an email for a long while, and when I check the phone it won't be abl
-
Video won't play in timeline or source monitor
I recently purchased a Canon HG10 camcorder and have been attempting to edit the AVCHD .mts files using Premiere Pro CS4 (4.2.1). However, I have been unable to play the video in either the timeline or source monitor. Both the video and audio will pl
-
I have an ipad 2 that disconnects frequently from Safari and App Sotore. Any known fixes?
-
I've tried both to remove previous version of Adobe AIR runtime from "Program Files > Remove programs" and from command line console by running "AdobeAirInstaller.exe -uninstall" No luck! When I run "AdobeAirInstaller.exe -uninstall" from command lin
-
Ive created a bean and put it into a JAR package, all looks OK but there must be something wrong somewhere as I get the error message ... java.lang.LinkageError: duplicate class definition when I try to load it into beanbox. my JAR looks OK and conta