Abnormal behavior of READ_TEXT for PO text in ME23N

Hi SAP Gurus,
I am facing the following issue in reading PO text from ME23N.
I am using function module READ_TEXT to read the text.
For the first time the function module is not reading the text.
If I edit the text and save, Then the function module is working.
Screen Shots given below.
Regards,
Pavan.

Hi Pavan,
if you create PO via ME21N the System takes the text from Material (look in MM03).
The item itselve does not have an own text.
If you Change the text, this Text belongs only for this item, not to material in General.
That's the reason.
Hope it helps.
regards, Dieter

Similar Messages

  • Table for item text in ME23N

    Hi,
          I want to know the table name from which i can fetch the item text which is shown in ME23N transaction.
    Thanks & regards
    RK

    Hi,
    F04 --> Delivery
    F01 --> Item Text
    F02 --> Info rec POText
    F03 --> Material PO Text
    F05 --> Info Record Note
    otherwise check for table TTXID.
    aRs

  • Validation for PO text in the material master :- BADI implementation

    Hi experts,
    I am trying to do a validation on the Purchase Order Text (long text) which must always be filled in Language EN and DE.
    Thus if a user tries to edit a material in MM02 or creates a new one in MM01 - this box of long text (PO text) must be filled, else it should throw an error.
    i created a BADI and inside that i am calling the FM read_text , but it check for only existing text already saved in the database.
    WHAT ABOUT THE RUN-TIME (ex creating a material).
    or what if the user purposely deletes an existing PO long text and then tries to save it (database might already have a PO long text saved for that material).
    Kindly help me if there is any FM which can be called to check in the Runtime if the PO long text is filled or if we can do some customizing and make that PO long text Mandatory.
    Please not we need this field mandatory only for only 03 plants, that's where the problem is coming.
    Many Many thanks in advance.
    Rittik.

    Hello Rittik,
    Please use Exit 'EXIT_SAPLMGMU_001' for your requirement. I checked and below code (READ_TEXT) picks latest text from the transaction in processing and hence can be used for raising any error. Let me know if you face any issues.
    if WMARC-WERKS = '...........' or '...'.
      lv_name = WMARA-matnr.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
    *   CLIENT                        = SY-MANDT
          id                            = 'BEST'
          language                      = 'E'
          name                          = lv_name
          object                        = 'MATERIAL'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
        TABLES
          lines                         = lt_line
        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.
    endif.
    Regards,
    Diwakar

  • Merging the internal table and structure for PO text material download

    Hi Experts,
       I have a query regarding downloading the PO text from material master.Actually i have successfully downloaded the PO text using TLINE structure along with FM like READ_TEXT and GUI_Download.But when i had to append the PO text for corresponding material,there i got the problem.Let me explain clearly.Below is my coding for PO text download.In that i have used TLINE structure/table for get the POtext via FM READ_TEXT.Also I am using an internal table(It_tab) which consist fields of TDFORMAT,TDLINE and MATNR,So what i need is,i want to merge TLINES structure/table into internal table(it_tab).That is I want to display the PO text along with material No.That is my requirement.But when i append the it_tab using my coding,it was not displaying in the correct order.Attached screen shot is the sample output(excel sheet).column B and C respectively for POtext and material number.I want to get in correct order as it gets the misarrangemnt.(i.e) PO text and material number should come with the same line.So Please help me to complete this task.Kindly point out if i am wrong.
    PO TEXT download from material master :
    DATA :  BEGIN of IT_LINES OCCURS 0.
                INCLUDE STRUCTURE TLINE.
    DATA : END of IT_LINES.
    DATA : t_line TYPE STANDARD TABLE OF IT_LINES WITH HEADER LINE.
    TYPES: BEGIN OF tp_matnr,
            matnr type TDOBNAME,
            END OF tp_matnr.
          DATA:lv_matnr TYPE matnr,
           t_mara TYPE TABLE OF tp_matnr WITH HEADER LINE.
    SELECT-OPTIONS : s_matnr FOR lv_matnr.
    SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TL1.
    PARAMETERS: P_FILE(50) TYPE C.
    *PARAMETERS: P_DOWNL as CHECKBOX.
    SELECTION-SCREEN END OF BLOCK BL1.
    INITIALIZATION.
    TL1 = 'PO TEXT DOWNLOAD'.
    START-OF-SELECTION.
    SELECT matnr FROM mara INTO TABLE t_mara WHERE matnr IN s_matnr.
    DATA : BEGIN OF it_tab OCCURS 0,
             TDFORMAT type TDFORMAT,
             TDLINE type TDLINE,
             MATNR type TDOBNAME,
             END OF it_tab.
    LOOP AT t_mara.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    *   CLIENT                        = SY-MANDT
        id                            = 'BEST'
        language                      = 'E'
        name                          = t_mara-matnr
        OBJECT                        = 'MATERIAL'
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
    *   OLD_LINE_COUNTER              =
       TABLES
        lines                         = t_line
    * 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.
         APPEND LINES OF t_line to it_tab.
         it_tab-tdline = t_line-tdline.                                           
         it_tab-matnr = t_mara-matnr.
         APPEND it_tab.
      ENDIF.
      ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = 'D:\Test.xls'
    FILETYPE = 'ASC'
    WRITE_FIELD_SEPARATOR = 'X'
    SHOW_TRANSFER_STATUS = 'X'
    TABLES
    DATA_TAB = it_tab

    Hi Manish,
      Thanks for the support.I did simple modify in coding.Now I got the output in the correct order.If i follow the step of it_tab-tdline = t_mara-matnr, it is storing in the column B as you mentioned.But it was displayed in the second line.So i did adjust your below coding.Finally got the solution.Thanks manish
    DATA wa_line LIKE LINE OF t_line.
    LOOP AT t_line INTO wa_line.
      it_tab-tdformat = wa_line-tdformat.
      it_tab-tdline = wa_line-tdline.
      it_tab-matnr = IT_TAB-matnr.
      APPEND it_tab.
    ENDLOOP.
    Regards,
    Kavi

  • Urgent clearing data in container for free text

    I HAVE A CONTAINER FOR FREE TEXT.
    I HAVE A CREATE BUTTON IN MY SCREEN EWHEN I PRESS CREATE IT ASKD FOR ID AND FREE TEXT THEN I SAVE  AND IT GETS SAVED IN A ZTALE TABLE.
    WHEN AFTER SAVING IT I GO TO INITIAL SCREEN AND PRESS CREATE AGAIN THEN IT ASKS FOR ID AND IN THE CONTAINER I SEE THE FPREVIOUS TEXT.
    CAN YOU GUYS LET ME KNOW AS TO WHAT I NEED TO DO.
    I TREID CLEARING AND REFRESHING MYTABLE WHICH I HAVE USED IN THE FOLLOWING CODE.
    pbo
    if editor is initial.
    CREATE OBJECT TEXTEDIT_CUSTOM_CONTAINER
    EXPORTING
    CONTAINER_NAME = 'TEXTEDITOR1'
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_ERROR = 2
    CREATE_ERROR = 3
    LIFETIME_ERROR = 4
    LIFETIME_DYNPRO_DYNPRO_LINK = 5.
    IF SY-SUBRC NE 0.
    add your handling
    ENDIF.
    CREATE OBJECT EDITOR
    EXPORTING
    PARENT = TEXTEDIT_CUSTOM_CONTAINER
    WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
    WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>FALSE
    EXCEPTIONS
    OTHERS = 1.
    refresh mytable.
    call METHOD editor->SET_TOOLBAR_MODE
    EXPORTING TOOLBAR_MODE = 0.
    *call METHOD editor->SET_ENABLE
    *EXPORTING ENABLE = ' '.
    CALL METHOD editor->set_readonly_mode
    EXPORTING
    readonly_mode = 1.
    ENDIF.
    CLEAR MYTABLE.
    FREE MYTABLE.
    endif.
    IF SY-SUBRC NE 0.
    CALL FUNCTION 'POPUP_TO_INFORM'
    EXPORTING
    TITEL = V_REPID "--> program name
    TXT2 = SPACE
    TXT1 = 'Error in flush'.
    ENDIF.
    tHANKS
    let me know
    swathi

    For example, this program works really well with saving long text using the SAVE_TEXT function.  Here you need to create the object/id in SE75.  For this program you enter the id on the right like 999999 and enter the text on the left, execute and the text is saved, now change the id to 999998 and hit enter, notice the text is blank, now enter 999999 again, notice the text for this id has come back,  this is because the program uses READ_TEXT to retrieve the text.
    report zrich_0001.
    data:
          dockingleft  type ref to cl_gui_docking_container,
          text_editor    type ref to cl_gui_textedit,
          repid type syrepid.
    data: begin of header.
            include structure thead.
    data: end of header.
    data: begin of lines occurs 0.
            include structure tline.
    data: end of lines.
    data: textlines type table of tline-tdline,
          wa_text type tline-tdline.
    data: xthead type thead.
    parameters: p_id(10) type c.
    at selection-screen.
      if p_id is initial.
        message e001(00) with 'Enter an ID'.
      endif.
    at selection-screen output.
      repid = sy-repid.
      if dockingleft is initial.
        create object dockingleft
                    exporting repid     = repid
                              dynnr     = sy-dynnr
                              side      = dockingleft->dock_at_left
                              extension = 300.
        create object text_editor
                    exporting
                         parent     = dockingleft.
      endif.
      if p_id <> space.
        xthead-tdobject = 'ZPT_DET'.
        xthead-tdid     = 'Z001'.
        xthead-tdname = p_id.
        clear lines. refresh lines.
        call function 'READ_TEXT'
          exporting
            id                            = xthead-tdid
            language                      = sy-langu
            name                          = xthead-tdname
            object                        = xthead-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.
        clear textlines.
        loop at lines.
          wa_text = lines-tdline.
          append wa_text to textlines.
        endloop.
      endif.
      call method text_editor->set_text_as_r3table
         exporting
               table              = textlines
         exceptions
               others             = 1.
    start-of-selection.
      call method text_editor->get_text_as_r3table
         importing
               table              = textlines
         exceptions
               others             = 1.
    * Set SAPscript Header
      clear header.
      header-tdname =  p_id .         "Name
      header-tdobject = 'ZPT_DET'.       "Object
      header-tdid = 'Z001'.              "Id
      header-tdspras = sy-langu.
    * Move text from container to function module table
      clear  lines.  refresh lines.
      loop at textlines into wa_text .
        lines-tdline = wa_text.
        append lines .
      endloop.
      call function 'SAVE_TEXT'
           exporting
                client   = sy-mandt
                header   = header
           tables
                lines    = lines
           exceptions
                id       = 1
                language = 2
                name     = 3
                object   = 4
                others   = 5.
    Yes, this is implemented using a selection screen, but the same principals apply and this can  be easily converted to a dynpro application.
    Regards,
    Rich Heilman

  • How to find the text id for the text in the sales order

    Hi all,
    How to find the text id for the item-text in the sales order?
    There are different Text available in  the sales order under item like Warehouse instruction, CSR instruction...
    I want to know the corresponding Text id for the text ELECTRONIC ORDER COMMENT.
    Table TTXID contains the validation of the Text id.
    Please help me in knowing the way to identify the text-id from the text list..
    Thanks foryour help
    Suresh Kumar

    U can fetch the texts for the items using
    Read_text.
    Example:
        g_f_tdname = xvttp-vbeln.
        g_f_obj = p_obj.
        g_f_langu = 'DE'.
        REFRESH g_t_lines.
        CLEAR g_t_lines.
        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.
    The Required fields are,
    Text-id ,language,name,object.
    Let me know if you further require help.
    Regards

  • Claim and Approval action giving abnormal behavior in worklist app in oim11gr2.

    hi guys
    we have following environment...
    weblogic 10.3.6 and oim 11g r2 bp03 in two node clustered environment which are load balanced with apache http server,everything was working fine with initially configured oim front end url wls.mycompany.com:80,Then we were forced to change the oimfront end url to identity.mycompany.com:80 by following
    1.oim config change
    2.call back url and worklist app changes in approval task of each composites in soa-infra
    Observed following abnormality behavior in approval workflow of application instance provisioning after oimfrontend url change.
    when approver click on approval task ,the claim action popup window displayed successfully
    when approver claim the action and it completes and popup window persist there with blank display(Observed a chopping  of  front end url from  identity.mycompany.com/identity/faces/...... to www.identity.com/faces/.........Then approver needs to close the popup).
    when approver click on approval task the approve action popup window displayed successfully
    when approver approve the action and it completes and popup window persist there with blank display(Observed a chopping  of  front end url from  identity.mycompany.com/identity/faces/...... to www.identity.com/faces/.......Then approver needs to close the popup).
    Application instance provisioning is working fine even though the above abnormal behavior was there...
    Why this url change is happening and How can we fix the abnormal url change from identity.mycompany.com/identity/faces/......  to   www.identiy.com/faces/...... ?
    Regards,
    Jdev

    Hi Ravi,
    Thnaks for your help.I will add this code and i will let you know.
    But the thing is recently 3 months back i implemented this ESS part in one server it is working fine.I'am able to apply Leave,Claims,Loan,travel from EP and the approver is able to approve the requests from UWL.When clicking on the Request in UWL it is launching a webdynpro iview and i'am able to perform the actions.
    Now i'am facing the problem and i hope i did the same config which i did previuosly.
    What would be the reason any Patch levels?
    Thanks and Regards,
    Praveen

  • Wht is TEXT ID for Header Text in a Purc. Order?

    Hi Experts,
    Am looking to dispaly the header text of my_purchase order into a report, by using READ_TEXT.
    But. am unable to figure out the TEXT ID for this HEADER TEXT for my_PO.
    So,
    1 - Wht is TEXT ID for it? ok, after some reasearch , i came to know that, its F01.......so, how to know the F01 is for header text? i know how to know this for sales order!!
    2 - In which tables stiores all thsese info?
    replies appreciated.
    thanq
    Edited by: SAP ABAPer on Oct 14, 2008 9:27 PM

    Rob's Suggestion is the best way to find that out.
    One other way is to Double click on the Text area. This will open a text editor.
    Then Navigate to Goto->Header. This should give you the required Info.

  • Confused by the behavior on importing simple tagged text

    I have a tagged text file with the following content beween the dashed lines. (the lines are not part of the file). Both IText and BText are predefined paragraph sytles.
    <ASCII-WIN>
    Price <ParaStyle:IText>AA<cPosition:Superscript>aa<cPosition:> - <ParaStyle:BText>BB<cPosition:Superscript>bb<cPosition:>
    Once imported,  the result is not what I expected. Specifically,
    1. All text are imported with the BText paragraph style.
    2. It shows the "bb" as superscripted, but not the "aa".
    Why is that? And how can I have different styles for the AAaa part versus the BBbb part?
    This can be reproduced on CS5 and CS5.5. Didn't try any older versions.
    Thanks.

    When I think of it, the first behavior makes sense, because the text were specified as a continuous line without line break, they are treated as a single paragraph. And for a paragraph, only one paragraph can be used, and the one that is specified later, BText in this example, wiins.
    But still, why does the import routine ignores the superscript character style on "aa"  before the second  paragraph style tag?

  • Table For Header Text Old Value

    Hi,
    Could Anyone helpme in finding the table for Header text of the PO , as We know  to find the current PO Header Text,by usinf th FM READ_text but i want to to find the header text for the po before Updated , Thanks in advance
    Regards
    Priyanka M Jain

    Hi,
    I believe that you need the text just after entering in PO during the runtime.
    just enter the text and go in the debugg mode, check for table text / textline in the global parameters and you will find the text.
    Hope this helps,
    Raj

  • No shortcut key for "Add Text" tool?

    we have shortcuts for comment tool (S), textbox tool, but why not one for Add text tool? or did i miss it out? I'm on acrobat XI pro right now.please advise!    

    ah yes, you're right.
    this brings me to another question. in previous versions of acrobat, when in hand tool or selection mode (v), i can just double click on MY own typed text (not comments) to add on/modify my contents. however, nothing happens when i double click now. i can highlight my text but can't delete it, nor can i add anything to it.
    a prompt comes up and tells me to use the text edit tools. when i tried using the text insert tool, it simply adds a popup comment to my text, instead of editing the text that i wrote.
    i just realized i could hit "Edit text and images" button that reveals all the textboxes, then i can edit the text. again that has no shortcut, and is one step more than what i usually would do.
    what can i do to revert this behavior to the old versions?    if not, what would be the shortcut for edit text+images?

  • BIWS abnormal behavior

    Hi Friends
    Currently we are working on  SAP BW 7.4,BO 4.1,Dashboards 4.1 environment
    1)Bex query based BO Webi Report is designed and running fine with 4 blocks
    2)4-Blocks based 4-BIWS are used to design Dashboard
    3)When dashboard is previewed for 1st time any 1BIWS will return data but not other 3 and in 2nd refesh any 3-BIWS returns data but not 1-BIWS
    Could any one suggest the probable reason behind this abnormal behavior
    Regards
    Bose

    Hi Bose,
    This was a bug and is fixed in BI 4.1 SP 5 Patch 3.After appying this patch follow the step in  KBA as below
    You can follow the KBA 2114577 - Dashboard is randomly not complete when consuming multiple
    different "Document As A Web Service" web services
    Regards,
    Amit

  • Help. I'm trying to create a DTP for 0INDUSTRY texts

    I'm trying to create a DTP for 0INDUSTRY (texts), but when I assign the DataSource (0INDUSTRY_TEXT), it shows me the next error message: "Target 0industry (type IOBJ) is not active".
    Of course I've checked 0industry and it is already active!
    I have the same issue with several characteristics.
    Do somebody knows what can I do?

    Hi,
        Try comin out of rsa1 transaction and then going back in...else login and logoff.  Its generally happens that the changes dont get reflected and it then shows that error.
    assign points if helpful
    Regards.

  • Can you no longer have a background color for the text box in the new version of hp photo creations

    just updated to the new version of HP Photo Creations, used to be able to have a colored background for the text box - is that no longer possible in this new (not better) version????!!!!! Uuuuuuuuuugh

    Hi Lainey.
    Thanks for asking. We're working on bringing back that feature. In the meantime, here's another way to add text backgrounds: Add a placeable graphic and then click the Arrange button to send it to the back, behind the text.
    That approach also gives you more interesting shapes. The new alignment guides make it a snap to align a graphic with a text box. In the example below (it may take a day for the image to show up here), I also used the new Premium Editing Features to change the color of the graphic.
    P.S. — Applying a thick border to an empty text box (also using the Premium Editing Features) is another way to create a background shape. That has the advantage of letting you pick any color for the box. You'll also find several new text styles at the bottom of the new text menu.
    Let us know if we can help further,
    RocketLife 
    RocketLife, developer of HP Photo Creations
    » Visit the HP Photo Creations Facebook page — news, tips, and inspiration
    » See the HP Photo Creations video tours — cool tips in under 2 minutes
    » Contact Customer Support — get answers from the experts

  • How do I make phone vibrate longer for a text message?

    I have an iphone 4s and I am wondering how I can set the vibrate longer for a text message.  I have it turned on.  I have set the vibrate to "Rapid".
    I vibrates long for a phone call, but I want it to vibrate longer than a short burst, which is repeated later, on a text message.
    Can anyone help?

    You can't.

Maybe you are looking for