How to read Production Order Long Text data in ABAP program

Hi friends,
  I have the issue in reading the ' Long Text '  tab view data of production order
in CO03 transaction.Please can some body help me out to get this in ABAP program.
Regards,
Rajesh Akarte

ok goto the long text, double click it, or use the small pencil, so that you proceed to the text editor.
Once you are there, use the menu: goto->head
a small popup will come up, stating the information you need.
what you need is OBJECT, ID, Language and NAME.
with those information you can feed the FM READ_TEXT.
and woooohooo there you go

Similar Messages

  • How to read Sales order Item Text of item node?

    Hi Sap Guru's,
    I have urgent requirement, i want to read Sales order item text of item node.
    can anybody give detail code.
    Thanks in Advance,
    Venkat

    hi venkat,
    take a look at this code
    data:
      git_line type standard table of tline.
    data:
      gwa_head type thead,
      gwa_line type tline.
    data:
      v_first type c.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = '0002'
        language                      = sy-langu
        name                          = '1000000122000010'
        object                        = 'VBBP'
      IMPORTING
        HEADER                        = gwa_head
      tables
        lines                         = git_line
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8.
    loop at git_line into gwa_line.
      at first.
        move 'X' to v_first.
      endat.
      if v_first eq 'X'.
        write: / gwa_line-tdline+10.
        clear v_first.
      else.
        write: / gwa_line-tdline.
      endif.
    endloop.

  • How can i get order long text?

    Hi Experts
                 We are developing one order report and trying to get order long text, but we search several tables and we didn't fine which table is the right table to save long text, anyone can tell me how to achieve long text for order.  Thanks in advance.
    Best regards
    george

    Hi George,
    STXL: Long Text (Header - English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='KOPF' and XTDSPRAS in ('E')
    XTDNAME is MANDT+AUFNR
    STXL: Long Text (Operations- English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='AVOT' and XTDSPRAS in ('E')
    XTDNAME is MANDTAUFPLAPLZL
    STXL: Long Text (Components- English)
    Extract all records where XTDOBJECT='AUFK' and XTDID='MATK' and XTDSPRAS in ('E')
    XTDNAME is MANDTRSNUMRSPOS
    This may help you
    Babu

  • Production order long text

    Hi,
                       I am using save_text function module to store long text in production order. The function module is returning sy-subrc as zero but the text is not displayed in the order. But when I use read_text function module to read the long text it is returning the value which I have passed in save_text. The problem is getting saved in the databas but it is not displayed in the order. Can anyone help in this regard?
    with regards,
    usha.

    Hello everybody,
    I finally found a solution that does work in deed!
    After executing the function module "SAVE_TEXT", you have to execute "COMMIT_TEXT" AND do a commit work afterwards. In the end, the field LTEXT in table AUFK needs to be updated with the language key.
    Please see sample code below, where 12345678 represents the number of your production order.
    DATA: es_header TYPE thead,
          es_lines TYPE tline,
          et_lines LIKE TABLE OF es_lines,
          wa_aufk TYPE aufk.
    CONCATENATE sy-mandt '000012345678' INTO es_header-tdname.
    es_header-tdobject = 'AUFK'.
    es_header-tdid = 'KOPF'.
    es_header-tdspras = sy-langu.
    es_lines-tdformat = '*'.
    es_lines-tdline = 'Sample text line one'.
    APPEND es_lines TO et_lines.
    es_lines-tdformat = '*'.
    es_lines-tdline = 'Sample text line two'.
    APPEND es_lines TO et_lines.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
    *   CLIENT                = SY-MANDT
        header                = es_header
    *   insert                = ''
       savemode_direct       = ' '
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   FUNCTION              =
    *   NEWHEADER             =
      TABLES
        lines                 = et_lines
    * EXCEPTIONS
    *   ID                    = 1
    *   LANGUAGE              = 2
    *   NAME                  = 3
    *   OBJECT                = 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.
    CALL FUNCTION 'COMMIT_TEXT'
      EXPORTING
        object                = es_header-tdobject
        name                  = es_header-tdname
        id                    = es_header-tdid
        language              = es_header-tdspras
        savemode_direct       = ' '
    *   KEEP                  = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   COMMIT_COUNT          =
    * TABLE
    *   T_OBJECT              =
    *   T_NAME                =
    *   T_ID                  =
    *   T_LANGUAGE            =
    COMMIT WORK AND WAIT.
    SELECT SINGLE * INTO wa_aufk FROM aufk WHERE aufnr EQ '000012345678'.
    wa_aufk-ltext = 'D'.
    MODIFY aufk FROM wa_aufk.

  • PP Production order 'Long Text'

    In Production orders I am creating long text. Then I go to COOIS to run reports on these orders. There is a field in the report which says 'long text' which only shows a 'X' for long text exists. Is there a way I can shoow in the report what the long text verbiage is?
    thanks a lot

    thanks a lot but in the COOIS report I want it to display the long text. Is this possible?

  • How to read service order change document data

    Hi Experts,plz help me,my requirement is to read the service order change document data,for that one i need to read from cdhdr and cdpos tables,so what i need to do.in input parameters for cdhdr table in place of ibjectclass and objectid what i need to pass.plz help me.

    Same for CDHDR and CDPOS.
    OBJECTCLAS = 'ORDER'
    OBJECTID = combination of client(AUFK-MANDT) + Order category(AUFK-AUTYP) + Order number (AUFK-AUFNR)
    for example
    OBJECTCLAS = 'ORDER'
    OBJECTID = '10030004001108788'
    Chaiphon

  • How to read sales order header text...

    hi,
    For any sales order, at the header level there will be multiple texts. I want to read one of them named 'Letter of credit numbr'. How can I do that in my program. I have the sales order number with me.
    thks

    First of all, use FM READ_TEXT.
    But for that, must find (in tcode SE75) wich is the object and text ID. Object is, VBBK, ID you can find (I don't have SAP system here now).
    You must use:
    name = sales order number
    language = 'E'?
    object = 'VBBK'
    ID = found in SE75 tcode.
    Regards,
    Valter Oliveira.

  • How to read a alv grid row data from standard program

    Hi All,
    I am working on transaction LBK1. Actually when you will open this transaction in the left hand side it will show you the data in tree. When you click on a notification node it will show the relevant data in right side. In which there is a operation tab . In this tab the data comes in alv grid. If user selects a row then I have to get that selected row value. There is also a toolbar above on the tree side. There are some buttons which execute our implementation class where I can put the code.  
    Can anyone please help me out? How I can read that selected row in our class/method?
    Thanks in advance.
    Best Regards
    Ritu

    Setting and getting selected rows (Columns) and read line contents
    You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows and set_selected_rows. There are similiar methods for columns.
    Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected row(s) to read the information in the rows fronm the table. In the examples below the grid table is named gi_sflight.
    Data declaratrion:
    DATA:
    Internal table for indexes of selected rows
    gi_index_rows TYPE lvc_t_row,
    Information about 1 row
    g_selected_row LIKE lvc_s_row.
    Example 1: Reading index of selected row(s) and using it to read the grid table
      CALL METHOD go_grid->get_selected_rows
        IMPORTING
          et_index_rows = gi_index_rows.
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines = 0.
        CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
             EXPORTING
                  textline1 = 'You must choose a valid line'.
        EXIT.
      ENDIF.
      LOOP AT gi_index_rows INTO g_selected_row.
         READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
        ENDIF.
      ENDLOOP.
    Example 2: Set selected row(s).
      DESCRIBE TABLE gi_index_rows LINES l_lines.
      IF l_lines > 0.
        CALL METHOD go_grid->set_selected_rows
            exporting
              it_index_rows = gi_index_rows.
      ENDIF.

  • How to read characters from a text file in java program ?

    Sir,
    I have to read the characters m to z listed in a text file .
    I must compare the character read from the file.
    And if any of the characters between m to z is matched i have to replace it with a hexadecimal value.
    Any help or suggesstions in this regard would be very useful.
    Thanking you,
    khurram

    Hai,
    The requirement is like this
    There is an input file, the contents of the file are as follows, you can assume any name for the file.
    #Character mappings for Japanese Shift-JIS character set
    #ASCII character Mapped Shift-JIS character
    m 227,128,133 #Half width katakana letter small m
    n 227,128,134 #Half width katakana letter small n
    o 227,129,129
    p 227,129,130
    q 227,129,131
    r 227,129,132
    s 227,129,133
    t 227,129,134
    u 227,129,135
    v 227,129,136
    w 227,129,137
    x 227,129,138
    y 227,129,139
    z 227,129,142
    The contents of the above file are to be read as input.
    On encountering any character between m to z, i have to do a replacement with a hexadecimal code point value for the multibyte representation in the second column in the input file.
    I have the code to get the unicode codepoint value from the multibyte representation, but not from a file.
    So if you could please tell me how to get the characters in the second column, it would be very useful for me.
    The character # is used to represent the beginning of a comment in the input file.
    And comment lines are to be ignored while reading the file.
    Say i have a string str="message";
    then i should replace the m with the unicode code point value.
    Thanking you,
    khurram

  • Make produciton order long text mandatory...

    Hi All..
    We want to make produciton order long text mandatory. Tried with SHD0 where we unable to find the proper field. please confirm is it possible with any ways???
    one more thing ... what ever the long text has been entered in the produciton order, how to pull the text to confirmation screen (CO11N).
    Please provide the inputs....
    Edited by: srinivas rapelly on Dec 19, 2008 12:26 PM

    Hi Srinivas,
    SAP has provided the Long Text Tab screen only for Information purpose. Hence it is not possible to make it mandatory.
    One thing can be tried out - Try to use some User Exit in Production Order creation and see that the order will not be saved untill the Long Text field is entered with some text.
    Similarly use one more User Exit in Production Order Confirmation and see that the data from the Production Order Long text screen is populated.
    Take the help of ABAPer.
    Hope this will help.
    Regards
    radhak mk

  • Order long text

    when we create a sales order.there is a field called text for each line item.in that there is a text item called item- production note.
    if i write anything over here.can i see that in my production order long text.
    my issue is.
    i want some text to be transferred from sales order to production order. and i want to print that text with my production order.

    Use READ_TEXT to read the long text from Sales Order and then use COPY_TEXTS function module to copy it to process/production order long text. Your developer will be able to help you with this.
    Then in your shop floor layout, you can read the production order text.
    Other option is that you can directly read the Sales Order long text in your shop floor layout using READ_TEXT.
    Try and revert back.
    Regards,
    Swapnil

  • How to embed images in long text of PM Notifications/Orders

    Dear Sir,
    How to embed images in long text of PM Notifications/Orders? Kindly help.
    Thanks & Regards
    PM Team.

    Hi,
      Unfortunately, You will not be able to view the graphics within the Long text editor screen.Only Limited word functionality is available on these editors.
      You will have to store these pictures separately as an attachment, through generic object services and then view them through that.
    Regards
    Narasimhan

  • How to retrieve long text data

    Dear all,
    How can i retrieve the long text for document line item
    Gone thru this in forum..but unable to get the correct one
    some say to use READ_TEXT FM
    Pls advise steps
    Rgds
    Naresh

    Hi,
    Please find here with link for bringing the long text.
    http://scn.sap.com/thread/497205
    Regards,
    Ramana

  • How to create Long Text in Module Pool Program

    Hi all,
    I want to develop a new module pool program and I want to use Long text screen in this program and also want this text will store in table.I never develop such type of module pool before.This long text will like sales order long text.Please let me know the steps how I can develop such type of program and how I save long text huge data in table.
    Thanks & Regards
    Nirmal

    Hai ,
    here you have to use custom control, for this
    DATA: line(256) TYPE c,
          text_tab LIKE STANDARD TABLE OF line,
          field LIKE line.
    1)  Create custom control in your screen
    2)   CREATE OBJECT: container EXPORTING container_name = 'TEXTEDIT',   "--> (this is custom control name in screen)
                       editor    EXPORTING parent = container.
    3)  CALL METHOD editor->get_text_as_stream  "This method reads data from custom control , inserts into itab 'text_tab' 
             IMPORTING       
              text = text_tab.                                       "
          READ TABLE text_tab  INTO line INDEX 1. read the text into wa 'line'
    if you want more clarity , see  'ABAPDOCU' >ABAP USER DIALOGS>    COMPLEXSCREEN ELEMENTS-->  DEMO CUSTOM_CONTROL

  • Locking / grey out long text data in transaction IW32

    Hi, I read in Locking/grey out long text data (From Coding point of view ) that there is a way to block the long text description via configuration.
    Well. Could you tell me how to do this, please???
    Thanks a lot!

    I set a breakpoint there and the program never stop there.
    I'll try to describe my problem.
    I go to IW32 transaction, at the components tab I click on the Long Text button of each component of the order and I can modify it. Well, the client doesn't want that.For a type of order, the user cannot modify that text.
    The more strange thing is that I tried to get the text with READ_TEXT function with the same parameters as the standard and it tells me that the text doesn't exists.
    I'm starting to hate this module....

Maybe you are looking for

  • IPAD 2 is extremely Sluggish HELP

    why cant the update actually make this problem go away. anyone has a solution for the crap apple puts out... paying top dollar for a quality product in return i get a useless product that I cant stand using because of the "new and improved " updates.

  • Deploy Embedded features of WE81IP using MDT 2013

    I would like to deploy Windows Embedded 8.1 Industry Pro and configure the embedded features using MDT 2013 as described in this Windows Embedded blog post. I've imported the WE81IP image and created a task sequence but the Install Embedded Features

  • WAAS 4.1 - NME + VB

    I think an NME + 1 Windows 2008 Core Server VB is a good idea. Does anybody else think so? Would it be reasonable to expect Cisco to release such a product in not-too-distant-future?

  • Macbook pro not opening pdf files

    I am a student and teachers send files on a website and every time I try to open them, they download and then a bunch of jumbled letters appear. No one else in my class has this problem and I need the notes for tomorrow, what do I do?

  • Please HELP! Flashed N900 Big mistake :o(

    I flashed my N900 under advice.  Now it shows no sim card present. Tried other sims dont show them either.  I cannot live without my phone...  To all you clever people out there who no something, anything or lots more than this idot typing this, I am