BADI for ME21N
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
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 -
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. -
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.
-
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 -
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 -
User exit or Badi for ME21N transaction
Hi Gurus,
In ME21N tranasaction i need to make the field 'Free Item' ( checkbox ) as a mandatory field at item over view level for specific document types. so that user can't save the PO order with out checking the checkbox.
So is there any exit or badi to achieve the functionality.
Thanks in advance.
Regards,
krisc.Hi gurus,
Thank you very much for your replies.
I resolved this issue my self.
Thanks,
krisc. -
EXIT BADI FOR ME21N ME22N AND ME23N
Hello Boys.
I want to change the field 'Tax code' (MWSKZ) in a Purchase order on transaction ME21N, ME22N AND ME23N.
I want to change thios field in a BADI, USER EXIT or ENHANCEMENT-POINT.
But I can't find where change this field.
thanks for your help.
Best regards.Try Badi : ME_PROCESS_PO_CUST
CALL METHOD im_item->get_data
RECEIVING
re_data = v_data_item.
Your code to change the tax code
CALL METHOD im_item->set_data( v_data_item ).
<REMOVED BY MODERATOR>
Edited by: Aparna Shekhar on Jun 12, 2008 11:33 AM
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 12:52 PM -
BADI for Me21N - Condition types
Hi All,
wat ever condition type given in the header should be copied to all the items in the item level. then they want to change the condition type at item level for one or two items rest all are same like header condition types.
see we have a condition type optioned as header as well as item condition type So I have given this condition type in the header of PO . It will be automatically copied to all the items in the item level
right
Now for a selected item like let suppose third item i want to delete one condition type and want to give a new one for this it is not allowing me
Is there Any BAdI / Screen Exits which will allow me to copy the header condition type to all the items in Me21N and also it should allow me to Delete or modify that in the Item level
Awaits for the reply .......................
Its a high priority ticket
Pls Respond
Thnx in Advance
Regards
KAMALHi Kaml ,
have u checked with ur functional pplz abt the possibility of doing it thru Config ?, i think they can do some value addition in this .
if you want to access those condition data u can try in these user exits but i'm not sure whether they can help u out in this requirement.
SPRO->MM-->Purchasing >Conditions->Enhancements.
regards
Prabhu -
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
-
Is this the right place to post Questions?
-
Data conversion- GL , GL Open Line Item Upload
Hi, For Objects GL Upload , GL Line item Upload : LSMW- BAPI,IDOC Methods possible .Is any standard Bapi , Idoc available. And also share the advantage and disadvantage in using Ecatt for dataconversions. Please share link which gives details for
-
CR2 (RAW) to JPEG Conversion
Hello and thanks in advance. I'm new to using RAW images in iPhoto. I was given a folder of RAW (CR2) images, and I want to convert them to JPEG to conserve disk space. I have no need to GB's of images that are each 15mb in size. I've read that iPhot
-
Unable to find printer on computer
unable to find printer on computer even though cd loaded and printed wireless network test report printed from printer detects no problems
-
HttpRequest.getSession(boolean create) is broken in WL 5.1