SAP TechEd Discussions
Join the conversation around SAP TechEd! Discuss details of technical sessions and workshops and anything else conference related.
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Tline text ( Object = TEXT and ID : IMAD ) to binary format

Former Member
0 Kudos

CALL FUNCTION 'READ_TEXT'
   EXPORTING
     ID                      = 'IMAD'
     LANGUAGE                = 'E'
     NAME                    = '12345'
     OBJECT                  = 'TEXT'
   IMPORTING
     HEADER                  = LW_THEAD
   TABLES
     LINES                   = LET_TLINE
   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.

I am getting my output data in let_tline. I want to attach that data to mail as a attachment. I am not able to convert that file ( Doc file which is of type IMAD ) into binary format. Is there any function module helps me to convert that IMAD DOC Data into binary format ?

Thanks in advanced..

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Namrata,

Please move (or delete and re-write) this discussion to an appropriate location where you are more likely to receive the answer you're looking for.

1 REPLY 1

Former Member
0 Kudos

Hello Namrata,

Please move (or delete and re-write) this discussion to an appropriate location where you are more likely to receive the answer you're looking for.