Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Material Purchase Order Text

Former Member
0 Kudos

Hi,

I need to add a new field(column) "Purchase Order Text" in my alv report from MM03 view "Purchase Order Text". This field will have the values that are entered as text in the view in a particular language.

I suppose we can obtain this text using "Read_Text" function module.

But, I am unable to use the appropriate tdobject and tdid for executing the function module.

Please suggest me if using "Read_Text" is the correct way or is there any other way to do it. I simply want to display the Purchase Order Text values.

Thanks & Regards,

Tejas Savla

1 REPLY 1

GauthamV
Active Contributor
0 Kudos

hi,

use this.


 Data:i_potxt LIKE tline OCCURS 0 WITH HEADER LINE,
       w_thead LIKE thead.

 w_thead-tdname = wa_final-ebeln.
        w_thead-tdspras = 'EN'.
        w_thead-tdid = 'F03'.
        w_thead-tdobject = 'EKPO'.

        CALL FUNCTION 'READ_TEXT'
          EXPORTING
            id                      = w_thead-tdid
            language                = w_thead-tdspras
            name                    = w_thead-tdname
            object                  = w_thead-tdobject
          TABLES
            lines                   = i_potxt
          EXCEPTIONS
            id                      = 1
            language                = 2
            name                    = 3
            not_found               = 4
            object                  = 5
            reference_check         = 6
            wrong_access_to_archive = 7
            OTHERS                  = 8.