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: 

warning message in include zxm06u43

Former Member
0 Kudos

Hi Experts,

I am new to abap and i have never done enhancement before.Now, the requirement is that i want to display a warning message for a particular vendor category whenever the purchase order is created .

I found that to display a warning message before creating a PO we use exit_sapmm06e_12 > zxm06u43 include .( please tell me if i am wrong )

now, i want to know the steps to make changes in this include so that i can display the warning message.

Thanks in advance,

Aakash Tyagi

1 ACCEPTED SOLUTION

Former Member

This message was moderated.

16 REPLIES 16

paul_bakker2
Active Contributor
0 Kudos

Hi,

What have you tried so far? What problems have you encountered?

When you say you are new to ABAP, do you know how to add code to an Include?

cheers

Paul

0 Kudos

Hi,

I have not done anything so far on the system , i have just searched the user exit and include which i can use to do this. I want to know how to proceed further and fulfil this requirement.

Regards,

Aakash

Former Member

This message was moderated.

naresh_kabar
Explorer
0 Kudos

Hi Aakash,

Put condition SY-UCOMM value is MESAVE in exit program  if it is then display warning message which you want.

hope it will solve your issue

Regards

Naresh.

Former Member
0 Kudos

This message was moderated.

atul_mohanty
Active Contributor
0 Kudos

Hi

Please check the BADI : ME_PROCESS_PO_CUST and the methods : PROCESS_HEADER or CHECK.

Let us know, in case any further info.

hiriyappa_myageri
Participant
0 Kudos

Hi Aakash,

after creating an PO you want display an warning message.?? or While try to save or checking for erros that time you want display an warning message. clarify this.

regards,

Hiriz

0 Kudos

Hi,

I want to display a warning message for a specific vendor category when i try to save the po.

0 Kudos

Ok Aakash.

please follwo these steps.

1.First put a break point for an include  zxm06u43.

2.after that try to create a PO and save.

3.  you are connecting debugger session

4.Try to put this structure in debugger mode MEPO_TOPLINE

5.Search for vendor field in that structure.

6.Check for vednor categeory

7.then raisa an warning messgae.

Pleas do and let  us know aboot the issue.

Regards,

Hiriz

0 Kudos

Hi,

i have done everything as u mentioned . but it is not showing the warning message even when the condition is matched.

can u explain ur 4th point . i have not used mepo_topline.

0 Kudos

Ok did you get the vednor in debugging mode.??

0 Kudos

Hi check

this structure I_EKKO.

0 Kudos

yes. i got the vendor in debugging mode.

0 Kudos

Now try to check an item category condition and display an warning message.

displaying an message will be different in PO screen.

You need make use of this structure BAL_S_SHOW.

in PO screen messages will be displayed using this structure with pop up.

Please check with your fucntion people.Ask them show an error message or warning message screen in PO

Reagrds,

Hiriz

Former Member
0 Kudos

Thanks for replying everyone.

i used FM popup_to_confirm.

u can display a error message bt not a warning message using this method of enhancement .

Regards,

Aakash

JL23
Active Contributor
0 Kudos

Warning messages are to be collected in the container for messages, warnings will not be displayed as status messages in the Enjoy design of a purchase order.

Please follow the guidance given in KBA 1709562 - Messages ignored in BAdIs ME_PROCESS_REQ_CUST and ME_PROCESS_PO_CUST