ME_PROCESS_PO_CUST allows save in ME21n despite error message triggered
Hello MM Experts,
We have a business requirement to prohibit the use of account assignment "A" (assets) on 2 particular document types that are used by departmental end users that should NOT be allowed to buy assets. The purchase of assets is retricted to our centralized purchasing buyers who use a different document type.
We recently upgraded to ECC 6.0 from 4.6c, so we want to try BADi ME_PROCESS_PO_CUST instead of a user exit. We applied the BADi to ME21n and the developer referenced methods 'check' and 'save', as well as 'post' and 'close'.
Our new error message is successfully triggered when a check is done in ME21n (error says "Account Assignment "A" is only valid for PO's and CSO's). But, depending on the sequence of entry steps for required fields, when I use the save icon or do another check, the box "SAVE" or "EDIT" appears. You can then save the order and by pass the error message.
Other times, depending on a different sequence of entries in the ME21n screen, for the required fields, the correct box "HOLD" or "EDIT" appears and you cannot save the order with the incorrect account assignment A/asset (you can only correct it or hold it as a faulty order and correct later).
Thanks for any advice,
Suzanne
Dear Suzanna ,
In that case, you need to track all of the "action" or "button" in ME21N, you need to use "sy-ucomm" in the badi code to track all the check. like when you display a PO in ME23N than you switch to change mode, then the sy-ucomm = METOGG, and so on, tell the abaper to use sy-ucomm,there'll know about it.
Similar Messages
-
ME_PROCESS_PO_CUST allows save in ME21n - error message triggered
All,
Purchase order is getting saved even though there are error messages triggered via BADI in the POST method.
I've tried both:
MMPUR_MESSAGE_FORCED 'A' 'ME' '303' TEXT-001 '' '' '' .
MMPUR_MESSAGE_FORCED 'E' 'ME' '303' TEXT-001 '' '' '' .
Still the purchase order gets saved when the save button is clicked.
Any ideas
MeghnaHi Meghana,
You can use method CHECK. I am using CHECK method and able to raise a error message.
Sample code I am using is as follows:
DATA i_items TYPE purchase_order_items.
DATA: wa_item LIKE LINE OF i_items ,
lv_if_item TYPE REF TO if_purchase_order_item_mm ,
lt_itm_data TYPE mepoitem ,
lv_table_count TYPE i .
To get Header Data
ls_header1 = im_header->get_data( ).
To get item data
CALL METHOD im_header->get_items
RECEIVING
re_items = i_items.
Get actual line item data using Hask Key for line item
READ TABLE i_items INTO wa_item INDEX 1. --- you can use LOOP as per your requirement
lv_if_item = wa_item-item.
CALL METHOD lv_if_item->get_data
RECEIVING
re_data = lt_itm_data.
IF ( v_result > 10000 ) . " If the difference between net-prices is more than 10000 then gives Error message
MESSAGE e368(00) WITH 'Tolerance is more than $10000' .
ENDIF.
Let me know if you need further help.
Thanks & Regards,
Anil Salekar -
I am trying to activate new qualitative research software. When I attempt to activate it my Apple Air will not allow it and gives an error message saying we cannot verify the identity of the developer of the software
The developer isn't recognized by the App Store, so your Mac is trying to protect you in case the program is malware. As long as you are sure it isn't, follow this procedure:
In the Finder, locate the app you want to open.Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
Press the Control key, then click the app icon.
Choose Open from the shortcut menu.
Click Open.The app is saved as an exception to your security settings, and you will be able to open it in the future by double-clicking it, just like any registered app.
OS X Mavericks: Open an app from an unidentified developer -
Mail.app can't save draft with irrelevant error message
hi!
Mail.app in Leopard with latest updates installed ( System Version: Mac OS X 10.5.5 (9F33), Mail:
Version: 3.5 Last Modified: 16.09.08 0:50 Kind: Universal Location: /Applications/Mail.app) can not save message as Draft, and wrong error message appears if new message have characters missing in message encoding.
Test case:
1. Open mail.app
2. Compose new message
3. Select Message->Text Encoding ->Cyrillic (KOI8-R)
4. Open in Safari http://www.communigate.com/CommunigatePro/Install.html#Solaris
5. Select text from words Installing on a "Sun Solaris System." to words "Installing on a Linux System."
6. Copy to clipboard
7. Switch to mail.app
8. Edit -> Paste
9. File->Save
Error message "Draft can't be saved to Drafts mailbox.
The message contains one or more attachments that are too large to be saved in the Drafts mailbox. Try to delete some attachments [OK]" will appear
This message is misleading.
Correct message "Invalid text encoding
Some characters in your message coundn't be converted to the "Cyrillic (KOI8-R) text encoding." Appears only if user is trying to send message
CoThese forums are user to user. To report things like this to Apple, use the feedback channel:
http://www.apple.com/feedback/macosx.html -
I have Adobe Acrobat XI. I can make PDF files very easily, however if I edit a file and try to save, I get the following error message.
"The document could not be saved. The files may be read-only or another user may have it open. Please save the document with a different name or in a different folder."
I have looked, it is not read-only, and I am for sure the only one with this file open.
Any suggestions - this driving me crazy!Thank you, you just solved the problem I have been having since upgrading to Adobe Standard XI also. I was going nuts because everytime I tried to make a change to a PDF and save it, I got the same error message. I turned the preview pane off in windows explorer and now everything works. Thanks again!!!
-
unistalled firefox due to ask.com toolbar when tried to reinstall firefox from already saved set up exe file windows states cannot find c:/user/jim/appdata/local/temp/7zSAD30.temp/setup exe make sure you typed the name correctly and try again.
This same meesage came up when i tried to download firefox directly from mozilla the file set up exe would download and when i pressed run the error message appeared again
grateful for any help you can offer regardsTry to delete the files in the temp folder.
Download and save the Firefox installer to the desktop and start the installation with a double-click on the desktop icon.
You can find the full version of the latest Firefox 25.0.1 release in all languages and for all Operating Systems here:
*http://www.mozilla.org/en-US/firefox/all.html
Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) if you keep having problems with downloading and/or installing. -
Photoshop CS6 - can't save as a PDF - error message
Hi - I am having problems saving a PDF in photoshop CS6.
There isn't an option to save as a PDF in the Save As function so I've been trying to do this through the Print Function.
When I get to the point where I press Save I get the following error messgae:
Any ideas why this is or how I can rectify this problem?!
Any help appreciated. Thanks!Without exact system info, details about the document, PDF settings used and so on nobody can tell you much. There could be any number of reasons why you neither can save as PDF nor print to PDF, the most obvious being an unsuitable color mode or a wrong document size.
Mylenium -
Error code 3014 question. iPad 2 (WiFi only, 16GB) went into recover mode. I am not able to restore from iTunes. iPad had the latest software & iMac is latest as well. iPad has very few applications... < 6GB used prior to this.
Any help.Sorry but that was a completely pointless post.
-
see above
Hi,
You can try to [https://www.mozilla.org/en-US/firefox/new/ download the latest full installer] and upgrade. Please make sure to right-click the file and '''Run as administrator''' to begin the upgrade installation.
You may also want to [https://support.mozilla.org/en-US/kb/Backing%20up%20your%20information?s=backup&r=1&e=sph&as=s backup] personal data/folder. Firefox stores the personal profile/data separate from its internal files. [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files] -
has anyone else had the same issue?
Did you uninstall the Firefox 4.0 beta version ?
If you did then did you remove the personal data or otherwise removed to Firefox profile folder ?
Make sure that you still have a (default) Firefox profile folder.<br />
See http://kb.mozillazine.org/Recovering_a_missing_profile -
To remove error from error message screen in ME21N
Hi all,
I have a strange problem may be not to you guys,
well i am showing an error message in ME21N on certain condition in EXIT 'EXIT_SAPMM06E_012' this is working fine i am using simple stmt Message e(MSGno) text-01, but when i correct the problematic part and again want to save my data it is aloowing me to save data but my error message(In red) still remains there if i see in EDIT ( of faulty messages pop-up window). Can any body know if we have to remove error message manually in case our program satify the condition.
if yes what portion i m missing to delete the error message.
any reply will be highy appreciated n offcourse points for sure
thanks a lot.
regards
MandyWell we can remove message from message text tray using pre-defined macros to erase message.its like
IF SY-SUBRC NE 0.
IF NOT tekpo-id IS INITIAL.
"This is to remove error message later on
"if problem corrected.
mmpur_business_obj_id tekpo-id.
ENDIF.
mmpur_metafield mmmfd_item_userexit.
mmpur_message 'E' 'ZMM02' '050'
'Intraplant STO :' '' '' ''.
else.
"To erase message
mmpur_metafield mmmfd_item_userexit .
mmpur_remove_messages_by_id tekpo-id.
ENDIF.
its working for one line item, if more then one line item you need to verify it.
Mandy -
I edit a photo and when I click Save As, I get error message "Could not complete your request because of a program error." I exit Elements, try again, same error.
In past I had this problem but it resolved when rebooted PC. This time, PC reboot does not help.
I cannot save anything i do in elements!!
What's wrong? Any suggestions how to fix this? Anyone know what the program error isPlease mention your PSE version and underlying OS.
Also, it would be of great help in resolving the issue if you can upload a snapshot of error message.
Regards
Kishan -
"Out of memory!" error message when trying to save...
Yesterday I got Autotune 5 plug-in and when I use it on a track then try to save the garageband file the error message "out of memory!" comes up. I have like 35 gigs of memory left on my hard drive so that cant be the reason. And ontop of that the track that I spent all day recording (and the one I was using Autotune 5 on) was deleted without my permission. This is just super frusterating and I cant figure out why it would say I have no memory left when I clearly do. And Im afraid to keep using Autotune in fear of another track being deleted and me not being able to save because of the error message.
If anyone can help me that would be awesome.Dang! Yeah, it seemed like a good step.
Like I said, I've never seen GB display an Out of Memory error, and actually, I don't recall anyone ever posting that, so I'm puzzled.
One other thought, generally a log-out clears everything, but have you tried from a complete reboot? IOW restart the machine, don't run ANYthing other then GB, and try again.
My gut kind of says Autotune is the culprit, just because I also don't recall anyone else here using it, but I hate not being able to figure out a puzzle, and like you said, with me here and you way over there, it's tough to guess at all the possibilities. B-(> -
To remove error from error message screen stnd SAP in case condition met
Hi all,
I have a strange problem may be not to you guys,
well i am showing an error message in ME21N on certain condition in EXIT 'EXIT_SAPMM06E_012' this is working fine i am using simple stmt Message e(MSGno) text-01, but when i correct the problematic part and again want to save my data it is aloowing me to save data but my error message(In red) still remains there if i see in EDIT ( of faulty messages pop-up window). Can any body know if we have to remove error message manually in case our program satify the condition.
if yes what portion i m missing to delete the error message.
any reply will be highy appreciated <REMOVED BY MODERATOR>
Mandy
Edited by: Alvaro Tejada Galindo on Feb 7, 2008 10:51 AMWell we can remove message from message text tray using pre-defined macros to erase message.its like
IF SY-SUBRC NE 0.
IF NOT tekpo-id IS INITIAL.
"This is to remove error message later on
"if problem corrected.
mmpur_business_obj_id tekpo-id.
ENDIF.
mmpur_metafield mmmfd_item_userexit.
mmpur_message 'E' 'ZMM02' '050'
'Intraplant STO :' '' '' ''.
else.
"To erase message
mmpur_metafield mmmfd_item_userexit .
mmpur_remove_messages_by_id tekpo-id.
ENDIF.
its working for one line item, if more then one line item you need to verify it.
ENJOY SAP -
Popup error message with enabling control to other tabs
Hi All,
My Requirement is to pop up an error message when the user tries to delete a particular value in a tab.
i know only a normal error message statement, which doesn't allow the control to proceed further when that error message triggers..
help me to code an error message/popup which should allow control to proceed further for the user to undergo other changes other than the specified tab.Hi ,
try this way..
data : w_answer(1) TYPE c
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Interface Screen'
text_question = w_title
text_button_1 = 'Yes'
icon_button_1 = 'ICON_OKAY'
text_button_2 = 'No'
icon_button_2 = 'ICON_BREAKPOINT'
IMPORTING
answer = w_answer.
IF w_answer = '1'.
"alllow to save this means not changes happen
ELSEIF w_answer = 'A'.
EXIT. "exit this will not allow to save
ENDIF.
"at the time of deleting chcek whether the w_amswer is A , it means there is error after correcting clear answer and allow hime to save
Prabhudas
Maybe you are looking for
-
If fields of tables in my database contain html tags such as 'H2O' (here is html tag 'sub') or 'sometext'(here is html tag 'b') how can I to make Report Builder 6i to understand these tags? In other words - can Report Builder understand and treat htm
-
My phone won't turn on or charge. I was reading my email about 30 mins. Before
-
Incoming inspection through source inspection
Hello, I want to do incoming inspection for few raw materials on lot basis (each trucks is one lot). But quality department do the inspection for certain characteristics and truck will allowed inside only if QA dept accepts the lot. Then gross weigh
-
hi frndz i am new in JavaFX technology. Can u suggest me ,how i can develop mobile application by using JavaFx thanks in advance
-
My 3GS iPhone randomly shuts off
My 3GS iPhone randomly shuts off or gives a low battery indicator even when the battery is not low. I tried going to the Apple store and they were not helpful saying to close out apps using the multi-task button. Even after doing that, my phone was c