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: 

NAME in READ_TEXT

Former Member
0 Kudos

In READ_TEXT FM

NAME is of Sturucture THEAD-TDNAME

what's the thing excatly has to pass here.

I Want to read Sales Order Item Text of a particular Text type.

Where to find the corresponding things to be passed to this FM for this situation

4 REPLIES 4

Former Member
0 Kudos

Hi,

The easiest way is to put a break-point in the function module and then display the sales text via VA03 (or whatever you are using). You will see all the parameters that you need to pass as they vary depending upon the type of text.

Darren

valter_oliveira
Active Contributor
0 Kudos

You have to concatenate VBELN and POSNR with zeros, i.e, like: 00123456789000010. If it's header text, just use VBELN like: 00123456789.


CONCATENATE vbap-vbeln vbap-posnr INTO w_name.
CALL FUNCTION 'READ_TEXT'
   EXPORTING
     client                  = sy-mandt
     id                      = '0002'
     language                = 'E'
     name                    = w_name
     object                  = 'VBBP'
   TABLES
     lines                   = tline
   EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.

Regards,

Valter Oliveira.

Former Member
0 Kudos

Go into VA03 and navigate to the text you need to print. Double click on it to bring it up in the editor, choose Goto -> Header and you will see the values that are being passed to READ_TEXT. This is likely the sales order number or a business partner for TDNAME.

Former Member
0 Kudos

Name would be ur sales order number..

Deepak