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

User exits with check field

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on May 04, 2012 at 08:14 AM

    - In which "exit" did you put this code

    - Did you read Note 310154 - ME21N/ME51N: Customer-specific check, generating error log

    Regards,

    Raymond

    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.