How to read text in Production Memo tab of Production Order using READ_TEXT

Hi all,
Please help me, I was able to develop a program that using READ_TEXT function module to read the Production Order long text.
Now my requirement is to read the text in the Production memo tabe of production order.
Can some one tell mee how to do it? the same program is now not working.
do i need to do any changes?

Hi,
TDOBJECT --> AUFK
TDID -->KOPF
IF your given same means it's correct i think check your coding
i will give u sample coding analyze .
REPORT  z_test1.
TABLES:
  thead.
PARAMETERS:
  p_vbeln TYPE vbak-vbeln.
PARAMETERS:
  p_textid TYPE thead-tdid.
DATA:
  BEGIN OF t_thead OCCURS 0.
        INCLUDE STRUCTURE thead.
DATA:
END OF t_thead.
DATA:
  w_line TYPE i,
  w_idx TYPE i,
  w_flag TYPE i.
DATA:
  BEGIN OF t_tline OCCURS 0.
        INCLUDE STRUCTURE tline.
DATA:
END OF t_tline.
DATA:
  w_test TYPE thead-tdname,
  w_temp TYPE string VALUE 'TEST'.
START-OF-SELECTION.
  w_test = p_vbeln.
  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      client                  = sy-mandt
      id                      = p_textid
      language                = sy-langu
      name                    = w_test
      object                  = 'VBBK'
    TABLES
      lines                   = t_tline
    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 NE 0.
    MESSAGE 'HEADER TEXT NOT FOUND' TYPE 'I'.
  ENDIF.
END-OF-SELECTION.
  LOOP AT t_tline.
    IF t_tline-tdline = w_temp.
      w_flag = 1.
    ENDIF.
  ENDLOOP.
  IF w_flag NE 1.
    t_tline-tdline = w_temp.
    APPEND t_tline.
  ENDIF.
  REFRESH t_thead.
  t_thead-tdobject = 'VBBK'.
  t_thead-tdname = w_test.
  t_thead-tdid =   p_textid.
  t_thead-tdspras = sy-langu.
  APPEND t_thead.
  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      client          = sy-mandt
      header          = t_thead
      savemode_direct = 'X'
    TABLES
      lines           = t_tline
    EXCEPTIONS
      id              = 1
      language        = 2
      name            = 3
      object          = 4.
  IF sy-subrc NE 0.
    WRITE: / 'ERROR'.
  ELSE.
    COMMIT WORK.
    WRITE: / 'TEXT SAVED'.
  ENDIF.
  LOOP AT t_tline.
    WRITE: / t_tline-tdline.
  ENDLOOP.
Regards
swamy

