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
Similar Messages
-
How to generate and display the pdf form as a web dynpro abap view
Hi,
I filled the value in the table and displayed in the view,In that view i have one button"TOPDF".
My requirement is,if i click that button,i want to display the table in the PDF output.
For the above requirement,i created another view with interactive form,In that view i created one "pdf" Node and "soure" as a attribute of Type-xstring.Then i binded the soure attribute withe "pdfdatasoure" of my interactive form view.
Now my doubt is how and where can i pass the table values to pdf output.
can any body cleare my doubt with some sample code.
Thanks in Advance.
Regards,
Ravi.Hello Ravi,
Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
Best regards,
Thomas -
How to place an image in database and how to retrieve and display it in the front end
how to place an image in database and how to retrieve and display it in the front end
and to place an image in database and retrieve the image from database using xml
please,help me out.Create a table with a Long RAW Datatype column for storing the Image Column Data.
Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
A save on the form saves the image in the Image item in the long raw column. -
How to copy and paste the graphics from illustrator to MS word. What I tried is exporting in png with highest resolution and then inserting in to word. This loses a bit of resolution in comparison to direct copy and paste as EMF. But if I do a copy and paste, and then take a print of the document, all the graphs and text is printed upside down, flipped back.
Use the Pencil Tool
alex
adrian stock wrote:
> How to copy and paste a single pixel
>
> I want to copy a single pixel and then paste it in the
position of
> another pixel in the same image.
>
> (This is in effect changing the colour of the target
pixel, isn't it.
> But in my case copying an existing pixel seems simpler
than selecting a
> colour from the swatch or using the colour picker.)
>
> What is the most efficient way of doing this?
>
> I tried to select one pixel with the marquee tool. Then
copied it with
> control-C, but then how do I select the target pixel and
paste with
> control-V?
>
> Thanks for your help.
>
> Adrian
> -
How to load and display the external flv video files in dynamicly and the how to control the flv fil
How to load and display the external flv video files in dynamicly using AS 3.0
and How to control the flv file add the play paus button and add seekbar.
I have using to load the flv file following code
var flvPlaceHolder1:MovieClip = new MovieClip();
var vid1:Video = new Video(734, 408);
flvPlaceHolder1.addChild(vid1);
addChild(flvPlaceHolder1);
flvPlaceHolder1.x = 1059;
flvPlaceHolder1.y = 152;
var nc1:NetConnection = new NetConnection();
nc1.connect(null);
var ns1:NetStream = new NetStream(nc1);
vid1.attachNetStream(ns1);
var listener1:Object = new Object();
listener1.onMetaData = function(evt:Object):void {};
ns1.client = listener1;
ns1.play("GV-1600 TURNING.flv");
ns1.addEventListener(NetStatusEvent.NET_STATUS, statusChanged1);
function statusChanged1(ns1:NetStatusEvent):void
trace(ns1.info.code);
if (ns1.info.code == 'NetStream.Buffer.Empty')
trace('the video has ended');
removeChild(flvPlaceHolder1);
//trace('removeChild');
gotoAndPlay(1786);
then how to add the play,paus ,full screen button and seekbar,volumebar.I have to Create the flash presentation for our company product
In this presentation the left side the text animation are displayed then right side the our product video is displayed.
In this presentation i need the following option :
1, The first product video and animation is finished then the next product is played
2, then the video displayed (size width and height 400x300) , I click this video to increase the size(ex:1000x700)
3, then the playing video i control it play, stop, paus button and volume bar, seek bar.
4, then this presentation is displayed on 42 inches LCD TV so this full presentation is run full screen.
I have finished first two steps 1 and 2
the following are the screen short and code:-
code :-
var count=0;
var flvPlaceHolder2:MovieClip = new MovieClip();
var vid2:Video = new Video(734, 408);
flvPlaceHolder2.addChild(vid2);
addChild(flvPlaceHolder2);
flvPlaceHolder2.x = 1059;
flvPlaceHolder2.y = 152;
var nc2:NetConnection = new NetConnection();
nc2.connect(null);
var ns2:NetStream = new NetStream(nc2);
vid2.attachNetStream(ns2);
var listener2:Object = new Object();
listener2.onMetaData = function(evt:Object):void {};
ns2.client = listener2;
ns2.play("GS-4000.flv");
this.addEventListener(Event.ENTER_FRAME, BtnFadeIn2);
function BtnFadeIn2(event:Event):void
if (this.currentFrame == 387)
/*flvPlaceHolder2.x = 30;
flvPlaceHolder2.y = 140;
vid2.width=1800;
vid2.height=800;
trace('Screen size is changed');*/
if(count==0)
flvPlaceHolder2.x = 30;
flvPlaceHolder2.y = 140;
vid2.width=1800;
vid2.height=800;
count++;
ns2.addEventListener(NetStatusEvent.NET_STATUS, statusChanged2);
function statusChanged2(ns2:NetStatusEvent):void
trace(ns2.info.code);
if (ns2.info.code == 'NetStream.Buffer.Empty')
trace('the video has ended');
removeChild(flvPlaceHolder2);
//trace('removeChild');
gotoAndPlay(433);
flvPlaceHolder2.buttonMode=true;
flvPlaceHolder2.addEventListener(MouseEvent.CLICK,home2);
function home2(e:MouseEvent):void
if(vid2.width==734 && vid2.height==408)
flvPlaceHolder2.x = 30;
flvPlaceHolder2.y = 140;
vid2.width=1800;
vid2.height=800;
else
flvPlaceHolder2.x = 1059;
flvPlaceHolder2.y = 152;
vid2.width=734;
vid2.height=408; -
How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char
Hi,
I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4.
RegardsRefer to Note: 239196.1 - PASTA 3.0 Release Information
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=239196.1
Or, you can use XML Publisher.
Note: 551591.1 - Need Latest XML Publisher / BI Publisher Patches For R12
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=551591.1 -
How to acces and display datas storaged in cache for a SUP 2.0 workflow?
HI to all.
I have an application with a item menu which obtains data thought a online request. the result is shown is a listview.
My problem is when my BlackBerry has no conection ( offline scenario). When I select the menu item, I obtain an error.
How to acces and display datas storaged in cache for my MBO? I have read that I can use getMessageValueCollection in custom.js to access to my datas but once I get the datas, How can associate those datas to a Listview like a online request?? Do i have to develop my own screen in html or how?
Thanks.I'm not entirely clear on what you mean by "cache" in this context. I'm going to assume that what you are really referring to is the contents of the workflow message, so correct me if I'm wrong. There is, in later releases, the ability to set an device-side request cache time so that if you issue an online request it'll store the results in an on-device cache and if you subsequently reissue the same online request with the same parameter values within that timeout period it'll get the data from the cache rather than going to the server, but my gut instinct is that this is not what you are referring to.
To access the data in the workflow message, you are correct, you would call getMessageValueCollection(). It will return an object hierarchy with objects defined in WorkflowMessage.js. Note that if your online request fails, the data won't magically appear in your workflow message.
To use the data in the workflow message to update a listview, feel free to examine the code in the listview widgets and in API.js. You can also create a custom listview as follows:
function customBeforeNavigateForward(screenKey, destScreenKey) {
// In this example, we only want to replace the listview on the "My Approvals" screen
if (destScreenKey == 'My_Approvals'){
// First, we get the MessageValueCollection that we are currently operating on
var message = getCurrentMessageValueCollection();
// Next, we'll get the list MessageValue from that MessageValueCollection
var itemList = message.getData("LeaveApprovalItem3");
// Because its a list, the Value of the MessageValue will be an array
var items = itemList.getValue();
// Figure out how many items are in the list
var numOfItems = items.length;
// Iterate through the results and build our list
var i = 0;
var htmlOutput = '<div><ul data-role="listview" data-theme="k" data-filter="true">';
var firstChar = '';
while ( i < numOfItems ){
// Get the current item. This will be a MessageValueCollection.
var currItem= items<i>;
// Get the properties of the current item.
var owner = currItem.getData("LeaveApprovalItem_owner_attribKey").getValue();
var type = currItem.getData("LeaveApprovalItem_itemType_attribKey").getValue();
var status = currItem.getData("LeaveApprovalItem_itemStatus_attribKey").getValue();
var startDate = currItem.getData("LeaveApprovalItem_startDate_attribKey").getValue();
var endDate = currItem.getData("LeaveApprovalItem_endDate_attribKey").getValue();
// Format the data in a specific presentation
var formatStartDate = Date.parse(startDate).toString('MMM/d/yyyy');
var formatEndDate = Date.parse(endDate).toString('MMM/d/yyyy');
// Decide which thumbnail image to use
var imageToUse = ''
if (status == 'Pending'){
imageToUse = 'pending.png';
else if (status == 'Rejected'){
imageToUse = 'rejected.png';
else {
imageToUse = 'approved.png';
// Add a new line to the listview for this item
htmlOutput += '<li><a id ="' + currItem.getKey() + '" class="listClick">';
htmlOutput += '<img src="./images/' + imageToUse + '" class="ui-li-thumb">';
htmlOutput += '<h3 class = "listTitle">' + type;
htmlOutput += ' ( ' + owner + ' ) ';
htmlOutput += '</h3>';
htmlOutput += '<p>' + formatStartDate + ' : ' + formatEndDate + '</p>';
htmlOutput += '</a></li>';
i++;
htmlOutput += '</ul></div>';
// Remove the old listview and add in the new one. Note: this is suboptimal and should be fixed if you want to use it in production.
$('#My_ApprovalsForm').children().eq(2).hide();
$('#My_ApprovalsForm').children().eq(1).after(htmlOutput);
// Add in a handler so that when a line is clicked on, it'll go to the right details screen
$(".listClick").click(function(){
currListDivID = $(this).parent().parent();
$(this).parent().parent().addClass("ui-btn-active");
navigateForward("Request_Details", this.id );
if (isBlackBerry()) {
return;
// All done.
return true; -
How to get and display current year
hi,
how to get and display current year
and need it to convert numeric format if it is orginally
in character format.Hi,
chk this FM.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
rgds
anver
if hlped pls mark points -
How to generate and use Matlab(R2007) .dll's in Labview
Is there a step-by-step example on how to generate and use Matlab(R2007) .dll's in Labview.
Our experimenal hardware is LabView-controlled and we want to pass
images/2d intensity arrays to a more complex matlab program that will
return an array of extracted data which we want to use in LabView again.
Thank you
CarstenI recommend having a wrapper created around the matlab dll that converts the datatypes for you. There is a lot of fooling around with pointers involved which is very difficult in LabVIEW. btw, this got much more complicated after Matlab 7. Essentially, you need to convert your inputs into mxArrays, and then add those mxArrays to an mxArray list that you pass by pointer into the matlab dll. You also need to create a mxArray list for the outputs from the dll which you will need to extract your data out of before converting it back into a LabVIEW supported datatype. It's a big hassle. We do this pretty often, but we have created a c library that handles all the conversions, so it is feasible for us. Unfortunately, I can't share the library, but hopefully this information will help you get where you want to be.
Like I said, it would be easier if you can just get a c developer to write a wrapper for you to keep it simple in LabVIEW. Alternatively, you might try getting your m-code to work in Mathscript.
Chris -
Generate and display excel file
Hi guys,
Is there a way to generate and display excel file in sapgui without the need of downloading the excel file to local directory first?
I found the following 2 ways of doing it, but both require me to download the generated xls file to local directory:
#1 way:
1. Generate the xls file using GUI_DOWNLOAD with the filename = 'c:\test.xls'.
2. Call fm SAP_STARTS_EXCEL and pass in the parameter i_filename = 'c:\test.xls'
#2 way:
1. Generate the xls file using GUI_DOWNLOAD with the filename = 'c:\test.xls'.
2. Upload it back using the below so that i can get it in xstring format.
CALL FUNCTION 'GUI_UPLOAD'
exporting
filetype = 'BIN'
filename = 'C:\test.xls'
tables
data_tab = itab.
3. Then pass it to the cl_gui_html_viewer to display it.
call method html_control->load_data
exporting
url = 'test.xls'
type = 'application'
subtype = 'vnd.ms-excel'
importing
assigned_url = l_url
changing
data_table = l_pdf_data
exceptions
others = 1.
I prefer the #2 way as my program will get wrapped thru ITS server, and it seems the #1 way will not work. So is there any way i can get the excel file to be generated in xstring format so that i can pass to cl_gui_html_viewer straight away to display without having to save to local directory first?
Any other suggestion apart from the above 2 ways are welcome as well.
Thanks guys.Use function module ALV_XXL_CALL. It will solve ur prob immediately.
REPORT ZSKC_ALV_XXL.
TYPE-POOLS : KKBLO.
DATA : ITAB LIKE T100 OCCURS 0,
T_FCAT_LVC TYPE LVC_S_FCAT OCCURS 0 WITH HEADER LINE,
T_FCAT_KKB TYPE KKBLO_T_FIELDCAT.
START-OF-SELECTION.
* Get data.
SELECT * UP TO 20 ROWS
FROM T100
INTO TABLE ITAB
WHERE SPRSL = SY-LANGU.
CHECK SY-SUBRC EQ 0.
* Create the field catalog.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_STRUCTURE_NAME = 'T100'
CHANGING
CT_FIELDCAT = T_FCAT_LVC[]
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
CHECK SY-SUBRC EQ 0.
* make sure you pass the correct internal table name in the field catalog.
t_fcat_lvC-tabname = 'ITAB'.
MODIFY T_FCAT_LVC TRANSPORTING TABNAME WHERE TABNAME NE SPACE.
* Transfer to KKBLO format.
CALL FUNCTION 'LVC_TRANSFER_TO_KKBLO'
EXPORTING
IT_FIELDCAT_LVC = T_FCAT_LVC[]
IMPORTING
ET_FIELDCAT_KKBLO = T_FCAT_KKB
EXCEPTIONS
IT_DATA_MISSING = 1
IT_FIELDCAT_LVC_MISSING = 2
OTHERS = 3.
CHECK SY-SUBRC EQ 0.
* Call XXL.
CALL FUNCTION 'ALV_XXL_CALL'
EXPORTING
I_TABNAME = 'ITAB'
IT_FIELDCAT = T_FCAT_KKB
TABLES
IT_OUTTAB = ITAB[]
EXCEPTIONS
FATAL_ERROR = 1
NO_DISPLAY_POSSIBLE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ENDIF.
It will open the Excel in front of you and populate the cells from your internal table
with color for Key columns.
Cheers
SKC. -
How to assign and display an attribute value from backing bean?
Hello all,
I am using Jdev 11g. I have a form page which has two inputText attributes The first one implements a valueChangeListener feature. When the user enters a value in the first field, a backing bean function will be invoked through the valueChangeListener . In this backing bean function, based on the value in the first field, I want to assign the value to the second field and display it on the page. Can somebody help me how to achieve this?
Thanks,
JohnHi John,
Here is small example.
Create two string variables in your backing bean and generate accessors for them.
private String text;
private String text1;
public void setText(String text) {
this.text = text;
public String getText() {
return text;
public void setText1(String text1) {
this.text1 = text1;
public String getText1() {
return text1;
}Bind this variables to the value property of the input texts you have. Add the valuechangedlistener for the first input text (and also set autosubmit to true for that item). Also, add the id of the first input text as partial triggers for the second input text. Like,
<af:inputText label="Label 1"
binding="#{backingBeanScope.backing_untitled1.it1}"
id="it1"
valueChangeListener="#{backingBeanScope.backing_untitled1.textValueChanged}" autoSubmit="true"
value="#{backingBeanScope.backing_untitled1.text}"/>
<af:inputText label="Label 2"
binding="#{backingBeanScope.backing_untitled1.it2}"
id="it2"
value="#{backingBeanScope.backing_untitled1.text1}"
partialTriggers="it1"/>Finally, put the logic on your value changed listener. Like,
public void textValueChanged(ValueChangeEvent vce){
this.setText1("Hi " + vce.getNewValue());
}Now, when you run the page and enter your name in the first input text, the second input text will display Hi <your_name>
HTH.
-Arun -
Help, how to open and display blobs from tables
Dear all,
I am trying to store ms-word files on a table using a blob column.
Does anyone how to open the files and display them from a form using 9iAS?
Thank you.
Carlos.And there may be, but you won't likely find that here. Do some time searching Google and maybe you'll find code that someone was nice enough to make freely available, although I wouldn't count on it. Were i a programmer and took the time to read those docs and write the code, I'd want to be paid for my time. But there are a lot of programmers who swear by freeware! You may get lucky.
-
How to fetch and display arbitrary log files from a managed host?
We are creating a small management portal for a custom application and need a way to display, in a browser, the contents of an arbitrary log file located on an EM managed host. The effect we are looking for is similar to what you get when you show the contents of a database alert log using EM.
I want to extend the EM agent to get the log and display the contents, but see two problems: (1) it seems like we would have to schedule the fetch of the log contents to happen on a regular basis and would not be able to do it on demand and (2) storing the results in the EM repository seems like it could consume a pile of storage, even if it only stores the logs for 24 hours.
I am pretty sure we can bypass the repository somehow because I think the "show database alert log" EM process does so. Of course, I can't really be sure how this code is getting the alert log, but it seems reasonable to assume it is using the management agent.
Is there some API for the EM Agent that I am missing?
Any ideas would be appreciated.From within OEM it doesnt look possible. User defined metrics (UDM) can only return number or a string. The alertlog fetch is done via alertlogViewer.pl while being passed a couple of parameters.
OEM does have a preliminary/rough api available at http://www.oracle.com/technology/products/oem/emx/index.html but I havent seen anyone make use of it yet.
If you use just a web connection then you will probably run into security issues as a web server can usually only view/access stuff under their htmldoc dir.
Seems like some non-OEM very custom code is what you seek.. -
How to access and display a Web Service from a WSDL in JSP or JSTL ?
Dear All,
We need to access a Web Service which is hosted as WSDL How to access a WSDL file from JSP or JSTL, parse and display the SOAP response in JSP page.
Any simple example or URL as reference to an example will be useful for me.
It seems io tags of jakarta is able to send soap message, but how to display it in JSP.
Yours,
Sankar.BDear Sir,
Yes. I would like to know more about the Forte and how to consume WSDL file from JSTL. The following are my querirs.
1. How to connect the declared JNDI from a JSP page. i.e: the Datasource - ex: booksDS
2. We connect the Tomcat server using JNDI as jdbc/scott. But, if I give jdbc/scott in JSTL as datasource={jdbc/scott}, we could not able to connect. We use the following code in a JSP page to connect the DB from a JSP page. (Its quite easy to modify, so we use the connection in a JSP page.)
3. How to Consume a WSDL url from JSTL. Ex: If there is a URL : http://localhost/ws/MathService.asmx?wsdl OR http://www.xmethods.com/test/BabelFish
4. How to display the result. We tried via SOAP from io taglib of Jakarta, but gives us an SOAP (it also looks like xml) response. But, how to use the value from that soap response in IE client thru JSTL/JSP.
5. Whether this JSTL tool will be available with Forte Enterprise/Community Edition. If so EE, whats the price.
Please Reply Immediatly. We tried, trying, going to try to display a wsdl response, but not able to display in IE thru JSP/JSTL. But, weve tested the www.gotdotnet.com examples of asp.net web services, we are thru. Its quite easy it seems in .NET. But, we feel whether even there is not even one example in JSTL/ Java Web Services Dev. Pack to utilise a web service in full cycle. The example which uve given is thru servlets. We dont use servlets. Cos, its very easy to edit JSP pages, instead of compiling the serv. and using it.
I hope ull reply for all the above queries, since ur from SUN.
Expecting your fav. reply.
Yours,
Sankar.B -
How to retreive and display return value from BAPI
Hello,
I am using SUP to create a sales order application. In my MBO I have a create operation which calls a BAPI to create a sales order. How can I retrieve the return value (saled doc number) and display it on a screen and display it as an Alert of BB application.
Regards
Nidhideep BhandariHi David Brandow,
I have tried your solution where I just created a MBO for my 'operation' and I'm using sync parameters to execute the RFC.
The problem I'm facing is, for example, if I create a record it gets saved in the MBO table and the record successfully gets created in SAP as well after a sync. But when I create another record and sync, the previously saved record in MBO table also gets executed so I'm getting duplicate entries in SAP.
Have you or anyone faced this problem?
Any response is appreciated. Please let me know if I'm not clear, I realized its a complicated scenario.
Thanks,
Sandeep
Maybe you are looking for
-
Hello all, accoording to note 532888 it's not possible to do open item clearing (with vendor and customer postings) with t-code FBCJ. My client want's to do this cleaning in FBCJ. Did someone managed this problem? Thanks anyway.
-
Hello Gurus, We have a application runs two times a day , which fetches data from a remote server. We have a table in which we store URL to access a finance document which is in TIFF format. What we have to do is to get the finance document in to one
-
Connecting two iMac with?
So I have a 27inch retina imac and a mid-2011 21.5inch iMac. I want to use the 2011 iMac as a external display (target mode?) to my 27inch. I have tried using the mini display port to hdmi adaptor but it won't recognise the external monitor. I thoug
-
'is between' used in Dashboard Prompt
I have two columns used in the Dashboard prompt: 1. Department Description: Based on Department ID (In the BMM Layer, the descriptor column is Department ID) 2. Employee Name: Based on Employee ID (In the BMM Layer, the descriptor column is Employee
-
Hi All We have a huge table of around 150GB for which 20 indexes are available. 10 out of 20 indexes are showing BLEVEL=3 in dba_indexes. We are rebuilding these indexes every 3 days in a week to keep performance at peak. However, blevel is not chang