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

ME21N error

Former Member
0 Likes
2,119

HI experts,

I am Validation storage location for STO for a particular scenario in transaction ME21N in an ENHANCEMENT.

When i press enter, it gives an error for each item.

but when I try to save, the PO gets saved inspite of the error in the item.

please help.

HI experts,

I am Validation storage location for STO for a particular scenario in transaction ME21N in an ENHANCEMENT.

When i press enter, it gives an error for each item.

but when I try to save, the PO gets saved inspite of the error in the item.

please help.

13 REPLIES 13
Read only

Former Member
0 Likes
2,009

Hi ,

Can you tell us what error you are getting for the PO line item?

Regards

Vik

Read only

Former Member
0 Likes
2,009

the error is a custom error which is part of my validation.

the point is ...

the STO should get saved if an error of TYPE E occurs, but this is getting saved.

i dont want the STO to get saved.

Read only

kanishakgupta1
Contributor
0 Likes
2,009

Hi,

First which exit are u using??

i used badi me_process_po_cust for my changes in PO...now in this badi ,the message restriction was implemented in a following way::::

write teh code in check method of me_process_po_cust.....

METHOD if_ex_me_process_po_cust~check.

ch_failed = gv_error_exists.

ENDMETHOD.

put gv_error_exists to 'X' after u put the abort or error message.......

gv_error_exists is defined in the private section....

kanishak

Read only

Former Member
0 Likes
2,009

i tried usnig the BADI but the check method is doesnot have parameter for the item level details i guess...

i am using the enhancement point for mepo_item_fill_02 for the scenario where i have entered my error messages.

i have also observed that this BADI is not called when i press enter or save. only the BADI me_process_po is called.

please correct if i am wrong.

Read only

0 Likes
2,009

i am using sap 5.0 there this badi works.....the proceesing of th messages i write in method process_item and the check i m puttingin the check method the way i have mentioned.......

i dnt know about 6.0

n one more thing me_process_po is a sap badi so i dnt think we can change it...if it is possible to do the changes in me_process_po then do ur coding in this badi...oth me_process_po & me_process_po_cust are duplicaTES just one is SAP 's n other is customer's

kanishak

Read only

Former Member
0 Likes
2,009

exactly Kanishak,

i tried to use the the BAdI but since it was SAP badi i was not able to do that..and when i tried in the debugging,the program didnt call the BAdI me_process_po_cust.

is there any thing which Iam missing...!!!

Read only

0 Likes
2,009

Hi

Try using this badi

me_gui_po_cus

Regards,

Vijay

Read only

0 Likes
2,009

have u implemented that badi???

if implemented ,,then write the break-point in method process_item n check....

Read only

Former Member
0 Likes
2,009

i have tried putting a break point in the BADI me_process_po_cust method Check and process_item, but in vain.

about me_gui_po_cus

im not able to find a suitable scenario which will help.

is there any other enhancement point which would help.

Read only

Former Member
0 Likes
2,009

hi Experts any help on this thread...

please help

Read only

0 Likes
2,009

try checking some notes available for this

i think it is a SAP standard giving this error

Read only

0 Likes
2,009

are u still finding the difficulties ...i m just asking u how did u put the breakpoint in th ebadi mentioned by me???

Read only

Former Member
0 Likes
2,009

done myself.

created an enhancement and did the validation for save.