‎2007 Dec 14 4:26 AM
i am using fm read_text to read text from va02 in my report.
input parameters are -
client - sy-mandt
id - '0001'
language - sy-langu
name - '0000001541'
object - 'vbbk'
but error occurs saying 'text object vbbk is not available
‎2007 Dec 14 4:38 AM
hi,
i tried this i got the results.
check this code.
report asdas.
data : itab like tline occurs 0 with header line.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = '510'
id = '0001'
language = sy-langu
name = '1810000002'
object = 'VBBK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = itab
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.
break-point.
<b>Reward if useful</b>
Gaurav
‎2007 Dec 14 4:43 AM