Attachement in Arabic
Hi, i bought a new Blackberry Q10, it's working fine, but i have a small problem, when i send en email with attached name written in arabic, the receiver receive well the email but the attachement will have the ".dat" extension. what to do in such situation?
As to the documentation, try Oracle Applications Releases 11i and 12, pick your EBS version and look for the Oracle Applications Developer's Guide and the Oracle Application Framework Personalization Guide. If these don't help, please post your question in the General EBS Discussion forum.
Craig...
Similar Messages
-
Arabic text in excel attachment in mail
my requirement is to mail the excel file so I used the internal table
to create an excel and used FM SO_NEW_DOCUMENT_ATT_SEND_API1, While the
excel file is created but however the arabic is not downloaded
correctly. It is downloaded with junk characters.
CONSTANTS:y_k_con_tab TYPE c VALUE
cl_abap_char_utilities=>horizontal_tab,
y_k_con_cret TYPE c VALUE
cl_abap_char_utilities=>cr_lf.
LOOP AT lt_output INTO ls_output.
MOVE ls_output-zdate_changed TO lv_datechanged.
MOVE ls_output-zdate_created TO lv_datecreated.
CONCATENATE ''''
lv_datechanged
INTO lv_datechanged.
CONCATENATE ''''
lv_datecreated
INTO lv_datecreated.
*Concatenate text fields to send the email in the r=uired format.
CONCATENATE ls_output-zexcess
ls_output-zbranch
ls_output-znotes
ls_output-zstatus
lv_datechanged
ls_output-zdate_changed
ls_output-zemp_changed
ls_output-zinitial_status
lv_datecreated
ls_output-zdate_created
ls_output-zemp_created
ls_output-zproduct_name
ls_output-zministry_name
ls_output-zentity_name
ls_output-zposting_date
ls_output-zservice_id
INTO y_wa_htop_new SEPARATED BY y_k_con_tab .
CONCATENATE y_k_con_cret
y_wa_htop_new
INTO y_wa_htop_new .
APPEND y_wa_htop_new TO y_i_htop_new.
CLEAR: y_wa_htop_new.
ENDLOOP.
*ENDLOOP.
i_attachment] = y_i_htop_new[.
SUBJECT OF THE MAIL.
w_document_data-obj_name = 'MAIL_TO_HEAD'.
w_document_data-obj_descr = text-001.
BODY OF THE MAIL
w_body_msg = text-002.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
w_body_msg = space.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
w_body_msg = text-003.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
w_body_msg = space.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
w_body_msg = text-004.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
w_body_msg = space.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
w_body_msg = text-005.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
WRITE PACKING LIST FOR BODY
DESCRIBE TABLE i_body_msg LINES g_tab_lines.
*describe table i_attachment lines g_tab_lines.
w_packing_list-head_start = 1.
w_packing_list-head_num = 0.
w_packing_list-body_start = 1.
w_packing_list-body_num = g_tab_lines.
w_packing_list-doc_type = 'RAW'.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
WRITE PACKING LIST FOR ATTACHMENT
w_packing_list-transf_bin = 'X'.
w_packing_list-head_start = 1.
w_packing_list-head_num = 1.
w_packing_list-body_start = 1.
DESCRIBE TABLE i_attachment LINES w_packing_list-body_num.
w_packing_list-doc_type = 'XLS'.
w_packing_list-obj_descr = 'Service_Details'.
w_packing_list-obj_name = 'Service_Details'.
w_packing_list-OBJ_LANGU = 'A'.
w_packing_list-doc_size = w_packing_list-body_num * 255.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
FILL THE DOCUMENT DATA &GET SIZE OF ATTACHMENT
w_document_data-obj_langu = sy-langu.
READ TABLE i_attachment INTO w_attachment INDEX g_tab_lines.
w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN(
w_attachment ).
RECEIVERS LIST.
w_receivers-rec_type = 'U'. "Internet address
w_receivers-receiver = y_lv_emailid.
w_receivers-com_type = 'INT'.
w_receivers-notif_del = 'X'.
w_receivers-notif_ndel = 'X'.
APPEND w_receivers TO i_receivers .
CLEAR:w_receivers.
SEND MAILS TO RECIPIENTS
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_document_data
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = g_sent_to_all
TABLES
packing_list = i_packing_list
contents_bin = i_attachment
contents_txt = i_body_msg
receivers = i_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc = 0 .
*MESSAGE s WITH 'Mail has been Successfully Sent.'.
ENDIF.
Kindly suggest how will I get arabic downloaded and sent as attachment
in email. Can I write a file to application server and send that
particular file as attachement? Can I use BCS class for mailing excel
file? Will it support arabic text?with Excel it is always a good idea to encode your data in UTF-16 LE.
to do so, take your internal table in SOLI format and call
CL_BCS_CONVERT=>TXT_TO_SOLIX
with iv_codepage = 4103 and iv_add_bom = 'X'.
you will get a binary table SOLIX as a result and just have to attach it to your message -
Arabic characters issue in smtp email csv attachment
Hi all,
the below email extracts the output of a query and sends it as an attachment in csv format.
but the arabic characters are coming as question marks in the attachment, can someone kindly help, below is hte code
procedure test is
smtp UTL_SMTP.connection;
reply UTL_SMTP.reply;
csvContent clob;---added
procedure W( line varchar2 default null ) is
begin
UTL_SMTP.write_data(
smtp,
line || utl_tcp.CRLF
end;
begin
smtp := UTL_SMTP.open_connection('test.domain.com',25);
--// IMPORTANT: specify the hostname of the plaform sending the mail!
UTL_SMTP.helo( smtp,'test.domain.com');
UTL_SMTP.mail( smtp,'[email protected]' );
UTL_SMTP.rcpt( smtp,'[email protected]' );
UTL_SMTP.open_data( smtp );
--// mail header
W( 'MIME-Version: 1.0' );
W( 'Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C87DCB.CD85F300"');
W( 'Subject: test' );
W( 'From: test' );
--// mail text body
W();
W( '------_=_NextPart_001_01C87DCB.CD85F300' );
W( 'Content-Transfer-Encoding: 8bit' );
W( 'Content-Type: text/plain' );
W( 'Charset: AL32UTF8' );
W();
W( 'Dear All' );
W();
W( 'test' );
W();
--// mail attachment
W();
W( '------_=_NextPart_001_01C87DCB.CD85F300' );
W( 'Content-Disposition: attachment; filename="test.csv"' );
W( 'Content-Type: text/plain' );
W( 'Charset: AL32UTF8' );
W();
W( 'EMPNO'||','||'ENAME );
for c in( SELECT EMPNO,ENAME FROM EMPLOYEES ) loop
W( c.EMPNO||','||c.ENAME );
end loop;
W( '------_=_NextPart_001_01C87DCB.CD85F300' );
UTL_SMTP.close_data( smtp );
UTL_SMTP.quit( smtp );
end;thanks srini, i am using microsoft excel,
i think it is a character conversion issue, i had tested by sending the below message without charset=AL32UTF8 and arabic was displayed as junk, after giving the value of charset its working.
begin
utl_mail.send(
sender => '[email protected]',
recipients => '[email protected]',
subject => 'Subject',
message => 'إلاق فرع (ح',
mime_type => 'text; charset=AL32UTF8');
end;I think in the code i am not passing charset value correctly, can you kindly tell me where i can give the charset in the below code
procedure test is
smtp UTL_SMTP.connection;
reply UTL_SMTP.reply;
csvContent clob;---added
procedure W( line varchar2 default null ) is
begin
UTL_SMTP.write_data(
smtp,
line || utl_tcp.CRLF
end;
begin
smtp := UTL_SMTP.open_connection('test.domain.com',25);
--// IMPORTANT: specify the hostname of the plaform sending the mail!
UTL_SMTP.helo( smtp,'test.domain.com');
UTL_SMTP.mail( smtp,'[email protected]' );
UTL_SMTP.rcpt( smtp,'[email protected]' );
UTL_SMTP.open_data( smtp );
--// mail header
W( 'MIME-Version: 1.0' );
W( 'Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C87DCB.CD85F300"');
W( 'Subject: test' );
W( 'From: test' );
--// mail text body
W();
W( '------_=_NextPart_001_01C87DCB.CD85F300' );
W( 'Content-Transfer-Encoding: 8bit' );
W( 'Content-Type: text/plain' );
W( 'Charset: AL32UTF8' );
W();
W( 'Dear All' );
W();
W( 'test' );
W();
--// mail attachment
W();
W( '------_=_NextPart_001_01C87DCB.CD85F300' );
W( 'Content-Disposition: attachment; filename="test.csv"' );
W( 'Content-Type: text/plain' );
W( 'Charset: AL32UTF8' );
W();
W( 'EMPNO'||','||'ENAME );
for c in( SELECT EMPNO,ENAME FROM EMPLOYEES ) loop
W( c.EMPNO||','||c.ENAME );
end loop;
W( '------_=_NextPart_001_01C87DCB.CD85F300' );
UTL_SMTP.close_data( smtp );
UTL_SMTP.quit( smtp );
end; -
Arabic and Chinese characters are showing ??? in PDF
Hi
I hava an application which calls BI publisher API to generate PDF file from rtf temlate and xml input. It is fine for English contents. But the Arabic or Chinese characters are showing ??? in PDF. If I use BI publisher Desktop to load the xml and generate pdf file, it shows correct Arabic/Chinese Characters in PDF. I also copied ALBANWTJ.ttf file to my application JAVA_HOME/jre/lib/fonts/ folder. But it still doesn't work. Anyone can help me with this?
Thanks a lot!I created xdo.cfg and put it in my JAVA_HOME/jre/lib/ folder. the file is configured as below:
<?xml version="1.0" encoding="UTF-8"?>
<config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
<properties>
<property name="system-temp-dir">/tmp</property>
</properties>
<fonts>
<font family="Default" style="normal" weight="normal">
<truetype path="/fonts/ALBANWTJ.ttf"/>
</font>
</fonts>
</config>
But now I'm getting this error while generating pdf file:
Adobe Reader could not open 'xxx.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
Is there anything wrong in my xdo.cfg?
Thanks! -
How to show arabic data in to crystal reports ?How to aligh crystal report right to left
<p>we are trying to make a crystal report for both english and arabic..All the arabic data is stored in data base tables.And for arabic screens we need tables and datas come right to left.. </p><p>1)How can we get the arabic data and right to left alignment in crystal reports? </p><p>2)Is thee any direct method to change the report alignments? </p><p>can u please send some sample codes. </p><p>we are using java version= 1.5 </p><p>database using =Oracle 9i </p><p>char set we are using for arabic= CP1256</p><p> Tomcat using=4.1 </p><p>we are using Crystal Reports11 </p><p>We are not having seperate rpt files for reports. we are making each Sections and adding this sections to FieldObjet to make the report dynamically. A sample Employee report in english is attached..Can u instruct how can i get this report in arabic assuming all datas are stored in database. </p><p><br />import java.awt.BorderLayout;<br />import javax.swing.JFrame;<br />import com.crystaldecisions.ReportViewer.ReportViewerBean;<br />import com.crystaldecisions.sdk.framework.CrystalEnterprise;<br />import com.crystaldecisions.sdk.framework.IEnterpriseSession;<br />import com.crystaldecisions.sdk.occa.managedreports.IReportAppFactory;<br />import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;<br />import com.crystaldecisions.sdk.occa.report.data.;<br />import com.crystaldecisions.sdk.occa.report.definition.;<br />import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;<br />import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;<br />import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;<br />public class ReportSample {<br /> ReportClientDocument rptDoc=null;<br /> int fldTop=0;<br /> int fldWidth=1440;<br /> int fldHeight=400;<br /> int pageWidth=11500;<br /> ReportSample(){<br /> try{<br /> IEnterpriseSession oEnterpriseSession= CrystalEnterprise.getSessionMgr().logon("Administrator", "","zzzza","secEnterprise");<br /> IReportAppFactory oReportAppFactory = (IReportAppFactory)oEnterpriseSession.getService("", "RASReportService");<br /> rptDoc = oReportAppFactory.newDocument(java.util.Locale.ENGLISH);<br /> Table oTable = new Table();<br /> oTable.setConnectionInfo(getConnectionInfo("zzzzz","zzzz","zzz", "zzz"));//Connectin to oracle database<br /> oTable.setName("EMP1");<br /> rptDoc.getDatabaseController().addTable(oTable, null);<br /> String[] columnName={"EMPNAME"};<br /> Section dtlSection=(Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br /> int fldLeft=100;<br /> for (int i=0;i<columnName.length;i+)<br /> {<br /> <br /> dtlSection= (Section) rptDoc.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0);<br /> try{<br /> FieldValueType fldValueType = FieldValueType.stringField;<br /> String javaDataType="String";<br /> add_db_field(<br /> dtlSection, <br /> oTable.getName()"."columnName<i>, <br /> fldValueType,javaDataType,<br /> fldLeft, fldTop, fldWidth, fldHeight);<br /> }catch(Exception e){<br /> e.printStackTrace();<br /> }<br /> fldLeft = fldLeftfldWidth;<br /> }<br /> <br /> <br /> try { <br /> //Create and set up the window.<br /> JFrame frame = new JFrame("ReportsViewer");<br /> frame.setTitle( "Crystal Reports Viewer");<br /> frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br /> ReportViewerBean viewer = new ReportViewerBean();<br /> viewer.init( new String[0], null, null, null);<br /> IReportSource rptSource = rptDoc.getReportSource();<br /> viewer.setReportSource( rptSource );<br /> frame.getContentPane().add( viewer, BorderLayout.CENTER );<br /> frame.setSize( 700, 500 );<br /> frame.setVisible(true);<br /> viewer.start();<br /> }catch(Exception e)<br /> {<br /> e.printStackTrace();<br /> }</p><p> }catch(Exception e)<br /> {<br /> e.printStackTrace();<br /> }<br /> }<br /> public ReportObject add_db_field(Section oSection, String field_name, <br /> FieldValueType oFieldValueType,String fldDataType,<br /> double x, double y, double w, double h)<br /> throws ReportSDKException<br /> {<br /> DBField oDBField = new DBField();<br /> oDBField.setName(field_name);<br /> oDBField.setType(oFieldValueType);<br /> FieldObject oFieldObject = new FieldObject();<br /> oFieldObject.setDataSource(oDBField.getFormulaForm());<br /> oFieldObject.setFieldValueType(oDBField.getType());<br /> IndentAndSpacingFormat indentSpacing = new IndentAndSpacingFormat();<br /> IStringFieldFormat stringFieldFormat = oFieldObject.getFieldFormat().getStringFormat();<br /> stringFieldFormat.setIndentAndSpacingFormat(indentSpacing);<br /> oFieldObject.getFieldFormat().setStringFormat(stringFieldFormat);<br /> rptDoc.getReportDefController().getReportObjectController().add(oFieldObject, oSection, -1);<br /> return oFieldObject;<br /> }<br /> public ConnectionInfo getConnectionInfo (String new_username, String new_password, String new_dsn, String new_database)<br /> {<br /> <br /> ConnectionInfo oConnectionInfo = new ConnectionInfo(); // Make a copy, don't change the original.<br /> PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();<br /> oPropertyBag1.put("QE_ServerDescription", new_database);<br /> oPropertyBag1.put("Database DLL", "crdb_oracle.dll" );<br /> oPropertyBag1.put("DSN", new_dsn);<br /> // Set new table logon properties attributes<br /> PropertyBag oPropertyBag2 = new PropertyBag();<br /> oPropertyBag2.put("Server", new_database);<br /> oPropertyBag1.put("QE_LogonProperties", oPropertyBag2);<br /> oConnectionInfo.setAttributes(oPropertyBag1);<br /> oConnectionInfo.setUserName(new_username);<br /> oConnectionInfo.setPassword(new_password);<br /> // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).<br /> oConnectionInfo.setKind(ConnectionInfoKind.CRQE);<br /> return oConnectionInfo;</p><p> }<br /> public static void main(String[] args) {<br /> // TODO Auto-generated method stub<br /> new ReportSample();<br /> //String cmsName = "admin-42cdvir7e(2)";<br /> <br /> <br /> <br /> }<br /> </p><p>}<br /></p>
<p>This issue can be solved when you create the reports without needing to write any extra code. I haven't tested this solution because I don't have any data to test it against.</p><p>First you want to make sure that you are using a UNICODE font which I'm sure you are probably already doing. Then to configure the "Right to Left" you can right click on any field and select "Format Text" or "Format Field". You should see a "Paragraph" tab. In there you can set the content to be "Left to Right" or "Right to Left". The button on the right allows you to make this setting conditional on a parameter value or something like that. I hope this helps. </p><p>Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/blog/10</a></p>
-
Arabic numbers issue in XML Report
Dear Experts,
I have one arabic xml report, when i ran the report it showing english numbers, instead of arabic numbers.But in the output i should get arabic numbers.
Please find the attachment of xml template and output.
could any one help me on this, its urgent.
Thanks in advance.
Best Regards
AmarDear Experts,
I have one arabic xml report, when i ran the report it showing english numbers, instead of arabic numbers.But in the output i should get arabic numbers.
Please find the attachment of xml template and output.
could any one help me on this, its urgent.
Thanks in advance.
Best Regards
Amar -
Problem in displaying smartform as pdf in mail attachment
Hi Gurus,
I have generated a Smartform, converted to PDF and sent as attachment to email, upto this everything working fine.
Now the email is generated with the PDF attachment but Adobe Reader encounters an error when opening.
Error display as below mentioned
Adobe Reader could not open 'abc_X.PDF' because it is either not a supported file type or because the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded).
The program cods as below mentioned
TYPES:BEGIN OF ty_viqmel,
qmnum TYPE viqmel-qmnum,
qmart TYPE viqmel-qmart,
objnr TYPE viqmel-objnr,
qmtxt TYPE viqmel-qmtxt,
erdat TYPE viqmel-erdat,
erzeit TYPE viqmel-erzeit,
aenam TYPE viqmel-aenam,
aufnr TYPE viqmel-aufnr,
qmdab TYPE viqmel-qmdab,
swerk TYPE viqmel-swerk,
END OF ty_viqmel.
TYPES: BEGIN OF ty_t001w,
werks TYPE werks,
name1 TYPE name1,
END OF ty_t001w.
DATA:IT_VIQMEL TYPE TABLE OF TY_VIQMEL,
WA_VIQMEL TYPE TY_VIQMEL,
IT_T001W TYPE TABLE OF TY_T001W,
WA_T001W TYPE TY_T001W,
IT_FINAL TYPE TABLE OF ZPM_T_MAINTENACE,
WA_FINAL TYPE ZPM_T_MAINTENACE.
data: it_diff like it_viqmel,
wa_diff like line of it_diff.
Smartforms data declarations
DATA: lv_fmname TYPE rs38l_fnam, "value 'ZPM_F_MAINTENANCE_REQUEST'.
w_cparam TYPE ssfctrlop ," To display smart form in arabic.
w_compop type ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string,
WA_BUFFER TYPE STRING. "To convert from 132 to 255
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold OTF data recd from the SMARTFORM
t_otf_from_fm TYPE ssfcrescl,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
Objects to send mail.
data:I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
WA_OBJHEAD TYPE SOLI_TAB,
WA_DOC_CHNG TYPE SODOCCHGI1.
DATA: V_LEN_IN LIKE SOOD-OBJLEN,
I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
V_LEN_OUT LIKE SOOD-OBJLEN,
V_LEN_OUTN TYPE I,
V_LINES_TXT TYPE I,
V_LINES_BIN TYPE I.
START-OF-SELECTION.
SELECT QMNUM
QMART
QMTXT
ERDAT
ERZEIT
AENAM
AUFNR
QMDAB
SWERK
OBJNR
FROM VIQMEL
INTO CORRESPONDING FIELDS OF TABLE IT_VIQMEL
WHERE aufnr = SPACE
and qmdab = '00000000'
AND ( QMART EQ 'M1' OR QMART EQ 'M2' OR QMART EQ 'M3' ).
IF SY-SUBRC = 0.
sort it_viqmel by qmnum.
ENDIF.
loop at it_viqmel into wa_viqmel.
perform 72hours.
endloop.
SELECT WERKS
NAME1 FROM T001W INTO TABLE IT_T001W
FOR ALL ENTRIES IN IT_diff
WHERE WERKS = IT_diff-SWERK.
IF SY-SUBRC = 0.
LOOP AT IT_diff INTO WA_diff.
READ TABLE IT_T001W INTO WA_T001W WITH KEY WERKS = WA_diff-SWERK.
IF SY-SUBRC = 0.
WA_FINAL-QMNUM = WA_diff-QMNUM.
WA_FINAL-QMTXT = WA_diff-QMTXT.
WA_FINAL-ERDAT = WA_diff-ERDAT.
WA_FINAL-ERZEIT = WA_diff-ERZEIT.
WA_FINAL-SWERK = WA_diff-SWERK.
WA_FINAL-NAME1 = WA_T001W-NAME1.
WA_FINAL-AENAM = WA_diff-AENAM.
APPEND WA_FINAL TO IT_FINAL.
CLEAR WA_FINAL.
ENDIF.
ENDLOOP.
ENDIF.
clear:w_cparam,w_compop.
w_cparam-langu = 'AR'.
w_cparam-getotf = 'X'.
w_cparam-no_dialog = 'X'. " Suppressing the dialog box
W_COMPOP-TDNOPREV = 'X'.
w_compop-tddest = 'LP01'.
W_COMPOP-TDPRINTER = 'PRINTER'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZPM_F_MAINTENANCE_REQUEST'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = lv_fMNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF sy-subrc <> 0.
Implement suitable error handling here
ENDIF.
CALL FUNCTION lv_fmname
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = w_compop
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = t_otf_from_fm
JOB_OUTPUT_OPTIONS =
TABLES
it_final = it_final
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
Implement suitable error handling here
ENDIF.
t_otf[] = t_otf_from_fm-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
PDF_USERNAME = ' '
IMPORTING
BIN_FILESIZE = w_bin_FILESIZE
BIN_FILE =
TABLES
otf = T_OTF
lines = T_PDF_TAB
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
IF sy-subrc <> 0.
Implement suitable error handling here
ENDIF.
LOOP AT T_PDF_TAB.
TRANSLATE T_PDF_TAB USING '~'.
CONCATENATE WA_BUFFER T_PDF_TAB INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
I_RECORD = WA_BUFFER.
APPEND I_RECORD.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH: I_RECLIST,
I_OBJTXT,
I_OBJBIN,
I_OBJPACK.
CLEAR WA_OBJHEAD.
I_OBJBIN[] = I_RECORD[].
Create Message Body Title and Description
I_OBJTXT = 'Maintenance Request'.
APPEND I_OBJTXT.
DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
READ TABLE I_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'ZPM_F_MAINTENANCE_REQUEST'.
*WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
WA_DOC_CHNG-OBJ_DESCR = 'Maintenance Request'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
Main Text
CLEAR I_OBJPACK-TRANSF_BIN.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
I_OBJPACK-BODY_NUM = V_LINES_TXT.
I_OBJPACK-DOC_TYPE = 'RAW'.
APPEND I_OBJPACK.
Attachment (pdf-Attachment)
I_OBJPACK-TRANSF_BIN = 'X'.
I_OBJPACK-HEAD_START = 1.
I_OBJPACK-HEAD_NUM = 0.
I_OBJPACK-BODY_START = 1.
DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
READ TABLE I_OBJBIN INDEX V_LINES_BIN.
I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
I_OBJPACK-BODY_NUM = V_LINES_BIN.
I_OBJPACK-DOC_TYPE = 'PDF'.
I_OBJPACK-OBJ_NAME = 'ZPM_F_MAINTENANCE_REQUEST'.
I_OBJPACK-OBJ_DESCR = 'Maintenance Request'.
APPEND I_OBJPACK.
CLEAR I_RECLIST.
I_RECLIST-RECEIVER = '[email protected]'.
I_RECLIST-REC_TYPE = 'U'.
APPEND I_RECLIST.
ENDLOOP.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = SY-UNAME
SENDER_ADDRESS_TYPE = 'B'
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = w_sent_all
NEW_OBJECT_ID =
SENDER_ID =
tables
packing_list = I_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = I_OBJBIN
CONTENTS_TXT = I_OBJTXT
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
receivers = I_RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
IF sy-subrc <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
ENDIF.
ENDIF.
Please let me know what could be the problem.
Thanks in advance.
vs.sarvan.Hi Sarvan,
Post the code in code format.Check on the right side for example.
Sy-subrc = 0
Regards,
Madhu. -
Data Integrator: Arabic characters are not correctly displayed
Hi,
I'm trying to load Arabic text via an UTF8 flat file into an Oracle database.
I've read several topics and set the correct code page settings (also during install) for the datastore and flat file.
Already in flat file preview (see attached screenshot), the wrong characters are displayed. The characters as they are displayed, are inserted in the database. So I think that if I get the flat file preview correctly, the text is inserted correctly into the database.
On the other hand: When i copy the contents of the flat file, via a bodi job, to another flat file, the target flat file does contain the correct characters (when opened in a utf8 file reader).
I tried several solutions and also went through the Code Page help topic on the BODI site.
Does anyone know a solution to my problem or know this is a BODI bug or something?
I'm using Designer version 11.5.3.9 (I went through fix notes of versions after 11.5.3.9, but saw nothing mentioned about my problem). The Oracle database does support arabic characters as I can insert them via e.g. SQL Developer.
Thanks a lot in advance!
Picture of the flat file settings and data preview:
[flat file settings and data preview|http://img169.imageshack.us/my.php?image=arabcharyx3.jpg]
Edited by: Willem van Opzeeland on Jul 23, 2008 2:13 PM: added infoHé Amr, thanks a lot! This sounds good.
I indeed saw a kind of this solution somewhere else. What I did not is restarting the computer, since it is a shared server. Maybe that was why it didn't solve my problem.
Before I restart an additional question: I need to convert some files with Turkish characters as well.
Have you got a value which I can put in NLS_LANG, which supports these characters and Arabic characters both at the same time? -
How to create PDF files in Arabic?
Hello,
I work with Adobe Acrobat 7.0 Professional to create PDF files, but I can not insert Arabic characters, could you help me please?
Thank you!
(see the attached file)You need to use Arabic edition of Adobe Acrobat Pro-ME, which allows you to type, view, copy paste Arabic within PDF. To create Arabic PDF you could use a program like Adobe InDesign CS4-ME, and export to PDF in one step! Once the Arabic PDF is created, you can share with anyone, and they can open, view Arabic PDF. If you create PDF correctly, they can type Arabic within the PDF using a free Acrobat ME Reader. Many many options, see http://www.fontworld.com/me/acrobatme.html
-
Problem in converting english text to arabic text in Acrobat XI professional
Hi,
One of our client is facing issue while converting english text to arabic text in Acrobat XI professional. Can somebody help me to find a solution for this.Ok , that is clear the customer has another query. He is trying to convert a pdf Arabic file into word formate but it is showing arabic font which is not in a proper form.i am attaching the print screen .
-
Why "In Design" doesn't support "OTF" Arabic fonts?
In our company, we are using Adobe InDesign CS3 for all of our issues.
All of the Text Format is: (Justifies all lines) option (as attached image)
and also we should (as a magazines) set Justification to: "Arabic" - not "Standard"
So, What is the problem?
V
v
We exported file to PDF with selecting the First option (Arabic) and (Kashidah "on")
then all of the Text Character well be garbage! when we copy it from PDF Reader to another programs
and so we can't copy any correct Text from the PDF file!
But with selecting other option (Standard), Arabic text well be excellent while the format well not be good (many spaces between words)
Also:
It's strange that If I Change the same font to (TTF), all of the options well working fine!
So, any body can help us? please
Thank you.https://bugreport.apple.com/
http://www.apple.com/feedback/ipad.html -
Crystal Reports Basic for Visual Studio 2008 - Export to PDF in arabic font space issue
When exporting the crystal report having Arabic contents to PDF , space characters are replaced with " . Please find the attachment . Is there any way to sort out this issue??
Try searching on "RTL"
Here's a few posts that may help
http://scn.sap.com/thread/909635
http://scn.sap.com/thread/3444105
And this KBA - 1322752 - Does Crystal Reports support Arabic characters?
And this one is the ultimate answer:
1926379 - SAP BusinessObjects BI Right-to-Left (RTL) Support
CR for VS 2008 is CR Basic, it may not be able to. Upgrade to CR for VS 2010+.
Don -
Arabic text not supported in PDF
Hi
I developed smartform which has some arabic text and english text
this form should be sent mail PDF attached .
form is going to mail properly. but when i opened form arabic text are coming in block english text are coming properly
please help me how to handle this for supporting arabic text in pdfPlease refer the link. May be some note we have to apply..
http://boardreader.com/thread/Problem_Converting_Arabic_Smartform_to_P_6s4dbX12jnr.html
Arabic letters & RTL in Smartform
Refer this link is more helpful for you.
Problem Converting Arabic Smartform to PDF
Edited by: Dhina DMD on Jun 7, 2011 9:31 AM -
Hi All!
I'm working with Macromedia Flash MX 6.0 (Thats not a
professional version).
Here is a picture showing you my ideas.
I want to make a registration form that needs user to type
his/her information in
Persian/Arabic.(I mean persian or arabic fonts)
I have a "Input Text Field" there and the characters doesnt
attache eachother.
Note:
I have one software 'Maryam'. I can write in Arabic in this
software and copy to clipboard
and paste it in a flash text field.But for users i can do
that!!! users should type dirrectly in
text fields, you know!?
I hope you got my idea exactly.(Because of my weak english
probably!!)
Whats your solutions?quote:
Originally posted by:
ebad293
Hi All!
I'm working with Macromedia Flash MX 6.0 (Thats not a
professional version).
Here is a picture showing you my ideas.
I want to make a registration form that needs user to type
his/her information in
Persian/Arabic.(I mean persian or arabic fonts)
I have a "Input Text Field" there and the characters doesnt
attache eachother.
Note:
I have one software 'Maryam'. I can write in Arabic in this
software and copy to clipboard
and paste it in a flash text field.But for users i can do
that!!! users should type dirrectly in
text fields, you know!?
I hope you got my idea exactly.(Because of my weak english
probably!!)
Whats your solutions? -
Arabic words not displaying correct in flex 4
Hello All,
Please find the attached image with this post.
Arabic words are not displaying completely/correctly. I have makred it with red line, you can see that in the attached image.
<s:TextArea text="{_str}" width="100%"
height="100%"
fontSize="50"
/>
_str is the String variable which contains the Arabic text.
Awaiting for prompt response.Hello Robin,
Thanks for your example, but still problem is not solved.
I have attached image by the name Robin_Example.JPG of your example, you can also noticed (underlined in red color) that your example contains the same problem as I am having.
Here I am pasting the whole code and also sending my arabic text file (TopFirst.txt), for your reference so it will be easy for you to run the application:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
library://ns.adobe.com/flex/spark" xmlns:mx="
library://ns.adobe.com/flex/halo" minWidth="
1024" minHeight="768"creationComplete="init()"
xmlns:controls="
flashx.textLayout.controls.*">
<s:layout >
<s:VerticalLayout/>
</s:layout>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:HTTPService id="httpServiceObj" url="TopFirst.txt"result="handleResult(event)"
fault="handleFault(event)"
resultFormat="
text"/>
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
Bindable]
private var _str:String;
private function init():void{httpServiceObj.send();
private function handleResult(event:ResultEvent):void{_str = event.result
as String;}
private function handleFault(event:FaultEvent):void{Alert.show(
"fault is = " + event.fault.faultString);}
]]>
</fx:Script>
<s:TextArea text="{_str}" width="
100%" height="
100%" fontSize="
50"locale="
ar"fontFamily="
Arial"direction="
rtl"/></s:Application>
Now it should be easy for you to understand my problem, as we both have the same code which is not working for arabic.
Thanks for being so supportive.
Awaiting for prompt response.
Regards.
Maybe you are looking for
-
"Appy permissions to enclosed" to the Applications Folder...
..now permissions repair takes around 4 hours to complete as I get "ACL found but not expected" on every file under my applications folder. Please, how can I take this back? Also, it would be nice to have permissions to remove apps, as it is my machi
-
IPhoto and Adobe photoshop elements 4.0
I recently downloaded adobe so that I could do more editing with my photos then iPhoto would allow. However, now I don't have access to my photos so that I can put them in slide shows with iHD or iDVD. They don't show up in iPhoto and I can't get the
-
Why here is so difficult to buy a iPhone 4s in Hong Kong?
Why here is so difficult to buy a iPhone 4s in Hong Kong?
-
I have had this iTouch for a long time and it has never done this before. my iTouch still has the 'connect to iTunes' picture on it. Everytime I try to restore it, it says Error 1604 afterwards. I can't reset my iTouch or even turn it off because the
-
8.2 to 8.3 nat conversion
HI Guys , I have a problem in converting the static nat in fwsm to ASA 8.3 or later. I have a fwsm which we are migrating to ASA, FWSM has a below static nat statement, static (v123,v546) 10.10.10.0 10.10.20.0 netmask 255.255.255.0 When I see the tra