2007 Aug 14 1:53 PM
hi all,
i want TDLINE format's can any one help me in this,
i am getting the mail content using one function module and using that mail content i am updating one log, in that log i am getting some junk characters,
that's why to erase those junk characters i want tdline format can any one help me.
hi all,
i want TDLINE format's can any one help me in this,
i am getting the mail content using one function module and using that mail content i am updating one log, in that log i am getting some junk characters,
that's why to erase those junk characters i want tdline format can any one help me.
2007 Aug 14 9:20 PM
What do you mean by TDLINE format? You want the structure of it? Which type to use to avoid the junk characters?
-Kriss
2007 Aug 14 9:27 PM
I assume you're trying to use some function module which takes TDLINE internal table as input.
TDLINE is just a char string.
Check this code which converts BDC message log into TDLINE format for popup display:
DATA: lwa_bdcmsgcoll LIKE LINE OF lpi_bdcmsgcoll.
DATA: lwa_text TYPE tline,
li_text_table TYPE TABLE OF tline.
LOOP AT lpi_bdcmsgcoll INTO lwa_bdcmsgcoll.
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = lwa_bdcmsgcoll-msgid
msgnr = lwa_bdcmsgcoll-msgnr
msgv1 = lwa_bdcmsgcoll-msgv1
msgv2 = lwa_bdcmsgcoll-msgv2
msgv3 = lwa_bdcmsgcoll-msgv3
msgv4 = lwa_bdcmsgcoll-msgv4
IMPORTING
message_text_output = lwa_text-tdline.
CONCATENATE '(' lwa_bdcmsgcoll-msgtyp '-'
lwa_bdcmsgcoll-msgid lwa_bdcmsgcoll-msgnr ')' space
lwa_text-tdline
INTO lwa_text-tdline.
APPEND lwa_text TO li_text_table. CLEAR lwa_text.
ENDLOOP.
CALL FUNCTION 'COPO_POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
titel = 'MESSAGES'
TABLES
text_table = li_text_table.
Regards.
Please reward points if helpful.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |