PO (Tcode- ME21N)  In Item Text "Material PO text" to be non editable

Dear All ,
              We have specific requirment in PO (ME21N). In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
(1) Item Text
(2) Info Record PO text
(3) Material Po text
(4) Deivery Text
As per our configuration in "Material PO text"  Material long description picking from Material master .We want to make this text field Non Editable.
In SAP there is facility to configure non editable  Texts , But it will non editable all text fields.
How we can non editable only Material Po text .
Thanks in Advance.
Regards
Abhishek Tiwari

Hi,
   As of my knowledge, there is no purchase organization specific texts exits. But you may make use of the purchase organization specific text in vendor master. You may define purchase organization specific text for vendor master and then maintain the text in vendor master. You may configure to copy the vendor master text to PO automatically. Refer the doc: Copy Control in MM (Conditions, Fields and Texts): (3rd part)
Regards,
AKPT

Similar Messages

  • Text editor control to be made non-editable

    Hello Experts,
    Need a small help from you people.
    I need to make a text editor control  non-editable,i n a sub-screen; depending upon the value of a field on the main screen. Can you please let me know of the easiest way out with this?
    Thanks in advance,
    Kumud.

    HI,
    You can write a code in PAI of main screen. there by using loop at screen you can make that field editable or disabled.
    Code sample:
    loop at screen.
    ****condition for value check
    if screen-name = 'TEXT_EDIT_NAME'
    screen-output = 1.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    Hope this will help you.

  • How to disbale the Purchase order item texts (Material PO text)

    Hi,
    In ME22n, i want to disable texts for material  at item level . i tried thru SPRO , but it disables header and item level texts.
    How can i achieve this ? 
    Thanx,

    Hi Khushi,
    I think you cannot disable them but you can delete them using T.Code OLME(But it is not suggestible).follow the path Purchase Order>Texts for Purchase Orders>Define Text Types for Item Texts. Here you have to delete.
    But why you want to disable any text to be written in PO?
    Thanks & Regards,
    Rock.

  • In PO -Me21N Material PO text field non editable

    Dear All ,
                  We have specific requirment in PO (ME21N). In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
    (1) Item Text
    (2) Info Record PO text
    (3) Material Po text
    (4) Deivery Text
    As per our configuration in "Material PO text"  Material long description picking from Material master .We want to make this text field Non Editable.
    In SAP there is facility to configure non editable  Texts , But it will non editable all text fields.
    How we can non editable only Material Po text .
    Thanks in Advance.
    Regards
    Abhishek Tiwari

    Dear Chetan,
                          I think you have not understood my complete question. First thing i dont want to non editable Short text field.
    In my problem  i In Item level ther is free text field "Item Texts". In Item texts we have 4 text fields
    (1) Item Text
    (2) Info Record PO text
    (3) Material Po text
    (4) Deivery Text
    In above text fields ,I want to non editable only "Material PO Text" only....
    Regards
    Abhishek Tiwari

  • Changing of Material sales text heading

    In VA01/VA02 tcode, when i m entering into the material details..then i will be getting Sales Document Item..in that Texts ..i am having a text 'Material sales text' i want ot rename it as 'Refernce Number'...how to do the above heading change

    Hi,
    If you are talking about the name of the text in left side menu, this is a customization setting. Please check with your functional.
    You can check the T-code VOTXN
    Below threads gives you some idea on configuration.
    sales order header text configuration
    Text  configuration
    Thanks,
    Vinod.

  • Getting text ID and Text object  associated with item texts in PO...

    Hi,
    To print standard text on smartform for a given item in purchase order, I need to find the text ID and object associated with it.
    There are various texts like item text, Info record PO text, Material PO Text, Delievry Text, etc...
    Now when I go to ME22N, and select item detail for any item -> Texts , how do I get text ID, and object associated with it ?

    Hi ,
        Use table stxh,stxl
        FM read_text.
        you can view the text id by following
        this link
         me23->header-text-double click on text->menu goto->
         header        
    Regards
    Amole

  • Material PO text is not copied to PR from PS

    Dear team,
    when we create the manual PR, "material master - purchase order text" is automatically copy to "PR item text - Material PO text"
    When we create PR from PS, these text is not adopting into PR.
    Could you pl provide some suitable solution for the same
    Thanks & Regards
    R.Saravanan

    Hi Alex,
    We are in SAP ECC EHP3 and therefore no need for network enhancement.
    The problem is solved. It is due to the derivation rule in FMDERIVE. I have fixed by adding derivation.
    Thanks for your support
    regards
    Srinivasan Desingh

  • Price history of Text material

    Hi All,
    I need a report for Price history of PO for the text material. Text material includes Asset, cosumable items etc. I have tried by using me1p but coud not get the result. please let me know the correct way to get that...
    Looking forward for your fruitful solution.
    thanks,
    mx

    Hi,
    As ME1P stores prices per inforecord, so to get the price history for the text material you
    have to maintain an info record per material group. You create an info record material group wise
    in ME11 t-code. In ME11 give the vendor number, plant and purchase organisation number and keep the
    Material field blank. Then in the next screen, you  maintian your material group and then
    in the purchasing data screen maintain the price.
    Then create a PO with this combination and the same will be updated in ME1P. You can also
    refer table EKBE.
    Thanks,
    Atal

  • Help needed for changing MATERIAL SALES TEXT

    We have a requirement where in i need to chang the existing material sales text. GOTO --> ITEM --> TEXT --> Material Sales text. iwould like to know if it would be possible to do it using a CATT program?? If yes any pointers if no what would be the best approach for this.

    You can also use a LSMW.
    You are lucky, this is exactly the eg taken in SAP help :
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    Hope this helps,
    Erwan

  • ME21N / ME22N - material PO text blank / obligatory

    Hi experts,
    I have a requirement where I need to make the material PO text in ME21N / ME22N obligatory for all items in some types of POs. Also, this text must not be changed after saving the PO.
    I am already using the enhancement MM06E005 (EXIT_SAPMM06E_012). Inside the include, I'm importing the table CATALOG from the memory id SAPLSTXD. Using this table is fine, but the problem is that the user can add blank lines (pressing enter once or twice), and the table CATALOG recognizes the user has inputted valid text. Then, I have a few questions:
    1. Is there any way this can be achieved through customizing? (Except for the blank lines, I suppose)
    2. Is there any way to retrieve the text inputted by the user during runtime? I've tried to access the table GT_CONTROL-TEXTLINES, but it only contains the text for the current item / text type being displayed at that moment.
    3. During debug, I've found some standard memory IDs with the name SAPLSTXD<item number>, which I presume that contain the texts. Does anyone know the names of the tables inside those memory IDs? Or how to access them?
    TIA,
    Leo

    Hi Leonardo Schmidt ,
    1) Not sure, but probably by customizing you will not be able to make Item Long Text mandatory.
    2)Try the following,Under the method CHECK of BADI ME_PROCESS_PO_CUST, there is an interface called IF_LONGTEXTS_MMGET_TEXT, which should help to resolve your issue. Or you can even use method PROCESS_ITEM of the same BADI, there is an interface called IF_LONGTEXTS_MMGET_TEXT.
    Thanks & Regards,
    Faheem.

  • ME21N: "Material PO text" in EXIT

    People,
    In ME21N, under some conditions, we would like to create a text in "Material PO text" for each item. This text will be create when the PO is saved, in EXIT EXIT_SAPMM06E_012.
    In this exit I´m using:
            CALL FUNCTION 'INIT_TEXT'
              EXPORTING
                id       = 'F03'
                language = sy-langu
                name     = lc_name
                object   = 'EKPO'
              IMPORTING
                header   = lc_header
              TABLES
                lines    = ti_lines_ni
              EXCEPTIONS
                id       = 1
                language = 2
                name     = 3
                object   = 4
                OTHERS   = 5.
            CALL FUNCTION 'SAVE_TEXT'
                 EXPORTING
                      header    = lc_header
                      insert = ''
                      savemode_direct       = 'X'
                 IMPORTING
                      newheader = lc_header
                 TABLES
                      lines     = ti_lines_ni
                 EXCEPTIONS
                      id        = 1
                      language  = 2
                      name      = 3
                      object    = 4
                      OTHERS    = 5.
        CALL FUNCTION 'COMMIT_TEXT'
          EXPORTING
            object   = lc_header-tdobject
            name     = lc_header-tdname
            id       = lc_header-tdid
            language = lc_header-tdspras.
    ===============================
    The text does not appear automatically (after save the PO).
    But if we change to Display Mode, the text appears! What else I have to do to display the text immediatelly?
    Thanks a lot!

    Where did you check the text (ME22N / ME23N)??

  • How to pass text to Material Sales text, item note, while creating a sales

    hi ,
       i tried my level best with the help of friends (SDN).
       but i am unable to reach the target.
       my requirement is to enter text into
        1) material sales text
        2) item note
        3) packing note
        4) delivery text
        5) purchase order text
        6) production memo
        in sales order using bapi. here i am submitting the code i wrote.
      kindly some one help me.
       thanks in advance
    regards,
    pavan
    <i>report  zmybapi1        .
    data : my_order_header_in like bapisdhd1 occurs 0 with header line,
           my_order_header_ix like bapisdhd1x occurs 0 with header line.
    data : my_orderitemsin like bapisditm  occurs 0 with header line,
           my_orderitemsix like bapisditmx occurs 0 with header line.
    data : my_order_partners like bapiparnr occurs 0 with header line.
    data : my_return like bapiret2 occurs 0 with header line.
    data : w_vbeln like bapivbeln-vbeln.
    data:
         my_orderschedulesin like bapischdl occurs 0 with header line,
         my_orderschedulesinx like bapischdlx occurs 0 with header line.
    data : my_orderconditionsin like bapicond occurs 0 with header line,
           my_orderconditionsinx like bapicondx occurs 0 with header line.
    <b>data : my_ordertext like bapisdtext occurs 0 with header line.</b>
    start-of-selection.
    this is to assign values to internal table my_order_header_in
      my_order_header_in-doc_type   = 'TA'.
      my_order_header_in-sales_org  = 'JNJ1'.
      my_order_header_in-distr_chan = '02'.
      my_order_header_in-division   = 'J1'.
      my_order_header_in-sales_off  = 'JNJ1'.
      my_order_header_in-purch_no_c = 'testbapipo'.
      my_order_header_in-purch_date = sy-datum.
      my_order_header_in-req_date_h = sy-datum.
      append my_order_header_in.
    this is to assign values to internal table my_orderitemsin
      my_orderitemsin-material      = '000000000000000727'.
      my_orderitemsin-plant         = 'JNJ1'.
      my_orderitemsin-target_qu     = 'EA'.
      my_orderitemsin-target_qty    = '10'.
      append my_orderitemsin.
    this is to assign values to internal table my_order_partners
      my_order_partners-partn_role = 'AG'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
      my_order_partners-partn_role = 'WE'.
      my_order_partners-partn_numb = '0000000011'.
    append my_order_partners.
    This is to assign values to internal table my_orderschedulesin
      my_orderschedulesin-itm_number = '10'.
      my_orderschedulesin-itm_number = '000010'.
      my_orderschedulesin-req_qty   = '10'.
      my_orderschedulesin-SCHED_LINE = '0001'.
      append my_orderschedulesin.
    *This is to assign values to internal table my_orderconditionin
      my_orderconditionsin-itm_number = '000010'.
      my_orderconditionsin-cond_type = 'ZPR1'.
      my_orderconditionsin-cond_st_no = ''.
      my_orderconditionsin-cond_count = '1'.
      my_orderconditionsin-cond_value = '40'.
      my_orderconditionsin-cond_p_unt = '1'.
      my_orderconditionsin-currency = 'INR'.
      append my_orderconditionsin.
    <b> my_ordertext-itm_number = '00010'.
      my_ordertext-text_id = '0002'.
      my_ordertext-langu = 'EN'.
      my_ordertext-langu_iso = 'EN'.
      my_ordertext-text_line = 'This is for item note'.
      my_ordertext-format_col = '*'.
      my_ordertext-function = '009'.
    *</b>  <b>append my_ordertext.</b>
      my_order_header_ix-updateflag = 'I'.
      my_order_header_ix-doc_type   = 'X'.
      my_order_header_ix-sales_org  = 'X'.
      my_order_header_ix-distr_chan = 'X'.
      my_order_header_ix-division   = 'X'.
      my_order_header_ix-sales_off  = 'X'.
      my_order_header_ix-purch_no_c = 'X'.
      my_order_header_ix-purch_date = 'X'.
      my_order_header_ix-req_date_h = 'X'.
      append my_order_header_ix.
      my_orderitemsix-updateflag    = 'I'.
      my_orderitemsix-material      = 'X'.
      my_orderitemsix-target_qty    = 'X'.
      my_orderitemsix-plant         = 'X'.
      my_orderitemsix-target_qu     = 'X'.
      append my_orderitemsix.
      my_orderschedulesinx-updateflag = 'I'.
      my_orderschedulesinx-sched_line = '0001'.
      my_orderschedulesinx-req_qty    = 'X'.
      append my_orderschedulesinx.
    my_orderconditionsinx-itm_number = '000010'.
      my_orderconditionsinx-cond_type = 'ZPR1'.
      my_orderconditionsinx-cond_st_no = 'X'.
      my_orderconditionsinx-cond_count = 'X'.
      my_orderconditionsinx-updateflag = 'U'.
      my_orderconditionsinx-cond_value = 'X'.
      my_orderconditionsinx-cond_p_unt = 'X'.
      my_orderconditionsinx-currency = 'X'.
      append my_orderconditionsinx.
      call function 'BAPI_SALESORDER_CREATEFROMDAT2'
        exporting
      SALESDOCUMENTIN               =
          order_header_in               = my_order_header_in
          order_header_inx              = my_order_header_ix
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
        importing
          salesdocument                 = w_vbeln
        tables
          return                        = my_return
          order_items_in                = my_orderitemsin
          order_items_inx               = my_orderitemsix
          order_partners                = my_order_partners
        ORDER_SCHEDULES_IN            =  my_orderschedulesin
         order_schedules_inx           = my_orderschedulesinx
       ORDER_CONDITIONS_IN           =  my_orderconditionsin
       ORDER_CONDITIONS_INX          =  my_orderconditionsinx
      ORDER_CFGS_REF                =
        <b>ORDER_TEXT                    = my_ordertext</b>
                 if sy-subrc ne 0.
        write: my_return-message, my_return-number, my_return-type.
      else.
         call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          =
         IMPORTING
           RETURN        =
          write: my_return-message, my_return-number, my_return-type.</i>

    hi prashant,
        i tried the save_text but , i am unable find the exact value which i have to enter for the field tdobject.
    this is updated program as per u r instruction.
    <b>Text object not found</b>
    the code now is
    <b>report  zmybapi1        .
    data : my_order_header_in like bapisdhd1 occurs 0 with header line,
           my_order_header_ix like bapisdhd1x occurs 0 with header line.
    data : my_orderitemsin like bapisditm  occurs 0 with header line,
           my_orderitemsix like bapisditmx occurs 0 with header line.
    data : my_order_partners like bapiparnr occurs 0 with header line.
    data : my_return like bapiret2 occurs 0 with header line.
    data : w_vbeln like bapivbeln-vbeln.
    data:
         my_orderschedulesin like bapischdl occurs 0 with header line,
         my_orderschedulesinx like bapischdlx occurs 0 with header line.
    data : my_orderconditionsin like bapicond occurs 0 with header line,
           my_orderconditionsinx like bapicondx occurs 0 with header line.
    data : my_ordertext like bapisdtext occurs 0 with header line.
    data : my_header like thead occurs 0 with header line.
    data : my_tline like tline occurs 0 with header line.
    start-of-selection.
    this is to assign values to internal table my_order_header_in
      my_order_header_in-doc_type   = 'TA'.
      my_order_header_in-sales_org  = 'JNJ1'.
      my_order_header_in-distr_chan = '02'.
      my_order_header_in-division   = 'J1'.
      my_order_header_in-sales_off  = 'JNJ1'.
      my_order_header_in-purch_no_c = 'testbapipo'.
      my_order_header_in-purch_date = sy-datum.
      my_order_header_in-req_date_h = sy-datum.
      append my_order_header_in.
    this is to assign values to internal table my_orderitemsin
      my_orderitemsin-material      = '000000000000000727'.
      my_orderitemsin-plant         = 'JNJ1'.
      my_orderitemsin-target_qu     = 'EA'.
      my_orderitemsin-target_qty    = '10'.
      append my_orderitemsin.
    this is to assign values to internal table my_order_partners
      my_order_partners-partn_role = 'AG'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
      my_order_partners-partn_role = 'WE'.
      my_order_partners-partn_numb = '0000000011'.
    append my_order_partners.
    This is to assign values to internal table my_orderschedulesin
      my_orderschedulesin-itm_number = '10'.
      my_orderschedulesin-itm_number = '000010'.
      my_orderschedulesin-req_qty   = '10'.
      my_orderschedulesin-SCHED_LINE = '0001'.
      append my_orderschedulesin.
    *This is to assign values to internal table my_orderconditionin
      my_orderconditionsin-itm_number = '000010'.
      my_orderconditionsin-cond_type = 'ZPR1'.
      my_orderconditionsin-cond_st_no = ''.
      my_orderconditionsin-cond_count = '1'.
      my_orderconditionsin-cond_value = '40'.
      my_orderconditionsin-cond_p_unt = '1'.
      my_orderconditionsin-currency = 'INR'.
      append my_orderconditionsin.
    my_ordertext-doc_number = '0000008632'.
      my_ordertext-itm_number = '00010'.
      my_ordertext-text_id = '0002'.
      my_ordertext-langu = 'EN'.
      my_ordertext-langu_iso = 'EN'.
      my_ordertext-text_line = 'This is for item note'.
      my_ordertext-format_col = '*'.
      my_ordertext-function = '009'.
      append my_ordertext.
      my_order_header_ix-updateflag = 'I'.
      my_order_header_ix-doc_type   = 'X'.
      my_order_header_ix-sales_org  = 'X'.
      my_order_header_ix-distr_chan = 'X'.
      my_order_header_ix-division   = 'X'.
      my_order_header_ix-sales_off  = 'X'.
      my_order_header_ix-purch_no_c = 'X'.
      my_order_header_ix-purch_date = 'X'.
      my_order_header_ix-req_date_h = 'X'.
      append my_order_header_ix.
      my_orderitemsix-updateflag    = 'I'.
      my_orderitemsix-material      = 'X'.
      my_orderitemsix-target_qty    = 'X'.
      my_orderitemsix-plant         = 'X'.
      my_orderitemsix-target_qu     = 'X'.
      append my_orderitemsix.
      my_orderschedulesinx-updateflag = 'I'.
      my_orderschedulesinx-sched_line = '0001'.
      my_orderschedulesinx-req_qty    = 'X'.
      append my_orderschedulesinx.
    my_orderconditionsinx-itm_number = '000010'.
    my_orderconditionsinx-cond_type = 'ZPR1'.
    my_orderconditionsinx-cond_st_no = 'X'.
    my_orderconditionsinx-cond_count = 'X'.
    my_orderconditionsinx-updateflag = 'U'.
    my_orderconditionsinx-cond_value = 'X'.
    my_orderconditionsinx-cond_p_unt = 'X'.
    my_orderconditionsinx-currency = 'X'.
    append my_orderconditionsinx.
      call function 'BAPI_SALESORDER_CREATEFROMDAT2'
        exporting
      SALESDOCUMENTIN               =
          order_header_in               = my_order_header_in
          order_header_inx              = my_order_header_ix
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
        importing
          salesdocument                 = w_vbeln
        tables
          return                        = my_return
          order_items_in                = my_orderitemsin
          order_items_inx               = my_orderitemsix
          order_partners                = my_order_partners
        ORDER_SCHEDULES_IN            =  my_orderschedulesin
          order_schedules_inx           = my_orderschedulesinx
      ORDER_CONDITIONS_IN           =  my_orderconditionsin
      ORDER_CONDITIONS_INX          =  my_orderconditionsinx
      ORDER_CFGS_REF                =
        ORDER_TEXT                    = my_ordertext
                 if sy-subrc ne 0.
        write: my_return-message, my_return-number, my_return-type.
      else.
         call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          =
         IMPORTING
           RETURN        =
          write: my_return-message, my_return-number, my_return-type.
    my_header-tdobject = ''.
    my_header-tdname = ' '.
    my_header-tdid = '0002'.
    my_header-tdspras = 'EN'.
    append my_header.
    my_tline-tdformat = '*'.
    my_tline-tdline = 'This is for item note'.
    append my_tline.
    call function 'SAVE_TEXT'
      exporting
      CLIENT                = SY-MANDT
        header                = my_header
      INSERT                = ' '
      SAVEMODE_DIRECT       = ' '
      OWNER_SPECIFIED       = ' '
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      tables
        lines                 = my_tline
    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.
    endif.</b>
      thanks in advance
    regards,
    pavan

  • Display 'item text' and 'material PO text' in a purchase order ?

    hello,
    i am creating a purchase order and i have inputted the 'item text' and 'material PO text' in the ITEM TEXT of the ITEM DETAILS section. I have a smart forms where i am displaying the purchase order by displaying fields from various tables like ekko,ekpo,t024,eket etc ..
    I want ti display the 'item text' and the 'material PO text' on the smartform but i cant find the table or the fields which keep these values(text) ??
    help me on this one ? thanks for yur time...

    c the example below:
    PERFORM read_text USING g_transp 'Z010'.
    FORM read_text USING l_text l_id.
      DATA : lt_text TYPE TABLE OF tline WITH HEADER LINE.
      DATA : l_name LIKE thead-tdname.
      CLEAR l_name.
      l_name = g_delivery.
      CLEAR lt_text.
      REFRESH lt_text.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
      CLIENT                        = SY-MANDT
          id                            = l_id
          language                      = sy-langu
          name                          = l_name
          object                        = 'VBBK'
        TABLES
          lines                         = lt_text
       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.
      CLEAR l_text.
      LOOP AT lt_text.
        CONCATENATE l_text lt_text-tdline INTO l_text.
      ENDLOOP.
    ENDFORM.                    "read_text

  • PO line item text and material po text

    Hi,
    I want to fetch the text maintained at item po level and print the same with form..
    I am passing following parameters in my Include text in smartforms..
    Text name         &VAR6& ..... concatenated po number and item
                            ( 4700000011 + 00010) = 470000001100010
    Text object       EKKO
    Text ID             F01
    Language          EN
    but its failing to fetch the same....I guess the problem is with var6 value...not sure
    also for material po text i m passing
    Text name         &G_ZEKPO-MATNR&  ..
    Text object       MATERIAL
    Text ID           BEST
    Language          EN
    This is also failing.....
    In both cases text is maintained...  what is the problem??
    Pls help..

    See this sample code
    ABAP READ_TEXT functions to read the SAP Long Text
    You have to used the READ_TEXT functions to read the SAP long text. e.g. Sales Order, Purchase Order Item text etc.
    To check your long text header, go into the long text. Click Goto -> Header
    Example of READ_TEXT functions reading tables PBIM - Independent requirements for material.
    REPORT ZTEXT .
    TABLES: PBIM.
    stxh, stxl, stxb - trans tables for text
    ttxit - text on text-ids
    ttxot - Short texts on text objects
    Transaction MD63
    SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,
                    S_WERKS FOR PBIM-WERKS.
    DATA: BEGIN OF HTEXT.
            INCLUDE STRUCTURE THEAD.
    DATA: END OF HTEXT.
    DATA: BEGIN OF LTEXT OCCURS 50.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF LTEXT.
    DATA: BEGIN OF DTEXT OCCURS 50.
    DATA:   MATNR LIKE PBIM-MATNR.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF DTEXT.
    DATA: TNAME LIKE THEAD-TDNAME.
    SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
      MOVE PBIM-BDZEI TO TNAME.
      CALL FUNCTION <b>'READ_TEXT'</b>
           EXPORTING
              CLIENT                  = SY-MANDT
              ID                      = 'PB'
              LANGUAGE                = 'E'
              NAME                    = TNAME
              OBJECT                  = 'PBPT'
            ARCHIVE_HANDLE          = 0
         IMPORTING
              HEADER                  = HTEXT
         TABLES
              LINES                   = LTEXT
         EXCEPTIONS
              ID                      = 1
              LANGUAGE                = 2
              NAME                    = 3
              NOT_FOUND               = 4
              OBJECT                  = 5
              REFERENCE_CHECK         = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
      LOOP AT LTEXT.
        IF LTEXT-TDLINE NE ''.
          MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
          MOVE PBIM-MATNR TO DTEXT-MATNR.
          APPEND DTEXT.
        ENDIF.
      ENDLOOP.
    ENDSELECT.
    LOOP AT DTEXT.
      WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.
    ENDLOOP.
    http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm
    Also
    *Internal table to store standard texts
    DATA: IT_TEXTS like T_LINE occurs o with header line.
    CALL FUNCTION 'READ_TEXT'
         EXPORTING
            CLIENT                  = SY-MANDT
              id                      =       "Text ID
              language                =       "Laguage
              name                    =       "Text name
              object                  =       "text object
            ARCHIVE_HANDLE          = 0
       IMPORTING
            HEADER                  =
         tables
              lines                   = IT_TEXTS   "Internal table
       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.

  • Material PO Text in display mode

    Hi,
    When we create Purchase order with the material Code, then short text is copied from Material Master Also Material PO text is also copied from the same.
    Requirement is if material code is present in PO ( ME21N) then short text of material should be in display mode & Material Po Text( in Text tab) is also to be in display mode
    User should not be allowed to change the same , at present it is allowing the user to change short text of Material & Material PO text also.
    Please suggest
    Thanks In adavnce
    Regards,
    Rajesh

    Hi
    Check it in SPRo- sap img- Material management- Purchasing- Purchase order- Define screen layout at document level.
    Select NBF and then select Basic data item and select short text to display
    It will work
    Regards,
    Raman

Maybe you are looking for