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.
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
KathrinHello 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 -
How do I paint graphics in a JFrame created by netbeans GUI builder?
I hope it's ok to ask netbeans questions here. Frustrated with Eclipse I'm trying netbeans. I went through the tutorial for the UI builder and I have no trouble laying out the usual swing widgets like JPanels, JButtons, etc. What I haven't figured out is how to mix ordinary graphics like Graphics.draw() with these components.
Crude example: 2 JPanels in a JFrame. The one on the left has a JSlider bar. The one on the right has a line or something that gets bigger or smaller according to the slider bar.
If I weren't using the UI builder I'd create a new class that is an extension of JPanel, and override paintComponent() with my draw commands. If I did that to a JPanel I layed out with the UI builder it would get lumped in with the protected code that's created on the fly and probably erased.
So how do I mix swing components with ordinary graphics without breaking the netbeans UI builder form?
Thanks,
ApcharThis forum is a Java language forum. The NetBeans site has a mailing list. Nabble forums also has NB forums. The contents of both are crossposted. So, you really should post NB use questions to one of them. Post only Java language questions here.
You can add custom code to the guarded (blue) code blocks. Open a component's property window and select the code button at the top. This allows you to insert code in numerous locations within the guarded blocks and retain the code.
You can also click a component's property's ellipsis (...) button to bring up the Property Editor dialog box, then select "Custom Code" from the dropdown list at the top of the dialog.
Note: the above instructions are for NB 6 -
Interactive chart in Webdynpro ABAP
Hi Experts,
I would like to use this thread to discuss on SAP's recommendation to develop Interactive chart in Web dynpro ABAP .
Correct me if Iam wrong ,
1) Business graphics can not be made interactive.
2) With Gantt UI element ( I couldn't find documentation ).
3) Interactive Chart in FPM ?
4) Interactive Chart using FLEX Builder ?
5) HTML Island ? Though not available for Customers with lower version of SAP ?
What is SAP's Road map w.r.t Interactive chart in Webdynpro ABAP ?
Regards,
Karthi MHi Stuart,
Business graphics can be made interactive only with click action.
Gantt UI , Iam not finding any proper documentation. Cursing SAP for that.
If you are lucky enough to have latest version of SAP. Try with SAP UI5 which has got very good interactive capabilities of graph.
Regards,
Karthi M -
Hi.
I´m working in a SAP project with HCM. What the client wants it create a bar chart in a Webdynpro with some information of the employee (appraisals documents).
I have created an ABAP program using the next link
http://wiki.sdn.sap.com/wiki/display/Snippets/CreatingchartsinSimpleABAP+Programs
But this chart must be presented in a Webdynpro with adobe interactive forms. the chart must be created in runtime and the presented in a image field en adobe. But I'm not been able to do this.
Any suggestion ?
thanks for the help.Hi otto.
I used the next post as reference to create a image field in a Adobe form:
/people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
and I used the next post as reference to create a chart from an ABAP program.
http://wiki.sdn.sap.com/wiki/display/Snippets/CreatingchartsinSimpleABAP+Programs
After make some modification to this code in an ABAP program, it still working fine displaying the chart in backend. If i copy this code to the Webdynpro to fill the interfase of the Adobe form it does not work.
After the last
CALL METHOD l_ixml_custom_doc->render
EXPORTING
ostream = l_ostream.
I'm getting the variable l_xstr that I supposed this is the binary string I have assing to the image field. I have two different fields :
IM_GRAFICA type XSTRING
IM_GRAFICA_STRING typpe string
data: img type string.
CALL FUNCTION 'SSFC_BASE64_ENCODE'
EXPORTING
BINDATA = l_xstr
bindata = ls_zrh_test_grafico-IM_GRAFICA
BINLENG =
IMPORTING
B64DATA = ls_zrh_test_grafico-IM_GRAFICA_STRING
EXCEPTIONS
SSF_KRN_ERROR = 1
SSF_KRN_NOOP = 2
SSF_KRN_NOMEMORY = 3
SSF_KRN_OPINV = 4
SSF_KRN_INPUT_DATA_ERROR = 5
SSF_KRN_INVALID_PAR = 6
SSF_KRN_INVALID_PARLEN = 7
OTHERS = 8
neither the two of them are working. But If I add the next code in order to use an image from the SE78. It work fine.
Get the Photographs.
lv_pernr1 = 'ENJOY'. "
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = c_graphics
p_name = lv_pernr1
p_id = c_bmap
p_btype = c_bcol
RECEIVING
p_bmp = ls_z_abs_pdf_test_2-im_photo
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
Does any one know what I'm doing wrong?
Thanks in advanced. -
How many mails i can send at a time per day using APEX mail system?
HI,
I am working on application, when i have written a process to send mail, i have a project where i have to send mail at a time for all the email id's
given list there are upto 5000 email id's where text body also include certain set of data from a report. thinking at a time 3000 its difficult i divided
it region wise, but still each region have 2000 odd email id's. during testing when i run the process just 950 mails i could send then i got a error
saying "ORA-20001: You have exceeded the maximum number of email messages per workspace. Please contact your administrator." so please
can any one help me to know How many mails i can send at a time per day using APEX mail system?
Thanks in advance
GowthamiHi jfosteroracle,
You are getting the error may be the following reason,
Check the following,
Login as ADMIN and Goto -->Manage Instance-->Instance Settings--> Mail-->Maximum Emails per workspace
Actually this number denotes the Number of mails can be sent per 24 hour for the workspace,It may exceeded.
It may be the reason.
Thank you.
Regards,
Gurujothi
Edited by: Gurujothi on Jun 27, 2012 5:54 AM -
How to convert special characters in ABAP to XML?
Hi All.
We have a scenario where from XI (exchange Infrastructure), a BAPI is called which returns an XML. From that XML, a PDF is generated.
Now, if the XML contains any special characters, it will fail.
So if any CHinese char or >, # etc signs are there, it fails.
Can you please tell me how to convert my string in ABAP to a proper XML?
I am new to it and I was trying the following code
DATA: today TYPE string,
result TYPE string.
today = 'This is testing'.
CALL TRANSFORMATION ID
SOURCE today = today
RESULT XML result.
IF sy-subrc = 0.
WRITE result.
ENDIF.
But it does not return me anything.
Thanks in adv.hi
good
go through these links,hope these would help you to solve your problem
http://www.sap-press.de/download/dateien/792/sappress_abapreference_2edition.pdf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
thanks
mrutyun^ -
How to save the data of ABAP report into a notepad in desktop location???
HI all,
Can any one tell me how to transfer the data of ABAP report into a Notepad.
Actually I have to schedule a ABAP report in background on daily basis and I want to transfer the
whole record into Notepad.
If any program is available for this..please clearify the relevent code for transferring.
Thanks
Rajeevdeclare a character type internal table.
now move your data from it_data ( internal table with data ) into table itab.
since you are running this report in background, you cannot save it to the desktop. Instead give any app server location
data: itab(400) occurs 0 with header line.
field-symbols: <fs1> type any.
data: gv_file type rlgrap-filename default 'TEST.TXT'.
data: gv_filepath type rlgrap-filename default <path>.
LOOP AT it_data.
DO 100 TIMES.
ASSIGN COMPONENT sy-index OF STRUCTURE it_data TO <fs1>.
IF sy-subrc = 0.
CONCATENATE itab <fs1> INTO itab SEPARATED BY ' '.
ELSE.
EXIT.
ENDIF.
ENDDO.
SHIFT itab LEFT DELETING LEADING ' '.
APPEND itab.
CLEAR itab.
ENDLOOP.
concatenate gv_filepath '/' gv_file into gv_file.
OPEN DATASET gv_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
LOOP AT itab.
TRANSFER itab TO gv_file.
ENDLOOP.
CLOSE DATASET gv_file.
ENDIF. -
my mail has been working perfectly on my 3gs iphone. I can now longer access the mail after tapping on the mail icon. All i get is a blank screen with a reload icon and a write icon at the bottom, neither of which responds when touched. The icon continues to tell me how many mails I have in my inbox and continues to update.
Any ideas?
am on version 4.3.4 operating system.
ThanksI have tried that also, but its still doing the same thing
-
HT1277 How many mail accounts can I configure in "Mail" on my mac book pro ?
Im trying to open multiple mail accounts in "Mail" but am unable to. How many mail accounts can I configure ?
http://support.apple.com/kb/TS3276
http://support.apple.com/kb/HT1277
http://www.apple.com/support/macosx/mailassistant/
should be as many as you want
http://www.dummies.com/how-to/content/adding-a-new-mail-account-in-mac-os-x.html -
How do we call smartforms in abap program or web services
how do we call smartforms in abap program or web services
How many types of smartforms are there?
points will be rewardedHi
See this sample program
Using the fun module smartform is called from the program
Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
<b>call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'</b>
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function <b>FM_NAME</b>
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to call java program from ABAP
Hi Experts,
My requirement is to call java programs from ABAP. For that i have set up SAP JCO connection by using this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/739. [original link is broken] [original link is broken] [original link is broken] Connection gets sucessfully. After this how to call java program from ABAP as per our requirement. Please help me out.
Also i tried this way also.. but while executing the DOS Command line appear & disappear in few seconds. So couldnt see the JAVA output. Please help me out to call java programs in ABAP..
DATA:command TYPE string VALUE 'D:Javajdk1.6.0_20 injavac',
parameter TYPE string VALUE 'D:java MyFirstProgram'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = command
parameter = parameter
OPERATION = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
OTHERS = 8.
Thanks.This depends on the version of your Netweaver Java AS. If you are running 7.0, you will have to use the Jco framework. The Jco framework is deprecated since 7.1 though. If you want to build a RFC server in 7.1 or higher, it is adviced that you set it up through JRA.
Implement an RFC server in 7.0:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
Implement an RFC server in 7.1 or higher:
http://help.sap.com/saphelp_nwce72/helpdata/en/43/fd063b1f497063e10000000a1553f6/frameset.htm -
How to call subroutines defined in ABAP program with type S
how to call subroutines defined in ABAP program with type S? can you give an example?
Normal executable program,
REPORT ZTEST_MAIN.
perform sub1 in program ztest_sub.
"you can call using in program addition
Subroutine pool program
PROGRAM ZTEST_SUB.
form sub1.
endform. -
How to call a idoc in abap program and updates catsdb table
how to call a idoc in abap program and updates catsdb table
thank you,
Jagrut BharatKumar ShuklaHi Kishan,
You can refer to following help document,
http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/content.htm
Regards,
Meera -
Need direction on how to make motion graphics -AF CS5
I didn’t know how to word the header for my question so I’ll try to clarify it here. I’m new to AF so please bear with me. In the Adobe tutorial at the link below, he animates a flower. The flower is in front of a colored background and there are some added text that animate as well. I understand about layers but my question is, can I make a graphic like the one in the tutorial in Photoshop CS5 and import it into AF? I just ordered a copy of PS CS5 and have not gotten a chance to work with PS. When I searched the net about my question, I found many links describing how to make web graphics. Would I be making the same thing and saving them not as a web graphic? If I can make something similar to the flower in the tutorial, then I can go from there. I guess what is confusing for me is that the background and flower assets are mp4 (mpeg) video. I thought it would be two graphics in 2 layers, plus additional text as more layers. http://tv.adobe.com/watch/learn-after-effects-cs5/gs05-working-with-layers/
Thank you Kevin. I'll kinda figured that would be the be the steps but wasn't real sure. Once I get going in PS, I'll better understand how to do things.
Wow, lots to learn.
Maybe you are looking for
-
Error while registering Oracle JDBC Diagnosability MBean
Hi All, I get the following error (pasted at the end)when trying to use the OracleDriver class to create connections. I am using JDeveloper11g-11.1.1.2.0, and JDeveloper11g-11.1.1.2.0/wlserver_10.3/server/ext/jdbc/oracle/11g/ojdbc6.jar. I read other
-
Thunderbird re-downloads my messages over and over upon opening
I am a recent adopter of TB running v.31.2.0 OS is: Yosemite OSX 10.10 The server I am connected to is an IMAP (Outlook) account (The Outlook account is aslo connected with ios 8 mail on an iphone 5s) Nearly every time I open TB from closed, it re-do
-
Using ORADIM to create instance on Oracle 10g R2, windows platform
Please I used the below command to create database instance to startup at the same time as of the OS is starting up. ORADIM -new -sid ORCL -SRVC OracleServiceORCL -STARTMODE auto -SRVCSTART system -PFILE C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\INITORC
-
My account stopped working a week ago. I can't find any information about this on the internet anywhere. What's going on?
-
Hi, about sms and subscription
i dont use much skype at all beside using the phone once or twice a weeek during the day.. now im very surprised that i cant send sms because it isnt include in the subscription of 1 year i paid already. pretty amazing that it aint included but w.e.