07-22-2015 6:07 AM
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
07-22-2015 6:37 AM
07-22-2015 6:20 AM
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
07-22-2015 6:36 AM
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
07-22-2015 6:37 AM
07-22-2015 6:56 AM
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.
07-22-2015 9:57 AM
07-22-2015 10:27 AM
Hi
Please check the BADI : ME_PROCESS_PO_CUST and the methods : PROCESS_HEADER or CHECK.
Let us know, in case any further info.
07-23-2015 7:56 AM
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
07-23-2015 8:01 AM
Hi,
I want to display a warning message for a specific vendor category when i try to save the po.
07-23-2015 8:13 AM
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
07-23-2015 8:47 AM
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.
07-23-2015 8:52 AM
07-23-2015 9:02 AM
07-23-2015 9:04 AM
07-23-2015 9:14 AM
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
07-24-2015 1:01 PM
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
07-24-2015 1:17 PM
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