Header Texts Read/Write

Dear All,
   I have got a requirement where I need to change the sales order header text lines. My approach is to read the using READ_TEXT FM ,change the content and using SAVE_TEXT I am saving the text.But it is not updating in the document.Can anyone suggest the exact approach to change the texts.
Thanks in advance,
Nagesh Aswartha Varma

This is working.
CALL FUNCTION 'SAVE_TEXT'
   EXPORTING
     header                = header
set the save mod : directly
     savemode_direct       = 'X'
   TABLES
     lines                 = lines

Similar Messages

  • Header Text from Sales Order Not Copied to Header Text Invoice.

    Hello All....Does anybody have an idea why this is happening ??
    My Sales Order have the Header Cl.Text Z001 "Header Text", I write text in two languaje "EN" and "ES".
    Z001 Header Text (Sales Order)
             EN -->>   Hello
             ES -->>   Hola
    When I create the Invoice with reference this Sales Order, this only copy the Spanish Text but not the English Text.
    Z001 Header Text (Invoice)
            ES -->> Hola
    Thanks in advanced.
    JEOS.

    Hello Jorge
    Ensure that you checked the box 'All Languages'  in the related access sequence.
    T code VOTXN.

  • Third Party : Sales order Header text should copy to PO Header text

    Hi,
    I need to copy sales order header text to PO Header text
    in the third Party sales order scenario.
    Can anybody suggest how to do it.
    Thanx in advance.
    Regards,
    RRS.

    I doupt that this is possible without using a user exit.
    The 3rd sales order will create a PR, the PR has no header text (just a header note = internal use), the PO is created in reference to the PR. And it is not possible to copy PR header text to PO header text.

  • ME23N - Header Text

    Hi Gurus,
                 In ME23N transaction, I want to default the Header text value(long Text).Can you please let me know how to do that.
    Thanks in advance,
    Ashok...

    "EXIT_SAPMM06E_013" is called during PO save. This will have the PO number.
    Use INIT_TEXT, SAVE_TEXT and COMMIT_TEXT function modules in this exit to default the header text.

  • PLEASE HELP!! Need some way to read header text in advanced datagrid using QTP

    I am writing a function to read column names in advanced data
    grid. There is no operation for that and any of the properties that
    I can use to read the column names.
    Please suggest any way that I can get the names of columns in
    the advanced data grid.
    Thanks

    I hope to hear something from adobe folks...I am providing
    more info.....
    I am using QTP 9.2 and Flex 3 add-in available from Adobe.
    My application has flex Advanced datagrid object and I am
    trying to read column names for the datagrid.
    I have contacted developers and they told me that column
    names for flex advanced datagrid are stored in "Header Text"
    I have tried reading "Header Text" using
    GetROProperty("HeaderText") but it doesn't return anything.
    I have tried the following code:
    x =
    Browser("app").FlexApplication("flexapp").FlexCanvas("Canvas").FlexAdvancedDatagrid("esti mategridid").GetROProperty("Header
    Text")
    msgbox x
    I have also tried getting value for column names using other
    available properties for webtables like outerhtml, outertext, alt
    etc. but I don't get any data.
    Part of the problem may be because none of the above
    mentioned properties are supported by Flex Advanced datagrid.
    I have also tried getting child objects but I always get the
    data in datagrid as values but not the column names.
    My primary reason for getting column names is to write a
    function to update cell in datagrid independent of application. So,
    I want to pass column name as a parameter to the function and get
    the corresponding columnIndex in the function by comparing the
    parameter value against column names.
    Thanks to all for you help...

  • Can I make header text on a billing document read only?

    We currently have a system where billing document header and line texts are created from the sales order.  Subsequent changes to the sales order texts do not alter the invoice texts. (this is how we want it) The business now want to lock down the texts on the invoice for audit reasons. Is there a way that we can make the texts read only in VF02? (meaning that if they want to change the notes they need to cancel the invoice change the notes on the sales order then and then rebill)

    Take a help from ABAPer in the User Exit  that if user try to edit the text in VF02 > Header / Item ,it would throw an error.
    Best Regards,
    Ankur

  • How can I read/write data files (text file) from PL/SQL Script

    I had an oracle forms pl/sql program to read/write a data file (text file). When this code is run on a command line as a PL/SQL script using the SQL*Plus I am getting an error:
    -- sample.sql
    DECLARE
      vLocation                 VARCHAR2(50)  := 'r:\';
      vFilename                 VARCHAR2(100) := 'sample.dat';
      vTio                   TEXT_IO.FILE_TYPE;
      vLinebuf               VARCHAR2(2000);
      vRownum               NUMBER        := 0;
      -- use array to store data FROM each line of the text file     
      TYPE           array_type IS VARRAY(15) OF VARCHAR2(100);
      vColumn      array_type := array_type('');
      PROCEDURE prc_open_file(p_filename IN VARCHAR, p_access IN VARCHAR2) is
      BEGIN
        vTio := TEXT_IO.FOPEN(vLocation||p_filename,p_access);
      EXCEPTION
        WHEN OTHERS then
          --  raise_application_error(-20000,'Unable to open '||p_filename);
          message(sqlerrm);pause;
      END;
      PROCEDURE prc_close_file is
      BEGIN
        IF TEXT_IO.IS_OPEN(vTio) then
           TEXT_IO.FCLOSE(vTio);
        END IF;
      END;
    BEGIN
      --extend AND initialize the array to 4 columns
      vColumn.EXTEND(4,1);
      prc_open_file(vFilename,'r');
      LOOP
          LTEXT_IO.GET_LINE(vTio,vLinebuf);
          vColumn(1)  := SUBSTR(vLineBuf, 1, 3);
          vColumn(2)  := SUBSTR(vLineBuf, 5, 8);
          vColumn(3)  := SUBSTR(vLineBuf,10,14);     
          Insert Into MySampleTable
          Values
            (vColumn(1), vColumn(2), vColumn(3));
          EXIT WHEN vLinebuf IS NULL;
       END LOOP;
       prc_close_file;
    END;
    SQL> @c:\myworkspace\sql\scripts\sample.sql;
    PLS-00201: identifier 'TEXT_IO.FILE_TYPE' must be declaredIt works on the oracle forms but not on the SQL*Plus. Is there an alternative method using a PL/SQL script? A simple sample would help. Thanks.

    Did you ever noticed the search box at the right side of the forum?
    A quick search (limited to this years entries) brought up this thread for example
    Re: UTL_FILE Examples

  • Javascrip to read Header text in pdf

    Hi all
    I'm new to use javascritp in PDf , i used javascript in Photoshop and illustrator i'm new to PDF
    i need a script to read header text in all pages of pdf where font, fontsize must be same
    Please anyone help me to develop script

    JS has no access to the type face information of text in a file. Best you
    can do is get the font size by analysing the coordinates (quads) that
    define each word on the page.

  • Is it possible to read/write to text file without deleting it?

    I know how to read from a text file and how to write to a text file. The problem that i have is i need to use a text file to store data for my application to read and also for my application to write. I would like it if i could write two programs really, one reads, the other is used to update the text file. This file is a list of verbs. I thought about using databases but i couldn't get them to work. I downloaded MySQL server 5.0 and installed it. I then downloaded the driver from http://www.mysql.com/products/driver and ran the auto installer. it said everything worked out perfectly but when i try these lines:
    Class.forName("com.mysql.jdbc.Driver");
    I get a SQLException that says no suitible driver
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    ( I thought this driver came with the JDK but i guess not, i just read about it in a java book)
    I get a ClassNotFoundException
    that just says sun.jdbc.odbc.JdbcOdbcDriver
    So yeah, SQL is pretty much not working. I need a solution to my problem, either by using text files, or a different type of database. I heard you could use excel to create a database but i have no idea how and i hear microsoft access could also do this, however i don't have microsoft access and i don't intend on paying for it. So, here are my questions:
    1st, is there a tutorial on using excel databases in java programs
    (if not)
    2nd is there a way to read/write/update a text file without deleting it?
    (if not)
    3rd is there a way to get SQL working, i have windows vista this could be the problem
    (if not)
    4th what could i do to store information on the hd for reading and modifying later?
    thanks, lateralus

    A database might be overkill just for a list of words.
    Thoughts:
    <ul>
    <li>What is the extent of your "file updating"? If you are just appending to the file, opening it in append mode will keep the file from being clobbered.</li>
    <li>Otherwise, why not create new files instead of editting them? The file names could include a version number or timestamp, allowing the reader to select the newest one.
    </li>
    </ul>

  • Read Header Text  From VF03 Transaction

    Hi Frds,
                  I want to Read Header Text  From VF03 Transaction
    Read Transport Number and Transport Date From Vf03 Transaction.
    Guide Me Briefly
    How to pass the varaibles to the function Module
    Regards,
    Kabil

    hi Kabil ,
        Your issue completely accepted just keep in mind
    1) if you have to read both text you have to use read_text 2 times
    2) in that for first read_text
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
          CLIENT                =       SY-MANDT
           ID                       =       '0002'
           LANGUAGE        =       SY-LANGU
           NAME                =        '             '          "" YOUR VARIABLE THAT CONTAINS Invoices number
           OBJECT             =        'VBRK'
          TABLES
           LINES                =         TLINE
       IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF. 
        is ok for Header note 1 .(means first text ) but for second text your ID is change other thing is same .
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
          CLIENT                =       SY-MANDT
           ID                       =       '0013'
           LANGUAGE        =       SY-LANGU
           NAME                =        '             '          "" YOUR VARIABLE THAT CONTAINS Invoices number
           OBJECT             =        'VBRK'
          TABLES
           LINES                =         TLINE
       IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    Hope this will help you
    Thanking You,
    shrikant padwale.

  • How to  read header texts in the on save user exit of VA01

    Hi Experts,
    I have a requirement to read the header texts in the on save user exit.
    I have to check whether departmental code in header text is not initial or not.
    Can any one please pour in some points of how it can be done......
    Thanks in Advance.
    Prem

    Hi
    U can use fm READ_TEXT:
    DATA: THEAD LIKE THEAD,
          TLINES LIKE STANDARD TABLE OF TLINE WITH HEADER LINE.
    THEAD-TDID     = <text id>.
    THEAD-TDSPRAD  = <language>.
    THEAD-TDOBJECT = 'VBBK'.
    THEAD-TDNAME   = VBAK-VBELN.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        ID                            = THEAD-TDID
        LANGUAGE                      = THEAD-TDSPRAD
        NAME                          = THEAD-TDNAME
        OBJECT                        = THEAD-TDOBJECT
      TABLES
        LINES                         = 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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    U can use it in all situations ( inserting and updating) because that fm returns the buffered text.
    Max

  • Early 2011 (March) MBP hard drive crashed a week ago, all data was lost. Why is the Hitachi hard drive so prone to have defective read/write heads?

    Shouldn't Apple be better quality than this? I've used my old MBP from 2006 for 5 years with no problems. I've only had to back up data maybe once a year because it was so durable.
    But this 2011 MBP had the hitachi 320gb SATA drive and one day it started clicking and everything froze. I immediately shut it down took it to the Apple Store, in which the genius bar guy said there was nothing they could do other than swap out the drive (which I did myself as I was not prepared to be charged $250+ for services and waste 2-3 weeks as my warranty was 1 month overdue). Even with AppleCare coverage, Apple will still not recover the data...
    This is ridiculous! I strictly use the MBP for school/no gaming/haven't dropped it or moved it around rigorously/bought it instore (assuming it was handled properly). There is no reason for being such crap quality at $1300. I took it to a data recovery center and get this, the quote was $1700 as the read/write heads were defective and the surface of the disk was scratched, I could buy a new computer with that money! Were there no quality checks for these drives? I have PC laptops at home and none of them has had that problem! I'm planning to dispute this with Apple for losing years worth of valuable data.
    Does anyone have the same problem? Are early 2011 MBPs prone to hard drive failures?

    As Ogel stated drives fail. Unless you bought your 2011 Mac right when the early 2011 models came out you still should be under the one year warranty. They came out at the end of Febuary.
    So that drive should be covered, dependinig on when you bought your Mac. And they offer a extended warranty which if you had purchased it would cover the drive failure, Hardware not data.
    As far as the data, Apple includes the Time Machine program and there are 2, that I know of, cloning programs available to backup your data. If you did not use any of those programs you will ALWAYS LOSE YOUR DATA.
    That is a fact of computers. They fail, end of story. Unless you have multiple copies of your files you are going to lose them.
    Good Luck.

  • How can i read header text?

    how can i read header text?
    ie, i want to read two values that are stored as header text in purchase order.
    how can i retrieve that values?

    Hi,
    The long texts 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 TDOBJECT, which indicates which text object the long text belongs to, TDID which indicates the Text ID and TDNAME 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 READ_TEXT. 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 Go To --> Header, you 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.
    TREC-TDSPRAS = SY-LANGU.
    TREC-TDID = 'ECCS'.
    TREC-TDOBJECT = 'ZECCS'.
    TREC-TDNAME = Z_ACCOUNT.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    ID = TREC-TDID
    LANGUAGE = TREC-TDSPRAS
    NAME = TREC-TDNAME
    OBJECT = TREC-TDOBJECT
    TABLES
    LINES = LINES
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    NOT_FOUND = 4
    OBJECT = 5
    REFERENCE_CHECK = 6
    WRONG_ACCESS_TO_ARCHIVE = 7
    OTHERS = 8.
    Details:
    Language DE
    Text ID F01 Header text
    Text Object EKKO Purchasing doc. header texts
    Regards,
    Shiva Kumar

  • Read header text before saving delivery during creation

    Dear All,
    Could you please suggest, how to read the header text before saving the delivery during creation.
    Regards,

    I dont think you can do it before saving the delivery but you can after saving the delivery.
    Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .
    To read the text (as far as i know), you will need the document number (user READ_TEXT function module).
    Document number is not available in user exit  "userexit_save_document_prepare" but it is available in "userexit_save_document" .
    I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.
    good luck

  • How to read header text in MM contract (ME31K/ME32K) before saving record?

    Hi All,
    In ME31K / ME32K (Contracts), before saving the contract I would like to check if the user has entered header text in the contract or not.
    I am using customer exit MM06E005.
    Can anybody help me with this?
    Thanks in advance.

    Try creating dummy text id which will be part of text determination procedure @ Customers sales text & document header text.
    else, maintain the SO10-text against this text ID. whenver user createds quotation this text will be defaulted irrespective of the cusotmer.
          then based on if user want to modify the text they have to enter manually in this text id. print this text in header.
    Regards,
    Reazuddin MD

Maybe you are looking for