How do i modify text ins
Is there a simple way of modifying data in a text file ? i'm basically writing a program that searches through a text file for specifi text, if it come across the text it is suppose to modify it...
here is the code i have so far:
try {
FileReader fr = new FileReader("c:\\myfile.txt");
BufferedReader br = new BufferedReader(fr);
String text = user.getText();
this.passw = br.readLine();
while(this.marker != null){
if(this.passw.equals(text)) {
///modify the text you find....
..................
but in general, you save everything that is not part
of the word they typed to a StringBuffer and then when
you find the word they typed you place your word in
the StringBuffer and then keep parsing past the word
you skipped in the original line of text.do what i said above.
1. create a StringBuffer to hold all the values.
2. read the word from the file.
3. if it is to be replaced, append the new word to the StringBuffer. if it not to be replaced, append the word you just read into the StringBuffer.
4. after you've read through the entire file, close the BufferedReader.
5. Create a FileWriter and write your StringBuffer to the new file. Then close the FileWriter.
Similar Messages
-
How do I modify text in a 3D scene
I am trying to display some live data inside a 3D picture. However, I just can't figure out how ot modify the text after I have added the object tot he scene. If I attempt to modify the text using the reference of the text object I created I get a message sayign teh reference is invalid (1055 I believe).
Anyone out there have any experience with this?
AmitHi Amit,
I was able to modify the text while the program was running. I've attached the VI that I used.
Cheers,
Marti C
Applications Engineer
National Instruments
NI Medical
Attachments:
change_text_2009.vi 11 KB -
How do I modify text in a .jpg file?
I just bought Creative Cloud 6. I'm studying Adobe TV to learn Photoshop. Years ago a friend created a customized .jpg file that I've used for my letterhead. I want to use it now as my website header. The text in the file needs to be modified and my friend is not available to help.
She says she needs the PSD file otherwise she has to start from scratch. Is there such a thing as a PSD file? Here's the image.
Changes Needed add "s" to Citizens
Eliminate Quote
Add "Protecting Liberty and Freedom"
I'm hoping layers will allow me to do what I need. From your response and what I'm studying it appears that if the layers were merged, my desired changes will be much more difficult if not impossible to achieve. Additional comments would be appreciated if you have them. Thank You -
How to remove a text in browser: Some plug ins used by this page are out of date
How to remove a text in browser: Some plug ins used by this page are out of date. It occur in every page when I surfing. I am aware that is a threat but when I tried to install an update of flash the userinit.dll file from windows registry had gone and I had to reset everything.
a error during the flash update might be itself an indication of malware active on the pc. the browser is your door to the web - therefore it's very important to keep it and all plugins up to date in order to keep your pc & the integrity of your personal data safe.
[https://www.mozilla.org/plugincheck/] -
How can I modify the text of the automatically created emails of WAS 6.40.
Hi community,
I have a question. How can I change the text of then email which ist automatically send by the EP6/WAS6.40 when I create a new user. The email displays the message "Dear Sir or Madam, your user xzy was created with the following password xxx."
How can I modify this text. Where is it located in the Enterprise Portal / WEBAS 6.40 .
Thank you.
Best Regards,
Olaf ReissNot easily or readily available as of now. It WILL be part of the new features in the NetWeaver 04 release. (*This same question was asked in my EP6 certification class one week ago and this is the answer I got.)
Found this guide in another post...it should help doing what you need manually...
http://help.sap.com/saphelp_nw04/helpdata/en/33/d494c86203ea40b7b44ddd471baab1/frameset.htm
Hope this helps!
CS -
How do I add text to an image?
I have purchased a template and imported it to Photoshop. I then sliced the template into sections, saved it for web and opened the index file in dreamweaver. My questions is, how do I add text to the images? I want to add the text content, within the boxes on the template, but because they are exported as images from Photshop I can't seem to do it...So let's say there is a box in the middle of the template and I want it to say, Services at the top and below that have a little information about the services offered with a "read more" button at the bottom. I have exported the template out of photoshop with text added and with the boxes empty. I tried to add the text in dreamweaver but couldn't. When I export the sliced template out of photoshop with the text already included, it does show up in Dreamweaver, however it is not in html and I would like it to be for SEO purposes. Forgive me if this question is silly or already answered, I have looked everywhere and couldn't find the answer.
Thanks in advance to anyone that can help.Hi,
I prefer to use tables for that. For example (First of all you have to store this new file):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>AddedText</title>
</head>
<body>
<table width="40%" border="4">
<tr>
<td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
</tr>
<tr>
<td align="center" valign="top"><div align="center"><img src="yourPicture.jpg" alt="image 01" width="127" height="33" /></div></td>
</tr>
<tr>
<td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
</tr>
</table>
</body>
</html>
Here I took a table with only one column, you can modify my choice.
There is so too a possibility to use a complete flow text around a picture. If you like that, please give me a shout.
About the story "hotspots" look here where I tried to give an answer a short while ago: http://forums.adobe.com/message/2700306#2700306
Hans-G. -
How to clear the text in the Text Editor
Hi all,
I created a Text editor and also i am having language field in the screen.
whenever i change the language auomatically the text has to change when the text exists for that
language.
this is working fine, but when the Text exist , the text editor should be blank.
But it is carrying the Previous editor text itself into it .
How to clear the text in the Editor.
Regards,
MadhaviHello Madhavi
The simple report ZUS_SDN_TEXTEDIT_CONTROL shows how to switch the texteditor contents when changing the language.
*& Report ZUS_SDN_TEXTEDIT_CONTROL
*& Thread: how to clear the text in the Text Editor
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145272"></a>
*& By default the itab GT_OUTTAB contains texts in DE and EN.
*& To switch the language directly enter into the command window:
*& LANGU=DE, LANGU=EN or LANGU=FR
REPORT zus_sdn_textedit_control.
TYPE-POOLS: abap.
TYPES: ty_t_text TYPE TABLE OF as4text
WITH DEFAULT KEY.
TYPES: BEGIN OF ty_s_outtab.
TYPES: language TYPE spras.
TYPES: text TYPE ty_t_text.
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab TYPE STANDARD TABLE OF ty_s_outtab
WITH DEFAULT KEY.
DATA: gt_outtab TYPE ty_t_outtab,
gs_outtab TYPE ty_s_outtab.
DATA: gd_language TYPE spras.
DATA: go_docking TYPE REF TO cl_gui_docking_container,
go_textedit TYPE REF TO cl_gui_textedit.
DATA: gd_okcode TYPE ui_func,
gd_repid TYPE syst-repid.
START-OF-SELECTION.
PERFORM fill_texts.
gd_language = syst-langu.
PERFORM init_controls.
* Link the docking container to the target dynpro
gd_repid = syst-repid.
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc NE 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM set_text_editor.
* NOTE: dynpro does not contain any elements
" ok-code => GD_OKCODE
CALL SCREEN '0100'.
* Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
TRANSLATE gd_okcode TO UPPER CASE.
CASE gd_okcode.
WHEN 'BACK' OR
'EXIT' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
WHEN 'LANGU=DE' OR
'LANGU=EN' OR
'LANGU=FR'.
PERFORM get_text_editor.
SPLIT gd_okcode AT '=' INTO gd_okcode gd_language.
PERFORM set_text_editor.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form FILL_TEXTS
* text
* --> p1 text
* <-- p2 text
FORM fill_texts .
* define local data
DATA: ld_string TYPE string.
gs_outtab-language = 'EN'. REFRESH: gs_outtab-text.
ld_string = 'Good morning'.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
gs_outtab-language = 'DE'. REFRESH: gs_outtab-text.
ld_string = 'Guten Morgen'.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
gs_outtab-language = 'FR'. REFRESH: gs_outtab-text.
ld_string = space.
APPEND ld_string TO gs_outtab-text.
APPEND gs_outtab TO gt_outtab.
ENDFORM. " FILL_TEXTS
*& Form INIT_CONTROLS
* text
* --> p1 text
* <-- p2 text
FORM init_controls .
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
* repid =
* dynnr =
* side = dock_at_left
* extension = 50
* style =
* lifetime = lifetime_default
* caption =
* metric = 0
ratio = 90
* no_autodef_progid_dynnr =
* name =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_textedit
EXPORTING
* max_number_chars =
* style = 0
* wordwrap_mode = wordwrap_at_windowborder
* wordwrap_position = -1
* wordwrap_to_linebreak_mode = false
* filedrop_mode = dropfile_event_off
parent = go_docking
* lifetime =
* name =
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " INIT_CONTROLS
*& Form SET_TEXT_EDITOR
* text
* --> p1 text
* <-- p2 text
FORM set_text_editor .
BREAK-POINT.
CLEAR: gs_outtab.
READ TABLE gt_outtab INTO gs_outtab
WITH KEY language = gd_language.
CALL METHOD go_textedit->set_text_as_stream
EXPORTING
text = gs_outtab-text
EXCEPTIONS
error_dp = 1
error_dp_create = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " SET_TEXT_EDITOR
*& Form GET_TEXT_EDITOR
* text
* --> p1 text
* <-- p2 text
FORM get_text_editor .
CLEAR: gs_outtab.
CALL METHOD go_textedit->get_text_as_stream
EXPORTING
only_when_modified = cl_gui_textedit=>true
IMPORTING
text = gs_outtab-text
* is_modified =
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MODIFY gt_outtab FROM gs_outtab
TRANSPORTING text
WHERE ( language = gd_language ).
ENDFORM. " GET_TEXT_EDITOR
Regards
Uwe -
HOW TO PRINT LONG TEXT OF 255 CHARACTER IN ALV GRID instead of132 Char's
Hi sir/mam
i'm sreekar can any one help me on this please
"As I took a variable 'STR' with 255 length, But still ALV GRID DISPLAYS the same 132 characters, and
When I download the report into excel it is showing the 250 charactered text"
how can i print it in alv grid
FORM BUID_CATALOG .
DATA : COL_POS TYPE I.
COL_POS = COL_POS + 1.
*--DECLARING FIELDCATALOG FOR HEADER
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'EBELN'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Purch.doc.no.'(002).
LT_FCAT-REF_FIELDNAME = 'EBELN'.
LT_FCAT-REF_TABNAME = 'EKKO'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'BEDAT'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Po Date'(003).
LT_FCAT-REF_FIELDNAME = 'EBDAT'.
LT_FCAT-EDIT_MASK = '__.__.____'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'EKGRP'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Purch.Grp'(004).
LT_FCAT-REF_FIELDNAME = 'BKGRP'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'EKNAM'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Purch.Grp. Name'(005).
LT_FCAT-REF_FIELDNAME = 'EKNAM'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'LIFNR'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Vendor No.'(006).
LT_FCAT-REF_FIELDNAME = 'ELIFN'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'NAME1'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Vendor Name'(007).
LT_FCAT-REF_FIELDNAME = 'NAME1_GP'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'ZTERM'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Pay.Code'(008).
LT_FCAT-REF_FIELDNAME = 'ZTERM'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'TEXT1'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Own explanation'(009).
LT_FCAT-REF_FIELDNAME = 'DZTERM'.
LT_FCAT-OUTPUTLEN = '30'.
LT_FCAT-DDICTXT = 'L'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'WAERS'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Curr'(010).
LT_FCAT-REF_FIELDNAME = 'WAERS'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
LT_FCAT-COL_POS = COL_POS.
LT_FCAT-FIELDNAME = 'NETWR'.
LT_FCAT-TABNAME = 'LT_FINAL'.
LT_FCAT-SELTEXT_L = 'Net Value'(011).
LT_FCAT-REF_FIELDNAME = 'BWERT'.
APPEND LT_FCAT.
CLEAR LT_FCAT.
ENDFORM. " BUID_CATALOG
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_BUFFER_ACTIVE = 'X'
I_BACKGROUND_ID = 'ALV_BACKGROUND'
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = LT_FCAT[]
I_SAVE = G_SAVE
IS_VARIANT = GS_VARIANT
IMPORTING
E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER
ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER
TABLES
T_OUTTAB = LT_FINAL[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC = 0.
IF G_EXIT_CAUSED_BY_CALLER = 'X'.
ELSE.
IF GS_EXIT_CAUSED_BY_USER-BACK = 'X'. "F3
EXIT.
ELSE.
IF GS_EXIT_CAUSED_BY_USER-EXIT = 'X'. "F15
LEAVE TO SCREEN 1000.
ELSE.
IF GS_EXIT_CAUSED_BY_USER-CANCEL = 'X'. "F12
LEAVE TO SCREEN 1000.
ELSE.
EXIT.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ELSE.
ENDIF.
ENDFORM. " DISPLAY_DATA
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'F15' "ls_thead-tdid PAYMENT TERMS
LANGUAGE = SY-LANGU "ls_thead-tdspras "CURRENT LANGUAGE 'E'
NAME = NAME "ls_thead-tdname PO NUMBER LW_EKKO-EBELN
OBJECT = 'EKKO' "ls_thead-tdobject TABLE NAME EKKO
IMPORTING
HEADER = HTEXT
TABLES
LINES = LTEXT
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.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO WA_WORD-TEXT.
APPEND WA_WORD TO LT_SENTENCE.
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT LT_SENTENCE INTO WA_WORD.
COUNT = COUNT + 1.
IF COUNT = 1.
STR = WA_WORD-TEXT.
LW_FINAL-TEXT1 = STR.
ELSEIF COUNT = 2 OR COUNT = 3 OR COUNT = 4 OR COUNT = 5 OR COUNT = 6 OR COUNT = 7 OR COUNT = 8.
CONCATENATE STR WA_WORD-TEXT INTO STR SEPARATED BY SPACE.
LW_FINAL-TEXT1 = STR.
ENDIF.
ENDLOOP.can you provide an example of how to wrap the text i have like this please see the below code and correct if any errors
FORM GET_TEXT_LINES .
DATA :NAME TYPE THEAD-TDNAME.
NAME = LW_EKKO-EBELN.
V_TABIX = SY-TABIX.
CALLING FUNCTION READ_TEXT FOR PAYMENT TEXTS
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT "CLIENT ID 200/600/400
ID = 'F15' "ls_thead-tdid "PAYMENT TERMS TEXT ID 'F15'
LANGUAGE = SY-LANGU "ls_thead-tdspras "CURRENT LANGUAGE 'E'
NAME = NAME "ls_thead-tdname "PO NUMBER LW_EKKO-EBELN
OBJECT = 'EKKO' "ls_thead-tdobject "TABLE NAME EKKO
IMPORTING
HEADER = HTEXT "LS_THEAD
TABLES
LINES = LTEXT "LT_LINES[]
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.
LOOP AT LTEXT.
IF LTEXT-TDLINE NE ''.
MOVE LTEXT-TDLINE TO WA_WORD-TEXT.
APPEND WA_WORD TO LT_SENTENCE.
ENDIF.
ENDLOOP.
ENDIF.
Word Wrap the text in multiple lines
LOOP AT LT_SENTENCE INTO WA_WORD.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
TEXTLINE = WA_WORD-TEXT
OUTPUTLEN = 100
TABLES
OUT_LINES = LT_SENTENCE
EXCEPTIONS
OUTPUTLEN_TOO_LARGE = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
IF not LT_SENTENCE IS INITIAL.
READ TABLE LT_SENTENCE INTO WA_WORD INDEX v_tabix.
LW_FINAL-TEXT1 = WA_WORD_TEXT.
MODIFY LT_FINAL FROM LW_FINAL INDEX V_TABIX.
ENDLOOP.
CLEAR: LT_SENTENCE.
ENDFORM. " GET_TEXT_LINES
*& Form LAYOUT_INIT
text
-->P_GS_LAYOUT text
FORM LAYOUT_INIT USING RS_LAYOUT TYPE SLIS_LAYOUT_ALV.
*"Build layout for list display
RS_LAYOUT-DETAIL_POPUP = 'X'.
ENDFORM. " LAYOUT_INIT
*& Form EVENTTAB_BUILD
text
-->P_GT_EVENTS[] text
FORM EVENTTAB_BUILD USING RT_EVENTS TYPE SLIS_T_EVENT.
*"Registration of events to happen during list display
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = RT_EVENTS.
READ TABLE RT_EVENTS WITH KEY NAME = SLIS_EV_AFTER_LINE_OUTPUT
INTO LS_EVENT.
IF SY-SUBRC = 0.
APPEND LS_EVENT TO RT_EVENTS.
ENDIF.
ENDFORM. " EVENTTAB_BUILD
*& Form AFTER_LINE_OUTPUT
text
--> p1 text
<-- p2 text
FORM AFTER_LINE_OUTPUT.
CLEAR :COUNT,LT_SENTENCE.
LOOP AT LT_SENTENCE INTO WA_WORD.
READ TABLE LT_SENTENCE INTO WA_WORD INDEX V_TABIX.
CHECK SY-SUBRC = 0.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
TEXTLINE = WA_WORD-TEXT
OUTPUTLEN = 20
TABLES
OUT_LINES = LT_SENTENCE.
DESCRIBE TABLE LT_SENTENCE LINES V_TABIX.
CHECK V_TABIX > 1.
COUNT = COUNT + 1.
IF COUNT = 1.
STR = WA_WORD-TEXT.
LW_FINAL-TEXT1 = STR.
ELSEIF COUNT = 2 OR COUNT = 3 OR COUNT = 4 OR COUNT = 5 OR COUNT = 6 OR COUNT = 7 OR COUNT = 8.
CONCATENATE STR WA_WORD-TEXT INTO STR SEPARATED BY SPACE.
LW_FINAL-TEXT1 = STR.
ENDIF.
ENDLOOP.
ENDFORM. " AFTER_LINE_OUTPUT -
How to add new text field in standard report
how to add new text field in standard report?
Hi,
I presume you are talking about a report display in ALV and u wish to add a column to it .
If it is a global requirement ,as in table being used there in ALV can be modified, then you can append the table and the system should pick up the same automatically from there.
Otherwise , you can make a Z program . Modify the catalog being used in ALV.
Regards,
Shweta -
Problem in reading the modified text from text editor
Hi all,
Im using text editor for saving the long text entered in the text editor as standard text in So10 tcode.
Here im facing an issue in reading the text from text editor. That is, when the text is entered by the user for first time, then the below method reads the text successfully. But when i do some changes in the existing text present in the text editor and try to read, then the modified text is not returned by the below method.
I use the "CALL METHOD g_editor_ftext1->get_text_as_stream" to read the text. Given below is my code.
CALL METHOD g_editor_ftext1->get_text_as_stream
IMPORTING
text = ig_text_table
is_modified = g_xthead_updkz
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
The return value of "is_modified" is always returned as 0.
Could anyone pls help how to read the modified text using the above method?Check if this works and if it works then there should be some mistake in your coding
REPORT abc.
PARAMETERS:pa1 TYPE bwart.
DATA: container TYPE REF TO cl_gui_docking_container,
editor TYPE REF TO cl_gui_textedit,
report TYPE syrepid,
mod TYPE i,
modon TYPE i.
DATA:tlines TYPE TABLE OF tdline,
wa_tlines TYPE tdline.
AT SELECTION-SCREEN OUTPUT.
report = sy-repid.
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING repid = report
dynnr = sy-dynnr
side = container->dock_at_left
extension = 1070.
CREATE OBJECT editor
EXPORTING
parent = container.
ENDIF.
wa_tlines = 'This is test before a change'.
APPEND wa_tlines TO tlines.
CALL METHOD editor->set_text_as_r3table
EXPORTING
table = tlines
EXCEPTIONS
OTHERS = 1.
CALL METHOD editor->go_to_line( 1 ).
START-OF-SELECTION.
CLEAR tlines[].
CALL METHOD editor->get_text_as_stream
EXPORTING
only_when_modified = '1'
IMPORTING
text = tlines
is_modified = modon
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
OTHERS = 3.
IF modon = 1.
WRITE 'Changed'.
ELSE.
WRITE 'Not changed'.
ENDIF.
WRITE modon. -
who knows how to output some text once labview detects something I want using pattern matching(Vision assistant)?
The text is something like"Yes, this is a coin"
Thanks!I attached a SubVI which I used to place an overlay next to a Pattern, found by a Pattern Match before:
As you can see, you simply pass the image reference and the Array of Matches to the VI along with the String you want to have as an overlay next to the Match.
I also modified your VI a bit, but didn't test it. I created an Array of clusters, each elment containing the template path along with the respective text.
Please note that this is just a hint!
Christian
Attachments:
suggestion.vi 146 KB
Overlay_Txt.vi 24 KB -
How to delete modified version datasource
I have a datasource in M version and A version. I am getting datasource activation error in BI 7.0
Please let me know how to delete Modified version.
Thanks
LizaI removed a field from LO datasource 2LIS_11_VAITM , activated, tested successfully in R/3.
I replicated the datasource successfully in BW. But when activate the data source I am getting short dump ST22 ,the error message is " The ASSERT condition was violated". I am BI 7.0.
BW side in datasouece I found a not equal to sign ( which means M version is not equal to A version) and datasource is inactive.
ST22 -
Short text
The ASSERT condition was violated.
Error analysis
The following checkpoint group was used: "No checkpoint group specified"
If in the ASSERT statement the addition FIELDS was used, you can find
the content of the first 8 specified fields in the following overview:
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
Thanks
Liza -
How do i modify a pdf already downloaded
how do i modify a pdf
I see. This really has nothing to do with FormsCentral (the forum where you posted to), but that's OK.
If I were in your situation and only had a scan, I would recreate it in a word processor and generate a new PDF. Since I have Acrobat, I could speed things along by using its OCR capability and export to text or a Word document. I'd then use Acrobat to generate the new PDF. If you have Word, it is now able to save to PDF, as is the free OpenOffice suite, and many others.
Your resume should look as good as it can, so don't stick with a scan. I've helped clients deal with collections of resumes that they receive as PDFs and they often want to be able to extract text, which isn't possible if there isn't any, as with a scan. -
Hi,
I have a local text object 'YTEXT' and a text id 'Y001'. There is some text say &include_abc& attached to that. Now I have to modify this text but I am clueless how to do it. Transaction SO10 doesn't find 'YTEXT' and transaction SE75 couldn't take me to &include_abc& at all.
Please guide me step by step on how can I modify already existing text.
Thanks,
ShikhaHi Shikha,
The tect &include_abc& must be some where in the program.Find tht text in ur main program.That value must be coming frm FM 'READ_TEXT'.U better go to "READ_TEXT" FM and put all those values that is text object 'as YTEXT' and a text id 'Y001' and run that FM.Frm there u can verify tht the same text is comin or not.Once u verified tht then u can go the transaction and whatever it may be means ur header long text or item long text u can easily go to tht and change that.
<b>Reward points if it solves ur query</b>
Thanks
Chinmay -
I have created a distributable form however I have a typo how do I modify?
I have created a form and I noticed that there is a typo in the text I can't modify as it gives me a protected error message. How can I modify the content before actually sending this out.
I'm assuming this is a PDF form, correct? Did you create it in FormsCentral from a web form design or did you create it in Acrobat? In any case, you can make the corrections and distribute the PDF again in FormsCentral.
Maybe you are looking for
-
My son's dad bought him an ipod and my niece used her itune library to put music and videos on his ipod. The problem we are haveing is that she lives in another state and we are not sure how to manange his account without losing some of the songs and
-
When I connect my iPod(4th gen) it doesn't add any songs and a warning comes up from my tray that says"iTunes:iTunes.exe Corrupt File in \iPod_Control\iTunes\Play Counts run the Chkdsk utility." I typed Chkdsk into run and ran it. Nothing changed. Al
-
Is dodgy firewire connection to blame for 'restart' message.
I have been getting the 'you need to restart your computer...' message in the black box, when uploading some footage to IMovie. I need to know if it could be a software problem, the actual firewire, or like I think- the following problem: For a while
-
Any plug-in for multiple clients
Is there any plugin for multiple client access to a given environment? For example: I have 50 clients to access the data on the server. Should I do a layer of manual socket connection to handle the database reads and insertions? Or is there a way to
-
Hi! I got an error 'java.sql.SQLException: ORA-01008: not all variables bound' when i run the 'how-to-ejbql' sample code from otn.oracle.com. I checked the generated sql in orion-ejb-jar.xml and they seem to look good. In fact I runned the generated