Error on BADI for ME21N
Am doing and enhancement on transaction ME21N. Where I am validating a price based on the Purchase requisition.
I implemented the BADI YWVKU_DETERMINE_SP and in method GET_SALES_PRICE I used my code.
I created a custom message class in se91 to display the error message when we run me21n. I get a short dump as follows
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
Please assist
This is part of the dump
Error analysis
Short text of error message:
General system messages
Long text of error message:
Technical information about the message:
Message class....... "ME"
Number.............. 000
Variable 1.......... "Price cannot be greater than 10% of PR"
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"MESSAGE_TYPE_X" " "
"SAPLMEPO" or "MM06EF0B_BUCHEN"
"BUCHEN"
If you cannot solve the problem yourself and want to send an error
notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
Similar Messages
-
Badi for me21n,me22n,me23n
HI experts,
CAn any one help me out infinding a badi for me21n,me22n,me23n, which triggered on every press of enter key or some other check, so that i could kept a validation for the header and item fields of the t.codesHi,
Go for BADI,
Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction.
Reward points if useful....
Regards
AK -
Hi All,
We are in a situation where in we need to Change the Distribution Channel in the Shipping tab of ME21N transaction.
Previously, the distribution channel is being picked up form the config (SPRO - Shipping data for plant) but before it picks up from the config we need to change it and update the other distribution channel in the PO.
We have tried with most of the User exits and BADIs but all of those are of no use for our requirement, as these user exits and badis are triggered after we click on save button. But we need to change the Distribution channel at the point of determination of Shipping data by the system i.e. before save.
Can any one please help me out with this situation with some User exits or BADIs that are triggered before save button.
Note: The Shipping data is in EKPV table. We need to change the VTWEG field in EKPV.
Thanks in Advance,
Asif Ali KhanAsif,
see these are Exits and BADI for ME21n,
Enhancement/ Business Add-in Description
Enhancement
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
LMEKO001 Extend communications structure KOMK for pricing
LMEKO002 Extend communications structure KOMP for pricing
MM06E011 Activate PReq Block
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
M06B0003 Number range and document number
M06B0002 Changes to comm. structure for purchase requisition release
M06B0001 Role determination for purchase requisition release
Business Add-in
ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Customer
ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
ME_PO_PRICING_CUST Enhancements to Price Determination: Customer
ME_PO_PRICING Enhancements to Price Determination: Internal
ME_INFOREC_SEND Capture/Send Purchase Info Record Changes - Internal Use
ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
ME_FIELDSTATUS_STOCK FM Account Assignment Behavior for Stock PR/PO
ME_DP_CLEARING Clearing (Offsetting) of Down Payments and Payment Requests
ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
ME_COMMTMNT_REQ_RELE Check of Commitment Relevance of Purchase Requisitions
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
SMOD_MRFLB001 Control Items for Contract Release Order
MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Order
MM_DELIVERY_ADDR_SAP Determination of Delivery Address
ME_WRF_STD_DNG PO Controlling Reminder: Extension to Standard Reminder
ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
ME_TRF_RULE_CUST_OFF BADI for Deactivation of Field T161V-REVFE
ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
ME_REQ_POSTED Purchase Requisition Posted
ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
ME_RELEASE_CREATE BAdI: Release Creation for Sched.Agrmts with Release Docu.
ME_PURCHDOC_POSTED Purchasing Document Posted
ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
ME_PROCESS_REQ Enhancements for Processing Enjoy PReqs: Internal
ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
ME_CCP_ACTIVE_CHECK BAdI to check whether CCP process is active
ME_BSART_DET Change document type for automatically generated POs
ME_BAPI_PR_CREATE_02
ME_BAPI_PR_CREATE_01
ME_BAPI_PO_CREATE_02
ME_BAPI_PO_CREATE_01
ME_BADI_DISPLAY_DOC BAdI for Internal Control of Transaction to be Invoked
ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
MEGUI_LAYOUT BAdI for Enjoy Purchasing GUI
EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
ARC_MM_EKKO_WRITE BAdI: Enhancement of Scope of Archiving (MM_EKKO)
ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)
ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
ME_COMMTMNT_PO_RELEV Check for Commitment-Relevance of Purchase Orders
ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
ME_COMMITMENT_RETURN Commitment for return item
ME_CIP_REF_CHAR Enables Reference Characteristics in Purchasing
ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
ME_CIN_MM06EFKO Copy PO data for use by Country version India
ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
ME_CHECK_OA Check BAdI for Contracts
ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
ME_CHANGE_OUTTAB Enrich ALV Output Table in Purchasing
ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
Amit. -
Hi All,
I have a requiremnet in ME21N Transaction.
While creating a PO i want to validate some values based on services tab in the items.I found one badi related to services but when i am putting a break-point its not getting triggered.
BADI IS -
ME_PO_PRICING_CUST
Please help me which BADI shall i use for this purpose, its very urgent.
Regards
MonaHi Monalisa,
Check out the threads given below:
BADI for ME21N
BADI in ME21N
With luck,
Pritam. -
BADI :BADI for ME21N in 4.6C
Hi,
Can any one say me what is the BADI for ME21N and ME22N in 4.6C.
Thanks in advance,
DonladHello,
To my mind , the only safe way to save a smartforms in 4.6C is to save the two files of the transport as there is no versionning and no export to xml file.
Sincerely
Christophe Blineau -
BADI for ME21N to deactivate HOLD button?
Hi All,
I have one doubt in ME21N t'code i:e
i want to implement badi for me21n for deactivating for HOLD button. how can i do this one.
<removed_by_moderator>
Thanks in Advance,
Srinivas.
Edited by: Julius Bussche on Oct 29, 2008 10:36 AMyou have badi for doing this .ME_HOLD_PO this is badi . Implement this in se19 . You have IS_ALLOWED method . In this method write ch_allowed = ' '. This will solve your requirement.
Edited by: A kumar on Oct 29, 2008 10:34 AM -
Badi for ME21N & ME22N to check storage location
Hello Guru's,
I need BADI for ME21N & ME22N to check storage location is maintained for plant used in PO i'm using method IF_EX_ME_PURCHDOC_POSTED~POSTED with definition name ME_PURCHDOC_POSTED but this throws message on SAVE.
But my requirement this message should be displayed before saving.Please guideHi,
Use BADI:
ME_PROCESS_PO_CUST
BADI CL_ME_PO_CUST
Business Add-in
ME_PROCESS_PO Enhancements for Processing Enjoy Purchase Order: Intern.
ME_PROCESS_COMP Processing of Component Default Data at Time of GR: Customer
ME_PO_SC_SRV BAdI: Service Tab Page for Subcontracting
ME_PO_PRICING_CUST Enhancements to Price Determination: Customer
ME_PO_PRICING Enhancements to Price Determination: Internal
ME_INFOREC_SEND Capture/Send Purchase Info Record Changes - Internal Use
ME_HOLD_PO Hold Enjoy Purchase Orders: Activation/Deactivation
ME_GUI_PO_CUST Customer's Own Screens in Enjoy Purchase Order
ME_FIELDSTATUS_STOCK FM Account Assignment Behavior for Stock PR/PO
ME_DP_CLEARING Clearing (Offsetting) of Down Payments and Payment Requests
ME_DEFINE_CALCTYPE Control of Pricing Type: Additional Fields
ME_COMMTMNT_REQ_RE_C Check of Commitment Relevance of Purchase Requisitions
ME_COMMTMNT_REQ_RELE Check of Commitment Relevance of Purchase Requisitions
ME_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer
SMOD_MRFLB001 Control Items for Contract Release Order
MM_EDI_DESADV_IN Supplementation of Delivery Interface from Purchase Order
MM_DELIVERY_ADDR_SAP Determination of Delivery Address
ME_WRF_STD_DNG PO Controlling Reminder: Extension to Standard Reminder
ME_TRIGGER_ATP Triggers New ATP for Changes in EKKO, EKPO, EKPV
ME_TRF_RULE_CUST_OFF BADI for Deactivation of Field T161V-REVFE
ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address
ME_REQ_POSTED Purchase Requisition Posted
ME_REQ_OI_EXT Commitment Update in the Case of External Requisitions
ME_RELEASE_CREATE BAdI: Release Creation for Sched.Agrmts with Release Docu.
ME_PURCHDOC_POSTED Purchasing Document Posted
ME_PROCESS_REQ_CUST Enhancements for Processing Enjoy PReqs: Customer
ME_PROCESS_REQ Enhancements for Processing Enjoy PReqs: Internal
ME_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders
ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant
ME_CCP_ACTIVE_CHECK BAdI to check whether CCP process is active
ME_BSART_DET Change document type for automatically generated POs
ME_BAPI_PR_CREATE_02
ME_BAPI_PR_CREATE_01
ME_BAPI_PO_CREATE_02
ME_BAPI_PO_CREATE_01
ME_BADI_DISPLAY_DOC BAdI for Internal Control of Transaction to be Invoked
ME_ACTV_CANCEL_PO BAdI for Activating the Cancel Function at Header Level
MEGUI_LAYOUT BAdI for Enjoy Purchasing GUI
EXTENSION_US_TAXES Extended Tax Calculation with Additional Data
ARC_MM_EKKO_WRITE BAdI: Enhancement of Scope of Archiving (MM_EKKO)
ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)
ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)
ME_COMMTMNT_PO_RELEV Check for Commitment-Relevance of Purchase Orders
ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active
ME_COMMITMENT_RETURN Commitment for return item
ME_CIP_REF_CHAR Enables Reference Characteristics in Purchasing
ME_CIP_ALLOW_CHANGE Configuration in Purchasing: Changeability Control
ME_CIN_MM06EFKO Copy PO data for use by Country version India
ME_CIN_LEINRF2V BADI for LEINRF03 excise_invoice_details
ME_CIN_LEINRF2R BADI for CIN India - Delivery charges
ME_CHECK_SOURCES Additional Checks in Source Determination/Checking
ME_CHECK_OA Check BAdI for Contracts
ME_CHECK_ALL_ITEMS Run Through Items Again in the Event of Changes in EKKO
ME_CHANGE_OUTTAB Enrich ALV Output Table in Purchasing
ME_CHANGE_CHARACTER Customer-Specific Characteristics for Product Allocation
Edited by: Neenu Jose on Nov 21, 2008 6:13 AM
Edited by: Neenu Jose on Nov 21, 2008 6:16 AM -
Stop standard process in user exit (or badi) for ME21N.
Hello,
I have implemented a user exit (and also a BADI) for transaction code ME21N.
The user exit is executed before saving the purchase order.
In my user exit, I just check data and if they are wrong, I just want to stop the process displaying an error message.
So, I've just used 'MESSAGE Exxx(xxxx)'.
The problem is that the standard process catch the error and treat it in stead of stopping. The standard process treats the error and proposes the user to chose if he(she) wants to continue or to stop (within a popup).
I just want to stop the process, displaying a error message.
If someone has a idea about how I can realise that, please let me know.
Giuseppe,Which Exit/Badi did you implement? And Error message should normally stop the process. Maybe you have implemented the wrong exit.
-
Exit or badi for me21n- for adding new field in delivery tab(Item level)
HI,
My Requirement is to add the New Field(Inspection Lot) in delivery tab in item level of me21n .
I want to know this can be done by any Exit or Badi or modifying the standard sap is the only way to do this...
Kindly help me to solve the issue..it's quite urgent , i unable to find one,i used the exit mequery1 but did not work ......
Thanks in Advance.Hi Nagaraju,
Actually,for every T-code,SAP has provided a lot of BADIs where the customer can write their own codes depending
upon the functionality required.
In order to find the BAD for a particular T-code,go to the T-code SE24 and type in cl_exithandler and click on
Display.
You will get a list of methods in that class,double click on the Get_Instance method from the list.
you will get the code for that method.Scroll down and you will find one of the parameters "Exit Name" there.Put a
breakpoint on that function module and press F8.
In the debugging mode,double click on the Exit Name to get the value contained in it.You will see the first BADI
provided in that T-code.
Note down this and then keep on pressng the F8 and noting down the BADIs being displayed.
Now ,you will have to find out the BADI which fits your requirement.
Now,it is not required to opy that BADI into ZBADI.Instead it is better to create a new implementation for this
BADI.
Go to the T-code SE18 and see its definition.
Now,go to the T-code SE19 and create a new implementation and write the code there.
Once done,activate that implementation and the BADI also.
Now run the T-code and debug the code that you have written.You can modify the code accordng to your requirements.
In case you have any further clarifications,do let me know.
Regards,
Puneet Jhari. -
ERROR : in BADI for MIGO Enter quantity on external screen
Hi,
I am doing MIGO and getting the following error:
Enter quantity on external screen Message no. M7895
I Have added an external tab at the header level as well as the item level using the badi for tab addion in MIGO .
If i deactivate the BADI MIGO works fine .
How to analyse for the error .
Please help
Regards
SwapnilHI Experts,
As mentioned in above thread for the Error: Enter unit of measure on external screen Message no. M7895;and same is solved by your functional consultant,since i am also getting same error,It would be very helpfull to me,if you tell me the solution for this error what exactly your functional consultant has done.
Regards
varunraj -
Hi All,
I have a doubt in BADI's for ME21N T'code i:e
how to disible HOLD button on ME21n T'code screen and also how to handle that BADI in that ME21n T'code.
Plz give me ASAP.
Thanks.
Srinivas.hi,
Use the BADI
ME_PROCESS_PO_CUST
Other wise u can handle this by using SHDO recording.
Regards -
BADI for ME21n for auto pouplate G/Laccount number in acctassignmentsubscre
I got requirement that when iam creating a new PO in ME21n i want account gl value to be 5175, when i choose account assignment category as order.
Is there any BADI to auto populate value for G/L account number in account assignment screen for me21n transaction.1. double click on PROCESS_ITEM.
2. Double click on 'IF_PURCHASE_ORDER_ITEM_MM' under Associated type.
3. go to parameters of GET_DATA method of IF_PURCHASE_ORDER_ITEM_MM.
4. this method is having all fileds for item.
use the method.
Also check the documentation of the method: process_item
"The PROCESS_ITEM method enables you to change the item data and check it for correctness.
Parameters:
The following parameters are available:
IM_ITEM - Document item
The interface reference is of the category IF_PURCHASE_ORDER_ITEM_MM. You can use all methods defined there.
Reddy
Edited by: V.V.Reddy on May 12, 2010 12:46 PM -
Hi,
I have developed a Z program for ME21N by using BAPI( BAPI_PO_CREATE1). When I executive it always shows
"Please enter items first. No instance of object type PurchaseOrder has been created. External reference: Document contains no items".
Would you suggest how can I solve this problem
Best Regards
MahabubHi mahaboob,
Before creating Z program , first execute Function module itself in se37 by passing required parameters with help of functional consultant and if any errors occurs , functional consultant can easily idetifies and resolves it. After successfully execution, develop the Zprogram.
Place the parameters what you are passing , so that i can help you if you need.
Regards,
Ravi -
ME_PROCESS_PO_CUST : BADI for ME21N
Hi All,
Can anybody help me how to define the syntax for changing a field on the purchase order header by using this BADI with method PROCESS_HEADER.
It is not clear to me to program this logic (since I am not an ABAP OO expert) into this method. I want to default field IHREZ.
thanks
eric hassenberg
Oasis consultantsHello,
Did you obtain the badi for IHREZ ?
Thaks,
Vanesa -
Hi experts,
I have a requirement for Tcode ME21n.
if selected vendor number is not in particular company code then it should throw an error message.
plz suggest if any user exit/badi is there for this requirement.
Thnks n regards,
Ashmita SinghTry this bit in BAdI method PROCESS_HEADER.
DATA: lst_mepoheader TYPE mepoheader.
lst_mepoheader = im_header->get_data( ).
IF lst_mepohead-lifnr NE lst_mepohead-bukrs.
mmpur_message_forced 'E' 'ZFI' '000' tex1 txt2 txt3 txt4.
ch_failed = abap_true.
ENDIF.
Roy
Maybe you are looking for
-
PO report showing PO date and qty deliverd date
Hi , Do we have any standated report for MM which show the Po no, Po date, material, description, delivered qty and delivery date.. regards rajesh
-
Via settings erase I cleared my Iphone. Resetting via Itunes does`nt work. Itunes does`nt recognize the Iphone. Help!
-
Hi, I am working on a GUI Application and need some hlep. 1] When I click on Next Item button, it should clear the previously entered values of TextFields. How do I do this? 2] How do I display text in a JTextArea which appears in a Pop-up window? I
-
Ivor Vaz@SUNLIFE 08-11-97 12:57 PM Hello, Does anybody know of a work-around for using MS-SQL stored procedures with complex select statements to build cursors in forte ? I have to use a select statement that contains a union. When I do an OpenCursor
-
I want to change the SSID of my printer
HP Officejet 6600 Win XP I have been using this printer wirelessly for some time with no issue. I have recently expanded the wireless printing capabilities so we can print from our iPads and iPhones. We have two wifi spots; one for the printer called