Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

INFO MESSAGE in USER-EXIT

Former Member
0 Likes
1,430

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,379

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.

9 REPLIES 9
Read only

Former Member
0 Likes
1,379

This may depend on the user exit. Which one are you using?

Read only

0 Likes
1,379

I m using EXIT_SAPLEBND_002 and include is ZXM06U22.

Thanks

Read only

0 Likes
1,379

I have used that exit an output a message type i, so it is possible. Are you having a problem displaying an info message?

Read only

0 Likes
1,379

Ya i m having problem with message TYPE ' I '. That message is not triggering .

Read only

0 Likes
1,379

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.

Read only

0 Likes
1,379

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

Read only

Former Member
0 Likes
1,380

You can give the 'I' information message in User-exit and also u can give the Message type 'S.

Read only

Former Member
0 Likes
1,379

if it triggers in normal u can give it but, if it triggers in Update task, u cannot give it.

Read only

Former Member
0 Likes
1,379

I think you can use function POPUP_TO_CONFIRM to give pop up if required....