Skip to Content
author's profile photo Former Member
Former Member

Regarding message table

Hi

My Function module returns below Message structure for Warning or error.

Export parameter

ZMESSAGE TYPE ZXXXMESSAGE

Under ZXXXMESSAGE Line data type ZYYYMESSAGE is declared

ZYYYMESSAGE has below fields

-


LINE_NO

MSG_TYPE

MSG_ID

MSG_NO

MSGTEXT

MSG_V1

MSG_V2

MSG_V3

MSG_V4

ERROR_CODE

-


I declared as below and used but not working

L_ITAB_MESSAGE TYPE STANDARD TABLE OF ZXXXMESSAGE,

L_FLD_MESSAGE TYPE ZXXXMESSAGE,

CALL FUNCTION 'ZXXXXXXXXXX'

EXPORTING

F_IP_BUKRS = L_V_BUKRS

IMPORTING

F_EP_MESSAGE = L_ITAB_MESSAGE

CASE sy-subrc.

WHEN 0.

IF L_ITAB_MESSAGE IS NOT INITIAL.

CALL FUNCTION 'MESSAGE_STORE'

EXPORTING

ARBGB = L_SY_MSGID

  • EXCEPTION_IF_NOT_ACTIVE = 'X'

MSGTY = L_ITAB_MESSAGE-MSG_TYPE

MSGV1 = L_ITAB_MESSAGE-MSG_V1

MSGV2 = L_ITAB_MESSAGE-MSG_V2

MSGV3 = L_ITAB_MESSAGE-MSG_V3

MSGV4 = L_ITAB_MESSAGE-MSG_V4

TXTNR = L_ITAB_MESSAGE-MSG_NO

ENDIF.

But it says L_ITAB is not data line type and no header for table.

Can you pls confirm should i have to give L_FLD_MESSAGE in MEssage_store FM?

Regards

chandra

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2011 at 04:42 AM

    Hi

    L_ITAB_MESSAGE TYPE STANDARD TABLE OF ZXXXMESSAGE,

    This is internal table not work area.

    IMPORTING

    F_EP_MESSAGE = L_ITAB_MESSAGE

    Instead of L_ITAB_MESSAGE use L_FLD_MESSAGE.

    Regards,

    Surya

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.