Similar Messages

  • How to display TEXT description from Documents tab of Product master in ISA

    Hi,
    We have product related PDF document attached with Product.
    I can access in CRM by Going
    Products--> Maintain Products.
    When I chose specific Product I can see Product related details.
    There are many tabs like "General", "Material", "Sales and Distributions", "Documents",  etc...
    "Documents" tab have 2 folders "Pictures" and "TEXTS".
    under "TEXT" folder we have PDF documents.
    it has short product name like "ASP009" and Description "ASP 009 Manual".
    When I click on any one I can see attached PDF document in Preview window in CRM.
    How I can access text description "ASP 009 Manual" on "ProductDetailsB2C.JSP" file.
    I want to display this "ASP 009 Manual" description on "ProductDetailsB2C.JSP".
    Is there any Standard Java class method available in ISA.
    I really appreciate any help on this and assign points to them for solution.
    Thanks in Advance.
    Ashish

    Here's the steps we use in our ProductDetailB2C.jsp (B2B uses same code in another file name I forget right now) to provide a link to our technical data sheets...this includes how to create a new document type in CRM as well as the code needed to display it on the ISA
    Step 1: Transaction OAC2, create Document Type example CRM_TECHDA
    Step 2: Transaction SPRO-> CRM -> Basic functions -> Content Management -> Define template for folders
    Step 3: Double click template PRODUCT_MATERIAL
    Step 4: Right-click Documents, Choose Create Folder
    (Make sure to input DOCUMENT TYPE(Properties TAB) = Step 1 value example CRM_TECHDA)
    Step 5: Add a new set of lines of code for each of the types of 'text' you have created to display as a link in the .jsp file(s), changing the CAPPED name to the appropriate name of your specific field below:
    <% if (currentItem.getAttribute("DOC_P_CRM_TECHDA") != null && !currentItem.getAttribute("DOC_P_CRM_TECHDA").equals("")) { %>
                   <tr>
                     <td colspan="2"><a href="<isa:imageAttribute guids="DOC_P_CRM_TECHDA,DOC_P_CRM_TECHDA" name="webCatItem" defaultImg="mimes/shared/no_pic.gif"/>" target="_new"><img src="<%=WebUtil.getMimeURL(pageContext, "b2c/mimes/images/pfeil_rechts_mit_rand_blau.gif") %>" alt="" border="0"> Technical Data Sheet</a></td>
                   </tr>
                   <% } %>
    Edited by: Mike Anecito on Jul 17, 2008 8:27 AM
    I forgot to add, that you could add the attribute information Sateesh talks about where we just use "Technical Data Sheet"
    on the third line of the code...we don't bother with the name of the file as you're needing since we had too many people
    naming them and the overall consistency was horrible.

  • How to read text in .kep files

    hey friends,
    how to read text in .kep files
    please help me .
    with regards,
    s.jagadeesh babu

    Hi,
    check this link:
    http://help.sap.com/saphelp_nw04s/helpdata/en/8f/42a293e35011d29b340000e8a4b41d/content.htm
    .kep files are SapShow Training Files. They can be played with sapshow.exe in Knowledge Warehouse.
    SAP Show is KW Viewer Application. You can use it to see “Kep” files. It can be run in windows without the SAP environment. To run SAP Show (4.6D version) you just need 3 files. First is SAP show executable file, another two are “Sapstg.dll” and “ZLib.dll”. You can easily find these files on internet.
    Regards,
    Niraj

  • How to read text file line by line...?

    how to read text file line by line, but the linefeed is defined by user, return list of string, each line of file is a item of list?
    please help me.
    Thanks very much

    Brynjar wrote:
    In Groovy, you would do something like:
    linefeed = "\n" //or "\r\n" if the user chose so
    lines = new File('pathtofile').text.split("${linefeed}")This is one of the things that has always annoyed me about Sun's sdk, i.e. the lack of easy ways to do things like that. You always end up making your own utilities or use something like Apache's commons.io. Same goes for jdbc and xml - I'll wait for appropriate topics to show how easy that is in Groovy :)I generally agree, but what I really don't like about the Groovy text-file handling niceties: They don't care about encoding/always use the default encoding. And as soon as you want to specify the encoding, it gets a lot more complex (granted, it's still easier than in Java).

  • Step by Step"How JSP read text file :

    Hi ,
    Any one know or have a good site to show step by step how JSP read text file.
    TQ.

    There is no difference Between reading a text file from JSP and reading a text file from Java.
    Just follow the same steps for JSP also.

  • How to insert text in the middle of an existing textfile using java

    Hi,
    How to insert text in the middle of an existing textfile using java i/o streams??

    Mickie wrote:
    I shudn't delete the file...Then you will have the old file and the new file - do you want that?
    and I have to insert text not only at a single place ....got to do at many places in the text file!!then extrapolate on the procedure outlined in reply #1 .

  • How far can text messages be tracked with a court order?

    how far can text messages be tracked with a court order?

        Hi sherry1234,
    Thanks for the excellent question. We are able to provide an average of 3-5 days of text messaging content with a court order.
    Thanks,
    NidiaA_VZW
    Please follow us on Twitter @VZWSUPPORT

  • ASCP: How do I get the list of 1st level planned orders using msc_full_pegging table

    How do I get the list of 1st level planned orders using msc_full_pegging table, is any one having the script.

    Do you mean supply_type? If so, yes it will be in pegging table as supply_type or otherwise you can join this table with msc_supplies by joining transaction_id column and get the order_type from that which will be the supply type.
    Thanks,
    Abhishek Sharma
    P.S:- Try opening the discussion in a separate window and see if you get the option to mark it correct or helpful,

  • How can read BOM component date before save the production order??

    Hi Experts,
    In our company, we need to develop a program to read the BOM component data of the production order
    before we save the production order.
    That for example ,when we create and release a production order , before we save the production
    order,we want a porgram to read the BOM component data. If some component data can meet our
    requriement (may be if there is material requirement quantity>100 EA),then the system will pop up a
    small dialog box to remind us.
    There is user exit PPCO0007 and PPCO0007.But it seems they only can read the head data of the
    production order before we save the production order. And the BOM component data of the production
    order are saved in the RESB(Reservation Table).So if we do not save the production order,all the BOM
    component data are not saved in the RESB table.
    So how can slove the problem??
    How can read component date before save the production order??
    Are there any other user exit we can use???

    Hi Just wanted to check am I right that you are trying to check if you have enough Materials Available before you release or Save the order right ? if this is your business objective then when you create order you have material availability tab which checks and gives error if shortage is there. Please let me know if is this wht you asking for ?

  • How to read text from a web page

    I want to read text from a web page. Can any body tell me how to do it.

    Ok i tell you detail. visit the site " http://seriouswheels.com/" you will a index from A to Z which are basically car name index i want to read each page get car name and its model and store it in data base. I you can provide me the code i will be very thankful.

  • How to read text file content in portal application?

    Hi,
    How do we read text file content in portal application?
    Can anyone forward the code to do do?
    Regards,
    Anagha

    Check the code below. This help you to know how to read the text file content line by line. You can display as you require.
    IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
    IResourceContext resourceContext = new ResourceContext(user);
    String filePath = "/documents/....";
    RID rid = RID.getRID(filePath);
    IResource resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
    InputStream inputStream = resource.getContent().getInputStream();
    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
    String line = reader.readLine();
    while(line!=null) {
          line = reader.readLine();
         //You can append in string buffer to get file content as string object//
    Regards,
    Yoga

  • How to read text file contain chinese character ?

    Hi XI Expert,
    I have scenario to read text file contain Chinese Character using sender file adapter. but every i was check from sxmb_moni all the chinese character looks different. and also the target file also i has changes.
    Please advise me how to maintaine the chinese character in PI 7.0 SP17.
    Thank You and Best Regards
    Fernand

    Hi,
    Refer these threads..
    Receiver file adapter corrupting characters
    Problem in converting special characters in input text file
    Here is one more useful guide..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Nov 17, 2008 3:47 PM

  • How to change text of Customer Data tab in ME21N

    Hi all,
    I have implemented the screen exit for Tcode ME21N, as a result of which another tab has appeared inthe item level by the text CUSTOMER DATA. Now i want to change the text of this tab?
    Can any one suggest me how canthis be done?
    Regards
    Sabah

    Hi,
    Go to SE38 -> SAPLXM06 ->Display ->GoTo ->Text Elements ->Text Symbols
    and insert the required custom name for the tab and the SYM value should be equal to the screen number which you are adding.
    For E.g. adding a new tab in purchase order item , we have to add the text element with the SYM = 111 and the text as per the requirement at the above location.
    Save & Activate the changes.
    Please Note that we have to click on "Maintain Changes In Logon Language" , i.e. we have to make and save these chagnes in EN language only.
    Regards,
    Praveen

  • How to read text file?

    Dear Everyone
    I have coding below.
    {color:#3366ff}*Text file scores.txt*
    {color}1 1 1
    2 2 2
    *{color:#3366ff}Java class jtableone.class{color}*
    import javax.swing.*;
    public class jtableone extends JApplet {
    public static void main(String[] args) throws Exception {
    {color:#ff0000}//Read file scores.txt{color}
    java.io.File file = new java.io.File("scores.txt");
    Scanner input = new Scanner(file);
    while (input.hasNext()){
    String id = input.next();
    String firstname = input.next();
    String lastname = input.next();
    {color:#ff0000}//System.out.println(id +" "+ firstname +" "+ lastname);
    {color}}
    input.close();
    {color:#ff0000}//Crearte JTable{color}
    private String[] columNames =
    {"ID", "First Name", "Last Name"};
    private Object[][] data = {
    //{"12", "Tom", "Clark"},
    //{"13", "helen", "Tan"}
    {color:#ff0000}//Display JTable{color}
    private JTable jTable1 = new JTable(data, columNames);
    public jtableone(){
    add(new JScrollPane(jTable1));
    Can you tell me What i do next?
    Create a Object[][] data which can read text file.
    Thanks
    sevenlon

    sevenlon wrote:
    Can you tell me What i do next?How are we supposed to know? We have no knowledge of what your assignment is.
    Create a Object[][] data which can read text file.Then do that. Create the 2D array and store the data in it.
    Also when posting code use code tags. Paste code, highlight it and click CODE button.

  • How to read text from PDF and HTML

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    reading from a file is always the same. using the same strategy used for a .txt will allow you to read a .pdf file.
    Offcourse in itself it will be useless becuase pdf files have a special internal structure.
    html files are identical to txt files.
    What are you trying to accomplisch with the files you are reading ?

Maybe you are looking for

  • Audio level setting for music tracks in dance recital video project

    I am editing dance recital using the CD music tracks and editing in the audience clapping, some of the music tracks have lower audio level than others. I am setting up the audio levels between -3dB (for the lower audio tracks) up to -6dB (for the hig

  • Service Requested what does that mean?

    Hello everyone, i checked the repair service of my Ipod touch 4g and is says since two days "Service Requested". Do i need to send my Ipod first ? Or what do i need to do ?

  • Can I restore a Windows Elements 10 backup to an iMac running Elements 10 or 11? and how?

    I have a 500GB backup of Elements 10 in one library.  I'd like to switch from my Windows 8 PC to one of the new iMacs.  Is there a process to do a restore on the Mac?  Thanks for any guidance or link.

  • Setup IM on Nokia 5233

    Hello  Since i bought this handset It says it has inbuilt IM feature which i am unable to find and configure,.  and also After updating to new firmware by updates its now has slowed a lot and eating a lot of battery .  so shall i need to stick it or

  • ITunes Screensaver Not Working

    Hi I cannot get the iTunes Screensaver to work. It will not appear in the list of options in the System Preferences for screensaver. The saver files is def there in HD>System>Library>Screensavers. My iTunes Music Folder is stored on an external HD, a