Application Development and Automation 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: 
Read only

tdline format types

Former Member
0 Likes
935

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.

2 REPLIES 2
Read only

former_member192429
Active Participant
0 Likes
745

What do you mean by TDLINE format? You want the structure of it? Which type to use to avoid the junk characters?

-Kriss

Read only

alejandro_bindi
Active Contributor
0 Likes
745

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.