10-07-2008 5:20 PM
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
10-07-2008 5:22 PM
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
10-07-2008 5:22 PM
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.
10-07-2008 8:48 PM
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.
10-08-2008 7:42 AM