Text boldens on output
When I output certain pdf files to my printer from acrobat sections of the text keeps looking bold on the printout. Does anyone know why this might be?
Sorry, that I am asking the same question. Hopefully this isn't another shout down a hollow well.
The text actually boldens when I add a header or footer for the automatic page numbering ON SCREEN , PRIOR to printing, but the result when printed is the same as yours.
I am using Adobe Acrobat 7 Standard
Similar Messages
-
How do I add text to an output of a formula?
I've tried various scripts to get it work in "Simplified Field Notations". The script below is the only one that doesn't return an error, but I get no output. This one is without a formula script, but I would like to know how to add text to a formuls if it is possible in acrobat.
The Script:
;this.getField("Name 1");
I have looked and can't find a tutorial on adding text to the output of a formula, but if someone knows of one I would greatly appreciate it.
Can someone please help me in correcting this script?
BruceApparently I can only respond in the forums with text and what not. But as soon as I add a formula or script in quotes I get an error. So I will have to respond with that stuff via private message.
Btw, did you get my last?
If I go back and edit I can add some of the formula but I have to spell out the "ninety one":
The formula I want to add the text "or more" to is:
ninety one + (St\.4 / 2)
Bruce -
Hi all,
I want to display long text in report output how is it possible.
how can i get the long text for fb60 or fb70.
Edited by: D Tarun Kumar on Aug 23, 2008 11:26 AMHow can i get these
ID =
LANGUAGE =
NAME =
OBJECT =
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES =
Thanks -
Right-clicking should bring up a menu to "Copy" text in Script Output. The short cut key for copy does work as a workaround.
The tricky bit is knowing which story you want copied first. But you certainly don't want to involve system Events, or even copy and paste. This should get you started:
tell application "Adobe InDesign CS4"
set theSel to selection
set thePage to parent of item 1 of selection
set emptyFrame to text frame 1 of thePage whose contents = ""
duplicate parent story of item 1 of theSel to after insertion point 1 of emptyFrame
duplicate parent story of item 2 of theSel to after insertion point 1 of emptyFrame
end tell -
Japanese Language Text in PDF Output of Purchase Orders
Hi,
We are using a custom smartform to create a purchase order output and send it as an email to the Vendor.
Std Program /SMB40/FM06P is used. We have setup the configuration for External Message and this is working fine.
We have the following 2 issues
1. We wish to over-ride the email address picked up by the Program. By default SAP picks up the vendors email address maintained in Vendor master. Is there any way to overide this?
2. The purchase order contains Japanese language texts. These Japanese texts are not getting updated correctly in the PDF file. They are displayed as junk characters.
Please note that if I view print preview of purchase orders in mE23N the display is perfectly fine. Also I executed a report in the background and then converted the spool to a PDF file. The PDF file displays Japanese characters correctly.
Any inputs on the above is welcome. Issue no 2 is more seriously affecting us.Hi,
For issue # 1. Check OSS note OSS 852250... you need to include this logic en get_addr_key in print program: /SMB40/FM06PE02
IF is_nast-parnr NE space AND
is_nast-parnr NE is_xekko-lifnr.
"-- Get address from partner -
SELECT SINGLE * FROM lfa1 INTO ls_lfa1
WHERE lifnr = is_nast-parnr.
MOVE ls_lfa1 TO cv_addr_key.
Notice that line:
MOVE ls_lfa1 TO cv_addr_key
Should be
MOVE ls_lfa1-adrn TO cv_addr_key
About issue # 2.
I am facing the same problem, have you been ablo to resolve it?
Thanks -
How to display Long text in alv output
Hi,
I have developed an ALV report.It is displaying the output.
There is another requirment for alv output text field as below
From the long text fields show only the first 20 characters and afterwards the long text icon. If the icon is clicked open the long text display screen.
Please give your suggestion how to work on this requirement.
Thanks in advanceHi,
Create a hotspot for the long text column of ALV.
When user clicks on the hotspot, handle the event to display long text screen.
You may refer sample program of hotspot ALV :
Goto SE38
Type BCALV*
Click F4
search for HOTSPOT or EVENTS & you will get a sample program.
Best regards,
Prashant -
Can I have both static text and the output of an array in the body of an email?
I have been scouring forums for something on this for a while now and have not found a whole lot. I'm trying to send a group of emails out to server owners in our company for a cleanup/consolidation project. I have a working script and of course now my boss
wants it changed. I have the script set up to find all the servers a person owns and put it into a CSV file. Then it attaches it to an email with instructions on how to get everything updated. Now my boss does not want the list in an attachment but right in
the body of the email. I'm pretty sure this is something Powershell can do, but I'm clueless on where to begin let alone how that would work.
Here is my current script minus the confidential stuff :) I just need to know where to start since it can't be in html format. I'd probably know if I knew powershell a little better, but well I've only been working with it for a few months now.
#Get SQL Database objects and places them into array $Sqldb
$Sqldb = New-Object System.Data.DataSet "myDataSet"
$sqlConn = New-Object System.Data.SqlClient.SqlConnection("Data Source=<SQL Server>;Initial Catalog=ServerBook;Integrated Security=True")
$adapter = New-Object System.Data.SqlClient.SqlDataAdapter("SELECT ServerName,Owner,SupportContact,SupportExternal,ServerDescription FROM v_ServerBook_BasicInfo",
$sqlConn)
$adapter.Fill($Sqldb)
#reorganizes $Sqldb by property owner
$Sqldb = $Sqldb.Tables[0] | Sort-Object -Property Owner
#stores list of unique owners and eliminates duplicates
$owners = ($Sqldb.owner | Get-Unique)
#eliminates null values from the list of owners
$owners = $owners | where{$_ -ne "" -and $_ -ne $null -and $_ -ne [dbnull]::value}
foreach($owner in $owners){
#Get the servers for the current owner
$servers = $Sqldb | where{$_.owner -eq $owner}
#CSV output filename ($owner.csv)
$newfile = "\\file\path\$owner.csv"
#Export the servers to the filename
$servers | select ServerName, Owner, SupportContact, SupportExternal, ServerDescription | Export-Csv -path $newfile -NoTypeInformation
#copies the server owners name to $ownername variable
$ownerName = $owner
#switches the format of the ownername variable to lastname,firstname
$Username = "$($Owner.Split(" ")[1]), $($Owner.Split(" ")[0])"
#gets email address for owner from AD
$EmailAddress = Get-ADuser -Filter "Name -eq '$Username'" -properties emailaddress -server ads.domain.com | select-object emailaddress
#splits the $emailAddress vaiable to help eliminate extra text original text looks like @{emailaddress = [email protected]}
$Emailaddress = $Emailaddress -split '[=}]' ,0
#removes extra text at the beginning of the variable leaving just [email protected]
$Emailaddress = $Emailaddress.TrimStart("@{emailaddress")
#stores the body of the email into a variable
$message = "Hello,
Blah Blah Blahbity Blah
Thank You,
<Signature Block>"
#Sets the from email address
$emailFrom = "[email protected]"
#Sets the email subject
$subject="Test Email"
#sends the email with attachement for the current owner
Send-MailMessage -To "$EmailAddress" -Subject $subject -Body $message -SmtpServer "<smtp.domain.com>" -From $emailFrom -Attachments $newfile -DeliveryNotificationOption OnSuccessSo I can just put my output variable into the email body variable.... since it's a table with headers should I do anything special for formatting the table?
My output now looks like :
ServerName
Owner
SupportContact
SupportExternal
ServerDescription
Server1
Me
Me
TrendMicro OfficeScan 10.5
Server2
Me
Me
TrendMicro Deep Security Test
Server3
Me
Me
Test Server
Server4
Me
Me
Application Server
Well it's a little garbled there but you get the idea -
How to add body text when sending output as PDF in email?
Hello,
We are using standard SAP to send SD output as PDF in an email (in output type we choose medium 5, email address is taken from customer master. In transaction SCOT is indicated that SAPscript/smartforms are converted to PDF. When the output is generated, we run rsconn01 to trigger the actual sending of the email).
Via form TEXT_SYMBOL_REPLACE we can modify the subject of the email that is send to include e.g. the order number. HOWEVER, in the body of the email that is send, we now only have the PDF, but we also would like to add a standard text in the body of the email. Does anyone know how to do this?
Thanks,
AlexHi,
Please refer to the following program and see if it helps you.
REPORT ZSAMPL_001 .
INCLUDE ZINCLUDE_01.
DATA
DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
DATA : file_name TYPE string.
data : path like PCFILE-PATH.
data : extension(5) type c.
data : name(100) type c.
SELECTION SCREEN
PARAMETERS : receiver TYPE somlreci1-receiver lower case.
PARAMETERS : p_file LIKE rlgrap-filename
OBLIGATORY.
AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CLEAR p_file.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = p_file.
START-OF-SELECTION
START-OF-SELECTION.
PERFORM ml_customize USING 'Tst' 'Testing'.
PERFORM ml_addrecp USING receiver 'U'.
PERFORM upl.
PERFORM doconv TABLES itab objbin.
PERFORM ml_prepare USING 'X' extension name.
PERFORM ml_dosend.
SUBMIT rsconn01
WITH mode EQ 'INT'
AND RETURN.
FORM
FORM upl.
file_name = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_name
filetype = 'BIN'
TABLES
data_tab = itab
EXCEPTIONS
*file_open_error = 1
*file_read_error = 2
*no_batch = 3
*gui_refuse_filetransfer = 4
*invalid_type = 5
*no_authority = 6
*unknown_error = 7
*bad_data_format = 8
*header_not_allowed = 9
*separator_not_allowed = 10
*header_too_long = 11
*unknown_dp_error = 12
*access_denied = 13
*dp_out_of_memory = 14
*disk_full = 15
*dp_timeout = 16
*OTHERS = 17.
path = file_name.
CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
EXPORTING
complete_filename = path
CHECK_DOS_FORMAT =
IMPORTING
DRIVE =
EXTENSION = extension
NAME = name
NAME_WITH_EXT =
PATH =
EXCEPTIONS
INVALID_DRIVE = 1
INVALID_EXTENSION = 2
INVALID_NAME = 3
INVALID_PATH = 4
OTHERS = 5
ENDFORM. "upl
***INCLUDE ZINCLUDE_01 .
10.08.2005 Amit M - Created
Include For Mail (First Req F16)
Modification Log
Data
tables crmrfcpar.
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
DATA: tab_lines TYPE i,
doc_size TYPE i,
att_type LIKE soodk-objtp.
DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
data v_rfcdest LIKE crmrfcpar-rfcdest.
FORM
FORM ml_customize USING objname objdesc.
Clear Variables
CLEAR docdata.
REFRESH objpack.
CLEAR objpack.
REFRESH objhead.
REFRESH objtxt.
CLEAR objtxt.
REFRESH objbin.
CLEAR objbin.
REFRESH objhex.
CLEAR objhex.
REFRESH reclist.
CLEAR reclist.
REFRESH listobject.
CLEAR listobject.
CLEAR tab_lines.
CLEAR doc_size.
CLEAR att_type.
Set Variables
docdata-obj_name = objname.
docdata-obj_descr = objdesc.
ENDFORM. "ml_customize
FORM
FORM ml_addrecp USING preceiver prec_type.
CLEAR reclist.
reclist-receiver = preceiver.
reclist-rec_type = prec_type.
APPEND reclist.
ENDFORM. "ml_customize
FORM
FORM ml_addtxt USING ptxt.
CLEAR objtxt.
objtxt = ptxt.
APPEND objtxt.
ENDFORM. "ml_customize
FORM
FORM ml_prepare USING bypassmemory whatatt_type whatname.
IF bypassmemory = ''.
Fetch List From Memory
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'LIST_FROM_MEMORY'.
ENDIF.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
COMPRESSED_SIZE =
TABLES
in = listobject
out = objbin
EXCEPTIONS
OTHERS = 1
IF sy-subrc <> 0.
MESSAGE ID '61' TYPE 'E' NUMBER '731'
WITH 'TABLE_COMPRESS'.
ENDIF.
ENDIF.
Header Data
Already Done Thru FM
Main Text
Already Done Thru FM
Packing Info For Text Data
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'TXT'.
APPEND objpack.
Packing Info Attachment
att_type = whatatt_type..
DESCRIBE TABLE objbin LINES tab_lines.
READ TABLE objbin INDEX tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = att_type.
objpack-obj_name = 'ATTACHMENT'.
objpack-obj_descr = whatname.
APPEND objpack.
Receiver List
Already done thru fm
ENDFORM. "ml_prepare
FORM
FORM ml_dosend.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X' "used from rel. 6.10
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
CONTENTS_HEX = objhex
OBJECT_PARA =
object_parb =
receivers = 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.
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH docdata-obj_name.
ENDIF.
ENDFORM. "ml_customize
FORM
FORM ml_spooltopdf USING whatspoolid.
DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
Call Function
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = whatspoolid
TABLES
pdf = pdf
EXCEPTIONS
err_no_otf_spooljob = 1
OTHERS = 12.
Convert
PERFORM doconv TABLES pdf objbin.
ENDFORM. "ml_spooltopdf
FORM
FORM doconv TABLES
mypdf STRUCTURE tline
outbin STRUCTURE solisti1.
Data
DATA : pos TYPE i.
DATA : len TYPE i.
Loop And Put Data
LOOP AT mypdf.
pos = 255 - len.
IF pos > 134. "length of pdf_table
pos = 134.
ENDIF.
outbin+len = mypdf(pos).
len = len + pos.
IF len = 255. "length of out (contents_bin)
APPEND outbin.
CLEAR: outbin, len.
IF pos < 134.
outbin = mypdf+pos.
len = 134 - pos.
ENDIF.
ENDIF.
ENDLOOP.
IF len > 0.
APPEND outbin.
ENDIF.
ENDFORM. "doconv
FORM
FORM ml_saveforbp USING jobname jobcount.
Data
*data : yhead like yhrt_bp_head.
*DATA : ydocdata LIKE yhrt_bp_docdata,
*yobjtxt LIKE yhrt_bp_objtxt OCCURS 0 WITH HEADER LINE,
*yreclist LIKE yhrt_bp_reclist OCCURS 0 WITH HEADER LINE.
*DATA : seqnr TYPE i.
Head
*yhead-jobname = jobname.
*yhead-jobcount = jobcount..
*MODIFY yhrt_bp_head FROM yhead.
Doc Data
*ydocdata-jobname = jobname.
*ydocdata-jobcount = jobcount.
*MOVE-CORRESPONDING docdata TO ydocdata.
*MODIFY yhrt_bp_docdata FROM ydocdata.
Objtxt
*seqnr = 0.
*LOOP AT objtxt.
*seqnr = seqnr + 1.
*yobjtxt-jobname = jobname.
*yobjtxt-jobcount = jobcount.
*yobjtxt-seqnr = seqnr.
*MOVE-CORRESPONDING objtxt TO yobjtxt.
*MODIFY yhrt_bp_objtxt FROM yobjtxt.
*ENDLOOP.
RecList
*seqnr = 0.
*LOOP AT reclist.
*seqnr = seqnr + 1.
*yreclist-jobname = jobname.
*yreclist-jobcount = jobcount.
*yreclist-seqnr = seqnr.
*MOVE-CORRESPONDING reclist TO yreclist.
*MODIFY yhrt_bp_reclist FROM yreclist.
*ENDLOOP.
ENDFORM. "ml_saveforbp
FORM
FORM ml_fetchfrombp USING jobname jobcount.
*CLEAR docdata.
*REFRESH objtxt.
*REFRESH reclist.
*SELECT SINGLE * FROM yhrt_bp_docdata
*INTO corresponding fields of docdata
*WHERE jobname = jobname
*AND jobcount = jobcount.
*SELECT * FROM yhrt_bp_objtxt
*INTO corresponding fields of TABLE objtxt
*WHERE jobname = jobname
*AND jobcount = jobcount
*ORDER BY seqnr.
*SELECT * FROM yhrt_bp_reclist
*INTO corresponding fields of TABLE reclist
*WHERE jobname = jobname
*AND jobcount = jobcount
*ORDER BY seqnr.
ENDFORM. "ml_fetchfrombp
Hope this helps.
Please reward some points if it helps.
Regards,
Amit Mishra -
Reading text file and output (to stdout) a list of the unique words in the
Hi,
I have a main method as
main.java
package se.tmp;
public class Main
public static void main( String[] args )
WordAnalyzer.parse( args[0] );
and text file as
words.txt
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
the requirement is like
I need create this WordAnalyzer class, implement the parse method, and then commit the file. This method takes a single parameter, the filename of the file to parse. The method should read this file and output (to stdout) a list of the unique words in the file along with the number of times each appears in the file.
Can anyone please help me on this?
Thanks.Where are you having problems?
-
Pixel length of text in applet output useing drawString()
is thier a way to find the pixel length of a string of text when im going to output it useing drawString in a applet
to say i am going to "draw hello world" in a applet
i wish to use drawRect around it i know were it starts i want to know the length of the letters in pixel size
each one seems to differ so each letter has a unknown length i need to know the lenght of the combined letters of the string of text
or even each individual letter and i can write a algorithim to add um
this is a problem ive encoutered before never solved and now am encountering again.The TextLayout class is also handy in this area.
/* <applet code="TextSizeTest" width="400" height="300"></applet>
* use: >appletviewer TextSizeTest.java
import java.awt.*;
import java.awt.font.*;
import java.awt.geom.*;
import javax.swing.*;
public class TextSizeTest extends JApplet
public void init()
getContentPane().setLayout(new BorderLayout());
getContentPane().add(new TextSizePanel());
public static void main(String[] args)
JApplet applet = new TextSizeTest();
JFrame f = new JFrame(applet.getClass().getName());
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(applet);
f.setSize(400,300);
f.setLocation(200,200);
applet.init();
applet.start();
f.setVisible(true);
class TextSizePanel extends JPanel
String text;
Font font;
public TextSizePanel()
text = "A test string";
font = new Font("lucida sans regular", Font.PLAIN, 24);
setBackground(Color.white);
protected void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
int w = getWidth();
int h = getHeight();
g2.setFont(font);
FontRenderContext frc = g2.getFontRenderContext();
LineMetrics metrics = font.getLineMetrics(text, frc);
float width = (float)font.getStringBounds(text, frc).getWidth();
float ascent = metrics.getAscent();
float descent = metrics.getDescent();
float x = (w - width)/2;
float y = (h + ascent)/2 - descent;
g2.drawString(text, x, y);
g2.setPaint(Color.red);
g2.draw(new Rectangle2D.Double(x, y - ascent, width, ascent + descent));
} -
Standard SAP functionality to send e-mail Text on PO Output?
Hi,
I have a new requirement to send E-mail body along with the PO as an attachment to our vendors.
We are using '5' as tranmission medium to send the PO as e-mail and we call the Smart Form Interface with the Sender and Receipient information. Is there anything we can use as part of standard functionality to send e-mail text. I tried PO Title and Texts option when we define the output type, but the system doesn't seem to be picking it up.
I also tried to setup '7' as transmission medium, but when i use '7' system accepts 'MA' partner type only, when defining the condition records. But for Vendors we cannot define MA partner type in partner schema, so i am not able to define a MA partner when defining the condition record.
thanks
UdaiHi Srini,
Sorry SDN was not available at the time i wanted to write a reply yesterday.
The way i did this was, we were using call to SMARTFORM function module in the custom print program.
When we call the SMARTFORM function module, if you have to send an e-mail, then usually you would pass the recepient information to the function module. The RECPIENT is a business obect in SAP, which has a method called add note, which is what i used to add the e-mail text. One other thing i did was, i read the e--mail text from the Text object when you define the output. Usually the name of this text object is Application concatenated with Output type (eg.: EFNEU ).
I am including the code, please go through it and let me know if you have any questions.
swc_container container.
RECIPIENT-Object
swc_create_object recipient 'RECIPIENT' space.
Container
swc_clear_container container.
*Address type (Internet)
swc_set_element container 'TypeId' 'U'.
Get Vendor Email address
SELECT smtp_addr INTO lv_smtp_addr FROM adr6
UP TO 1 ROWS
WHERE addrnumber = lfa1-adrnr AND
flgdefault = 'X'.
ENDSELECT.
address_string = lv_smtp_addr.
swc_set_element container 'AddressString' address_string.
RECIPIENT.CreateAddress
swc_call_method recipient 'CreateAddress' container.
Update Log
IF sy-subrc NE 0.
ex_retco = '1'.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = sy-msgid
msg_nr = sy-msgno
msg_ty = 'W'
msg_v1 = sy-msgv1
msg_v2 = sy-msgv2
msg_v3 = sy-msgv3
msg_v4 = sy-msgv4
EXCEPTIONS
message_type_not_valid = 1
no_sy_message = 2
OTHERS = 3.
EXIT.
ENDIF.
Read textd defned in NACE
Add E-mail Body from 'Mail Texts and Title', created when creating Output Types
Text Name, usually 'EFNEU', Application and Output type concatenated
CONCATENATE nast-kappl nast-kschl INTO obj_name.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = c_txtid_stam
language = SY-LANGU
name = obj_name
object = c_txtob_ocs
IMPORTING
header = header
TABLES
lines = lines_tab
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF sy-subrc <> 0.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = sy-msgid
msg_nr = sy-msgno
msg_ty = 'W'
msg_v1 = sy-msgv1
msg_v2 = sy-msgv2
msg_v3 = sy-msgv3
msg_v4 = sy-msgv4
EXCEPTIONS
message_type_not_valid = 1
no_sy_message = 2
OTHERS = 3.
ENDIF.
E-mail BODY
Call 'AddNote' Method of RECIPIENT object
swc_clear_container container.
PERFORM replace_text_symbols USING header
lines_tab.
LOOP AT lines_tab INTO txtline.
email_line = txtline-tdline.
append email_line to email_body_tab.
ENDLOOP.
swc_set_element container 'NoteText' email_body_tab.
swc_call_method recipient 'AddNote' container.
If E-mail body creation failed
IF sy-subrc NE 0.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = sy-msgid
msg_nr = sy-msgno
msg_ty = 'W'
msg_v1 = sy-msgv1
msg_v2 = sy-msgv2
msg_v3 = sy-msgv3
msg_v4 = sy-msgv4
EXCEPTIONS
message_type_not_valid = 1
no_sy_message = 2
OTHERS = 3.
ENDIF.
Persistent RECIPIENT object
swc_object_to_persistent recipient recipient_id.
Call the Smartform function module name
CALL FUNCTION lv_fm_name
EXPORTING
control_parameters = ls_control_parameters
mail_appl_obj = appl_object_id
mail_recipient = recipient_id
mail_sender = sender_id
output_options = ls_output_options
user_settings = space
ekko = ekko
pekko = pekko
t166u = t166u
header = ls_header
ls_komv = ls_komv
ix_subtotal = lv_subtotal
ix_surcharge = lv_surcharge
ix_tax = lv_tax
iv_print_tax = lv_print_tax
iv_comp_name = lv_comp_name
iv_invlp1_txt1 = lv_invlp1_txt1
iv_invlp1_txt2 = lv_invlp1_txt2
iv_invlp1_txt3 = lv_invlp1_txt3
TABLES
ekpo = doc-xekpo
it_text = lt_text
it_line = lt_line
it_eket = it_eket
it_srvc = gt_srvc
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
ex_retco = '1'.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = sy-msgid
msg_nr = sy-msgno
msg_ty = 'W'
msg_v1 = sy-msgv1
msg_v2 = sy-msgv2
msg_v3 = sy-msgv3
msg_v4 = sy-msgv4
EXCEPTIONS
message_type_not_valid = 1
no_sy_message = 2
OTHERS = 3. -
I am not able to modify the text in pdf output file using pdf editor
Hi,
We have upgrade the xml 5.6.1 in server level. After upgrading this, we are not able to modify the pdf output file. Previously we used to modify text and delete text in pdf file which is generated by oracle Application. As of now we cann't upgrade higher version. Can you suggest what to do?.Check the xdo configuration file option in the user guides. There should be options that allow / disallow modifying text specifically. If you are in EBS, you should be able to change the configuration file options from the XML Publisher Administrator UI.
Klaus -
Compare data from 2 text files and output match
Hi all,
I need some advice.
Firstly in BinaryCode.txt the data is as such:
Replace BinaryCode0 1 0 0 0 0 0 0 0 0
Replace BinaryCode0 1 0 0 0 0 0 0 0 1
Replace BinaryCode1 1 1 1 0 1 1 1 1 1
Replace BinaryCode1 1 0 0 0 0 0 0 0 0
the first line in the text file is the header. So I need to check if the names in the second column (BinaryCode0 or BinaryCode1)appear in the Timed_Sets.txt file.
The data in Timed_Sets.txt is as such:
BinaryCode0,6,40,.........................
BinaryCode0,7,40,.........................
BCName1,0,20,.............................
BCName1,1,20,.............................
For example since BinaryCode0 is a match I will output the entire row in Timed_Set.txt to another array.
I have been working on a program but I don't get the expected output.
The text files and the VI are attached.
I appreciate your kind assistance in the matter.
Thank You
Regards
kart
Solved!
Go to Solution.
Attachments:
BinaryCode.txt 1 KB
compare text files.vi 15 KB
Timed_Sets.txt 2 KBIf I understood correctly what the output should be then what you basically need to do is to walk through the column in BinaryCode.txt and for each unique value pull out the corresponding rows from Timed_Sets.txt. There's a variety of ways to do this, depending on how much data you have and whether or not you can use any kind of prior knowledge as to the actual file content (such as the names of the keys being searched). Attached is one way. Modify as needed.
Attachments:
compare text files MOD.vi 27 KB -
Hello,
I am designing a report with Excel output using BI Publisher. The problem i am facing is that the text direction (vertical) in the RTF file does not remain the same in the Excel output. Do you have any solutions/workarounds for this problem?
Thank you.Hi Radu,
I'm afraid, I'm not able to do it, somehow although excel has the option to rotate text by any angle, it does not seem to accept the text direction that RTF does..
-Domnic -
Hello all,
Just wondering if anyone has experienced this one before, or
has any suggestions on how to remedy it. One of my RoboHelp
projects is autopopulating the following in the "Search" text-box
on the end-users systems after the project is compiled and
published:
%%% WH_LNG_SearchPrompt %%%
This auto text does not appear to have any effect on the
actual functionality of the search function, however I have had a
few users ask as to why it is there, any suggestions. I could not
locate this text string within the project nor in any of the
projects output files on my local drive?
Thanks as usual,
DanHello Dan,
Did you able to find the fix for this issue pls? If so, Can you please provide the steps to fix this issue pls?
Thanks,
pnk
Maybe you are looking for
-
How can I use the versionning tool to make a coherent solution to export
how can I use the versionning tool to make a coherent solution to export all objects used in my project to other db schema for testing as well as for implementation . I want to know proper steps to Import/export objects. while I am exporting my Maste
-
How do i install latest version of iTunes when I keep getting an error message to go to Tools, Download only, and install manually??
-
Install Real Application Clusters (RAC) and Automated Storage Management (A
Do I have to install Real Application Clusters (RAC) and Automated Storage Management (ASM) for ETL I have installed Oracle 10g Release 1 on WIndows 2000 with datawarehousing option. Is it ok Or do I need to install Oracle database again. Please help
-
Raw update 2.4 supported on Aperture 1.5.6?
Is Raw update 2.4 supported on Aperture 1.5.6? I have Raw update 2.4 installed, but get "unsupported format" message when I try to import raw files from Canon 5D Mk-II. Import works fine on raw files from Canon 20D.
-
Removing number assignment across company code
Hi all, I'm new to FI-AA and am wondering if it's possible to remove the number assignment across company codes in the section "Change View "FI-AA: "Assignmt. to company code providing number range" ? I've tried leaving the column "No.CoCd" blank as