Long text in Table UI Element Column not wrapping
Hi Guys,
I'm using a Table UI element that displays some text fields. One of these fields are quite long - 255 chars. I need this text field to wrap if it contains such long data without altering the default layout of the Tale. I cant get this to work. It either extends the column to display all 255 characters (which makes the table FAR too long), or it cuts off the text and I cant see the rest of it.
I have ticked the "wrapping" property of the Textview Text Editor but this doesn't work. I have also played around with otherproperties but cannot do the desired combination.
Please advise,
Christiaan
Go this resolved. I have the following settings:
1. Table property "fixedTableLayout" is un-ticked
2. Cell Editor type TextView property "wrapping" is ticked.
Thanks!
C
Similar Messages
-
Long text in table control lines
If i put long text buttons on the table control coulum, when the line is deleted from the table, the text for tha line are permenantly deleted before the screen is saved in the user command. how do i correct the problem ?
regards
RendaniUse the FM for text delete when u press save button and not at table control delete command.
physically delete the line from table control and put it in internal table which can be used for deletion purpose at time of actual deletion... -
Long Text 0000000015120044ZOH ID ZOH language EN not found
Hi Good day,
i am trying to Create, Save and Read the long Text.
for that i have done the following.
1. SE75 Created the Object and Object ID Ex :
Now when i implement the logic in the Program,
at the end when i execute ,
1. it does the CALL FUNCTION 'INIT_TEXT' successfully , SAVE_TEXT Successfully but when i try to READ_TEXT it says
Text 0000000015120044ZOH ID ZOH language EN not found
this is my logic
TABLES : ZEHS00_EXA_CARD.
PARAMETERS SRV_NUM TYPE CHAR16.
DATA: textname LIKE thead-tdname,
func,
co_co LIKE sy-index.
* Interne Tabellen
DATA t_tf02hz LIKE thead OCCURS 0 WITH HEADER LINE.
DATA t_tf02lz LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: ltxtflg LIKE bapistdtyp-boolean.
DATA : l_text_tab LIKE tline OCCURS 100 WITH HEADER LINE.
DATA: ltxtflg1 LIKE bapistdtyp-boolean.
DATA : l_text_tab1 LIKE tline OCCURS 100 WITH HEADER LINE.
DATA : description(225).
DATA : description1(225).
DATA: line(132) TYPE c,
text_tab LIKE STANDARD TABLE OF line,
text_tab1 LIKE STANDARD TABLE OF line,
WA_TAB LIKE STANDARD TABLE OF LINE,
WA_TAB1 LIKE LINE OF text_tab1,
field LIKE line.
DATA: line1(132) TYPE c,
field1 LIKE line.
DATA: e_header TYPE thead,
i_header TYPE STANDARD TABLE OF thead,
w_tline TYPE tline,
i_tline TYPE STANDARD TABLE OF tline WITH HEADER LINE.
e_header-tdobject = 'ZSYS_ACT1'.
e_header-tdid = 'ZOH'.
e_header-tdspras = sy-langu.
e_header-tdlinesize = 072.
CONCATENATE SRV_NUM e_header-tdid INTO textname.
CALL FUNCTION 'C14G_TEXT_INPUT_EDIT'
EXPORTING
i_windowtitle = 'Systolic action Description'
i_tablename = 'CCIHT_IP'
i_fieldname = 'ACDESC'
i_language = sy-langu
i_actype = 'X'
TABLES
x_text_tab = l_text_tab
CHANGING
x_text = description
x_ltxtflg = ltxtflg.
CALL FUNCTION 'INIT_TEXT'
EXPORTING
id = 'ZOH'
language = sy-langu"'E'
name = textname
object = 'ZSYS_ACT1'
IMPORTING
header = t_tf02hz
TABLES
lines = t_tf02lz.
LOOP AT l_text_tab.
MOVE :l_text_tab-TDLINE TO LINE.
APPEND line TO t_tf02lz.
ENDLOOP.
CONCATENATE SRV_NUM e_header-tdid INTO e_header-tdname.
** APPEND 'DevComments for Obj 1' to i_tline.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = e_header
savemode_direct = 'X'
TABLES
lines = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
CLEAR : l_text_tab[].
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'ZOH'
LANGUAGE = 'E'
NAME = e_header-tdname"textname
OBJECT = 'ZSYS_ACT1'
TABLES
LINES = l_text_tab."t_tf02lz.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
IF l_text_tab[] IS NOT INITIAL.
ENDIF.
thank you,
J.Hi,
Go to tcode SE11 check table STXH whether the text stored in it. If yes, then see the layout of field TDNAME.
Thanks.
Regards,
Keng Haw -
Cost Element column not appearing in IW31/ IW32 transaction
Hi,
In transaction IW32, in Operations Tab --> click on External Button (below shown on IW32 screen).
Now under External, click on Services tab (1st option), here Cost Estimate column not appearing.
We tried to add through configuration option on this window. (there shows table setting --> click on administrator, now you can see Edit system settings, here Cost Element - ESLL-KSTAR shown with TICK on Invisible checkbox).
How can i Untick that. I tried but after activate, it again appears.
Plz guide..Hi,
Where a cost element exists on the operation External TAB, input of the same data on the service line is not allowed. In that case the system decides that this data field should not be available on the service lines. Where the is no cost element on operation then entry is allowed on service line.
This program logic is overwriting the field configuration on the table setting for service entry grid. This is why the invisable flag cannot be changed.
-Paul -
I have a report column with long text. The column is longer than the 200px width that I set in the Column Formatting section of the Column Attributes page. How do I force the column to wrap text? I am using APEX 2.1.
Any help would be greatly appreciated!
Thanks,
MinhYou can also modify the CSS of the theme you are using. For example, in the theme12.css, I changed it as follows to allow text wrapping in report columns. Its the white-space: nowrap css directive that causes the problem.
Mike
td.t12data {
padding-top: 2px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px;
border-collapse: collapse;
/* white-space: nowrap; */
Message was edited by:
woodsmithnh -
Hi SDN, Rich Please respond ..! <b>ITS VERY URGENT</b>
i need a longtext in one of the table contol of my customised screen. the purpose of the screen is to create RFQ's where in user can enter LT ( just like the transaction IW32 - > Operations Tab - > LT Column. actually the LT in that table control is a button, pressing on which will take the user to an editor like SAP Script editor )
<b>how do i save this into my customised tables so taht i display the LT in the display screen for RFQ's</b>
This same LT created in RFQ Creation screen should be displayed to the users in another customised screens of RFQ Display / Change where the same functionality is needed.
Please help me in achieving this, i have been struggling from past few days, and this is very urgent.
i have been tryin the same with the fm's edit_text and read_text, but am not clear on these fm's related to HEADER in the importing parameters of the fm.
is this wrong? or is there any other way to achieve my requirement?
Please HELP
PratyushaHi,
Check this code..To display the text in a text editor control..
First you have to create a custom control in your screen painter and name it as CONTAINER1..
Then apply this code..
TYPES: BEGIN OF type_text,
line(70),
END OF type_text.
DATA: t_texttable1 TYPE STANDARD TABLE OF type_text.
DATA: custom_container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit,
repid LIKE sy-repid.
repid = sy-repid.
CALL SCREEN '0100'.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
PERFORM delete_container.
*- Container franchise codes
IF editor IS INITIAL.
repid = sy-repid.
CREATE OBJECT custom_container
EXPORTING
container_name = 'CONTAINER1'
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 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CREATE OBJECT editor
EXPORTING
parent = custom_container
wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
wordwrap_position = '38'
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
*- Eliminate toolbar
PERFORM toolbar.
ENDIF.
PERFORM load_data.
Load TextEdit control with texts
CALL METHOD editor->set_text_as_r3table
EXPORTING table = t_texttable1.
IF sy-subrc > 0.
Display an error message
EXIT.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
ENDMODULE. " STATUS_0100 OUTPUT
FORM delete_container *
FORM delete_container.
IF NOT editor IS INITIAL.
CALL METHOD editor->delete_text.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
OTHERS = 1.
IF sy-subrc > 0.
Errormessage: Error in flush
ENDIF.
ENDIF.
ENDFORM. " delete_container
FORM toolbar *
FORM toolbar.
DATA: lv_toolbar_mode TYPE i VALUE 0.
CALL METHOD editor->set_toolbar_mode
EXPORTING
toolbar_mode = lv_toolbar_mode.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc > 0.
Errormessage: Error in flush
ENDIF.
ENDFORM. " toolbar
*& Form LOAD_DATA
text
--> p1 text
<-- p2 text
FORM load_data.
DATA: gwa_line TYPE type_text.
gwa_line-line = 'HELLO HOW ARE YOU!!!!!'.
APPEND gwa_line TO t_texttable1.
ENDFORM. " LOAD_DATA
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
DATA: T_SAVE_TEXT TYPE STANDARD TABLE OF TLINE.
DATA: S_SAVE_tEXT TYPE TLINE.
DATA: S_TEXT TYPE TYPE_TEXT.
Load TextEdit control with texts
CALL METHOD editor->get_text_as_r3table
IMPORTING table = t_texttable1.
ENDMODULE. " USER_COMMAND_0100 INPUT
Hope this helps...
Thanks,
Naren -
Multiline table container element does not display the contents
Hi Guys,
I am sending an email from the workflow. The workflow has few steps and in one of the steps the the workflow brings in few lines of text. This text is then stored in a multiline container element in the workflow.
later in the workflow i am sending an email and this sendmail step is using the multiline containter. So in the body of the email i have used the container as shown below
Your expense for the trip &TRIPEXP.TRIPNUMBER& has been rejected.
The Reason for rejection(s) mentioned below:
&CATSXT_LONGTEXT_ITAB##&
Please change and submit again.
However when i recieve the email i dont see any text. But when i look at the workflow log and check the contents of this table under the workflow container elements it has the data in it.
Not sure where i am going wrong. I have checked the bindings and they are fine.Thanks Arghadip,
Yes that was the missing link.
One question:
When i use sendmail step and use the variable drop down box i can see the workflow container elements. So why do i need the same container element in the sendmail setp? I just now created same element in the sendmail task. When i am able to access the workflow container elements in the send mail step then why there is a need to create a same container element in the send mail step and then do the binding for it to work? -
How to center title text and table across two columns
Hello,
I want to be able to center a table and its title across a two column page. The pages where I want to do this contain text in both columns or text in the left column and graphics in the right. On the same pages as the text and graphics, I'd like to center, across both columns, a table with a title. What is the best way to do this?
If I insert the table in the left column, I can size it to fit over both columns but I can't type directly into the cells that cover the right column (I can type in the cells covering the right column if I Tab to them but it's tedious and doesn't seem right). With the table's title, I've tried using the Across All Columns paragraph setting, but the text stays in the column the paragraph marker is in.
We are using Frame 8 on Windows XP Professional. The Master pages are Right and Left pages that are set up with two columns, both tagged as A with the Autoconnect feature on so that the text flows from the bottom of the left column to the top of the right.
Please let me know what you think.
Thanks,
TimYes, equal-sized columns. No, they're always equal. And that answers
David's question: you're using two frames because you want unequal columns.
Frame's paragraph-level column controls only work on columns made by
dividing a single frame into two or more columns. So you're back to
square one: you need two frames because your columns are unequal; you
need one frame so you can span columns.
Another possibility is that you might set up your document with a
sidehead column, but I hesitate to recommend this because I still can't
quite envision what your layout looks like. Any chance you can post a
PDF somewhere?
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com -
VC 7.2 personalize table settings - hide columns not working
I have table setting property activated in CE 7.2 VC UI , when I hide the columns, i am able to hide for that session, if I logout and login, I am not able to see the settings, all the columns are visible.
Are these settings are per session ? it is not like personalization where the user can save the settings for his login?Hi,
In order to work with the personalization saving, you need to Enabling CCM Personalization of Table Views at Runtime
Here is the link to the user guide how to do this:
[http://help.sap.com/saphelp_nwce72/helpdata/en/33/7a565334b04c499cdc5ac6b2931231/frameset.htm]
Also in VC, you can set the Visible property of the specified column in the Table to False (In the Layout Board)
Best Regards,
Luba -
How to show the content of a table (long text) in a scrollable textbox?
Hi,
I have to say first, many thanks to the ones who answers to threads in this forum, it's very helpfull when we're learning web dynpro!
I have a RFC function that return a table containing a long text (node "it_text", with elements "Tdformat" and "Tdline").
1) I want first to copy all the Tdlines in a new node "text_box" (that I made specially for the screen, it contains only the element "Tdline" [the text itself]);
2) Then I want to show the content of the node "text_box" in a scrollable textbox on the screen (to show 8 lines of text, for example).
How to do that easily? What is the UI Element needed to show that?
Thanks!If you want to display as it is then you can use Table UI element. You can change the design property to 'transparent' and set column header visibility property to none. Then you need not to write any code simple you can map the node to table field.
Even with TextEdit you can achieve what you want. Try this code...
StringBuffer tmpBuffer = new StringBuffer();
for(int index=0;index<wdContext.nodeLines().size();index++)
wdContext.nodeLines().setLeadSelection(index);
tmpBuffer.append(wdContext.currentLinesElement().getLine()+"n");
wdContext.currentContextElement().setData(tmpBuffer.toString());
Regards
Abhilash -
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. -
Long Text at Activity Level in CJ20N
Hi all,
So, I have a typical newbie question. But somehow Im unable to find an answer to this query even by searching.
I need to print the Long Text Tab at the Activity Level (not at Project/WBS/Network level) in CJ20N using the Read_Text Function Module.
Just need info on what's the ID, Object, Name etc.
pkDzed,
Thanks for that valuable tip. That was exactly what i was looking for.
But unfortunately, my internal table is not getting updated even though im able to input the right parameters to the Function Module.
Here's what I've done:
DATA: BEGIN OF ist_lines OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF ist_lines.
select mandt
aufpl
aplzl
ltxa1
vornr
objnr
projn
from afvc into corresponding fields of table ist_afvc
for all entries in ist_prps
where projn = ist_prps-pspnr.
loop at ist_afvc into wa_afvc.
concatenate wa_afvc-mandt wa_afvc-aufpl wa_afvc-aplzl into wa_afvc-con3.
modify ist_afvc from wa_afvc.
endloop.
break br_abap1.
loop at ist_afvc into wa_afvc.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'AVOT'
LANGUAGE = 'E'
NAME = 'WA_AFVC-CON3'
OBJECT = 'AUFK'
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
LINES = ist_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.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
Im able to pass the right value for the variable 'WA_AFVC-CON3', but unfortunately the Internal table is not updated.
I know Im missing something here, but obviously Im too blind to notice that.
pk -
Hi,
Please let me know which table to be seen to get the details of longtext in Usage decision, we can see in QAVE but here we will only know that long text is there but we will not get what is given in long text.
Regards
VenkatHi,
You can use function module READ_TEXT with text ID = QAVE and text object = QPRUEFLOS.
Regards,
Roderick -
Reading Infotype 0028 Long Text
Hi Experts,
I have a BADI Implementation which is dealing with Infotype 0028 (Internal Medicine Service).
My problem is that, at the time my badi implementation is triggered, long text is not yet saved to cluster table PCL1. For this reason, my statement "IMPORT ptext FROM DATABASE pcl1(tx) ID lwa_key" wasn't able to retrieve the long text of infotype 0028. I thought that if I would be able read from the buffer/memory of long text, I can get the long text value even if it is not yet saved in the cluster table.
Is there a way that I could read the memory/buffer of long text?
If you know other approach on how to solve this problem, kindly advice me.
Thanks in advance guys.
FerdyWell, when i give it a little thought here it goes
1. Is there no parameter in BADI which is storing this long text?
2.If not then one of the way is by use of field symbol ,first you need to find it out in which
variable the long text is stored and then you need to assign the memory of the variable
to your field symbol memory
The above two are just some simple feasible ideas which can be worked on
Regards
Bhanu -
Hello.
I need some help for an ABAP report.
How can I find back a WBS long text in table STXH from a WBS in table PRPS? Via the OBJNR? Is there any conversion?
Thanks in advanceHello,
the way to find it out is that you set a breakpoint into the function module READ_TEXT ( via SE37) and then process a PSP-Element with a long text via CJ12 or CJ13.
The transaction will stop at the breakpoint, an you get the text-id/text-name/ text-object from the input parameters on the function module.
If i try, it says ID = 'LTXT', name = 'E'<PRPS-PSPNR>, object = 'PMS', but for a WBS text there may be other parameters.
If you need the logic in an own programm, you could use the function READ_TEXT instead of selecting texts via STXH/STXL.
Regards Wolfgang
Maybe you are looking for
-
I'm using Firefox 6.0.2 in Wndows Vista 7, SP2. I'm using Norman Security Suite anti-virus software. Firefox behaves erratically. Sometimes it takes several minutes to launch. If I launch an new window it sometimes hangs. It launches two extra window
-
Primary Key Materlized View and primary key in master tables
We are using Oracle 11g2 and I created a materlized view on several master tables. The master tables all have primary key, but I did not include all primary key columns in the defining query. According to Oracle Manual e10592 Specify WITH PRIMARY KEY
-
HTML5 video doesn't render correct
Hello there, I'm experiencing some problems with the latest versions of firefox >= 24. For some unknown reason all HTML5 videos don't render correctly - while rendering some lines appear not in place. To get a better idea of what I'm talking about, p
-
New in FF8 is that 3rd party addons and extensions have to be manually enabled. But it is annoying to have to manually enable 25 extensions manually every time i restart FireFox 8. There are many addons that i consider important, like Adblock Plus, a
-
Hi folks, I'm going to use following technique in my project. BoundedTaskflow(here i unchecked flag use Page Fragments). i'll drop a jspx page into the BTF. Is oracle recommended way? I made a simple example. it's working fine. but i don't know wh