Insert new line type at ctrl break in Smartforms
Hi Guys
I am developing a timesheet in smartforms.
In the Smartform my table contains data for two weeks, but I need to bifurcate it on a weekly basis. So when the form starts I print e.g Weekly record:- 01.01.08 to 01.07.08
Now I want that as soon as the control reaches 01.08.08 A new line type should get inserted saying
Weekly record:- 01.08.08 to 01.14.08
Please guide me how this can be done.
Thanks a lot.
Create your internal table in such a way that it contains the data as per your printing requirement.
E.g.
01.01.08 01.07.08 XXX.XX 123.45
01.08.08 01.14.08 XXX.XX 123.45
Now, if your smartform just create a table node under the MAIN window and prints this values.
Regards,
Naimesh Patel
Similar Messages
-
How to insert new line break in XSLT mapping
Hi experts,
I am doing file to mail scenario, i am sending the text file as an attachment using reciever mail adapter.
I did everything, i can able to send the mail with text file attachment, but with in the file i got multiple rows, i need to put line break in XSLT mapping.
I did use following statement but it is inserting small rectangle between the records, the records are not separating with new lines, all are in one line.
<xsl:text>*#xA;</xsl:text>
note: in real coding replace * with &
Can anyone suggest me how to insert new line in XSLT mapping.
My XSLT mapping as look like:
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://www.Coj.co.za/SapIsuToABSA/DirectDebitFile">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:variable name="break"><br/></xsl:variable>
<xsl:variable name="space"> </xsl:variable>
<xsl:variable name="newline"><xsl:text></xsl:text></xsl:variable>
<xsl:template match="/">
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Please Check Attached Direct Debit File</Subject>
<From>S@za</From>
<To>P@za</To>
<Content_Type>text/plain</Content_Type>
<Content>
<xsl:for-each select="MT_SapIsuToABSA_DirectDebitFile/DirectDebitRec/Body">
<xsl:value-of select="Space1"/>
<xsl:value-of select="Cust_AccNo"/>
<xsl:value-of select="Reserve_1"/>
<xsl:value-of select="Cust_Name"/>
<xsl:value-of select="Cust_Name1"/>
<xsl:value-of select="Cust_Bank_AccNo"/>
<xsl:value-of select="Space2"/>
<xsl:value-of select="Cust_Bank_BranchNo"/>
<xsl:value-of select="Reserve_2"/>
<xsl:value-of select="Space3"/>
<xsl:value-of select="Cust_AccNo_1"/>
<xsl:value-of select="Space4"/>
<xsl:value-of select="Reserve_3"/>
<xsl:value-of select="Deduction_Amnt"/>
<xsl:value-of select="Space5"/>
<xsl:value-of select="Reserve_4"/>
<xsl:value-of select="Space6"/>
<xsl:value-of select="Action_Date"/>
<xsl:value-of select="Space7"/>
<xsl:value-of select="Reserve_5"/>
<xsl:text>*#xA;</xsl:text>
note: in real coding replace * with &
</xsl:for-each>
</Content>
</ns1:Mail>
</xsl:template>
</xsl:stylesheet>
Kind regards,
PraveenHi,
I think <xsl:text>#xa;</xsl:text> should do the trick, but depending on which OS (ux or win), the "new line" chars sequence is different (win would require a CRLF like <xsl:text>#xd;*#xa;</xsl:text>)
Chris
-> &
Edited by: Christophe PFERTZEL on Apr 14, 2010 2:16 PM -
How to insert new line in the copied schema with transaction code PE01?
Dear Experts,
I have copied HKT0 to ZKT0 , i want to insert new line between line 150 and line 160 in ZKT0, I don't know how to insert new line 160, who can tell me ?
Looking forward to your reply.
Best Regards,
MerryHi,
1. Open your schema,
2. In first colume "Line" select line where you want to add new line,
3. Replace first value in the column field (that indicates number of line) with character I (means insert),
4. Press enter
The line will be added. The same way you can add lines to PCR.
To delete use character D.
Cheers -
Insert new line item in va01&va02 - urgent
Hi frndz,
At the time of creation standard sales order using va01.
When user enters the sold to party in header and then
material & quantity in line item reocrds. After user enters the details in first line. I have some checks to be executed and on the basis of that customer will get the free material that should come on second line item.
I am getting the details which i will be inserting on new line item but the problem is that in which exit i should write the code for the same.
So frndz could you please let me know, in which userexit I should insert this new line item. There can be more than one free material.
If anyone has done this already, please let me know.
I know one exit i.e.MV45AFZB but in that there are many forms. so exactly which form i should where i will write the code to insert new line item???
Points will be awarded surely.
Regards,
PrashantHI Stephen,
I have the same prolem. I modified the 5 global tables, but I don't see the new line in the screen.
Can you help me with some details?
Thx!
Mihaela -
Inserting new line to a text file at position #
Hi,.
Is it possible to do this in java?
1. Open a new text File (woutFile)
2. woutFile.write(" line #1\r\n"); // write new line
3. woutFile.write(" line #2\r\n"); // write new line
4.woutFile.write(" line #3\r\n"); // write new line
5. Go to line #2 position on a text file
6. Insert NEW LINE between line #2 and Line #3
7. move to the end-of-file
8.Close the file
Please helpIs it possible to do this? please look at question
inside comments.Your question has already been answered. Beyond that,
if you have some code and you want to know if it will
work, then run it and see.The answer was no. It's one of the fundamental properties of files that you cannot insert content in the middle, just at the end. To insert content you first have to make room for it. In this respect a file works like an array and not like a linked list. -
How to insert new line character?
Hi all,
I have two lines to print.
out.println("Available number of columns="+cols);
out.println("Number of columns must be present=10");My problem is:
i want both the lines to be printed one below the other. But, it is displayed in one single line.....
Can anyone please tell me how to insert new line character?
I tried with \n, '\n' and \r\n but, in vain......
Thanks for your time.
Regards,
AshviniYou should never use "\n" directly.
The line separator character is different on different operating systems.
And putting quotes around it in your string will make absolutely no difference in the JSP.
To find out what the line separator is you should use System.getProperty("line.separator");
The JSPWriter and PrintWriter classes will automatically use this property with a println statement, so a println will always finish with a line separator.
The issue here was that HTML by default ignores all whitespace.
The solutions provided
- use a <br> tag instead of a carriage return
- use <pre> tags, which tells the browser not to ignore whitespace. That can be troublesome in JSP which generates a lot of extraneous carriage returns into the code.
Cheers,
evnafets -
Inserting new line item into existing delivery using BAPI
Hi
can you send me the code for inserting new line item into existing delivery either using BAPI or
Function module.
We are using SAP 4.7 versionHi Sreekanth,
Refer to this links
New item for outbound delivery via FM/BAPI?
/message/3976349#3976349 [original link is broken]
BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item
hope it is useful to you.
Regards! -
Hi,
I need to insert new line item into PO if the material entered is BOM material. My requirement is like this, If the user creates the PO with BOM material then i need to insert all the inside components as line item in that PO. Please suggest me any user exits avaiable or any way to achieve this( It's not a subcontracting PO).
Thanks,
Ganga.hi
PCSD0001 Applications development R/3 BOMS
PCSD0002 BOMs: Customer fields in item
PCSD0003 BOMs: Customer fields in header
PCSD0004 BOM comparison
PCSD0005 BOMs: component check for material items
PCSD0006 Mass changes user exit
PCSD0007 Check changes in STKO
PCSD0008 WBS BOM: Customer-specific explosion for creating
PCSD0009 Order/WBS BOM, determine URL page
PCSD0010 Order/WBS BOM, determine explosion date
PCSD0011 Knowledge-based order BOM, parallel update
PCSD0012 Customer - Mat. number/mat. number during material exch
PCSD0013 Customer-specific processing of an explosion for BOM br
**Please reward suitable points***
With Regards
Navin Khedikar -
BOM Change - Delete an item(s) and insert new line items
Hi,
We need to mass update BOMs like for some of the existing BOM's we need to delete some line items and insert new line items. We want to use the BOMMAT04 IDOC in LSMW but I'd like to know couple of things before I go ahead with that approach
For instance, I've a finished good material 12345678 and it has three components
a) Item 0010 Material 30101010 of quantity 10
b) Item 0020 Material 30101011 of quantity 11
C) Item 0030 Material 30101012 of quantity 12
Now, I'd like delete Item 0010 and add a new item 0040 Material 30101013 of quantity 13.
In the segment E1STKOM, there is LOEKZ (Deletion Flag) but I dont want to flag for deletion but instead delete the whole line item and add a new line item.
Is there any way to achieve this using BOMMAT04 IDOC? If not, can you please suggest me a better way to do it
Any help is greatly appreciated
Thanks,
SrinivasDear Srinivas,
1.IF you want to change for an individual BOM,use CS02,select the item which you want to delete,select the entire and click on
delete button and then add new line items and save.
2.For Mass changes of BOM you can use CS20.
3.Check these functional module's also if you want to change using a report,
CS_BI_BOM_CHANGE_BATCH_INPUT Change bill of material via batch input
CSEP_MAT_BOM_SELECT_CHANGE API Bills of Material: Select BOM(s)
CS_CL_P_BOM_MASS_CHANGE
CS_CL_S_BOM_CHANGE_COMPLETE
Check and revert back,.
Regards
Mangalraj.S -
Insert new line items in Delivery
Hello All,
Is there any BAPI or FM in which i can add new line item in SD delivery vl01n? The new line item will not be there in SO , but i want it in delivery. Manually i can insert new line item using VL01n , but i need FM to do the same.
ThanksHello,
I need a Bapi or FM through which i can add new line item in delivery , maybe while creation of delivery or changing the delivery i.e. via VL01n or Vl02n. The new item will not be there in SO. It is a non valuated material.
Helpful answers will be rewarded.
Thank you -
Insert new line using rule in InfoPath 2010
Hi All,
How to insert new line on the multiline textbox using rules. I followed the below article. But it didnt help to resolve the issue.
http://blogs.msdn.com/b/infopath/archive/2005/03/04/385577.aspx
Any help would be appreciated.
Rajasekar A.CHi,
I followed the above link and it worked for me. Can you please make sure if the formulae is verified by clicking on "Verify" after entering following lines?
concat(field1, @crlf,
"Hello, world!")
You can even try this link
http://www.sharepointmaestra.com/Blog/Post/4/InfoPath---Appending-Text-in-Multiline-Field-with-Line-Feed
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
Insert new boolean type column in jtable
how can i insert new boolean type column or columns in jtable while my program is runing?
thanks for your answers...Save your dukes and see the code I posted at http://forum.java.sun.com/thread.jsp?forum=17&thread=548443&tstart=0&trange=15
You need the underlying 2d data array be dynamic. I chose Vectors. -
Pressing Enter inserts new line break instead of "executing" command
I have noticed a rather strange behavior on my new TPT2. This occurs ONLY when I am using the Windows 8 touch keyboard in the "Metro" environment.
Whenever I press the Enter key on said keyboard (for example when sending an instant message on Skype), the keyboard inserts a new line in the text box instead of acting like a "normal" Enter key and execute the default command (send the message in this example).
I have connected an external keyboard and this problem does not show up. Everything works as expected. I also brought up the regular on-screen keyboard (launched from the Ease of Access menu) and it works the way it should. The problem is only with the Metro touch keyboard.
It seems that for some reason, the Metro touch keyboard interprets the Enter key pressing as "insert a line break".
Does anyone know how to fix this? It is extremely annoying.Just checked that, you are right, Photoshop doesn't recognize Shift-Enter as a line break and treat it as a Return which is a problem with paragraph formatting. Obviously a bug.
Good news workaround is that it recognizes the line break character if you paste it from another program like Microsoft Word. If you don't have a program that allows you to copy just that character and use paste instead of Shift-Return, you have to type your entire text in some other program and copy paste to Photoshop. -
af:validateLongRange displaying message: How to insert 'new line' ?
Hello,
While using <af:validateLongRange> tag we need to display message in a well formatted way, we have to display each statement in a new line.For eg. : message as displayed by property 'messageDetailNotInRange' must come in three different new lines not as a continuous statement.I tried inserting '\n' escape sequence for new line, but it dint work.I tried spacing the statements but that also is not working out.
Any idea how can we get this message displayed separately in three rows rather than in a continuous statement ?
++messageDetailNotInRange="You have entered a value more than is available. Value entered must be in the range of {2} to {3}.To delete this line, clear the value and click Delete"++
+<af:validateLongRange id="xyz_VC1" minimum="1"+
maximum="100"
messageDetailNotInRange="You have entered a value more than is available. Value entered must be in the range of {2} to {3}.To delete this line, clear the value and click Delete"
messageDetailMinimum="Minimum {0} allowed is {2}"
messageDetailMaximum="Maximum {0} allowed is {2}"
hintNotInRange="#{'xyz'}"/>Thx..Done that!! but dint get the desired result ,I put it as :-
messageDetailNotInRange="You have entered a value more than is available.<br> Quantity entered must be in the range of {2} to {3}.<br> To delete this order line, clear the quantity and click DELETE."
On corresponding page this message was displayed as :
You have entered a value more than is available.<br> Quantity entered must be in the range of 1 to 100.<br> To delete this order line, clear the quantity and click DELETE.
It dint insert line breaks in the message.Do i need to write it differently?
Above html code is modified once i posted it, it has inserted line breaks here for the br tag i added , but in my actual .jsff page it did not . I can only see br tag displayed as part of message and no new line got inserted.
I dont see an option to attach a file with the post so that I can show the code to you.
Edited by: user13439821 on Aug 15, 2011 2:58 PM -
CLIENT_TEXT_IO : cannot insert new line into a text file
Facts:
Developer 10g
AS 10g
Web utility
Problem:
i am traying to
Open a text file. using CLIENT_TEXT_IO.FOPEN
insert a record in to a text file using CLIENT_TEXT_IO.PUTF
insert a new line using chr(10) or CLIENT_TEXT_IO.NEW_LINE
or CLIENT_TEXT_IO.put_line
insert the next record
Close the file.
all work except insert a new line
Why !!!
it was Working fine in 6i, but now in 10g and Webutil is not working
plz helpHi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
import java.io.*;
class Demo{
public static void main(String args[]) throws Exception {
FileWriter fr = new FileWriter("FileDemo.txt");
fr.write("AAAAAAAAAA");
fr.write(System.getProperty("line.separator"));
fr.write("AAAAAAAAAAA");
fr.close();
}
Maybe you are looking for
-
Can you help me with these exceptions??
Hi guys, from sunday i try to eliminate these exceptions from my jsf application and i've lost any confidence in my possibility to realize it..... It's surely a simple problem but i'm a newbie of jsf and java. These are the exadel msg type Exception
-
when i try to restore my iphone 4s it say unable to complete restore error 29 now i cant use my phone at all
-
Getting the position of the cursor in an IMAQ window
I am currently working on a project using LabView 6.0 and IMAQ Vision. I need to get the instantaneous coordinates of the cursor in an IMAQ window, without clicking the mouse button. The purpose is to let a laser beam follow the movement of the curso
-
Missing Pre-order DLC for Bloodborne
Hi, I pre-ordered Bloodborne for PS4. I did it online with in-store pick-up on release. I searched the receipt, emails, account info on my online account and don't see a code anywhere. I put a link to the item I was supposed to get below: http://w
-
Hi I've shot some footage on my Canon 5D which is set to shoot in the PAL format but when I import to FCPX the inspector seems to indicate the footage is NTSC 1080p. Is this normal? What happens when I want to create a DVD for UK equipment?