Skip to Content
0
Former Member
Sep 13, 2011 at 04:18 AM

Regarding message table

24 Views

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