2009 May 01 11:15 AM
Hello Friends,
I am trying to give information message in User exit while creating PO
Is it possible to give message type ' I ' ???
If not how to give info message on to ME21N ??
Thanks,
Ajay
2009 May 01 11:21 AM
You can give the 'I' information message in User-exit and also u can give the Message type 'S.
You can give the 'I' information message in User-exit and also u can give the Message type 'S.
2009 May 01 11:20 AM
2009 May 01 11:23 AM
2009 May 01 11:36 AM
I have used that exit an output a message type i, so it is possible. Are you having a problem displaying an info message?
2009 May 01 11:40 AM
Ya i m having problem with message TYPE ' I '. That message is not triggering .
2009 May 01 11:48 AM
I'm not sure why that should be. Perhaps as gudise mahesh says it will not trigger in update mode? My code is straightforward and it does work. It outputs a message type i if the last person to amend a po tries to release it.
IF sy-ucomm = 'MERELEASE' AND
sy-repid = 'SAPLXM06'.
CLEAR wa_bekpo.
READ TABLE it_bekpo INTO wa_bekpo INDEX 1.
SELECT SINGLE ernam FROM ekko INTO l_uname
WHERE ebeln = wa_bekpo-ebeln.
IF l_uname = sy-uname.
e_cekko-ekorg = space.
MESSAGE i076(zmm).
LEAVE TO TRANSACTION sy-tcode.
ENDIF.
Exclude last person to change PO
SELECT * FROM cdhdr
INTO CORRESPONDING FIELDS OF TABLE it_cdhdr
WHERE objectclas = c_class
AND objectid = wa_bekpo-ebeln
AND change_ind NE c_i.
IF NOT it_cdhdr IS INITIAL.
SORT it_cdhdr BY udate DESCENDING utime DESCENDING.
READ TABLE it_cdhdr INDEX 1 ASSIGNING <cdhdr>.
IF <cdhdr>-username = sy-uname.
e_cekko-ekorg = space.
MESSAGE i089(zmm).
LEAVE TO TRANSACTION sy-tcode.
ENDIF.
ENDIF.
ENDIF.
Sorry I couldn't be of much help.
2009 May 01 11:50 AM
Hi,
just write a break-point statement before that message i, and check if that user-exit is triggering for the purpose you want....
if it does not gets triggered then you are using a wrong user-exit.
Regards,
Siddarth
2009 May 01 11:21 AM
You can give the 'I' information message in User-exit and also u can give the Message type 'S.
2009 May 01 11:22 AM
if it triggers in normal u can give it but, if it triggers in Update task, u cannot give it.
2009 May 01 12:13 PM
I think you can use function POPUP_TO_CONFIRM to give pop up if required....
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |