Regarding line feed
Hi experts,
I tryig for line feed in the Text file. I'm using CL_ABAP_CHAR_UTILITIES=>NEWLINE.
example
CONCATENATE lv_tmp_str
wa_notes-tdline
cl_abap_char_utilities=>cr_lf
INTO lv_tmp_str.
it showing error, the Class cl_abap_char_utilities UNKNOWN.
how to declare, please help
Vani
Hi experts,
I'm not getting solution for this
need to disply the Tities for the PopUp screen, window screen, subscreens,... In Thai Language in Thai Login, But It was not displaying any thing including all the SAP standard screens. In debugging mode the sy-title is displaying but not in window title,
Other than the English Login, The titles is not Displaying
- I was checked in SE63, TRDIRT table, SNL3 transaction but of no Use
- Options I18N has been set with Thai and font
Any body had came across this.
so I want to know that any Gui patches have to install , or any setting have to be done ..
looking for your great help
Similar Messages
-
Regarding line feed in sap script
hi
i had a long if statement.
it is extending more than one line.
IF ®UH-RZAWE& = '2' AND ( ®UH-LAUFI0(1)& EQ 'E' OR ®UH-LAUFI0(1)& EQ 'G' )
IF i use '=' Extended line the statement in that line is printing as it is.
If i use '/:' this command even for the next line it works fine
what i s the correct procedureHi Guys!
I've tested it (it is really better then giving just assumptions). Only solution is the one from KK: use SHIFT+F8 - it will give You one extra line to continue Your command (but only one).
If You try to use next line SAPScript will interpret only first line of Your command, no mater which line type will You select for second line. Example:
/: IF &VBDKA-VKORG& EQ '0001'
/: AND &NAST-SPRAS& EQ 'DE'
In this case SAPScript will omit what is in second line and it will do whatever is inside this IF for every language. Whats more: If second line type is ' ' or '=', then You will get a printout of fixed text >> AND &NAST-SPRAS& EQ 'DE' <<
BR, Michał -
Line Feed within the cell in .CSV output file
Hello Experts,
I have created one z-report, and the output of the report is in .CSV file format separated by 'semi-colon' as separator.
Their is one column "Product" in which data is in the format
<b>"[Product1][Product2][Product3][Product4]"</b>
My code looks something like this:
LOOP AT product_new INTO wa_product.
CONCATENATE Prod_str
wa_product-tdline
INTO prod_str.
ENDLOOP.
Our requirment is to insert Line-feed between each product entries within the cell.Line-Feed between each product within the cell is possible with ALT+ENTER key
The output required is
"[Product1](ALT+ENTER)
[Product2](ALT+ENTER)
[Product3](ALT+ENTER)
[Product4]"
I would appreciate if anybody can help me to solve this.. (urgent)
Thanx.Hi
Go thru these links
Regarding line feed
add line feed to string
When you concatenate try using the abap char utility for newline as well.
i.e CL_ABAP_CHAR_UTILITIES=>NEWLINE.
LOOP AT product_new INTO wa_product.
CONCATENATE Prod_str
wa_product-tdline
CL_ABAP_CHAR_UTILITIES=>NEWLINE.
INTO prod_str.
ENDLOOP.
Regards,
balaji
**rewrds for helpful answers -
Regarding problem with new line feed for DME file generation
Hello Experts,
I m facing a problem in the DME file generation.
we want each record in the DME file should be in new line. for that we have add the new line feed character in the each row end. So in the SAP output it looks ok, But if we download that file the carriage return field is coming in the end of every row.
can any one tell how to solve this issue.
Please refer the below line code which i m using for new line
DATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>CR_LF
You reply is valuable..
Thanks,
SureshDATA: GM_newline TYPE c VALUE cl_abap_char_utilities=>newline.
-
Mail attachment generated in UDF in SAP PI 7.1 - Issue with line feed
Hello,
Situation is:
Implemented a scenario in SAP PI 7.1 with a mail receiver following this thread:
/people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
which is about moving message lines from sender into an attachment forn the receiver mail.
It is working great!
The receiver gets the mail including the attachment with all added lines.
But when opening this mail there is an issue depending on the program we are using to open the attachment
which is defined as txt file
- Using MS Editor 5.1 (Windows XP 2007, SP3) the Carriage returns and line feeds (added with
in the UDF) to separate the message lines are not recognized. In the Editor each
is shown as □ within the text. Word wrap (flag set in the editor) is different to the carriage return/line feeds set in the file.
- Using MS Notepad 5.1 (Windows XP 2007, SP3) situation is the same but
is NOT shown as □ , it simply seems to be unvisible. Word wrap (flag set in the editor) is different to the carriage return/line feeds set in the file.
- Using Word 2007 the carriage returns are recognized and used in a correct way to display the file content. But now mutated vowels (äüö) are not recognized. They are displayed as
So I followed this thread:
http://help.sap.com/saphelp_nw04/helpdata/en/96/f04142099eb76be10000000a155106/content.htm
Nice....
In the editors there is no change, but when opening the file in Word it asks now how to convert the file content
(proposing UTF-8) and Word recognizes mutual vowels.
But there seems to be a side effect....
Following the second link, PI recognizes an error.
This is the error message.
MP: exception caught with message Null as XI message received (PrincipalData in ModulData is null)
Adapter Framework caught exception: Null as XI message received (PrincipalData in ModulData is null)
Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Null as XI message received (PrincipalData in ModulData is null).
But the message is sent to the mail recipient which could be ok if PI would not repeat the mail sending now for several times.
So we will receive not one but a number of mails.
So we removed the modul recommended in this help link from the channel.
Result: Behaviour in Word changed now to the described one. But the errors are no longer coming up in channel monitoring incl. message send repetition. So this is a first success. But the partner wants to process the files first with one of the named editors. So we are looking for another solution now to fix the last issue!
Your ideas are really welcome!
Best regards
DirkHi,
as I found this in wikipedia:
Another common problem is the use of '\n' when communicating using an Internet protocol that mandates the use of ASCII CR+LF for ending lines. Writing '\n' to a text mode stream works correctly on Windows systems, but produces only LF on Unix, and something completely different on more exotic systems. Using "\r\n" in binary mode is slightly better, as it works on many ASCII-compatible systems, but still fails in the general case. One approach is to use binary mode and specify the numeric values of the control sequence directly, "\x0D\x0A".
Back to my issue:
In the UDF I am adding "\r\n" but only the "\n" seems to survive!
In Mapping test line feeds are available and the lines are shown as expected.
Using Notepad ++ to open the created txt file from the mail shows that LF is in the file at each end of line but CR is missing.
CR is only at the end of the last line in the file and is not from the UDF that creates the mail or the UDF that creates the attachment lines. Seems that this is added somewhere else behind the mapping.
This is what I found in galileo computing
(http://www.galileocomputing.de/glossar/gp/anzeige-11241/FirstLetter-Z, SORRY, only available in german language!):
In Parsing of XML-Documents the XML-Parser changes the end of line delimiter internally in general to a simple line feed (LF, #0A) as usual in UNIX. ..... In Windows this could result in problems with readability of source texts (e.g. in Notepad) which can be solved by choosing the right editor.
My target application is on Windows and not able to "choose" the right editor (PI system is on windoes OS too) !
But Im wondering where the CR at the end of the text comes from when all the \r\n will be replaced with \n as described.
Ideas are really welcome!
Best regards
Dirk
Edited by: Meinhard Dirk on May 31, 2011 2:45 PM -
How do we remove Carriage Return (line feed) inserted in FCC files
Hi Experts,
The file that we generate has a carriage return at the end.
Is there any way in which we can remove this carriage return (line feed) from the file?
The FCC parameters used at our end are as below:
structure.filedNames:
structure.fieldFixedLengths:
structure.fixedLengthTooShortHandling: Cut
Kindly tell us a solution ASAP.
Thanks & Regards
DhwaniDear All,
Let me elaborate on my query
Consider that the files output looks like below:
12 34 45 545 5454 UL
23 33 43 434 4545 FG
45 44 44 586 6535 GM
Now there is an extra line(Carriage Return) getting inserted after the last line 45 44 44 586 6535 GM which is not required at our end.
The cursor of the file instead of stopping on the last character M, points to the next line.
Can you please suggest how to remove this extra line from the files.
I dont understan how will remove context help in this case.
Regards
Dhwani -
How to insert line feed in the alert text
HI,
I am sending a message from BMP using alert.
I need to insert a line feed in the error message because the message is a concatenation of multiple error messages.
Regards
Vijay.You already have the solution. The XML created by EDI disassembler does not have White Space and Indent enabled so what you see is unindented/non-whitepaced XML.
However if you view it in IE then you will see it indented and properly formatted. I would assume that you want to do something with the disassembled message such as store it or process it as opposed to having someone read it in a browser or notepad++ ?
because for processing the data whitespace or indentation is not really consequential.
Regards. -
Removal of Line feed from EDI file in IDOC to EDI file scenario
Hi Experts,
I have one problem related to line feed in EDI file. Currently i am using seeburger mapping to do XML to EDI mapping. After mapping i am using File Adapter(with NFS) to create file in my PI server.
The line looks like
UNB+UNOA......
UNH+1.......
BGM.........
but i want my file in without line feed
UNBUNOA......UNH1......BGM
Can this be possible without use of Shell script?
Is anything i can do in Seeburger mapping [i checked BIC mapper in seeburger and see some parameters there]?
Regards,
ShradhaHi,
I am explaining my scenario in detail:
my Current EDI file looks like
UNAf1f2............'
UNBf1f2............'
BGMf1f2............'
UNHf1f2............'
now i want my file to be in following format
UNAf1f2............'UNBf1f2............'BGMf1f2............'UNHf1f2............'
NOTE: to create my current file i am using File adapter with NFS and seeburger mapping.
Can you please tell me a way to remove the line feed from the current file ?
I already tried newline checkbox from seeburger and it is not working. and other parameter i can use from see burger mapping tool which will remove my line feed.
Regards,
Shradha -
Line feeds in a BPEL assign activity as viewed in the BPM worklist
We are catching errors in our BPEL 1.1 process (created in SOA Suite 11.1.1.6) and sending them to the BPM worklist via a human workflow. We followed the basic documentation found here:
http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/partpage_hwf.htm#CHDGICFI
Before we invoke the call to human task, we assign some strings to parts of the message. For example:
<assign>
<copy>
<from expression="Detailed message:\n\nMore details go here."/>
<to>....
When we pull up our error in the BPM worklist and view the detail page, we do not see "Detailed message" and "More details go here." separated by 2 line feeds. Instead, we see the actual text "\n\n" printed out.
I have tried a variety of other line feeds, but nothing seems to work (i.e. to break up the text on the screen):
<br> or <br/> - The tags show up in the detailed view. When I view the HTML source, I see it escaped them with &lt; and &gt;
&lt;br&gt; or &lt;br/&gt; - This exact text shows up on the screen (i.e. we see &lt;, etc.)
&amp;lt;br&amp;gt; or &amp;lt;br/&amp;gt; - Same result (i.e. we see &lt;, etc.)
&#10; - The line break is visible in the HTML source, but that's just basic HTML whitespace which doesn't translate into a viewable line break
&#xA; - Same thing with &#10; Just HTML whitespace
<pre> ... 2 carriage returns here </pre> - I tried to trick it into forcing the HTML whitespace into actual line breaks, but I had the same issue with the <br> where the open/close brackets are always escaped or printed...but never interpreted.
So...the big question is...what is the proper syntax to add line feeds that an HTML browser can interpret (while viewing the BPM worklist app) when I'm building that string in a BPEL <assign><copy><from> expression?
Please advise,
MichaelCan you simply format your expression according to what you need an try? I mean replace
<assign>
<copy>
<from expression="Detailed message:\n\nMore details go here."/>
<to>....
with
<assign>
<copy>
<from expression="Detailed message:
More details go here."/>
<to>....
Regards,
Anuj -
Remove Line feed at the end of the file while using file adapter
Hi All,
I have a requirement. We are sending a file from SAP to FTP using file adapter. we are successful in sending the file to FTP but at the end of the file a extra blank line is created .
Can anyone please suggest how to remove the extra line feed at the end of the file.
Thanks and Regards,
LRK.check this:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
Also there are solved threads which deal with same problem....you can even check them out...
regards,
Abhishek. -
Mail receiver adapter - line feed problem
Hi!
I am just configuring a mail receiver adapter. In the module tab i configured a conversion from XML to plain which works well. The plain text file is created but there are no line feeds after the plain text lines.
The configuration in the module tab looks like this:
Modulename: localejbs/AF_Modules/MessageTransformBean
Type: Local Enterprise Bean
Module key: XML2Plain
<u>Module configuration:</u>
XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
XML2Plain - Tansform.ContentType - text/plain;charset=utf-8
XML2Plain - xml.conversionType - SimpleXML2Plain
XML2Plain - xml.addHeaderLine - 0
XML2Plain - xml.fieldFixedLengths - 80,80,80,80,80,80
XML2Plain - xml.fixedLengthTooShortHandling - Cut
Can anybody please help me?
Thanks in advance
ChrisHi Stefan!
Thanks for your reply! Your suggestions would be perfect if I already had any kind of line break, eg. lf or crlf. At the moment there is no separator at the end of each line.
<u>The XML file looks like this:</u>
<b> <?xml version="1.0" encoding="UTF-8" ?>
<ns:X_ANSI_TXT xmlns:ns="urn:customer.com:edi:kunden">
<MSG>
<LINE_01>*** START OF REPORT ***</LINE_01>
<LINE_02>PO CHANGE REQUEST</LINE_02>
<LINE_03>DATE: 10/05/05 TIME: 0744</LINE_03>
<LINE_04 />
<LINE_05>PO TYPE: CR: Change to Release</LINE_05>
<LINE_06>PO #: DB65544027560070</LINE_06>
<LINE_07>ORIGINAL PO DATE: 02/03/93</LINE_07>
<LINE_08>PO CHANGE REQUEST DATE: 10/05/05</LINE_08>
<LINE_09>SHPMT PMT METHOD: CC: COLLECT</LINE_09>
<LINE_10>FOB POINT: OR:ORIGIN (SHIPPNG PT)</LINE_10>
<LINE_11>FOB DESCRIPTION: ORIGIN (SHIPPNG PT)</LINE_11>
<LINE_12>*** END OF REPORT *** </LINE_50>
<LINE_13 />
</MSG></b>
<u>After conversion the output looks like this:</u>
<b>*** START OF REPORT *** PO CHANGE REQUEST DATE: 10/05/05 TIME: 0744 PO TYPE: CR: Change to Release PO #: DB65544027560070 ORIGINAL PO DATE: 02/03/93 PO CHANGE REQUEST DATE: 10/05/05 SHPMT PMT METHOD: CC: COLLECT FOB POINT: OR:ORIGIN (SHIPPNG PT) FOB DESCRIPTION: ORIGIN (SHIPPNG PT) *** END OF REPORT ***</b>
<u>I would like to create a more readable format like this:</u>
<b>*** START OF REPORT ***
PO CHANGE REQUEST
DATE: 10/05/05 TIME: 0744
PO TYPE: CR: Change to Release
PO #: DB65544027560070
ORIGINAL PO DATE: 02/03/93
PO CHANGE REQUEST DATE: 10/05/05
SHPMT PMT METHOD: CC: COLLECT
FOB POINT: OR:ORIGIN (SHIPPNG PT)
FOB DESCRIPTION: ORIGIN (SHIPPNG PT)
END OF REPORT ***</b>
Do I have to change the XML message or is there a chance to use a module entry?
Kind regards
Chris -
Hi,
we need to produce a flat file using the content conversion of the file adapter without any line feed (the target structure is a complex one with several record types).
Example
What we get now:
*AAheaderA
*ABheaderB
*BAItem1
*CAsubitem1
*BAItem2
What we need:
AAheaderAABheaderBBAItem1CAsubitem1*BAItem2
It seems that with NameA.endSeparator parameter you can only add a new character, but I need to delete the line feed.
Is it possible with standard file adapter or do we need do create our own module with java?
Thank you.Hi Stefano,
So you Basically want to do content conversion at the receiver end and that is basically to get the entire data in one line.For that please go through these links below.It clearly explains your requirement.
<a href="/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion Receiver with Content Conversion</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm">Converting File Content in the Receiver Adapter</a>
carefully make a note of the "The endSeparator parameter.
Regards,
abhy -
XI: Remove Carriage Return +Line Feed at end of XML
Hi All,
Scenario
Currently, we have a JMS --> XI --> IDOC scenario. The Sender Service always sends a CRLF (Carriage Return & Line Feed+) without fail at the end of each xml file once this non-sap system finishes its transaction.
Example
<STARTOFXML>
Data------
</ENDOFXML>CR+LF
Question
Is it possible to remove this from XI JMS Sender Adapter? From the receiver Service (JMS) this is possible.
Cheers!
SulaimanWhy do you want to remove this? Does this lead to errors?
Regards
Stefan -
FCC in receiver channel - get rid of last line feed?
Dear experts,
I have the following XML structure
<DT_SALES_REPORT_JDE_CA>
<list>
<RecordsetA>
<a>
<b>
</RecordsetA>
<RecordsetB>
<a>
<b>
<c>
</RecordsetB>
<a>
<b>
<c>
<RecordsetB>
</RecordsetB>
</list>
</DT_SALES_REPORT_JDE_CA>
and I am using CC in the receiver file adapter:
RecordsetA.fieldSeparator ","
RecordsetB.fieldSeparator ","
RecordsetA.endSeparator "\n
RecordsetB.endSeparator "\n
RecordsetA.beginSeparator "
RecordsetB.beginSeparator "
which gives me this structure:
"a","b"
"a","b","c"
"a","b","c"
This is fine the only issue I have is that at the very end it also gives me a line feed of course.
But I have to get rid of that last line feed!
But how can I achieve that? Is that possible at all?
I cannot use ".fixedLength" because the fields have variable lenghts.
Thank you for any ideas and best regards,
PeterHello Zameer Hamza,
You are right. I removed the .endSeperator and line feeds are entered automatically. But now I still have one line feed at the very end which I do not need.
Would you have any other ideas how to resolve this?
thank you again,
Peter -
Need a line feed after 120 characters in a text file
Hi ,
I am in the verge of developing a report program which generates a text file (space delimited) for a third party vendor -
After 80 characters (name field) - I need to have space till 120th position in the record and then the cursor should navigate to the
the next line (line feed) in the text file-
I used several techniques but couldn't succeed u2013 Since there is no characters after 80th position the cursor navigates to the next line or record in the text file u2013 Can anyone help on this regard?
Thanks in advance.
Regards
Rajesh.Rajesh,
Insteadof differentiating the fields in the text file with SPACE use # or @ as separator and then check by defining a field with length 40 and leave it blank.
K.Kiran.
Maybe you are looking for
-
CRM 5.0 - Middleware issues after Support Package installation
Hi experts, after upgrading the support package (from version 11 to version 17) we are facing a lot of issues. 1. We need to synchronize custom tables from CRM to R/3. Can you give me an example on how to configure table SMOFQFIND/CRMMAPTAB for inbou
-
Report-Report Interface ECC Reports
Dear all, I'm making a report using report painter (TCode GRR2) and now I need to drill-down to the documents. I think that I can build it via report-report interface. So, have I to use RSBBS tcode to built it? In fact, I need to built a drill-down t
-
When I read from a Keithley 2612, I lose 3 numbers of precsion
Hello, When I read from a Keithley 2612, I lose 3 numbers of precsion. When I connect a probe to the Keithley driver output I can see a current measurement of 0.000005051 uA. This output is wire to a "Merge Signalsbox" and then to a "Write LabVIEW
-
Hello, Not sure if it is the right forum to ask but here are my questions: The PDF Reference is a copyrighted material. Is it possible to freely quote from the PDF Reference in an online documentation of a library which generates PDF documents? Also,
-
Leopard install hangs at DVD reboot
I cannot upgrade from OSX Tiger to OSX Leopard on my G4 iMac. I insert the DVD and follow the prompts to do the installation, however when my iMac tries to boot from the installation DVD it just hangs at the grey screen showing the apple logo and sit