Skip to Content
0
Former Member
May 04, 2012 at 07:55 AM

User exits with check field

22 Views

Hello again,

I'm having a problem understanding how user exits work. I have a task where i need to throw a message after any item creation in me21n. I have already made my include and i used a break point to see that it enters there inside it. It works very well. But if i try something like " if sy-subrc <> 0. Break-Point. Message E001(ZXX_MSG). ENDIF." It enter the if, in take the break-point but never shows the message. Is there another way to throw a message? Or what may be the cause it doesn't show it? Thanks in advance.

This is my code in include.

TABLES: zfal_mmexit.

TABLES: mepo1211.

*&---------------------------------------------------------------------*

*& DATA

*&---------------------------------------------------------------------*

DATA: gt_fal_mmexit TYPE STANDARD TABLE OF zfal_mmexit,

gs_fal_mmexit TYPE zfal_mmexit.

SELECT *

FROM zfal_mmexit

INTO CORRESPONDING FIELDS OF TABLE gt_fal_mmexit

WHERE mtart = i_ekpo-mtart AND flag = 'X'.

IF sy-subrc = 0.

MESSAGE i000(ZFAL_UNIT5_MSG).

ELSE.

MESSAGE i001(ZFAL_UNIT5_MSG).

ENDIF.

Sincerely,

A.Fediuc

Moderator message : Search for available information, discussed many times here, discussion locked.

Message was edited by: Vinod Kumar