Showing results for 
Search instead for 
Did you mean: 

How to read mail form's file export attribute's description in Campaign Element ID ?

Former Member
0 Kudos

How to read mail form's file export attribute's description in Campaign Element ID ?

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Hello, Raja.

Check CRMD_PML_HEAD - here you find MAIL_GUID for MAIL ID (ID of mail form which is stored in campaign element).

Then using this GUID you'll find description in CRMD_PML_DESCR.

Former Member
0 Kudos

Thanks for the reply Andrei.

I need the description of the individual mail form ATTRIBUTE's description.

the table provided will give me the Mail Form's description.

Appreciate your help.

Active Contributor
0 Kudos


could you please elaborate your needs? Do you need the description of attribute which is available in popup on pressing Attribute button during mail form creation? Or do you need to find the description of attribute which is already inserted in mail form?

Screenshot with the example would be great.

For instance, if you want to get description of an attribute in mail body (the second option) then you should follow such sequence:


     find MAIL_GUID by MAIL_ID for instance


     find all or desired elements of your mail form ( EL_GUID ) by MAIL_GUID


     find the entry by EL_GUID. In TEXT there is the content of element. In rawstring. You should convert it to simple string and parse it.

For example I have such mail form with attributes inserted.

With this simple report you can see where the description is:

REPORT  zplm.

PARAMETERS: p_id TYPE crmt_pml_el_guid,

                            p_st TYPE i.


DATA: lv_xtext TYPE xstring,

        lv_text TYPE string.

  SELECT SINGLE text INTO lv_xtext

    FROM crmd_pml_txtsubj

    WHERE el_guid = p_id.



      inxstring = lv_xtext


      outstring = lv_text.

  WRITE: / lv_text+p_st.

Here is the output (I used p_st = 100, because the very beginning is a head part of html)

Hope this will help you. If I didn't get you right please correct me.

0 Kudos

Hi Andrei ,

Thanks for the code , could you please help me to read mail form's content below  i am attaching screen shot with highlighted color .



Active Contributor
0 Kudos

Hello Rahul.

Not sure what you're talking about. But could you please open a separate discussion to ask your question and please elaborate your requirements there. Thanks.

Best regards,


Former Member
0 Kudos

Hi Rahul,

Use the below code to get mail form's body text.



      iv_mail_guid         lv_form_guid      "" Mail form guid


      es_text                 ls_text 

      et_text                  lt_text 

      et_messages       lt_messages 


      mail_not_found     = 1

      not_read                = 2

      OTHERS               = 3


READ TABLE lt_text INTO ls_text INDEX 1.

lv_body_text = cl_crm_pml_mail_form_exec=>convert_xstring_to_string( iv_xstring = ls_text-text ).

Now lv_body_text contains the body of your mail form.

0 Kudos

Hi Ritu ,

Thanks for your help . using above code i am able to resolve my issue .


Rahul Dubey

Answers (0)