Long text to be taken into next line
Hi,
I am passing a text in a FM in a BADI, but the text being long enters in the next line which gives an error saying that 'Literals that take up more than one line are not allowed in OO context'.
Can someone suggets some way of overcoming this other than storing the text in variables & concatenating it.
Thanks.
Hi
I guess there is no other way apart from concatenating
the text into a variable. If you dont want to declare a
new variable for that you can use the same variable.
move 'First Line' to l_text.
concatenate l_text 'continuing' into l_text separated
by space.
Kind Regards
Eswar
Similar Messages
-
I cannot get my text to advance to the next line when hitting enter???
I cannot get my text to advance to the next line when hitting enter.
Any suggestions??When I open Keyboard Shortcuts, the name field under Set: is highlighted in dark blue. I cannot type a name in it. The button NEW SET remains ungray. When I click on the button no change happens to allow me to create new set.
I also noticed that I am unable to scroll down in the InDesign document using scroll off mouse.
So I have to click and drag to get around not using the up/down arrows when moving the illustrations.
If I have to enter text I will use storybook.
If I have to delete text I will use the InDesign document.
Very limited with the functionality - I was better off using Adobe InDesign 2.0!
Will need more time to investigate why the keyboard and mouse are not being recognized. At this time I will have to use the work-arounds to meet deadlines and revisit later. -
Long Text Field Flowing incorrectly to next page
Hi Guys,
I have checked the "Allow Page Breaks within Content" in a subform. I include a text field in the subform and checked "Allow multiple lines" so if the long text cannot fit in the text field within one page, it will continue to next page. The problem now is the content in the second page is not continue from the first page, but it is copy the content from first page.
For example: 8 lines need to fit into text field. Only 5 lines can fit into text field in first page. Then the line 6-8 should continue in second page. Yes, the text field have 3 lines in second page, but not line 6-8, it copies the line 1-3 from the first page.
Anyone have experience on this or anyone can help me?
Christiaan
South AfricaHi,
I found a solutions to my problem (and posted it also to the SAP-SDN forum).
I changed following setting in the LiveCycle Designer (in Netweaver Dev. Studio):
edit->Form Properties->Defaults->Preview->Preview Type->Choose Print Form (instead of Interactive Form)
I prepared some XML-Data and used the preview: voila - no scrollbars!
Since we only create PDF for printing the result is ok.
Update: Only in preview mode the scrollbar is missing not when I use it in server application (web dynpro - ads).
Cheers,
Horst -
Text tool: Text doesn't goto the next line
Hi,
I ran into a problem where my text doesn't go to the next line when I press ENTER. If I keep on typing, the text would overwrite itself.
This is only happening in After Effects (it is fine in other apps...Email, Photoshop, etc.). I know it is probably something I clicked but for the longest time, I couldn't figure it out.
Any help appreciated.As Mylenium suggested, you may have a problem with line spacing. For example, you may have leading set to 0. One way to clear problematic settings is to reset the settings in the Character panel.
-
Upload long text from excel file into internal table
I need to upload service master(T-code : AC02) data alongwith long text.Now i have data in excel as: Service no(ASMD-ASNUM) and corresponding long text for it.
I am facing problem in getting entire lontext from excel into my internal table.It only takes till 255 characters i think.Any help in this regard woulg be highly appreciable.hi,
what is the maximum length of your long text.
and you can try with more than 255 chars. in the internal table it will take , if you want check it.
i'm in 4.7 ,5.0 version, what about you ..
please check , you can upload even more than 255.
try
regards
vijay -
Text does not move to next line
at the end of each line of text the cursor is returning to the start of the same line. The text is then writting over the original. by "over" I mean you can see the original text underneath the new.
this also occurs in text boxes.
i would start a new doc but I have spent many hours on this one (10 page brochure)
help!bledrin,
Welcome to Apple discussions.
It sounds like your line spacing is a bit wacky. Put your cursor in one of the bad lines, then click on the Text inspector > Text. I'm guessing your line spacing is set to less than 1, so that at the end of the first line, the second line overlaps.
-Dennis -
File adapter-How to set line break in text file-split record into two lines
Dear Guru's,
I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
My output structure in mapping is:
CASHFLOW
- INTERFACE
- GESELLSCHAFT
- ANWENDUNG
- PRODUKT
- VERTRAG
- BETRAG
- WAEHRUNG
- DIRECTION
- BEWEGUNGSTYP
- FAELLIGKEIT
- ZINSFESTSTELLUNG
- ZAHLUNGSTAG
- RENDITE
- INTERFACE2
- GESELLSCHAFT2
- ANWENDUNG2
- PRODUKT2
- VERTRAG2
- BETRAG2
- WAEHRUNG2
- DIRECTION2
- BEWEGUNGSTYP2
- FAELLIGKEIT2
- ZINSFESTSTELLUNG2
- ZAHLUNGSTAG2
- RENDITE2
Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
This should be final output:
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
My file adapter settings:
RecordsetStructure=CASHFLOW
CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
CASHFLOW.fieldSeparator=,
CASHFLOW.endSeparator='nl'
CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
CASHFLOW.fieldSeparator=,
It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
(This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
Thanks a lot for any help
Cheers
Marian
Edited by: Marian Luscon on Jul 14, 2009 11:44 AMHi Ivan,
right, I did test just for sure.
Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
Example:
Input: 4 records in XML
Output: 8 lines in final text file ...
Thanks to you all guys
Marian -
Import Text From Form Field into Subject Line of Email
Hello,
Is there a way to import text from a form field into the subject line of the email when sending back (attaching) the PDF form? In other words, there is an "applicant name" and I would like that name to be the subject line of the email.
I am using Adobe Acrobat X (10.1.7)
If any one has aby guidance or resources online where I can locate this information I would greatly appreciate it! I have been searching all day but have not found a solution yet.
Thanks!Thank you so much for the help. For some reason I cannot get it to work though. Now, when I hit the submit button it does not do anything.
Previously, I had the following code under
ACTIONS>Mouse Up>Submit a Form
mailto:[email protected]?subject=Employee Application
I removed the above mailto URL and put in your code as a Javascript function. I made sure that my field name matched the name in quotes within the code.
I used the following:
var subject = getField("lastname").value
this.mailDoc({
bUI: false,
cTo: "[email protected]",
cSubject: subject,
cMsg: "Type message here"
Do you see anything obvious that I am doing wrong?
Many thanks! -
Ask about how to append text on next line
I'm writing lingo about log file. For example, i would like
to write like this when a new entry is appended:
etc 3/29/2007 8:34 PM
etc2 3/29/2007 8:34 PM
Here is the lingo:
on mouseUp
if objectP(myFile) then set myFile = 0 -- Delete the
instance if it already exists
myFile = new(xtra "fileio") -- Create an instance of FileIO
openFile(myfile, the moviePath&"try.txt",0) --Open the
file with R/W access
myVariable = readFile(myFile)
setPosition(myfile,getLength(myFile)) -- Set position to end
of file
writeString(myFile, " " & "etc" & " " &
_system.date() & " " & _system.time()) -- Append text to
the file
closeFile (myfile) -- Close the file
myFile = 0 -- Dispose of the instance
end
The problem is the appended text is put together, instead of
a line by a line. In fact, what I want is the appended text is put
into next line everytime, not on the same line. Please help me to
modify it, thanks.Try changing this line:
writeString(myFile, " " & "etc" & " " &
_system.date() & " " &
_system.time()) -- Append text to the file
to
writeString(myFile, " " & "etc" & " " &
_system.date() & " " &
_system.time()&RETURN) -- Append text to the file
Note that if you open the file inNotepad on a PC, it will
look strange
because of the way notepad handles line feeds. You can get
around it by
doing this:
winReturn = NumToChar( 13 ) & NumToChar( 10 )
writeString(myFile, " " & "etc" & " " &
_system.date() & " " &
_system.time()&winReturn) -- Append text to the file -
Pasting in JTextPane adds the text in the next line not the cursor positon
Hi,
I have a problem with pasting the text in a JTextPane. The content type is text/html and the document is HTMLDocument. When I paste the text, it goes to the next line instead of inserting at the current cursor position. The problem is when pasting, the html writer adds a paragraph tag with the selected text. Can any one please help me with this issue for pasting a selected text in the position where I want, without loosing the character attributes and other html tags, but only the paragaraph tags?
Thanks
sijuHi Tariq,
If you are specifying some .prt files(printer definition files) in the desformat, please examine them if you have set the width and height to proper values.
Otherwise look at $ORACLE_HOME/reports/printers/dflt.prt (default file) and see if the width and height are set to proper values.
Thanks,
Siva B -
Hi All,
In my BSp application user can enter long text ( can be more than 300 char ) in TextEdit.
problem is as below:
1) i am getting all the text in oninput processing ...
2) using the FM READ_TEXT to get mail template built in SO10.
3) Replacing all dynamic variables in mail template with user enterd text.
4) then passing the data to FM SO_NEW_DOCUMENT_SEND_API1. this FM has table parameter with 255 char ( please check once )
i am able to send the data in mail. But long text more than 256 char is not comming as single paragraph.
For expamle ...user enter the following text in text edit.
Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource department planning and activities. Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
in inbox i am getting as below:
Job Description for : Responsible for the development, implementation, and maintenance of human resource information systems (HRIS) associated with the collection, retrieval, accessibility, and usage of employee information for Human Resource depa
Maintains internal database files and tables, and develops custom reports to meet the requirements of Human Resource management and staff.
Job Description for is fixed text from SO10 templete. and remainning text is user text.
some data is missing in mail.
SO10 template is as below :
Job Description for : &INSTRUC1&
&INSTRUC2&
help to solve the above issue.
Regads,
Kishan
Edited by: kishanrao.sap on Oct 11, 2010 3:12 PMHi Krishna,
Please use the object_type parameter of tthe FM as 'HTM'.
Then divide the text by append them into the lines of the object_content. In the begining and end make sure you have
<p> -- in the begining
</p>-- in the end
if i want to type the text in one para " My name is Imran and i am an ABAP developer".
CLEAR: WA_OBJECT_CONTENT.
WA_OBJECT_CONTENT-line = '<html>'<body><p> My name is Imran.
APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
CLEAR WA_OBJECT_CONTENT.
WA_OBJECT_CONTENT-line = ' and i am an ABAP developer</p></body><html;>'.
APPEND WA_OBJECT_CONTENT TO T_OBJECT_CONTENT.
Hope this helps you.
Regards
Imran. -
How to display Long text in a JLabel with multiline??
Hi,
Suppose I have a label that displays a long text....
""This is an example label that displays long text, how to break the line????.........""
how to display it like below with one label?
""This is an example label
that displays long text, how
to break the line????.........""
Thanksso basically do this
JLabel myLabel = new JLabel();
String theText = "<html>This is an example label<br>
that displays long text, how<br>
to break the line????.........</html>";
myLabel.setText(theText);Obivously, u dont have to use a separate string, u could just call setText or pass it into the JLabel constructor, i just separated it to make it easier to see what your supposed to do.
GOod Luck -
How to display long text in alv
Hi ,
I need to display the long text of particular object on ALV, with 30 char each line .
I have long text in one internal table, master table have one to maany relation with longtext table and long text contains 120 character in each line.
i need to display long text using 30 char in each line on alv. could you please suggest the soution ????
format is like
ponumber date longtext
1234 03/04/05 this is PO is created
for materail which have
shortage in plant.hope u r expecting this..
optimize = 'X'
if u use OUTPUTLEN it is fixed size for that specific field, and also it reflects for next fields, to avoid that again have to mention OUTPUTLEN = 'X' for next field.
With OPTIMIZE = 'X' it will adjust based on the size.
regards...
santhosh reddy
Message was edited by:
Santhosh Reddy -
How to get Long text in report from FBL3N
Hi,
I need to get Long Text from FBL3N (G/L Account Line Item Display) in my report.Can anyone tell me in which table it is stored?Hi
These long texts are not stored completely in any tables
where as the parameters of these texts like OBJECT,OBJECTNAME and ID, LANGUAGE are stored in STXH table
You have to pass these 4 parameters to the fun module READ_TEXT and to fetch the text.
Double click on the long text will goes to text editor
from menu GOTO-> HEADER you will see the above 4 paramters
see the doc of READ_TEXT fun module
READ_TEXT
READ_TEXT provides a text for the application program in the specified work areas.
The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
Function call:
CALL FUNCTION 'READ_TEXT'
EXPORTING CLIENT = SY-MANDT
OBJECT = ?...
NAME = ?...
ID = ?...
LANGUAGE = ?...
ARCHIVE_HANDLE = 0
IMPORTING HEADER =
TABLES LINES = ?...
EXCEPTIONS ID =
LANGUAGE =
NAME =
NOT_FOUND =
OBJECT =
REFERENCE_CHECK =
WRONG_ACCESS_TO_ARCHIVE =
Export parameters:
CLIENT
Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
Reference field: SY-MANDT
Default value: SY-MANDT
OBJECT
Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
Reference field: THEAD-TDOBJECT
NAME
Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
Reference field: THEAD-TDNAME
ID
Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
Reference field: THEAD-TDID
LANGUAGE
Enter the language key of the text module. The system accepts only languages that are defined in table T002.
Reference field: THEAD-TDSPRAS
ARCHIVE_HANDLE
If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
The value '0' indicates that you do not want to read the text from the archive.
Reference field: SY-TABIX
Default value: 0
Import parameters:
HEADER
If the system finds the desired text, it returns the text header in this parameter.
Structure: THEAD
Table parameters:
LINES
The table contains all text lines that belong to the text read.
Structure: TLINE
Exceptions:
ID
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
LANGUAGE
The parameter LANGUAGE contains a language key that does not exist in table T002.
NAME
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
Possible errors:
The field contains only blanks.
The field contains the invalid characters * or ,.
OBJECT
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
NOT_FOUND
The system did not find the specified text module.
REFERENCE_CHECK
The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
WRONG_ACCESS_ TO_ARCHIVE
The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
<b>Reward points for useful Answers</b>
Regards
Anji -
Reading long text for more records at a time
Hi all,
We have a requirement for which that data like textid textname textobject and language must be taken in to an internal table and for each record in the internal table i have to read the long text inorder to compare the long text for the given search text.
If i use Read_text inside the loop and endloop it works but it may not be appropriate in performance point of view.
Is there any function module which can read long texts for more records at a time.
The long text data in STXL will be in raw data format right? is there any way to convert raw data to normal so that by hitting the STXL i can read the long text data for more than one record at a time.
Thanks in advance
sanju.HI Sanju,
Below is a code snippet which describes reading a long text frm the screen and appending it into the internal table.This code is actually to read the text from the screen and inserting a record into STXl and STXH.
From your query what i understood is that you are storing the long text from the screen into a internal table and so you not want to use the read_text FM due to performance issue.
Since tdline(tline table) is 132 char long format i use this small logic to read the screen data and append it to my internal table.
*Data Declarations
DATA: lv_strlen TYPE i,
lv_create TYPE boolean,
lv_desc TYPE string.
DATA: ls_text TYPE tline,
ls_basic_text TYPE stxh.
DATA: lt_text TYPE ztty_tline_tab.
CONSTANTS:
lc_tdid TYPE thead-tdid VALUE 'Z001',
lc_tdobject TYPE thead-tdobject VALUE 'Z_ALERTS'.
*Appending the text to the internal table.
lv_strlen = STRLEN( iv_alert_text-alert_text ).
lv_desc = iv_alert_text-alert_text.
IF lv_strlen < 132.
ls_text-tdformat = '*'.
ls_text-tdline = lv_desc.
APPEND ls_text TO lt_text.
ELSE.
*logic to wrap text
DO.
ls_text-tdformat = '*'.
IF STRLEN( lv_desc ) < 132.
ls_text-tdformat = '*'.
ls_text-tdline = lv_desc.
APPEND ls_text TO lt_text.
EXIT.
ENDIF.
IF lv_desc+132(1) <> ' '.
CONCATENATE lv_desc(131) '-' INTO ls_text-tdline.
lv_desc = lv_desc+131.
ELSE.
ls_text-tdformat = '*'.
ls_text-tdline = lv_desc(132).
lv_desc = lv_desc+132.
ENDIF.
APPEND ls_text TO lt_text.
ENDDO.
ENDIF.
Please award graciously if found helpful.Please do ask me if i have not answered you properly.
Thank you.
Message was edited by:
P M Harish
Maybe you are looking for
-
RTREE_QUALITY is very high
I've got a table containing Point geometries (e.g. type = 2001) and have build an index on it and set the 'layer_gtype=point'. Analyze_rtree says: SQL> set serveroutput on SQL> execute sdo_tune.analyze_rtree('myschema', 'mytable_sdx') Quality Statist
-
Hi all, we have a problem with photos and a pdf generated with a pdf report generator (JasperServer). This pdf contains photos and data, but some photos in pdf are brightened than original. The photos, before being inserted in the report, are transfo
-
Transporting modified data target to production which has data?
Hi, I have a cube for which i had added two more fields and changed the data model accordingly! Now, i have a question: In production this cube is filled daliy and now it has some data records in thousands! what happenes if i transport this data mode
-
What does this error mean? [SOLVED]
Hi there. Upon trying to sync and/or download packages from Pacman, I get the following error(s): error: config file /etc/pacman.d/current could not be read. error: failed to synchronize current: and then it goes on a syncs community and extra and do
-
Portal Framework Application - Administrator Console - Move Page Option
Can we restrict "Move Page" option in Portal Framework Application. Currently anyone who has access to Administrator Link seems to be able to move the pages even if they don't have Grant privilege. Thanks