Skip to Content
Author's profile photo Rambabu Kunuku

How to Read Long Phrase text in program?

Reading long Phrase text is bit tricky in the program. Use below to do this.

1. Get RECNROOT from ESTPH table for Phrase key.

2. Get RECN from ESTPP for the language and RECNROOT.

3. We can identify whether Longtext is there or not, using field ESTPP-LTXTFLG.

4. use READ_TEXT function module as we do for other modules. use below Input parameters

TEXT ID – 0001

Language – Phrase language

Text Object – C_SHES_TPP

TDNAME = CONCATENATE ‘ESTPP’
              ESTPP-RECN
             ‘00000000000000000000’

Example.

Please check attached the program.

Assigned Tags

      2 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Christoph Bergemann
      Christoph Bergemann

      Dear Rambabu

      why not using SAP standard options to do so? The use of long text on level of identifier, phrase, and userdefined texts is "normal" and therefore the read of the data is supported by standard APIs/BAPIs.

      C.B.

      Check e.g.

      BAPI_BUS1091_GETDETAIL

      http://www.se80.co.uk/sapfms/b/bapi/bapi_bus1091_getdetail.htm

      and refer to: http://scn.sap.com/thread/1775987

      Author's profile photo Rambabu Kunuku
      Rambabu Kunuku
      Blog Post Author

      Hi C.B,

      Yes. this Object can be used.

      Thanks

      Rambabu