Application Development 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: 

BADI or USEREXIT in ME21N where services are available to validate

Former Member
0 Kudos

Hello Experts,

While creating a Service Purchase Order using ME21N , I need to validate based on the service number entered. Can you help me to know the BADI or User exit , where service details are available.

10 REPLIES 10

kesavadas_thekkillath
Active Contributor
0 Kudos

Check EXIT_SAPLMLSP_040

Check enhancement SRVESLL

Check Badi EXTENSION_US_TAXES

0 Kudos

Hello Expert,

thanks for ur help, but i want the enhancement for ME21N transaction . Plz guide me.

0 Kudos

Did you check whether its triggering.

0 Kudos

Hi

Check these many exit and badi's are there.

Enhancement

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

LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt

LWSUS001 Customer-Specific Source Determination in Retail

M06B0001 Role determination for purchase requisition release

M06B0002 Changes to comm. structure for purchase requisition release

M06B0003 Number range and document number

M06B0004 Number range and document number

M06B0005 Changes to comm. structure for overall release of requisn.

M06E0004 Changes to communication structure for release purch. doc.

M06E0005 Role determination for release of purchasing documents

MM06E009 Relevant texts for "Texts exist" indicator

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

AMPL0001 User subscreen for additional data on AMPL

ME590001 Grouping of requsitions for PO split in ME59

MEETA001 Define schedule line type (backlog, immed. req., preview)

MEFLD004 Determine earliest delivery date f. check w. GR (only PO)

MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.

MM06E008 Monitoring of contr. target value in case of release orders

MM06E007 Change document for requisitions upon conversion into PO

MM06E005 Customer fields in purchasing document

MM06E004 Control import data screens in purchase order

MM06E003 Number range and document number

MM06E001 User exits for EDI inbound and outbound purchasing documents

MEVME001 WE default quantity calc. and over/ underdelivery tolerance

MEQUERY1 Enhancement to Document Overview ME21N/ME51N

BADI's

Business Add-in

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

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_CCP_ACTIVE_CHECK BAdI to check whether CCP process is 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

ME_CCP_DEL_DURATION Calc. of Delivery Duration in CCP Process (Not in Standard)

ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant

ME_TAX_FROM_ADDRESS Tax jurisdiction code taken from address

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_COMMTMNT_PO_REL_C Check for Commitment-Relevance of Purchase Orders

ME_COMMTMNT_PO_RELEV Check for Commitment-Relevance of Purchase Orders

ME_COMMITMENT_STO_CH BadI for checking if commitments for STOs are active

SMOD_MRFLB001 Control Items for Release Creation

ARC_MM_EKKO_WRITE BAdI: Enhancement of Scope of Archiving (MM_EKKO)

ARC_MM_EKKO_CHECK BAdI: Enhancement of Archivability Check (MM_EKKO)

EXTENSION_US_TAXES Extended Tax Calculation with Additional Data

ME_HOLD_PO BAdI: Deactivation of 'Hold'/'Park' in Enjoy Purchase Order

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_PROCESS_PO_CUST Enhancements for Processing Enjoy Purchase Order: Customer

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

Regards

vijay

0 Kudos

Hello Expert,

I am trying out Badi, and the user exit metioned is related to ml81n transaction

0 Kudos

Did you check keeping a break point in EXIT_SAPLMLSP_040

0 Kudos

Hello Expert,

But i am seeing BAdi is not triggering after pressing save . My requirement is compulsary it should not save PO without passing it.

0 Kudos

Can you please check this BADi

ME59_EXCLUDE

ME_REQ_ATP_CHECK

Former Member
0 Kudos

Thank you experts

0 Kudos

Hi, this is an option to validate services in purchase order:

In badi: ME_PROCESS_PO_CUST

method: PROCESS_ITEM

METHOD if_ex_me_process_po_cust~process_item.

DATA lr_po_item_handle TYPE REF TO cl_po_item_handle_mm.

DATA: lt_esll TYPE TABLE OF esll,

ls_esll TYPE esll,

lt_imputaciones TYPE TABLE OF ueskn,

ls_imputacion TYPE ueskn.

DATA: ls_mepoitem TYPE mepoitem.

lr_po_item_handle ?= im_item.

CALL METHOD lr_po_item_handle->get_data

IMPORTING

ex_data = ls_mepoitem

EXCEPTIONS

failure = 1

OTHERS = 2.

----


CALL METHOD lr_po_item_handle->if_services_mm~get_srv_data

EXPORTING

im_packno = ls_mepoitem-packno

IMPORTING

ex_esll = lt_esll

  • ex_esuh =

  • ex_esuc =

  • ex_eskl =

EXCEPTIONS

failure = 1

OTHERS = 2.

----


CALL METHOD lr_po_item_handle->if_services_mm~get_data

  • EXPORTING

  • im_limit =

IMPORTING

  • ex_comsrv =

ex_acc_tab = lt_imputaciones

EXCEPTIONS

failure = 1

illegal_data = 2

OTHERS = 3.

LOOP AT lt_esll INTO ls_esll WHERE mwskz IS NOT INITIAL.

READ TABLE lt_imputaciones INTO ls_imputacion INDEX 1.

CHECK sy-subrc = 0.

u201Cvalidation

IF ( ls_mepoitem-knttp = 'F' OR ls_mepoitem-knttp = 'K' ) AND

ls_mepoitem-pstyp = '9'.

CALL FUNCTION 'ZABC' u201C it has a E message if validation is false

EXPORTING

p_mwskz = ls_esll-mwskz

p_kostl = ls_imputacion-kostl

p_mod = 'TX'.

ENDIF.

ENDLOOP.

ENDIF.

ENDMETHOD.