Application Development 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: 

not able to change error msg to warning msg which in PO check include

Former Member
0 Kudos
125

Hi Expert ,

I made a change in a include with po creation for a specific order type , condition is when eheck error message of PO the msg should be change error to warning . but itz not shown as a warning W but itz shows error when we declare it as E , at the time of PO check.

code is -

LOOP AT tekpo.

SELECT matnr ekgrp werks FROM marc INTO CORRESPONDING FIELDS OF TABLE it_wint WHERE matnr = tekpo-matnr

AND werks = tekpo-werks.

READ TABLE it_wint WITH KEY matnr = tekpo-matnr .

IF tekpo-matnr <> space.

IF it_wint-ekgrp <> i_ekko-ekgrp .

if i_ekko-bsart <> 'BTD' and i_ekko-bsart <> 'BTO' .

MESSAGE E037(zs) WITH tekpo-matnr i_ekko-ekgrp.

ELSE.

MESSAGE W037(zs) WITH tekpo-matnr i_ekko-ekgrp .

ENDIF.

ENDIF.

ENDIF.

CLEAR it_wint.

ENDLOOP.

3 REPLIES 3

Former Member
0 Kudos
73

E will show as error message.

You can also write as Message 'abcd' type 'W'.

In check you can use POP_TO_Inform, if you want to show as Information.

Thanks

Arbind

0 Kudos
73

still not show in check pop up window .

0 Kudos
73

During Creation of PO when you click PO Check, What Include you are using.

Cann't you use the BADI ME_PROCESS_PO_CUST and write the code whatever you want in PO_CHECK,

There during Check you use any FM POP_TO_CONFIRM OR POP_TO_INFORM or show any information Message too.

Try it once.

Thanks

Arbind