Storing Long text more that 2000 words
Hi all,
Can any tell me how can we save long text?
1) i need to create a table which stores long text (instead of T-code SO10).
Thanks
Senthil Bala
Message was edited by: senthil bala
Hi
You need to create a table have a filed longer than 512 char, so you should use a field with a domain with type LRAW or LCHR (it can be longer than 512 char):
see the data element PC03_DSATZ for example.
When you create your table, before this field you have to insert a field type INT4 where you'll indicate the lenght of your text.
So your table should be:
MANDT key
NAME (Text Name) key
ZLENG (Type INT4)
TEXT (type LCHR)
Max
Similar Messages
-
In DeskI, what's the maximum for "Limit size of long text objects"? 2000?
In Universe Designer, we have a setting which is "Limit size of long text objects", it can control how many characters can be displayed for long text objects.
The problem is that in DeskI, we can only display 2000 characters even we set 2500 or more in Universe Designer by "Limit size of long text objects". But if we use the same Universe & same Database, WebI can show 2500 or more characters for long text objects.
So does it mean in DeskI the maximum value for "Limit size of long text objects" is 2000?Hi Jason,
Check that the object in the universe is set to data type "long text".
Also check that the object itself is not limiting the length of the string, as well as that the entire string is actually in the database... the data type here could also be the issue.
Hope this helps
Jacques -
Loading long text more than 60 maximum of 240 characters into cube
hi experts,
I am loading from flat file some time the description field have more than 60 characters below then 240, so kindly advise me how to load onto the description field in cube. How to split the description fields.Hi Rajesh,
Please check the below SDN blog for Long Texts in SAP BW.
Long texts in SAP BW: Modeling
Also go through the below thread.
Flat File Datasource
Hope it helps.
Regards,
Raghu -
Storing long text in database table
If the length of the text which is very long is not fixed, how can we store it in a database table?
Hi
<b>no need for any FM</b>
You need to create a table have a filed longer than 512 char, so you should use a field with a domain with type LRAW or LCHR (it can be longer than 512 char):
see the data element PC03_DSATZ for example.
When you create your table, before this field you have to insert a field type INT4 where you'll indicate the lenght of your text.
So your table should be:
MANDT key
NAME (Text Name) key
ZLENG (Type INT4)
TEXT (type LCHR)
Rgds
Anver -
From which table i can get the long text
Hi All
I have created some long text through function module CREATE_TEXT And i am able to see the text in the transaction .
My requirement is from which table i can get these stored long text???
Any suggestions please.
ThanksAppreciate your answers.
I have checked the both the fields stxh as well as stxl but i am not able to find any text fields out there.
My actual requirement is some third party software needs to b mapped the table fields in order to import it.
So if i know the table fields that would be easier.
Can you tell me y we can not read it from the tables?
Thanks,
@run. -
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 -
Difference betwen short text and long text
Hi,
what is the difference between short text, long text and variant.Hi,
Short text is the short description you give for an object or field simlarly long text is the long description for a object or field.
Short text cannot have lenght more than 20 and long text more than 60.
Variant means for example if you give certain values as an input in one of your transaction for testing and you want the same values to be used every time you test in that particular screen, then instead of inputting the values again n again you call the variant.
Hope this helps
Assign points if useful
Regards,
venkat -
hello All,
I created a new message in the message class ME. I also created a long text for that particular message. But when i use the message in a program long text is not dispalayed properly. Pls give some inputs.
Thnaks
DuraiThe<b> long texts</b> of a document are stored in a encrypted format in the STXH and STXL tables, where STXH stores the header information of the long text like <b>TDOBJECT,</b> which indicates which text object the long text belongs to, TDID which indicates the Text <b>ID and TDNAME</b> which is the actual name of the long text.
As these texts are stored in a encrypted format, the text cannot be read using a SELECT statement. You will have to use the function <b>READ_TEXT.</b> The easiest way of getting to know the parameter values is to go to a document, open the long text in a full screen mode. For example, when you wan to see the long text for a Purchase order, go to transaction ME23n. Assume, you want to see the parameters for the Header Text. In the first Tab Strip Control, click on the Texts tab and select the Header Text node on the left hand side, which will display the text on the right hand side. Now, double click on the text editor on the right hand side. This will open the text in the full screen mode. In the menu<b> Go To --> Header, you</b> should be able to see the values for all the three parameters we discussed above. We will have to do the same thing for whichever text parameters we want to see.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID =
LANGUAGE =
NAME =
OBJECT =
* ARCHIVE_HANDLE = 0
* LOCAL_CAT = ' '
* IMPORTING
* HEADER =
TABLES
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.
reward points if it is usefull ....
Girish -
Hi,
Please consider the following scenario:
I am entering long text for a text field and save it.
If I exit/cancel the screen,changes done to Long Text will be lost.
Upon saving it will save the Long Text.
Now upon saving , based on some condition i want changes done to Long Text should be lost.
Please let me know whether it is feasible, if yes how to achieve this. Any suggestions/advice will be highly appreciated.
Regards,
Akash ModiHi all,
I am entering Long texts for operations in standard SAP Transaction IW32.(Work Order Change)
On click of SAVE, user exit will be called, where we will check certain conditions for each operation.If condition doesn't satisfy, i have to rollback the changes done to Long Text for that operation, keeping the other changes done to Order intact.
Please let me know if any more clarification is required.
Akash -
i want to print a description in text mode which is 5-6 lines some times it have a blank line also so
how to print in ALV .i m using READ_TEXT function but sumtime it not works when text exceed 4-5 lines
what i sud do.hi,
there is another way u can use yours internal table field like long text field. that is.
parameters: salno type vbak-vbeln.
data: begin of itab occurs 0,
vbeln type vbak-vbeln,
matnr type vbap-matnr,
longtext type thead occurs 0,
end of itab.
data: itabstxl type standard table of stxl with header line.
select single vbakvbeln vbapmatnr into (itab-vbeln, itab-matnr)
from vbak inner join vbap
on vbakvbeln = vbapvbeln
where vbak~vbeln = salno.
select single tdobject tdname tdid tdspras from stxl
into (itabstxl-tdobject,itabstxl-tdname,itabstxl-tdid,itabstxl-tdspras)
where relid = 'TX'
and tdobject = 'VBBK'
and tdname = salno "YOUR OWN TDNAME e,g
and tdid = 'Z003'
and tdspras = 'EN'.
call function 'READ_TEXT'
exporting
CLIENT = SY-MANDT
id = itabstxl-tdid
language = itabstxl-tdspras
name = itabstxl-tdname
object = itabstxl-tdobject
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = itab-longtext
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.
break abaper.
I HOPE THIS WILL SOLVE THIS WILL SOLVE THE PROBLEM OF THE OTHERS AS WELL. -
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 create customized long text in IDOC status record in WE02?
Hi,
In WE02 you can see the status of the idoc. If you double click on the short text that is coming in the status, you can see the long text. How do i customized my long text to that screen?To create a message long text in SE91:
1. Place the cursor on the corresponding message.
2. Click the Long text pushbutton.
3. Enter the long text.
4. Save the data.
Edited by: YTL on Jun 27, 2011 5:51 PM -
Hi,
I am undable to find the long text in TC: VA02 at runtime. Actulally my requirement is like how to compare between the item level long text at runtime and existing long text for that item.
If any body has soluntion, please provide me. I would really be greatfull if any body provide the solution.
Deepak Kumar
E-Mail: [email protected]Hi Sudheer,
Actually my requirement is to read the text at runtime. Example: If saved text is 'ABC' and it is changed by '123'. Now before saving changed text '123', I need to capture it so that I can compare it with saved text 'ABC' whether it is changed or not?
Couuld you send me some sample code? I would appreciate if you reply at the earliest.
Deepak Kumar. -
Long Text box in Selection Screen
Hi,
How to create a long text box in the selection screen.
Is there any example/demo program in standard??
Regards
Jiku.erm, what do you want to achieve with this?
should your users be able to search for long texts?
That will probably fail since there are differences between the input and the long text you are searching for.
Or do you have users making no faults? -
Getting Long Text of a Field Label
Hi Friends,
I have requirement in which , based on the filed I need get the Long text of the data element.by default I am able to access the medium text of the data element. is there any function-module for getting Long text?
Regards,
Xavier.PHi Xavier,
check this
Storing long text data
hope it helps you.
Regards!
Maybe you are looking for
-
I can listen to music on my headphone, but not on the speaker. Please help.
-
ISE 1.3 Multiple PSN's and Guest Credential Propagation
Hi There, I am struggling to find any information about Guest Credential Propagation in 1.3 I have 1 x Admin 1 x Backup admin Node 3 x PSN's In 1.2 Each PSN hosted a guest portal/guest admin portal. As far as I can see that's now changed with 1.3 wit
-
Keeps asking for my email password
Apple Mail has started to ask for my password. I've typed in my password many times. I have checked the box to remember the password in my keychain. It still asks for my password over and over again. I have two accounts with Apple Mail, one works per
-
Using pocketmac to sync a replacement blackberry bold
I wondered if someone could help Due to a fault I have had to replace my blackberry bold. My old blackberry was syncing happily with my mac using pocketmac. Now with my new blackberry I get nothing, the mac doesn't seem to recognize the new blackber
-
Hi All, I was given this scenario in the interview: A mainframe sends data to XI on the basis of data sent XI connects to Database to retrieve info from the database (Different query each time) and XI then sends this data to R/3. How would