Error message in ME21N and ME22N
Dear Friends,
I am facing one problem... my requirement is at the time of saving purchase order i need to check some thing and if that check fails i need to display the error message and needs to stop the creation of purchase order. That error message at the status bar also ok and pop up also ok. But when i try to display that error message in one exit 'EXIT_SAPMM06E_012' then the eror message is not coming properly.. i mean it is displaying one box under that one red symbol and in the message comming my message class name. I could not able to display the proper error message in proper way.
I have tried one BADI also post save method that is displaying error message properly but immediately after that i am getting one more pop up saying system error with POST_METHOD some thing like that. I haVe checked in debugging that second error message is displaying from the standard program (message class : ME and number 816) but i dont want that second pop up. How to skip that and how to provide proper error message.
Any help will be highly appreciated.
Thanks a lot in advance,
Hi,
here is the sample of the code we have used in our system.
restrict logic based on Document Type and Company Code
IF i_ekko-bsart EQ c_ub AND i_ekko-bukrs EQ 'XXXX'.
loop at Line Items of PO
LOOP AT tekpo WHERE loekz EQ space.
if Receiving Plant is YYYY and Storage Location is NULL
IF tekpo-werks = 'YYYY' AND
tekpo-lgort = space.
issue error message
MESSAGE ID 'ZM' TYPE 'E' NUMBER '042' WITH
tekpo-ebelp "line item
tekpo-werks. "receiving plant
ENDIF. "receiving plant/storage location
ENDLOOP.
ENDIF. "document type
Hope this helps.
-Ramesh
Similar Messages
-
Error message in ME21n / me22n (on save)
Hi Gurus
I need to raise a error message in ME21n for which I am using ZXM06U44 and EXIT_SAPMM06E_013
I followed this link to help me out... https://forums.sdn.sap.com/click.jspa?searchID=20007769&messageID=6723170
I am getting a information message even though I gave a message of type E. I tired two options:
1.
* mmpur_message 'E' 'ZV' '013' lv_lifnr lv_bukrs text-t00 text-t01 .
2.
MESSAGE e013(zv).
none of these was able to give a error message..Use BAdi:ME_PROCESS_PO_CUST
Method:PROCESS_ITEM/PROCESS_HEADER"As per your Requirement.
DATA : re_data TYPE mepoitem.
CALL METHOD im_item->get_data
RECEIVING
re_data = re_data.
"Check for account assignment cat only for "A" and "L".
IF re_data-knttp = 'L' OR re_data-knttp = 'A'.
GET PARAMETER ID 'KNT' FIELD re_data-knttp.
IF sy-subrc NE 0.
MESSAGE 'You are not aurthorized to use Account Assignment Category (Logit)L!!' TYPE 'E'.
ENDIF.
ENDIF.
I got Error Message in Incomplete log. -
Send mail with Z Message Class in me21n and me22n
Hi everyone, i'm new at the forum and this is may first post so i ask for apologies if i post it in the wrong please.
Well my question is this, i have an z class message in the NACE transaction that it's suppose to send a mail, well if i use the standard program SAPFM06P form ENTRY_NEU with a sapscript it send correctly the mail and i can display it in the SOST transaction, but i need it to display a smartform not a sapscript, so i copy the program to Z and make it call my smartform, if i go now to the me21n/me22n/me23n an make a print preview it's display my smartform correctly, to this point it's all ok, but the problem is that when i modify something in the order and save, my Z message class does not send the mail (i can't see it in the SOST transaction)
I was looking and it seems the problem is that the SOST and the SOOD table are not update but the NAST table does, so when i go to the SOST transaction it doesn't find the data to display.
I know that the update it's done in the form BUCHEN of the SAPLMEPO, but i can't find where.
Does anybody know how can i fix this problem? basically i want the me21n and me22n send the mail.
Thanks a lotThanks for your quick answer, I'll check and let you know any news
PD: what do you mean by "you need to maintain condition records as external send. then only it will send the mail automatically"?
Edited by: -tk85- on Jan 18, 2012 3:32 PM -
Make Non-editable Column in Table Control of ME21N and ME22N
Hi Experts,
I was trying to look for a solution to make the columns for field MEPO1320-SLFDT(Stat Deliv. Date), MEPO1320-EEIND (Deliv. Date) and MEPO1211-NETPR (Net Price) from transaction ME21N and ME22N to be non-editable ONLY when Qty Received (MEPO1320-WEMNG) > 0.
I'd found that the modify screen codes were located at Class CL_TABLE_VIEW_MM, Method MODIFY_SCREEN_TC_LINE but there were no enhancement spots available to add my code. Is there any other method i can use to make those fields non-editable?
Thanks in advance!
Cheers,
Cheng
Edited by: Cheng Mei Tan on Jun 4, 2009 9:31 AMHi Cheng,
I think you can use this BAdi: ME_PROCESS_PO_CUST - Enhance Processing of Enjoy Purchase Order.
Use the method PROCESS_ITEM to control the fields at the item level.
I think is not possible to make the fields non-editable, however, you can put an error message whenever your condition is verified, and the user won't be able to change the fields.
Cheers,
Pedro -
User Exit transaction ME21N and ME22N in the save moment
Hi, all. I need one user exit to transaction ME21N and ME22N for SAVE.
I need name user exit please in the save moment.
Message was edited by:
Martínez Vásquez Rubén Dario
Message was edited by:
Martínez Vásquez Rubén DarioHi,
Please check this user exits.
EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
EXIT_SAPMM06E_013 - Update Customer's Own Data in Purchasing Document
EXIT_SAPMM06E_016 - Export Data to Customer Subscreen for Purchasing Document Item (PBO)
EXIT_SAPMM06E_017 - Export Data to Customer Subscreen for Purchasing Document Item (PAI)
EXIT_SAPMM06E_016 and EXIT_SAPMM06E_017 are the best place to change line item. I used in both places again it depends on your requirement for PBO or PAI.
By the way, what do you mean by actualization?
Regards,
Ferry Lianto
Please reward points if helpful. -
I can't open PSE. Get error message 150:30 and restarting computer doesn't help. Any suggestions?
Please try out the instructions mentioned in this article.
Thanks!! -
My iTunes will not start. The box on the error message APSDaemon.exe, And message says "This application failed to start because MSVC80.dll was not found. Reinstalling may fix." I did the reinstall and I get the same error. The error first happened after I approved the an iTurns update.
Same problem today. Took five times to reinstall without any error messages. Apple has posted a way to fix and you should follow their's first. I finally got to upldate correctly by doing their fix but with one difference. I did the following:
1) Went to the C:\program files (x86)\iTunes and C:\program files\iTunes folders and moved every file ending in .dll to the desktop (even if two files in same location had the same name, just replace)
2) Restarted computer and still got error message
3) Uninstalled all apple programs possible in the following order......itunes, apples software update, apple mobile device support, bonjour, and apple application support.....all performed using the microsoft control panel
4) put all the .dll files on the desktop in the trash and emptied (this is a step apple support did not specifically put in their fix but for a final try I wanted to delete everything apple).
5) Restarted computer.
6) Re-installed itunes from apple website
No error messages during re-install and was able to open shortcut in one try. Even updated my ipad to make sure everything was working. -
When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes. Not a fix. Help?
after perusing other subjects with playback issues:
this is the fix:
-Launch Control Panel - Double click Quicktime, If you do not see quicktime, look on the top left side of control panel and switch to classic view. This will then allow you to see Quicktime.
-Now click the advanced tab and click on Safe Mode GDI Only, Apply, then ok. -
I was recently prompted to update my Itunes player to the latest version. I'm using Windows Vista. I was left with an error message MSVCR80.dll and consequently no new update. I uninstalled the old version and have tried to reinstall manually several times. No luck. Consequently I have no player.
Any ideas for a fix?Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (if this won't uninstall move on to the next item)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
Please note:
Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
HT1925: Removing and Reinstalling iTunes for Windows XP
HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
tt2 -
started the newest update for my phone but when it started installing it to the phone, a error message showed up and now my phone is stuck in recovery mode and itunes wont recognize it. what do i do?
Any numbers or other details on the mesages given?
Did you try to connect in recovery mode again? iOS: Unable to update or restore
In case your network connection timed out, check your security software settings: iTunes for Windows: Troubleshooting security software issues -
New tabs added by Badi ME_GUI_PO_CUST not seen in ME21N and ME22N
Hi All
I am implementing BADI ME_GUI_PO_CUST / ME_PROCESS_PO_CUST to add additional fields in Purchase Order Header.
The implementation of the BADI ie the Subscreen of the fields to be added appears in Header of transaction ME23N but it does not appear in the transaction ME22N and ME21N.
Can anyone help me on this.How to make the tab appear on screen in transaction ME21N and ME22N.
Thanx.Dear Friend,
Just go to the Class CL_PO_HANDLER_MM
This is the Super Class for the PO & PR.
If u debug the PO u can see that PO is calling this super class.
For this u want to create Subroutine in the Function Group calling the Screen .
The Problem which u r facing is that the Instance are not yet created for that Cusotmer Data.
Once u created this Subroutine u can see the fields..
With Regards,
Sumodh.P -
How do I correct error messages MSVCR80.dll and windows error 7 126?
After installing the latest itunes update, I received two error messages: MSVCR80.dii and windows error 7 126? I cannot access itunes at all and am eager ti fux these errors. If Apple itunes is at fault I sure wish they would fix the problem. At least I'll save money if I can't access itunes!
Hey koicaretaker!
Here is an article that will help you troubleshoot this issue:
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Thanks for using the Apple Support Communities!
Cheers,
Braden -
ABST2 error messages MQ 555 and MQ 557
Hi,
I receive the error messages MQ 555 and MQ 557 in ABST2 transaction.
We´ve done the ECC 6.0 upgrade (no new G/L activation), subsequent data conversion (migration - change transfer date) and
EA-FIN activation.
Is there any support note or package to fix the G/L - FA subledger reconciliation or it will be automatically solved in a new year?
Thank you
MiladaHi Madhu,
I have the same prob. How did you solve this?
Loaded all the Assets using AS91.
Did the manual entry to GL using OASV.
When i run the ABST2 Report , iam getting the below error message.
"Differences between assets and G/L accts in the balance carried forward
Message no. MQ555"
"Differences between assets and G/L accts at the key date Message no. MQ557"
When i checked with GL balance FAGLB03 and Asset Balance report the values match but for some reason getting this error and
Client want to see the 0.00 in Difference coloumn in ABST2. I did not run the depriciation yet. Do you think after running the depriciation it will show 0.00 in that coloumn ..
Appriciate your inputs.
Thanks,
Heera. -
User Exit for PO creation(me21n and me22n) - A/c assgn Category is existing
Hi all,
I would like to have your guidance to find out an appropriate EXIT to meet the following req.
Requirement is such that : This EXIT should generate a G/L account automatically (or over-write the existing G/L a/c) during any PO creation(me21n and me22n tcodes - before saving) based on the fields(mandatory) :
A/c Assignment Category,
Material,
Company code and
Vendor
entered by the user(during his/her PO creation activity)
The identified EXITS as of now are EXIT_SAPLEBND_002 (But the package is not matching our PO tcodes : me21n and me22n)
and EXIT_SAPMM06E_017(Package ME- same as tcodes me21n,me22n)
and even other Exits available for PO based on <b>before saving</b> activity.
Even I tried out creating a PO in debugging mode(with break points set at the above EXITs).
Please do help me out at the earliest to identify the appropriate EXIT to meet this requirement.
With Regards,
SrividyaHi!
in SMOD give MM06E005 enhancement
FM name
EXIT_SAPMM06E_017
This will be triggered during saving.
Regards
Tamá -
PR mandatory in PO Creation ME21N and ME22N
Dear Experts,
I want to make PR mandatory for each line item in ME21N and ME22N transaction Code,how to do it in SAP ?
ThanksHi,
First Create a Function authorization in OMET named as XX.
In that tick on Ref to PR.
Hope Help U !
Regards,
pardeep malik
Maybe you are looking for
-
This Isn't the first time this has happened to me. The tabs have to be restored in a new window Instead of the main one witch just displays my home page.I have to restore my tabs in a new window every time I open Firefox and the only way I have found
-
How to Convert Variable containing HTML to be read as HTML in HTML region
To understand the question, I have a table storing generated HTML by user and report type: USER | REPORT_TYPE | HTML_GENERATED ----------------------------------------------------------------------------------------| TEST_USER | TEST | <H
-
IPad 2 won't Bluetooth link to BT-Q818XT GPS. Help?
I have been trying unsuccessfully to pair my recently acquired Qstarz Bluetooth GPS (BT-Q818XT) with my iPad2. However, no amount of tries following the directions has allowed the iPad2 to establish a Bluetooth connection. I am new to the world of
-
How to take input in one frame and display it in other frame of same page?
I need to take input (text) for the comment field in one of the frames and when submit button is pressed it should be displayed in the other frame on the same page. I am able to get the input from the user but its not reflected in the other frame whi
-
Leave Request -- Create Object Error
Hi, we are getting a dump in leave request application, The message gives the following CREATE OBJECT: The Class was not found, error key RFC_ERROR_SYSTEM_FAILURE. the same user says the application was working fine before. thanks in advance sera