Skip to Content
avatar image
Former Member

How to define this type in this code

Hi all.

I am trying to make a program work , but got stuck  on how to define this type : "zmsg_type"

REPORT  myProgram.

PARAMETERS :p_all TYPE zmsg_type AS LISTBOX VISIBLE LENGTH 10


                                                    USER-COMMAND us1,   " Message type


                           p_email TYPE   ad_smtpadr     MODIF ID md2,
                         
p_print  TYPE   tsp03-padest   MODIF ID md3.

TYPES : BEGIN OF lty_all,
                all TYPE zmsg_type,
              END OF
lty_all.




Thank you very much.




Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jan 05, 2015 at 06:56 PM

    Hi Sami,

    The data element or pre defined data types must be used in such place.

    Have you created the data element zmsg_type?.

    May I know what is your requirement, you can get some idea with example program provided by SAP.

    With Regards,

    Giriesh M

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Giriesh Chakaravarthy Mamurugan

      Thank you very much. I only needed to create a data element in se11 (zmsg_type). That's all .

      Thank you guys for your help . I really appreciate it .

      Cheers.

  • avatar image
    Former Member
    Jan 05, 2015 at 07:29 PM

    Look at SAP report DEMO_SEL_SCREEN_SCREEN_OPT.

    Rob

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 07:00 PM

    You must define type zmsg_type before declaring parameter p_all. (But it may contain a single field only.)

    Rob

    Message was edited by: Rob Burbank

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2015 at 07:34 PM

    You need to define any local types before using them. The statement for defining your own local data types in a program is TYPES. You can declare something like depending upon your usage -

    TYPES: zmsg_type(length as per your requirement) TYPE c .


    Add comment
    10|10000 characters needed characters exceeded