What is use of Read-Text  command in Sapscript  plz replay

What is use of Read-Text  command in Sapscript  plz replay
i m geting problem with read-text command in sapscript as will as
perform and endperform .

Hi Majid,
          It's a function module to read the texts from a text file. Generally it is used to retrieve the long texts.
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.
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
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).
Br,
laxmi.

Similar Messages

  • I am looking for what type/setup of Read/Write command in RSLogix 5000 to be used with the NI Ethernet I/P Driver

    I am working on trying to get LabView to communicate with an Allen-Bradley Compact Logix PLC using the NI Ethernet I/P driver.  I am currently getting errors on both system of a CIP Message instruction error and cannot determine if the problem is in the PLC or the NI.  At this time we are leaning toward the PLC, thus I was wondering if anyone new what type/setup of message read and write to utilize.

    Hello jabcae,
    Thank you very much for posting your questions.
    I recommend posting to the PLC Manufacture’s forums.  They will be able to provide more insight on the PLC code.
    I also recommend posting this question to the Industrial Communications forum:
    http://forums.ni.com/t5/Industrial-Communications/bd-p/260
    That forum is monitored by the developer’s of the EtherNet I/P Toolkit. They will be able to assist with the LabVIEW programming.
    Regards,
    Thomas C.
    Applications Engineer
    National Instruments

  • What is use of INCLUDE in command line statement?

    Pls. explain following line. How this works and what is expected output for this line.
    /: INCLUDE &VBDKA-ZTERM& OBJECT TEXT ID SDTP PARAGRAPH L
    Thanks
    Harshada

    hi Harshada,
    INCLUDE: Include other texts
    With the command INCLUDE, you can include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting.With the INCLUDE command, you always get the most current version of the required text, since this is only read and inserted during the output formatting.
    Syntax:
    /: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]
    The name of the text to be inserted must be specified and can have up to a maximum of 70 characters. If the text name contains blanks, then you must put it in quotes as a literal. It can also be specified via a symbol. All further parameters of the INCLUDE command are optional. If they are missing, SAPscript uses default values for them which are based on the respective call environment.
    Examples:
    /: INCLUDE MYTEXT
    The text MYTEXT is included in the language of the calling text.
    /: INCLUDE MYTEXT LANGUAGE ‘E’ PARAGRAPH ‘A1’
    The text with the name MYTEXT and the language E is included, regardless of in which language the calling text is created. The paragraph format A1 is valid as the standard paragraph for this call.
    Optional specifications:
    •LANGUAGE If a language is not specified, the language of the calling text or the layout set is set for the text to be included. If a language is specified, the text is always loaded in this language, regardless of the language of the calling text.
    •PARAGRAPH The text to be included is formatted with the style allocated to it. With this parameter, the standard paragraph of this style can be redefined for the current call. All * paragraphs of the inserted text are then formatted with the paragraph specified here.
    •NEW-PARAGRAPH The first line of the included text has this format flag, provided it is not a command or comment line. If the optional entry PARAGRAPH (see above) is empty, all * paragraphs of the included text are formatted with the paragraph np specified with
    NEW-PARAGRAPH.
    •OBJECT To specify a text completely, you must make further specifications regarding the text object. There are different rules and restrictions for this which depend on the object type of the calling text: All texts can be included in a layout set. If no object is entered here, TEXT is used (standard texts).With a documentation text (object DOKU), you can only include documentation texts. This object is assumed even if no object is specified in this environment. Only hypertext or documentation text can be included into a hypertext (object DSYS). If the OBJECT specification is missing, DSYS is set as a default value.
    Only standard text (object TEXT), documentation text or hypertext can be included in any other type of text. The default object is TEXT if nothing is entered.
    •ID The text ID, which allows further text types within an object, is a further part of the text key. If the ID is not entered, the default Include ID from table TTXID is used for the calling text. If the specification is not in this table, the text ID of the calling text is used.
    The ID together with the object are now the basis of a further consistency check:
    •All text IDs are allowed for a layout set.
    •Only documentation texts with the text IDs TX (general texts), UO (authorization objects), and documentation texts which have the same text ID as the calling documentation text may be included in documentation texts.
    •All DSYS texts may be included in DSYS texts, regardless of their ID. Documentation texts to be inserted may only have IDs TX and UO.
    •Standard texts with all the allowed text IDs, DSYS texts with all IDs, and documentation texts with Ids TX and UO may be included in the other types of texts.
    Regards,
    Santosh
    Message was edited by:
            Santosh Kumar Patha

  • Whats the use of read_text  and save_text in sapscript

    in the sap script we have standard texts so10 by using this we can use large texts then wats the use of those function modules.
    how to change the standard sap script bu using subroutine.can any one give brief idea where to pass parameters in subroutine in program or else in form.

    hi sarath,
    read_text  and save_text
    check this thread..
    Re: Read_text and save_text
    how to change the standard sap script bu using subroutine.can any one give brief idea where to pass parameters in subroutine in program or else in form.
    : PERFORM MY_FORM IN PROGRAM ZPROGRAM
    /: USING &VAR1&
    /: USING &VAR2&
    /: USING &VAR3&
    /: USING &VARN&
    /: CHANGING &VAR_OUT1&
    /: CHANGING &VAR_OUTN&
    in program zprogram.
    FORM MY_FORM tables in_tab structure itcsy
    out_tab structure itcsy.
    data: varn like ....
    read table in_tab with key name = 'VARN'.
    if sy-subrc = 0.
    move in_tab-value to varn.
    endif.
    read table out_tab with key name = 'VAR_OUTN'.
    if sy-subrc = 0.
    move <value> to ot_tab-value.
    modify out_tab index sy-tabix.
    endif.
    ENDFORM.
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm
    Message was edited by: Priya

  • Read text on pocket pc PDA

    I have been reading various issues on reading text on the PDA but I can't seem to solve it. When I run the VI on the desktop, everything runs perfect. But when I put it on the PDA, nothing works. I'm attaching the VI and the text file that I am using on the desktop. I looked at the text file on the PDA itself and it looks different that when I transfer it to the desktop. It gets converted somehow. Anyways, I've also attached an example of how the text looks on the PDA. Please help.
    Marcos
    Attachments:
    pda text example.txt ‏2 KB
    testing pda read.vi ‏23 KB
    Desktop text example.txt ‏16 KB

    I actually can't read anything on the PDA when I select the text file. I have tried every which way I could think of to save data and read data. But I don't know what the problem is. Every method I use on the desktop works, but as soon as I transfer to PDA, I can't read anything. Attached is the VI that I use to acquire data. I use the standard acquire multiple analog signals vi for the pda but I added the index array function to separate the array into its three signals that I had coming into the CF-6004. Then I convert those arrays into strings that are tab delimited and into the save binary file. (I even tried to save at text file but I get the same results and problems). So when I recorded data, it was at 500 samples per channel and I had 4 acquisitions per signal. So signal 0 generates a text file with 4 different blocks of 500 samples a piece. The example of the text file is in the previous message I left. However this is how it looks when I transfer from PDA to desktop. When I look at the data directly on the PDA, the data is formed the same way. But I can't read it on the PDA. When I tried reading using the read text file vi ( with some slight modifications) for the PDA, nothing comes out. I can't see the time stamp, which would be the very first data point. However, what is odd is that I can move the cursor on the time stamp box 4 rows. No more and no less. Which means the text reader knows that there are 4 blocks of data that it needs to read, but it is just not displaying the data. What do you suppose is the problem?
    Attachments:
    June 15 PDA timing in seconds.vi ‏50 KB

  • Use of long text in maintenance item

    Hi Experts ,
    What  is use of long text in maintenance item, Which  T code is use for to create long text for maintenance item
    With best regards,
    AVI DDS.

    hi
    if you have maintained the tasklist ,i think it will copy the maintenance item short and long text to the maintenance order or notification created
    regards
    thyagarajan

  • Query Perfomance - Time, Read Texts

    Hi all,
    I have an performance issue regarding an BI 7 Webtemplate. Most of the time is used to read texts. Is there a way to speed this up? Due to BIA everything else is nicely fast.
    21510 ms: OLAP Frontend Events
    55 ms: Nicht zugeordnet  (0)
    156 ms: Process request  (12600)
    44 ms, 947415: Display content  (12605)
    1 ms: RFC BICS_PROV_GET_RESULT_SET (10000)
    1 ms: OLAP sonstige Zeit xxx (3999)
    11 ms: Cache lesen xxx (2505)
    25 ms: Cache schreiben xxx (2510)
    2 ms: Cache-Erzeugung xxx (2500)
    142 ms: Datamanager xxx (9000)
    10 ms: OLAP: Datenselektion xxx (3110)
    3 ms, 605: OLAP: Daten lesen xxx (3100)
    -> 20601 ms: OLAP: Texte lesen xxx (3900) <-
    179 ms, 1210: OLAP: Datentransfer xxx (3200)
    12 ms: Abap DP Result Set  (13054)
    218 ms: Abap DP Ausgabe  (13055)
    18 ms, 1210: Get provider result set  (13040)
    31 ms, 1180: Get result set  (13004)
    1 ms: RFC RSBOLAP_BICS_STATISTIC_INFO (10000)
    Cheers, Miroslav.
    Edited by: Miroslav Simunic on May 6, 2009 3:58 PM

    Hello,
    Try to restrict the query with more selections and try to select small number of records.
    navigation attr and infoobjects will not have much impact.
    Right now the query is selecting lots of records so try to reduce it by having more selections in the query.
    Thanks
    Ajeet

  • About BOX control command in SAPScript.

    Hi,
    I am using the BOX control command in SapScript.
    Is it possible to assign the values of Xpos and Ypos dynamicalliy.
    In BOX XPOS 16 CH WIDTH 0 MM HEIGHT 18 MM FRAME 10 TW,
    i want to assign the values at runtime, instead of
    xpos 16 , something like Xpos Var, where var contain the value of xposition.

    Hi,
       We cant give the dynamic value in runtime . It should be static.
    Regards,
    Saran

  • Note 3 won't answer a call by using the "answer" voice command. Other voice commands work fine (ie 'volume up') and speech to text works fine. Tried it in the car and in a quiet room at home. What am I missing?

    Note 3 won't answer a call by using the "answer" voice command. Other voice commands work fine (ie 'volume up') and speech to text works fine. Tried it in the car and in a quiet room at home. What am I missing?

        Rodilator,
    We'll figure this out together! Can you please walk us through the exact steps you're taking to answer a call when it comes in?
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • What are the limitations in terms of data size  or performance while using csv or text file as datasource?

    <p>Also what are the limitations in terms of data size  or performance related issues while using csv or text file?</p><p>Is it the best practice to use csv , text file to use as a datasource to improve performance?</p><p>Please Advice.... </p><p>&#160;</p>

    <p>Hi,</p><p>Create Same Data Input for CSV and Text File ,Create 2 different reports one for CSV and One for Text ,run them one you have done that.</p><p>Go to Report Menu and Select Performance Information .Use the Data in that to check which one is good datasource to improve performance</p><p>Cheers</p><p>Rahul</p>

  • What is the use of various text objects in text determination

    Dear All,
    What is the use of various text objects in text determination.e.g the sale document header object(In this what we define and where that text is copied further) and
    other text objects i.e customer/accounting,billing header etc.
    Regards,
    Ashima

    Hi,
    To exchange information between the User and the System    as well as between the objects (Ex: Customer to Sales document, Sales document to Delivery Document) SAP uses Text Determination to determine or to propose Text. Text can be determined for objects like customer master, all documents, condition records, customer material info records, etc...
    hope it helps..
    regards..
    yogi..

  • How to create and read text file using LabVIEW 7.1 PDA module?

    How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
    I attach my code here.
    Attachments:
    File_IO.vi ‏82 KB

    Well my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.

  • What data type I can use if the text is more then 4000 varchar?

    Dear all,
    What data type I can use if the text is more then 4000 varchar?
    Please advice,
    Amy

    You didn't specify if you are referring to tables or code.
    In tables the limit is varchar2(4000) so anything bigger will need to be stored in a CLOB (as already mentioned).
    In PL/SQL code you can defined varchar2 up to 32K so varchar2(32767).
    ;)

  • If i have limited talk and text what apps use my minutes

    if i have limited talk and text what apps use my minutes

    You'd have to check the app description.  We have no way of knowing what apps you have on your device.  And I doubt any of us her know all the apps and what they do.  However, I don't know of any apps that would use up your minutes or text limits.

  • I am confused about something.  How do I read a book on my MacBook Pro?  I can't find the iBook app anywhere, which is what I use on my iPad.  The book I want to read is in my iTunes but I can't click on it.  My iBook library does not show up in iTunes.

    I am confused about something.  How do I read a book on my MacBook Pro?  I can't find the iBook app anywhere, which is what I use on my iPad.  The book I want to read is in my iTunes but I can't click on it.  Some of my iBooks show up in my iTunes but they are "grayed" out.  The only books that respond in iTunes are audiobooks and that's not what I'm looking for.  Is this a stupid question?

    Nevermind - I answered my own question, which is I CAN"T READ ANY BOOKS I purchased in iBooks on my MacBook Pro.  If I want to read on my mac I have to use Kindle or Nook.  Which means any book I've already purchased through iBooks has to be read on my iPad.  Kind of a drag because there are times when it's more convenient for me to read while I'm sitting with my Mac.

Maybe you are looking for