How to read the text from the item text of the purchase order

i want to extract the text which is maintained in the purchase order item text. i used the function module read_text but it reads only the header text. can anyone help.

u have to chek the following parameters  
  ID: this textid
  language:language u maintained the text,this also important
   name: The no in which text-id is maintained
         Usually we make mistake here,the no is          combination of purchase order no and item no.
Example:420000210000010(Puchase orderno:4200002100 item no:00010)
    Object:it change based on the text-id so u can check it the document no.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
              id                      = p_var
              language                = g_f_langu
              name                    = g_f_tdname
              object                  = g_f_obj
         TABLES
              lines                   = g_t_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.
Pass the varibles as i have said and let me know if u face any problem.
Regards

Similar Messages

  • Update FI item text from PO item text

    Hi all,
                     i am trying to update FI item text(bseg) from PO item text(ekpo).I know that bseg is a culster table therefore inner join is not allow.So is there a way i can join these two tables together so i can retrieve the line item and then i'll do a modify to update into FI item text.I have tried the various codes that are posted within this forum but can never get anything to write:/ out.
                       I've manage to retrieve the various info from PO (ekpo) and also manage to update the FI text field with some random words(but both seperately).What i need now is to create a link between bseg and ekpo.
                       I have attached my coding for better understanding..Thankss
    REPORT  ZSTKLILINTEST3 LINE-SIZE 1023 LINE-COUNT 1023 NO STANDARD PAGE HEADING.
    Table Declaration
    TABLES: ekpo, ekko, bseg, zstkll_1.
    Types Declaration
    TYPES:  BEGIN OF t_bseg,
            ebeln LIKE bseg-ebeln,
            hkont LIKE bseg-hkont,
            END OF t_bseg,
            BEGIN OF t_ekpo,
            ebeln LIKE ekpo-ebeln,
            txz01 LIKE ekpo-txz01,
            bukrs LIKE ekpo-bukrs,
            ebelp LIKE ekpo-ebelp,
            hkont LIKE bseg-hkont,
            END OF t_ekpo.
    Data  Declaration
    *grab data from t_ekpo then append it to zstkcy008
    DATA: ekpo_tab TYPE STANDARD TABLE OF t_ekpo WITH HEADER LINE,
          bseg_tab TYPE STANDARD TABLE OF t_bseg WITH HEADER LINE,
          zstkll_1_tab TYPE STANDARD TABLE OF zstkll_1,
          wa_zstkll_1 LIKE LINE OF zstkll_1_tab.
    Selection-Screen
    SELECT-OPTIONS: s_bukrs FOR ekpo-bukrs,
                    s_ebeln FOR ekpo-ebeln,
                    s_hkont FOR bseg-hkont.
    INITIALIZATION EVENT
    AT SELECTION-SCREEN EVENT
    START-OF-SELECTION
    START-OF-SELECTION.
      SELECT bukrs
      FROM ekpo
      INTO CORRESPONDING FIELDS OF TABLE ekpo_tab
      WHERE bukrs IN s_bukrs.
    IF ekpo_tab[] IS NOT INITIAL.
    SELECT ekkoebeln ebelp bedat txz01 ekkobukrs
    FROM ekpo INNER JOIN ekko
    ON ekpoebeln = ekkoebeln
    INTO CORRESPONDING FIELDS OF TABLE ekpo_tab
    FOR ALL ENTRIES IN ekpo_tab
    WHERE ekko~bukrs = ekpo_tab-bukrs
    AND ekko~ebeln IN s_ebeln.
        WRITE:/ 'Extracted Data:'.
        LOOP AT ekpo_tab.
          MOVE-CORRESPONDING ekpo_tab TO wa_zstkll_1.
          WRITE:/ ekpo_tab-bukrs, ekpo_tab-ebelp, ekpo_tab-txz01, ekpo_tab-ebeln, ekko-ebeln, ekko-bedat.
          AT END OF ebeln.
           APPEND wa_zstkll_1 TO zstkll_1_tab.
          ENDAT.
          CLEAR: wa_zstkll_1, ekpo_tab.
        ENDLOOP.
        SKIP 2.
        TRY.
            CLEAR sy-dbcnt.
    INSERT zstkll_1 FROM TABLE zstkll_1_tab.
          CATCH cx_root.
            WRITE:/ 'Record(s) already exist!'.
        ENDTRY.
        WRITE:/ sy-dbcnt, ' Records are inserted.'.
    ELSE.
    WRITE:/ 'No data Selected.'.
    ENDIF.
    END-OF-SELECTION
    END-OF-SELECTION.
    REPORT  ZSTKLILINTEST13.
    TABLES:bseg.
    DATA:it_bseg LIKE bseg OCCURS 0 WITH HEADER LINE.
    PARAMETERS:p_belnr LIKE bseg-belnr,
               p_bukrs LIKE bseg-bukrs,
               p_gjahr LIKE bseg-gjahr.
    START-OF-SELECTION.
    SELECT * FROM bseg INTO TABLE it_bseg WHERE belnr = p_belnr AND bukrs = p_bukrs AND gjahr = p_gjahr.
    MOVE 'IF THIS APPEAR UPDATE IS SUCCESSFUL' TO it_bseg-sgtxt.
    MODIFY it_bseg FROM it_bseg TRANSPORTING sgtxt where belnr = p_belnr AND bukrs = p_bukrs AND gjahr = p_gjahr.
    LOOP AT it_bseg.
    WRITE:/3 it_bseg-belnr, it_bseg-gjahr, it_bseg-sgtxt.
    ENDLOOP.
    MODIFY bseg FROM TABLE it_bseg.
    COMMIT WORK.
    IF sy-subrc EQ 0.
    WRITE:/3 'BSEG TABLE UPDATED SUCCESSFULLY WITH TEXT'.
    ENDIF.

    self solved

  • How to read an article from aol finance news and the insert in mail to other aol user.

    I open up aol personal finance thru firefox. When I used aol as my provider I used to be able to send the article to another aol user by just hitting a forward tab and applying the address. Now that I dont use aol I dont have the tab and dont know how to send the article. There are a few articles that have a tab that says e mail a friend but not all of the articles.

    Hi Marc,
    Thanks for u r reply. But i am not using any java mail api to send the email. The Oracle BPEL provides an email activity for this and i am using the same to send the email. But when i include the <img> tag with "src= filename" i am unable to display the image. I think there is a ptoblem in passing the exact address of the image file. Do you have any idea abt where to place the image in order to use it in the bple process.
    -Abhi

  • How to read time stamps from a spreadsheet and calculate the difference between consecutive time stamps?

    Hi,
    I am new to Labview. This question might be a joke to some of you here, but any help would be greatly appreciated. I have a spreadsheet with time stamps and power outputs from a generator. I am supposed to calculate the difference between consecutive time stamps, which will act as a delay for the next power output update that needs to be sent. For example, lets say that I have to following data:
    Time Stamp                    Power Output
    11:00:00 AM                       3kW
    11:00:02 AM                       2.9kW
    11:00:04 AM                       3.2kW
    11:00:06 AM                       3.1kW
    The above data doesn't make any sense, but it is just for the purpose of this question.
    So, I have to read 11:00:00 AM and 3kW initially - 3kW is the initial request that is sent. Then I have to

    Repeated forum post
    Please view http://forums.ni.com/ni/board/message?board.id=170&message.id=294435
    Regards,
    Juan Galindo
    Applications Engineer
    National Instruments

  • How to read multiple lines from an external file to the Oracle data base

    Hi Guys,
    I have an external file which contains multiple lines and I want to read it to the data base .I have done it for the file if it contains one line.
    Please guide me how to retrieve all the lines into the data base.And also tell me how Oracle will come to know the end of the line in the file
    Thanks,
    Prafulla

    Hi,
    try this
    CREATE TABLE ab
    a VARCHAR2(1 BYTE),
    b VARCHAR2(2 BYTE),
    c VARCHAR2(10 BYTE),
    d VARCHAR2(11 BYTE)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY dir_name
    ACCESS PARAMETERS
    ( records delimited by newline
    fields (
    a POSITION(*) CHAR(1),
    b POSITION(*) CHAR(2 ),
    c POSITION(*) CHAR(10 ),
    d POSITION(*) CHAR(11 )
    LOCATION (dir_name:'filename.txt')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;
    Regards,
    Simma....

  • How to read a String from a simple text file.

    I have a set up popup reminders, the content of which I have entered into a text file. I read the text and display it in a specially formatted JFrame/JPanel.
    My question is, since readLine() has been deprecated, how do you read a simple line of text data from a file created by, say, notepad? I guess I could just use readLine() anyway, but I want to learn the language, and "playing by the rules" seems to be the way I should go.

    I''m guessing your referring to the readLine method of DataInputStream. Use another class, like BufferedReader, which also happens to have a method named readLine:
    BufferedReader in = new BufferedReader(new FileReader(filename));
    try {
        String line;
        while ((line = in.readLine()) != null) {
            //process line
    } finally {
        in.close();
    }

  • How to read a string from file & assign the val to a variable in batch file

    Hi,
    How to read a string from a file and assign the value to a variable then return the value to the screen in windows batch file?
    Any suggestions?
    thanks.

    Unless this is a homework question then I don't see the purpose of doing this, but....
    You should be looking a the supplied package utl_file to get the string out of the file, dbms_output to display the string and then google windows batch/command files calling sqlplus to execute your program.
    Andre

  • How to read appended objects from file with ObjectInputStream?

    Hi to everyone. I'm new to Java so my question may look really stupid to most of you but I couldn't fined a solution by myself... I wanted to make an application, something like address book that is storing information about different people. So I decided to make a class that will hold the information for each person (for example: nickname, name, e-mail, web address and so on), then using the ObjectOutputStream the information will be save to a file. If I want to add a new record for a new person I'll simply append it to the already existing file. So far so good but soon I discovered that I can not read the appended objects using ObjectInputStream.
    What I mean is that if I create new file and then in one session save several objects to it using ObjectOutputStream they all will be read with no problem by ObjectInputStream. But after that if in a new session I append new objects they won't be read. The ObjectInputStream will read the objects from the first session after that IOException will be generated and the reading will stop just before the appended objects from the second session.
    The following is just a simple test it's not actual code from the program I was talking about. Instead of objects containing different kind of information I'm using only strings here. To use the program use as arguments in the console "w" to create new file followed by the file name and the strings you want save to the file (as objects). Example: "+w TestFile.obj Thats Just A Test+". Then to read it use "r" (for reading), followed by the file name. Example "+r TestFile.obj+". As a result you'll see that all the strings that are saved in the file can be successfully read back. Then do the same: "+w TestFile.obj Thats Second Test+" and then read again "+r TestFile.obj+". What will happen is that the strings only from the first sessions will be read and the ones from the second session will not.
    I am sorry for making this that long but I couldn't explain it more simple. If someone can give me a solution I'll be happy to hear it! ^.^ I'll also be glad if someone propose different approach of the problem! Here is the code:
    import java.io.*;
    class Fio
         public static void main(String[] args)
              try
                   if (args[0].equals("w"))
                        FileOutputStream fos = new FileOutputStream(args[1], true);
                        ObjectOutputStream oos = new ObjectOutputStream(fos);
                        for (int i = 2; i < args.length ; i++)
                             oos.writeObject(args);
                        fos.close();
                   else if (args[0].equals("r"))
                        FileInputStream fis = new FileInputStream(args[1]);
                        ObjectInputStream ois = new ObjectInputStream(fis);
                        for (int i = 0; i < fis.available(); i++)
                             System.out.println((String)ois.readObject());
                        fis.close();
                   else
                        System.out.println("Wrong args!");
              catch (IndexOutOfBoundsException exc)
                   System.out.println("You must use \"w\" or \"r\" followed by the file name as args!");
              catch (IOException exc)
                   System.out.println("I/O exception appeard!");
              catch (ClassNotFoundException exc)
                   System.out.println("Can not find the needed class");

    How to read appended objects from file with ObjectInputStream? The short answer is you can't.
    The long answer is you can if you put some work into it. The general outline would be to create a file with a format that will allow the storage of multiple streams within it. If you use a RandomAccessFile, you can create a header containing the length. If you use streams, you'll have to use a block protocol. The reason for this is that I don't think ObjectInputStream is guaranteed to read the same number of bytes ObjectOutputStream writes to it (e.g., it could skip ending padding or such).
    Next, you'll need to create an object that can return more InputStream objects, one per stream written to the file.
    Not trivial, but that's how you'd do it.

  • How can I copy a paragraph of text from a Kindle book on the iPad?

    I just purchased a book to read on the Kindle app on my iPad.
    I would like to copy a paragraph of text to email to someone or to possibly quote in a blog post.
    How can I copy a paragraph of text from a Kindle book on the iPad?

    I'm very late to the conversation but thought I'd chime in since I've just been dealing with this myself. One way to copy from Kindle books is to make sure that you have your settings to backup highlights etc. online, then highlight the text in the Kindle app, go to your Kindle webpage (https://kindle.amazon.com/your_highlights) and copy the text from there.
    Remember, to be able to do this you have to set the app to backup highlights etc. I think this is set individually for each book. On my iPad the default is to backup.

  • How can I stop the program from going through all of the text previously put in.  It is making the process very slow.

    How can I stop the program from going through all of the text previously put in.  It is making the process very slow. 

    while True:
    and just indent everything else under it
    Ends when you press ^C.
    if you wish to have a way to break out of the loop, say, when you press enter at the VPC number without entering anything, add the following after your vpc input:
    if not vpc:
    break
    which will break out of the while loop and end your program.
    Last edited by buttons (2007-12-14 22:03:06)

  • How do I stop iTunes (10.7) from automatically launching upon restart?  "Open at Login" is NOT checked in the dock and I have removed the app from Login Items under Users/Groups.  I am using a MacBook version 10.7.5.  Thank you!

    How do I stop iTunes (10.7) from automatically launching upon restart?  "Open at Login" is NOT checked in the dock and I have removed the app from Login Items under Users/Groups.  I am using a MacBook version 10.7.5.  Thank you!

    Thanks for the response gakker, but I've double-checked the camera / iPhoto / Image Capture scenario, and I'm 100% positive it's got nothing to do with that.
    Plugging in my iPhone has no effect on anything related to this.
    The other thing I should have mentioned is that when iTunes on my Mac is NOT running, then nothing happens on my iPhone screen when I plug it in to my Mac. I only get the "Sync in progress" message when iTunes IS running.
    It's interesting though that you say you also get this "Sync in progress" message, albeit only for a second or two though.
    Can I just double-check something with you however... When you say:
    +"at no time was my iTunes playback interrupted"+
    do you mean the iTunes on your Mac? Because the problem I have is that the iPod-playback on my iPhone is interrupted.
    So can you clarify that for me, please? If you have music playing on your iPhone, and you then plug your iPhone into your Mac when iTunes is running on your Mac, does the music playback on the iPhone get interrupted?

  • Just moving from PC to Mac. How do you select a group of items. On the PC it was shift right click

    Just moving from PC to Mac. How do you select a group of items. On the PC it was shift right click

    In list or column view, click the item at one end of the range and then shift-click the item at the other end.
    In icon view, click on an empty part of the window and drag to select them.
    (113533)

  • HT201269 I recently switched from 4S to Galaxy S4. I am not getting texts from iphone senders. When the message is sent it goes as a imessage. How do I fix this??

    I recently switched from 4S to Galaxy S4. I am not getting texts from iphone senders. When the message is sent it goes as a imessage. How do I fix this??

    Turn off iMessage on the iPhone as should have been done prior to switching devices.
    Settings > Messages > iMessage > OFF

  • I have an Ipad 2. My wife has an Ipad mini. When we connect to Itunes it installs all the apps from one Ipad on to the other. I unchecked the box to automatically update apps, but Itunes still does so. How do I prevent Itunes from intalling apps?

    I have an Ipad 2. My wife has an Ipad mini. When we plug in to Itunes (at different times) it synchs the apps from one Ipad on to the other. We don't want this. I have uncheked the box for Automatically synch apps, but it still does this.
    How do I get Itues to see each Ipad as a separate item, and not try to keep them "equal" as far as apps installed?

    Remove the apps from iTunes with your device connected. You can basically deselect the apps that you don't want on each device. We have three IOS devices on one AppleID and they don't all have the same apps.

  • How do I put all the songs from a compilation album into the same /album/folder in Itunes v12

    How do I put all the songs from a compilation album into the same /album/folder in Itunes v12 i know in other versions it was via get info but as all of the tunes have the same album title , I am not sure what tio change to achieve this ?

    I don't see your screenshot but I assume you're starting with something like this, i.e., the compilation split into multiple albums:
    If you select all the items that you want to be in a single album, right-click > Get Info you'll see this:
    As you say, in iTunes 12 you don't see a field to enter a distinct Album Artist value.  You can, however, address this by clicking the Add Field button and selecting Album Artist:
    That makes the field available in the metadata dialog so that you can enter the required value:
    You can also show the pre-iTunes 12 version of the dialog by holding the SHIFT key when selecting Get Info - this allows you to enter the Album Artist directly:

  • How do I keep Firefox from graying out sections of the URL?

    How do I prevent FireFox from graying out sections of the URL as it appears in the location bar? I hope I can keep the mechanism to get all the information information I can about the sites I'm using.
    Please let me know whether, if necessary, I could go back to another version of FireFox to avoid the graying out feature.
    Thank you for your help with this.

    Urlbar highlighting<br>
    <br>
    This is a feature in Firefox to highlight the domain in the URL bar. Other parts will become grey. You can change a preference to make the entire URL dark. Users can revert to the old behavior by setting '''browser.urlbar.formatting.enabled''' to '''false''' in '''about:config'''.<br>
    <br>
    To change this preference:<br>
    <br>
    type about:config in the Location/URL bar and press Enter.<br>
    if you see a warning, accept (promise to be careful)<br>
    Filter: browser.urlbar.formatting.enabled<br>
    in lower panel, double-click that item to toggle value to false<br>

Maybe you are looking for

  • Could there be independent VI paths for different versions of LabVIEW?

    Hello, When jumping between different versions of LabVIEW (6.1, 7.1, 8.5) it is annoying that the current path for one becomes the current path for the other.  If I am working with LV 7.1 in a folder dedicated to 7.1 VI's, and then open LV 8.5, I don

  • Problem in activating data in datastore object

    Hello, I have an issue while activating the data in Datastore Object. I have been trying to load the data to cube 0FIAP_C02. I am going to write down all the process I am doing, so you will have a clear picture and advice me accordingly. 1.)Installin

  • Edit Proposal error in APP...

    Dear All, Can any one pls help me out on Edit Proposal error in APP... I have configured everything and going to edit proposal system is giving the message like below Company codes 1100/1100 do not appear in proposal 31.03.2008 APP; correct

  • Speech Agent - Static behind voices after applying update today

    I'm using Captivate version 4.0.1 bld 1658.  Last week I used Paul for my speech agent and he had a mild robotic tin-canny sound behind his voice, which is fine.  Today I applied an update (help --> updates) to address not being able to hear the audi

  • Deactivate ps elements 9

    how do i deactivate my ps elements 9 from my pc and to activated on a new desk top computer? thankyou