Ampersand in header
Hi experts,
I'm here on behalf of a collegue of mine who cannot write in English. So I'm not expert on this matter, please forgive me and put me on the right way.
My colleague gets a problem with transactions ME23, ME23N
When he looks at the header of an order with ME23N, if there is an ampersand in the name of the vendor it is correctly shown:
[ME23N|http://img74.imageshack.us/img74/3439/me23nof9.jpg]
but it he looks at transaction ME23, ampersand is shown in a different way:
[ME23|http://img213.imageshack.us/img213/6835/me23mf8.jpg]
What can he do to avoid this?
Thanks
Hi,
There is nothing wrong with this.
When he gets it printed it will come out ok.
The reason why he is getting this is that when the text was maintained, the I&C must have been made bold in the word or long text editor. The special characters you see are for I&C to appear in bold font when you print. If he does not want to see these characters, he can click on "Long text screen" button and the characters will vanish.
If you have an ABAPer with you, he will explain it to you with examples.
cheers.
Similar Messages
-
Hello,
i have a problem with printing pdf reports in Apex 3.0.1 on OracleXE (using Apache Cocoon and Tomcat like in Carls example).
When i try to include an items value using the &ITEM_NAME. syntax it doesn't work if the value of the item contains an ampersand. I tried writing the ampersand as & but it still breaks the pdf.
Is there another way to include an ampersand in the page header of a pdf or maybe its a bug that has been fixed in a later version of apex?
Thanks for help in advance,
DirkHi,
Maye the following work around
'&' can be replaced with '%26amp;'
Kind regards,
Iloon -
Transfer document header text from billing document to FI document
Dear all,
Where do I specify that the document header text out of the billing document should be transferred to the corresponding FI document?
Currently, the FI document header text (BKPF-BKTXT) remeans blank after transfer from billing document. We need this field to be filled in, but I haven't found how to have this filled in.
In copy control from sales doc to billing doc, there is the possibility to transfer the Reference number & Assignment, but nothing about document header texts.
Some say that it would only be possible via coding, but anybody has any idea if it might be possible via standard SAP?
Many thanks!
Best regardsHi,
We also had a bit same requirement, which is to copy the billing header text to FI item text (BSEG-SGTXT). The solution we took is to use FI Substitution (t-code GGB1), so that every time a FI document created from SD... the substitution reads the billing header text and put it in the FI item text. I think the same method could be used for FI header text (BKPF-BKTXT). Below is the solution for your reference.
Prerequisite:
Document Type = 'RV' AND Reference <> '' AND
( Transaction code = 'VF01' OR Transaction code = 'VF02' OR
Transaction code = 'VF03' )
Substitution:
Using exit which coding is as below.
*& Form u900
Copy Billing Header Text to SGTXT
-->P_SGTXT FI Item Text
FORM u900 USING p_sgtxt TYPE bseg-sgtxt.
DATA: lv_name TYPE thead-tdname,
lt_line TYPE STANDARD TABLE OF tline,
lw_line TYPE tline.
lv_name = bkpf-xblnr.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'Z001'
language = sy-langu
name = lv_name
object = 'VBBK'
TABLES
lines = lt_line[]
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 EQ 0.
READ TABLE lt_line
INTO lw_line
INDEX 1.
In Billing Header Text, the sign '&' (ampersand) is automatically
added some characters so it becomes '<(>&<)>'.
The logic below is to fix that issue.
REPLACE ALL OCCURRENCES OF '<(>' IN lw_line-tdline WITH space.
REPLACE ALL OCCURRENCES OF '<)>' IN lw_line-tdline WITH space.
p_sgtxt = lw_line-tdline.
ENDIF.
ENDFORM.
Regards,
Teddy Kurniawan -
Problem in displaying ampersand in Smartform
I am working on one smartform. There is one header window.The text populated in this window is dynamic text. Symbol ampersand is not getting displayed correctly . When this text is displayed . It is getting displayed with greater than and smaller than symbol . I am not able to show it here. Please help me with this issue.
Hi,
This dynamic text is an include text. User will be giving that. I have used FM Read_Text and taken that text in an internal table. In this table also ampersand is getting populated as i told above. Except ampersand it is displaying all other characters correctly. Only problem is with ampersand. -
Escaped ampersand still causes LPX-00242 in xmltype.transform
Running Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
Collecting input from web form, and fetching via SQLX functions to then transform into html and plain text documents. If the "&" is inputted... the SQLX functions does escape it to "&"... but the LPX-00242 error is still raised when sending to xmltype.transform.
A simple test case:
set define off;
declare
l_xsl xmltype;
l_xml xmltype;
begin
l_xsl := xmltype('<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
Hello <xsl:value-of select="//name"/>
</xsl:template>
</xsl:stylesheet>');
l_xml := xmltype('<test><name>Jane&John Doe</name></test>');
dbms_output.put_line(l_xml.transform
(l_xsl
).getclobval ());
end;the above code raises this exception:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00241: entity reference is not well formed
Error at line 3
ORA-06512: at "SYS.XMLTYPE", line 138
ORA-06512: at line 20If I rerun the above block... but change the xml string to <test><name>Jane &amp; John Doe</name></test>
I now get the following exception:
Error at line 2
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00242: invalid use of ampersand ('&') character (use &)
Error at line 3
ORA-06512: at "SYS.XMLTYPE", line 138
ORA-06512: at line 20If I change the xml string to <test><name>Jane &amp;amp; John Doe</name></test>.. no exceptions and displays the following:
Hello Jane &amp; John Doe
any reason why the SQLX function escaping is not sufficient and I need to double-escape it? The working version is not ideal, since I now have to decode the entity reference back to it's character, otherwise the entity reference code is displayed in the content.
Edited by: pl_sequel on Sep 7, 2011 2:12 PMHi tsuji,
Interesting discussion, really, but I fail to see how the way we're generating the XMLType instance in the first place is important for any subsequent transformation.
You said :
That part is well noticed. And that precisely poses problem.and,
[6.2] But the working (at least for this sample) of the latter but not the former using xmltype() precisely pose the problem of either xmltype().transform() implementation contains bug [...]Could you explain again what you think works and what doesn't?
I may be missing something but all these appear to work correctly :
SQL> var xsldoc varchar2(4000)
SQL> begin
2 :xsldoc := '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:output method="text"/>
4 <xsl:template match="/">Hello <xsl:value-of select="//name"/>
5 </xsl:template>
6 </xsl:stylesheet>';
7 end;
8 /
PL/SQL procedure successfully completed
SQL> set define off
SQL> select xmltransform(
2 xmlelement("test", xmlelement("name", 'Jane&John Doe'))
3 , :xsldoc
4 ).getclobval() as result
5 from dual
6 ;
RESULT
Hello Jane&John Doe
SQL> select xmltransform(
2 xmltype('<test><name>Jane&John Doe</name></test>')
3 , :xsldoc
4 ).getclobval() as result
5 from dual
6 ;
RESULT
Hello Jane&John Doe
SQL> select xmltype(
2 '<test><name>Jane&John Doe</name></test>'
3 ).transform(xmltype(:xsldoc)).getclobval() as result
4 from dual
5 ;
RESULT
Hello Jane&John Doe
SQL> select xmlelement("test",
2 xmlelement("name", 'Jane&John Doe')
3 ).transform(xmltype(:xsldoc)).getclobval() as result
4 from dual
5 ;
RESULT
Hello Jane&John Doe
In any case, you know well there is a something fishy going on, one way of looking at it or another.Yes, I agree. For sure, Oracle XSLT processors are not bug-free.
For the case we're looking at now, the essence of the XMLType datatype is probably more to blame than the XSLT processor though.
A little off-topic addendum about the method="html" output :
SQL> select xmltransform(xmlelement("test",
2 xmlelement("name", 'Jane&John Doe')
3 ),'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method="html" encoding="iso-8859-15" indent="yes"/>
5 <xsl:template match="/"><html><head/><body><p><xsl:value-of select="//name"/></p></body></html>
6 </xsl:template>
7 </xsl:stylesheet>').getclobval()
8 as result
9 from dual;
RESULT
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-15">
</meta>
</head>
<body>
<p>Jane&John Doe</p>
</body>
</html>
Not perfect but the method seems supported too.
Edited by: odie_63 on 11 sept. 2011 20:43 -
Hello,
When I enter text in eg. a purchase order (me21n) and I use the ampersand character "&" in there in for instance the header text. The text is stored in the table as <(>&<)>. When I request the PO with the BAPI BAPI_PO_GETDETAIL this <(>&<)> is also given as a result in the BAPI.
When I use this BAPI remote i do not want the extra characters around the &. Is there anybody who knows how to avoid these extra characters.
tnx.
EmileHi Emile,
SAP Note 730598 covers this. As you suggested, this is normal behavior because the ampersand is stored in the database with extra characters. The text can be converted from SAPScript to plain text using function module CONVERT_ITF_TO_ASCII. -
Hi
I've lost the syntax for the chart title that adds the values that have been filtered.
I'm using 'CDW vs NDW report' as the normal title & have a couple of names of filters from the chart query.
One is Warehouse type eg; =:P1_WAREHOUSE & another is =:P1_STATE.
The correct syntax is something like ;
'CDW vs NDW report & :P1_WAREHOUSE & :P1_STATE'
I want to add something like this so that when I select 'CDW' for the Warehouse & then 'VIC' for the state, the heading that displays is
'CDW vs NDW report - CDW - VIC'.
If I changed to select NDW from the select list dropdowns & then changed the State to NSW, the Chart heading would change to;
'CDW vs NDW report - NDW - NSW'.
I can't find my old code or anything from here, can someone advise the correct syntax please, ThanksFound it!!
This is the correct syntax to have your charts title change as your drop down lists are changed.
This is what I knew was close - 'CDW vs NDW report & :P1_WAREHOUSE & :P1_STATE'
Under the Chart Title area of the chart in design view, add the following;
'CDW vs NDW report - &P1_WAREHOUSE. &P1_STATE.'
The select list names in this case are 'P1_WAREHOUSE' & 'P1_STATE'
I had only to add an ampersand (&) to the list name & ensure I had a full stop after each parameter.
Hope this helps someone else. -
dear all
i have configured free goods,in the order the cost is coming for free goods at item level and it is not adding to the header cost total.
for eg:i have 2 items and 1 free item.costs r 300,400,500 respectively.
in the header it is showing only 700 as cost.
i observed the inventory doc is posting correctly with 1200(which includes free goods cost).
can anybody tell weather it should add up or not and how it can be done??
thanks
reddyDear Yugandhar
Check
SPRO->Sales and Distribution->Basic Functions->Free Goods->Control Free Goods Pricing->
Control Pricing For Free Goods Item Category you will find statistical value
or in VOV7 below pricing you find statistical value
Statistical values
Indicates whether the system takes the value of an item into account
when it determines the total value of a document.
There are three options
System will copy item to header totals
X No cumulation - Values cannot be used statistically
Y No cumulation - Values can be used statistically
Check if it is initial for your item category
Standard for TANN is initial and pricing is B Pricing for free goods (100% discount)
Do give your feedback
Regards
Jitesh -
Resetting Header and Footer in RTF templates
Hi,
I developed an RTF template (template 1). This template contains start:body and end body for printing the header and footer in all pages. After printing this template then i have to call another template(template 2) from this. I called the template (template 2) using call statement. But the probelm is that the header and footer of template1 is printed in the output of template2 .
I dont want to print this header and footer for template 2. Can anyone please suggest me in doing this. I placed start:body and end body in the second template with the assumption that 1st template's header and footer will be overwritten. But if i preview then am getting the error
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: C:\Documents and Settings\kpoda\Desktop\Invoice Printing Efficiencies\Sample XML Data\Sample Output4.xml
FOProcessor setLocale: en-us
each
Please sugget.
ThanksHi,
Do you have two templates (template1 & template2) that you want to display in the same document where the pages for template1 has one set of header and footers; and template2 has another set of header and footer?
If that is the case you can simply create a new section in your rtf template so you have section1 and section2.
In the body of section1 you call template1 and template2 in the body of section2.
You can then have different header and footers for the two templates in the same document.
BR Kenneth -
Header information not getting displayed in the lines
Hello Everyone
I have a very basic question - its very simple but not working for me with so many attempts
My XML structure looks like this . In the RTF , I have header information and then a table for line information looping through G_LINES.
IN this lines table I need the SHIP_CUSTOMER_ID of the header to be displayed. I have tried all options like <?../SHIP_CUSTOMER_ID?> or <?../G_ORDERS/SHIP_CUSTOMER_ID?> , however nothing seems to be working and I am not getting the field to be displayed. Can someone please help?
XML structure is as follows:
<XXSTOL_29251_PICK_TKT>
<LIST_G_ORDERS>
<G_ORDERS>
<CUSTOMER_NUMBER>1411</CUSTOMER_NUMBER>
<SHIPPING_INSTRUCTIONS1></SHIPPING_INSTRUCTIONS1>
<SHIP_CUSTOMER_ID>256</SHIP_CUSTOMER_ID>
<G_LINES>
</G_LINES>
<G_LINES>
</G_LINES>
</G_ORDERS
</LIST_G_ORDERS>
</XXSTOL_29251_PICK_TKT>Are you grouping within G_LINES? If so, use ../../SHIP_CUSTOMER_ID
or send me the xml and RTF template to [email protected] so that I can get a better look at the data structure and try to help.
Thanks,
Bipuser -
Header not getting displayed in the next page in the second table
Dear Experts ,
I have a query regarding Header not getting displayed in the next page in the second table of the main window. .Let me elobrate the issue.
I have a smartform in which there are 2 tables TABLE 1 and TABLE 2 in the smartform MAIN window. TABLE 1 is for pending PO and TABLE 2 is for future delivery date P O separated by text in between.
Now the header for both the tables and the data are getting displayed properly if the total output is in only one page. But If there are more entries in the TABLE 1 the Header for the TABLE 2 is not getting displayed. Header for TABLE 1 yet gets displayed properly in the next page in case of more entries.
Only issue is that Header for TABLE 2 is not getting displayed in second page but it gets displayed if the entries are less in TABLE 1 and the total output is in one page .
Please provide a elobrate solution on this problem as the requirement is urgent.
Thanks,
Regards,
Sachin HadaHi Sachin,
you need to cteate two pages FIRST and NEXT.
in first page --> FIRST
next --> NEXT
in next page
page---> NEXT
next ---> NEXT.
you copy the first page main window is the same in next page
aslo
I think help ful for you
thanks & Regards
BHUPAL. -
Heading is not getting displayed in the workbook
Hi,
My requirement is i need the heading of the query to be dispalyed in the workbook,
when i execute the query i do get the title of the query but when i insert the query in the workbook,i do not see the title.
could you please help me.
thanks,
apparaoHi,
Open a query in Excel analyzer and click Save as workbook button(to save as a workbook). The query name should come as a title.
Regards,
Senthil Kumar.P -
Creating a custom report with detailed header and then associated detail
I am very new to CRMOD, so this question may be basic, but I have not found any good material yet to help me out, so here goes.
We are trying to create a Quote report that will be sent to our customers. The report needs to have both a header and detail section basically as follows:
<Header>
Quote Form
Date:
Expiration Date:
Sales Person Name:
Customer Name and address
Terms
... some other text data ...
<Detail>
Standard fields that define the quote, these are easy.
What I cannot determine how to do is create the header section. In the report designer, it only allows for a Title, logo, and another text line. Can anyone suggest another method?I do not have the narrative option.
Options available are:
Title
Table
Chart
Pivot Table
Gauge
Active Filters
legend
Advanced
--> Column Selector
--> View Selector
--> Funnel Chart
--> Ticker
According to the documentation, the narrative view should be available from the advanced menu. Am I on a different package by chance? -
In ALV Report output heading is printing twice.
Hi Experts,
Im working on ALV Reports.
Im printing header text by using listheader and commentary write function module.
the problem is when i sort any column in ALV ouput the heading is printing twice.
Again if i sort the column the heading is printed is 4 times.
so if anybody knows the solution how we can avoid repetition of heading ,
Please reply me as soon as possible.
regards
Imrangs.Hi Noorie,
Thanks a lot.
Your answer is perfect.
Bye.
Regards,
Imran -
How to add header and fooder in text file
Hi,
i have created simple application for generate report from database into text file.
But i need to add header and fooder in text file. I dont know is there any API for adding these.
Can anyone help me to create header and fooder in text file.
the below text are needs to be print in the header
name of the table :
Recorder type :
file creation time:
the below text are needs to be print in the footer
Recorder Number:
Record Type;
the actual code is
pst = con.prepareStatement("select REQUEST, DOMAIN_NAME, TRUNC(DATE_OF_CONFIGURATION) AS dateofConfig FROM employee where id=300");
rs = pst.executeQuery();
while (rs.next()) {
request = rs.getString("REQUEST");
domain_name = rs.getString("DOMAIN_NAME");
dateofconfig = rs.getString("dateofConfig");
System.out.println(request + " " + domain_name + " " + dateofconfig);
data.add(request + " " + domain_name + " " + dateofconfig);
System.out.println("before calling method");
writeToFile(data, "c:/Employee.txt");
System.out.println("file created successfull");
rs.close();
pst.close();
private static void writeToFile(List list, String path) {
BufferedWriter out = null;
try {
File file = new File(path);
out = new BufferedWriter(new FileWriter(file, true));
for (Object obj : list) {
String s= obj.toString();
out.write(s);
out.newLine();
out.close();
} catch (IOException e) {
}Thanks
Jasmin
Edited by: user13836688 on Mar 21, 2011 4:06 AM
Edited by: user13836688 on Mar 21, 2011 4:07 AM
Edited by: user13836688 on Mar 21, 2011 4:08 AMuser13836688 wrote:
i have created simple application for generate report from database into text file.First off, when posting code, use [code]...[/code]. or '' tags, not '<code>'.
But i need to add header and fooder in text file. I dont know is there any API for adding these.
Can anyone help me to create header and fooder in text file.Well you plainly have the code to write the file contents; and furthermore your report seems to be contained in a List called 'data'. Why not just add the header and footer lines to it? I'd also suggest making 'data' a LinkedList. That way you can add the header afterwards with no performance hit, just in case the information it contains isn't available at the start of your report loop.
Winston
Maybe you are looking for
-
Transfer data in the Ztable from one client to another client in a same ser
Hi all, How can i transfer or move data in the Ztable from one client to another client in a same server . Thanks Ajay
-
Lost /var/lib/pacman
Hey guys! I've lost my /var/lib/pacman directory. (No! I did not delete it!) Is there any chance of getting it back? [..]/current and [..]/extra is not hard, but is there any chance to get [..]/local back? Regards, Moritz
-
BPEL process to receive CSV file in SOAP attachmnet
Hi , I have a requirement where i need to develop a BPEL process that receives a CSV file in a SOAP attachment. The BPEL process ahould take the CSV file from the attachment and store it in a local Directory. Thanks in advance.
-
I can't change the region in app store? Help!
I used to have an account inaustralia, but now live in uk. I have changed the region in iTunes, in the general iPad settings and in app store as well, but it still only lists Australian apps!!!!M Help!
-
HT201302 How do i import photos from my ipod to my laptp? Its a windows 8 laptop.
please help me? i need to move them onto my laptop as i have no avalabe memory left on my ipd.