READ_TEXT in OO
Is there a version of FM READ_TEXT that works with the OO context? I am writing a program and I am trying to call READ_TEXT in the hotspot handler method of a report ALV to read the value for the Material Memo found on TCODE MD04, but I get the error "READ dbtab" is not supported in the OO context. Use SELECT SINGLE * FROM dbtab into wa, which will not work for the value because it is stored as a long text.
Hello
You coding within the method should look like this:
METHOD get_text.
* define local data
DATA: lt_lines TYPE text_line_tab. " = table type of TLINE in package STXD
CALL FUNCTION 'READ_TEXT'
IMPORTING
EXPORTING
TABLES
lines = lt_lines
EXCEPTIONS
others = 99.
ENDMETHOD.
Always use table types to define internal tables within OO-context.
Regards
Uwe
Similar Messages
-
Hi All,
If I hardcode material number, without loop statement call function READ_TEXT gives subrc 0. If I pass it through internal table in a loop, it ends up with SUBRC 4.
Moreover, this does not even enter into FM Read_text.
can somebody help me with this.
lOOP AT ITAB.
ALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'GRUN'
LANGUAGE = 'EN'
NAME = ITAB-MATNR
NAME = '000000000123456789'
OBJECT = 'MATERIAL'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = IT_LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
ENDLOOP.
Thanks
SharatTry if this works.
parameters p_matnr type matnr.
data: temp_text type table of tline with header line,
where_cond(20) type c.
data : begin of text_id ,
tdobject(10) value 'MVKE',
tdname(70),
tdid(4) value '0001',
tdspras value 'D',
end of text_id.
start-of-selection.
concatenate '%'
p_matnr
into where_cond.
select single tdname
from stxl
into text_id-tdname
where relid = 'TX' and
tdspras = 'E' and
tdname like where_cond.
import tline = temp_text[]
from database stxl(TX) id text_id.
write: / sy-subrc.
loop at temp_text.
write : / temp_text-tdline.
endloop.
Thanks
Mahesh -
How to use read_text function module
Hi how to use read_text function module to read purchase order header text .what are all tht things to pass in ID,Name and Object
thanks,
MaheDear,
Use below code.
DATA:IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE,
V_TDNAME LIKE THEAD-TDNAME.
V_TDNAME = PO_NUMBER.
CALL FUNCTION 'READ_TEXT'
EXPORTING
* CLIENT = SY-MANDT
ID = 'F01'
LANGUAGE = 'EN'
NAME = V_TDNAME
OBJECT = 'EKKO'
TABLES
LINES = IT_LINE.
Thanks and Regards, -
Problem in using FM READ_TEXT to read Material Sales Text.
Hi Guys,
I am developing a Customer Outstanding report in which I display all the invoices of a particular customer.
I need to read "Material Sales Text" which comes under "Item Text" tab in transaction FBL5N.
I have used READ_TEXT in my program. I have identified the Object, and ID but I am stuck up with the Name. I dont know what Name to pass. I have tried passing the Invoice Number in "Name" but couldnt get the text.
Request you to please help me out. Please check the below code.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = '0001'
language = SY-LANGU
name = -
object = 'VBBP'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = tl001
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OTHERS = 8
Thanks.*& Form READ_TEXT
FORM read_text USING p_tdid p_tdname
CHANGING p_tdline.
DATA: it_line TYPE STANDARD TABLE OF tline,
wa_line TYPE tline ,
l_tdid TYPE thead-tdid,
l_tdname TYPE thead-tdname.
l_tdid = p_tdid.
l_tdname = p_tdname.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = l_tdid
language = 'E'
name = l_tdname
object = 'VBBP'
TABLES
lines = it_line
EXCEPTIONS
OTHERS = 8.
LOOP AT it_line INTO wa_line.
IF NOT wa_line-tdline IS INITIAL.
p_tdline = wa_line-tdline.
ENDIF.
ENDLOOP.
ENDFORM. " READ_TEXT -
How to use Read_Text in Smartforms
Hi Experts,
I am developed smartforms .My probelm is i need to use the read_text in smartforms . i am fetch the text in print program how to use this text in smartform.
Pls suggest me.
This is my print program .
REPORT zsd_invoice_text.
PARAMETERS : p_vbeln TYPE vbrk-vbeln.
DATA : fname TYPE rs38l_fnam.
DATA:BEGIN OF i_vbrk OCCURS 0,
vbeln type VBELN_VF,
END OF i_vbrk.
DATA: lt_lines TYPE STANDARD TABLE OF tline,
wa_lines TYPE tline.
DATA: ld_text(18) TYPE c.
*DATA: tdobname TYPE tdobname.
CONSTANTS: c_id TYPE thead-tdid VALUE '0002',
c_object TYPE thead-tdobject VALUE 'VBBK'.
DATA: lv_name TYPE tdobname.
select vbeln from vbrk into table i_vbrk where vbeln eq p_vbeln.
loop at i_vbrk.
read table i_vbrk with key vbeln = i_vbrk-vbeln.
endloop.
lv_name = i_vbrk-vbeln.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = c_id
language = sy-langu
name = lv_name
object = c_object
* IMPORTING
* header = ld_header
TABLES
lines = lt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5.
IF sy-subrc <> 0.
ELSE.
LOOP AT lt_lines INTO wa_lines.
CONCATENATE ld_text wa_lines-tdline INTO ld_text.
ENDLOOP.
ENDIF.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSD_INVOICE_TEXT'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = fname
EXCEPTIONS
no_form = 1
no_function_module = 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.
CALL FUNCTION fname
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
p_vbeln = p_vbeln
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Thanks in Advance
purnaneelu
Edited by: Purnaneelu on Jun 9, 2009 7:11 AMHi,
Used below code:
1) Call FM READ_TEXT and pass
DATA :
T_LINES
TYPE TABLE OF
TLINE
W_TDLINES
TYPE
TLINE
V_WORK
TYPE
CHAR255
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z038'
LANGUAGE = sy-langu
NAME = BIL_NUMBER
OBJECT = 'VBBK'
TABLES
lines = T_LINES
IF sy-subrc = 0.
loop at t_lines INTO W_TDLINES.
CONCATENATE V_WORK W_TDLINES-TDLINE INTO V_WORK SEPARATED BY SPACE.
CONDENSE V_WORK.
CLEAR W_TDLINES.
ENDLOOP.
REFRESH T_LINES.
ENDIF.
OR
2 ) See below attached screen shot -
How to print the texts retrived by using READ_TEXT fun module in Smartform
Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
I have coded all things in the program lines and in that i am retriveing the long texts.
I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text.
I have to print the trouble ticket. in that the notes log I have to pass.
its urgent. Points will be rewarded for any type of clue. whether it will work or not.There are a few ways to do it. If you need to take all of the text in the text type, in your SF text element choose "Include Text".
Populate the fields with the data that corresponds to the text type. It is similar to the interface to the FM "Read_Text.
Text Name
Text Obje
Text ID
Language
Encase any variables with the "&" symbol.
If you have already coded the call to the FM "READ_TEXT" and loaded the text into an internal table, create a loop and loop through the itab. Inside of the loop create a text element and add a variable in the text element for the field you are looking to output. -
How to print text rertrived by using the READ_TEXT fun module in smartform
Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
I have coded all things in the program lines and in that i am retriveing the long texts.
I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text module.
its urgent. Points will be rewarded for any type of clue. whether it will work or not.loop the table into which u have retrieved the text .
in the form interface of the smartform ... in importing parameter give the that table name .
and in smartform whereever u want to print there insert the data into work area and pass to fields for dispaly .
decalre ur work area in global defintions
thnaks . -
Error while reading the Long text Using READ_TEXT
Hi friends,
Right now I am working with Smartforms.While I am reading the Long text of the material using function module READ_TEXT I am getting the following error if the text is not there.
OUT_PURCH_PO ID GRUN language EN not found.
I should not get this error Instead I should get the blank value.
OUT_PURCH_PO - my material name.
Following is my code.
IF WA_EKPO-KNTTP = 'F' AND WA_MTART-MTART = 'ZMSC'.
READ TABLE IT_SGTXT INTO WA_SGTXT WITH KEY MATNR = WA_EKPO-MATNR.
WA_EKPO-TXZ01 = WA_SGTXT-SGTXT.
NAME = WA_EKPO-MATNR.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = ID
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = OBJECT
IMPORTING
HEADER = THEAD
TABLES
LINES = LTEXT.Hi,
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = id
language = sy-langu
name = name
object = object
TABLES
lines = ltext
EXCEPTIONS " --> have this
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.
Edited by: Avinash Kodarapu on Jun 5, 2009 7:32 PM -
Issue with length of text field - READ_TEXT & SAVE_TEXT
Hi,
I need to allow user to enter max 400 char in one field and that needs to be updated in the VA02 for the corresponding sales order.
I can able to save the text max 132 chars since TLINE-TDLINE will allow max 132 chars in both READ_TEXT & SAVE_TEXT.
So here i am looking for the solutions for the below...
1) How to design one input field to take 400 chars at one shot .... do i need to use table control ?
2) Once i get the 400 char may be i will split in to 3-4 lines and i can append 130130130... like that through those FM... if not possible can you tell me the alternative.
regards
jayaYou need to use class CL_TEXT_EDIT....
Kindly stolen from Rich Heilman -:)
report zrich_0001 .
data:
dockingleft type ref to cl_gui_docking_container,
text_editor type ref to cl_gui_textedit,
repid type syrepid.
data: itext type table of tline-tdline,
xtext type tline-tdline.
parameters: p_check.
at selection-screen output.
repid = sy-repid.
create object dockingleft
exporting repid = repid
dynnr = sy-dynnr
side = dockingleft->dock_at_left
extension = 1070.
create object text_editor
exporting
parent = dockingleft.
xtext = 'http:\www.sap.com'.
append xtext to itext.
call method text_editor->set_text_as_r3table
exporting
table = itext
exceptions
others = 1.
start-of-selection.
call method text_editor->get_text_as_r3table
importing
table = itext
exceptions
others = 1.
loop at itext into xtext.
write:/ xtext.
endloop.
You can use <b>RKD_WORD_WRAP</b> to wrap the text into an internal table -;)
Greetings,
Blag. -
In the read_text function module, how to find the lines
The coding follows like this,
call function 'READ_TEXT'
exporting
client = sy-mandt
id = id
language = sy-langu
name = name
object = object
importing
header = header
tables
lines = tab
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
can u provide me with the correct data form which i can read the lines.I think this code will help you to read the lines
*--LOCAL VARIABLES
DATA : LV_NAME TYPE THEAD-TDNAME,
LV_TEMP(128) TYPE C ,
*--Structure to Hold the Header Data for Func Modules
*--Read_text
X_HEADER TYPE THEAD .
CLEAR : LV_NAME ,
LV_TEMP ,
V_IND_FG ,
X_HEADER ,
IT_TLINES ,
IT_TLINES[] .
LV_NAME = P_DELV_NO .
X_HEADER-TDOBJECT = 'VBBK'.
X_HEADER-TDNAME = LV_NAME .
X_HEADER-TDID = 'ZMAN'.
X_HEADER-TDSPRAS = 'E'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = X_HEADER-TDID
LANGUAGE = X_HEADER-TDSPRAS
NAME = X_HEADER-TDNAME
OBJECT = X_HEADER-TDOBJECT
TABLES
LINES = IT_TLINES
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.
ERROR.
CLEAR :IT_TEXT,
IT_TEXT[] .
V_IND_FG = 'X' .
EXIT .
ENDIF.
LOOP AT IT_TEXT .
IT_TLINES-TDFORMAT = '*'.
IT_TLINES-TDLINE = IT_TEXT-LINE.
APPEND IT_TLINES.
CLEAR IT_TLINES.
ENDLOOP.
Thanks,
Koshal -
Showing error in read_text function module
- Forcast ID Number: Read function module READ_TEXT where ID = Z001, Object = VBBK to get the Forcast ID. Display it on the output.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z001'
LANGUAGE =
NAME =
OBJECT = 'VBBK'
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.
its showing error---unable to interprete OBJECT.possible cases of spelling or comma errorLook at the Bold ones ... U need to give values for
language and name
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z001'
LANGUAGE = ' '
NAME = ' '
OBJECT = 'VBBK'
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. -
READ_TEXT IN FORM AND PERFORM
Hi all.
I have an issue in Scripts.
we are using standard program as print progarm and a zform as form.
we want to print some text in themain window of the form.
for that one I created a new progarm for form and perform.
in taht form i am using this function module read_text to read the text.
i sending all this text to an internal table.
up to thuis ok...
While the data transfering from form to perform (i.e to the form(script)) only the last line of the internal table is transfering.
and i declared the exporting TABLE OF TYPE ITCSY.
CAN ANY BODY HELP TO SOLVE THIS ISSUE,
THANKS IN ADVANCE,
rEGARDS,
ESWAR.MHi venkat,
1. while calling subroutines from sapscripts,
there is a special technique,
which has got its own limitations.
2.
FORM abc
TABLES
in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
ENDFORM.
3. The perform in se38 program should be of the
above format only.
4.<b> We cannot pass internal tables.</b>
5. Rather we need to pass
VARIABLE NAME
VARIABLE VALUE
(see the structure of itcsy in se11)
6. In this form, we have to read
the internal table in_tab
to capture the variable name and its value.
7. Similary, to return the values,
we have to put one record (for each variable)
in out_tab.
regards,
amit m. -
Problem in read_text function
Hi all,
I want to read multiple rows by read_text functions but it shows me single row only.
Plz help me how to read multiple rows ..>
ankita patel wrote:
> Hi kartik...
> I am using this code because I want to modify my internal table field..
>
> If i am not using it , only blank value store in internal table.
>
>
> IF NOT I_TAB-NO_OF_BOX IS INITIAL.
>
> exit.
> ENDIF.
Hi ankita,
See.
What ur code is currently doing is reading one line then
checking this condition
IF NOT I_TAB-NO_OF_BOX IS INITIAL.
exit.
ENDIF.
Condition is true so it exits.
So its not reading other lines.
do like this
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'B01'
language = sy-langu
name = name
object = 'EBAN'
TABLES
lines = lt_text.
if sy-subrc = 0. " This is important
loop at lt_text.
concatenate i_TAB-NO_OF_BOX lt_text-TDLINE to i_TAB-NO_OF_BOX.
endloop.
endif.
MODIFY I_TAB. "here if u want u can put this check IF NOT I_TAB-NO_OF_BOX IS INITIAL. but i think its not required as now we are looping at lt_text only if sy-subrc is 0
кu03B1ятu03B9к -
In Read_text FM, the data after 256 characters gets truncated
Hi All,
In this FM, the internal table can't have string type field. In my case the data is in multiple lines of internal table and I am concatenating into a single field which is of type DESCRIPTIONS(string). I am passing this data to a table in smartform.Only 255 characters are printed, remaining data gets truncated. I am using CONVERT_OTF and SX_TABLE_LINE_WIDTH_CHANGE FMs to create PDF. Is it the limitation or I am incorect here?Your posting title is misleading; there's nothing wrong with FM READ_TEXT. Yes, it returns a table of type TLINE, as you've noted. Perhaps you could close this post and repost in FORM PRINTING with an appropriate title like: Can't show more than 255 characters of text.....but search first, because you cannot be the first person to encounter this limitation.
-
How to remove representation of grammar correction of text (FM read_text)?
Hi ABAP Gurus,
I am working on a program that downloads data to Excel.
The data comes from the text using the FM read_text.
I tried to look at the data and it contains grammatical error like no spaces are provided after end of each sentence.
When I tried to view it, an ampersand sign (#) appeared in between of those words. See sample below:
This account should be used to hold the Raw Material related variances within Finished Product Variances.#This Account is being set-up as open item managed account to support the global requirement.
If you notice, the correct grammar entails us that there should be spaces after period (.) of the 'Variances' before the 'This' word. As a result when viewing such text, an ampersand appeared using the old editor though the ampersand sign did not appear using the new text editor.
My case then is to remove the such appearance of ampersand but I cannot remove it since the abap code cannot determine it as a character.
It helps me conclude then that the ampersand sign that appeared in representation of grammar check (usually words are highlighted in red) is not really a character. It is the representation of that crooked red line during grammar chek of the text.
I have to get rid of that ampersand since I am downloading the data to excel, otherwise it causes the data to move to another row in excel file.
Please help me.
Thank you.
Regards,
OnyxWhat I have had to do, in one similar instance, is find the special characters that were being 'pasted in' by someone who was copying and pasting from a desktop file that had oddball hex characters in it...Here's the approach I took (to the best of my memory).
Look in debug and identify the hex value of the characters...
Turn off the unicode switch in porgram attributes, so you can declare type x.
Set fields like this:
lc_hex1 type x value '09'. "1 character hex field...put in the bad hex value you saw in debug...
declare as many of these constants as you need....
then ....
field-symbols <fs> type tline.
loop at itxt assigning <fs>.
if <fs> is assigned.
replace all occurrences of lc_hex1 with space into <fs>-tdline.
replace all occurrences of ... with space into <fs>-tdline. "as many times as needed for each "bad" character.
condense <fs>-tdline. "squeeze all the extra spaces out
endif.
endloop.
Then you might want to call something like RKD_WORD_WRAP to reformat to the length you'd like, breaking on word (space) boundardies.
Edited by: BreakPoint on Jun 25, 2010 8:15 PM ... use replace all occurrences instead of do...enddo. -
HOW TO READ FILE AND HOW TO USE IT IN PATTERN EX. READ_TEXT
I WANT TO USE A PROGRAM'S CONTENT ND I WANT TO PASS AS PARAMETER IN A PATTERN..HOW TO DO THT.PLZZ REPLY...
EX. I HAV CREATED A STANDARD TEXT ZCREATE_TEXT AND I WANT TO SEND THIS AS A PARAMETER TO READ_TEXT...HOW TO DO THIS..Hi,
When you create a Std Text in SO10 and save, it is saved with 4 parameters
like TEXT NAME, LANGUAGE, TEXT OBJECT, TEXT ID. these are the four parameters by default will be created for any std text when you create a TEXT in SO10 or in any document.
You will know this 4 parameters from SO10 screen.
enter text, display.
from Menu -> GOTO -> HEADER, see them.
Next when you wants to fetch this text using READ_TEXT fun module
yopu have to pass this 4 parameters to that fun module.
see the doc
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).
reward points
regards,
ANJI
Maybe you are looking for
-
Following upgrade to 34.05, can no longer access web pages of the SAN management interface, the airco system, the vSphere Web Client, etc. All still work in Chrome. The airco system gives an error: Firefox cannot guarantee the safety of your data on
-
Maximum Fields in Omni Portlet?
We have recently installed PDK Release 2 v9.0.2.6.2 and are busy adding Omni Portlets to our Portals. We are really pleased with the majority of functions so far but have now hit a problem. I seem unable to create a report that displays more than 5 c
-
Urgent help is needed please My video is filmed in DVPAL anamorphic with a XL1s We need to make animations between the clips and use motion for this. After creating an animation an adding black borders to get an anamorphic effect: selecting add filte
-
Importing contacts from Passport to car phone book
My Passport is great but I can't figure out how to import my contacts into the audio system's phone book in my Mercedes. My car manual says that my"external Bluetooth phone must be able to send vCards via blueltooth" to be able to import the contacts
-
Multiple undos in director 11.5 query
Director 11.5 is supposed to support multiple command 'undos' There is an option in the preferences to set the number of "undos" but regardless of what is specified I can't seem to "undo" more than one (ie the last) change - what is the trick to this