05-04-2012 8:55 AM
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
05-04-2012 9: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
05-04-2012 9: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
05-04-2012 9:33 AM
the function exit is EXIT_SAPLMEKO_001. I hope this is what you asked
later message: i can't access the notes. i don't have an account for that? what do i have to do so i can see them?
05-04-2012 9:47 AM
That was not one user-exit that I expected. This one is for filling extended KOMK structure ?
I'm not sure this exit is executed during a PAI where message can be sent, (read Behavior of messages)
I would have expected an exit like EXIT_SAPMM06E_013 or better EXIT_SAPMM06E_012.
Regards,
Raymond