ME21 User Exit to check/validate WEPOS field
We want to use ME21 transaction for simple purchasing
We want to build a small enhancement to check the GR indicator (WEPOS) based upon a threshold order value
Does anyone know a user exit, badi or alternative that will allow us to import and export this value?
Thanks
Steve
Dear Steve,
If there's a requirement to change the indicator agains a specific condition, you can define the condition in the exit, then create a Z* program that contrain a BDC of change PO (ME22), and in the Z* program you can check to the exit condition, if its meet than the GR indicator can be unticked, cause you'll need also to check , whether GR has take place for the PO or not and other condition, so you need to things to do.
1. add condition logic in the exit
2. create a Z* program to change the WEPOS flag(using BDC code ME22--> its more recommend cause you use the standard SAP trx) and you can schedule the Z* program to run background.
Regards,
w1n
Similar Messages
-
User Exit for checking Purchase Requisitioner Field in CJ20N Transaction
Hi,
I want user Exit for checking Purchase Requisitioner field while making PR through CJ20N transaction. I have trie EXIT_SAPLEBND_001 user exit. Problem in this user exit is I am not getting Purchase Requisitioner No & Item No in I_CEBAN
structure.
Please suggest what to do ?
Regard's
ShabbirHi,
You can check with this BADI ME_PROCESS_REQ_CUST.
Kindly refer below mentioned link for further details:
Badi ME_REQ_POSTED For CJ20N Transaction
Hope this will help you.
Regards,
Mudita -
User Exit to Override ASN IDOC field
Hello Experts,
I am looking for an user exit to override ASN IDOC field while sending IDOC to third party tool. Below is the scenario
Once we do the PGI on outbound delivery SPED output creates ASN and it triggers ZASN output. We use basic type DELVRY03 to send IDOC to third party tool. Now before sending ASN to third party tool we would want to send them a flag so based on that they perform auto receipt process in their system.
I have selected Export Indicator (EXPKZ) field from IDOC since this hasn't been mapped with third party tool. Once we get an user exit to update the Auto Receipt flag in the Export Indicator field in IDOC we will map it in XI/PI so that it will go to third party tool for further processing.
I have a logic to identify the ASN which needs to set auto flag but I am struggling where and how to put that logic, what user exit suffice the requirement?
Thanks in Advance
JayIf my understanding correct Before you send inbound delivery information to third party system you will send one Flag to Third party system to do goods receipt.I have one question if system failed to create /user cancelled Outbound delivery then how will you stop auto goods receipt in Third party system ?.Also After goods receipt GR messages failed in sap as there is no ASN created in system.
If you want to send the flag before ASN creation then at Speed message level you split the Idoc message into two parts one for flag the message two third party system and another one to create Inbound delivery. -
User exit for checking creation of prod. order reference to sales order?
Hi all,
What are user exit suitable for checking creation of prod. order reference to sales order to have the same plant. If plant not the same, an error message should appear.
thanks.Hi,
user exits:
PPCO0003 Check exit for order changes from sales order
PPCO0007 Exit when saving production order
Regards,
Vivek -
User exit for checking the vendor emailid in me22n or me21n
hi all,
can anybody suggest me a user exit for checking the email id of the vendor in me21n or me22n or me29n.
plz suggest me a solution its urgent.hi yaan,
i checked with the user exit that u suggested me, it is getting triggered, i am able to check whether the vendor email id is present or not, but this is happening all the time that is even when the user dont want to send a email to the vendor i.e. he just wants to print the purchase order, even at that time this user exit is getting triggered and giving a message that the vendor email id is not maintained.
the reson why this is happening is there is no import parameter to this user exit which gives the "medium of data transfer" the user has entered. if i get this parameter visible inside the user exit, then i can check this parameter inside the user exit and do the required operation. i checked up with all the user exits in "me" package and even the other related packages but none of them is getting triggered,
do u know a user exit or badi which imports this parameter and also gets triggered at the time of creation of purchase order.
plz give me a solution.
regards,
santosh. -
User exit to check the consistency of filled fields before saving
Hi,
I am looking for a User Exit which can be executed when a user click on "Save" button.
In this User Exit, I would like to implement some controls to check the consistency of filled fields.
I have an example to better understand : I work on transaction code ME11 and ME12 (create and modify Info Record). When all mandatory fields are filled, the user can save its. When the user click on "Save" button, I want that a checking (with a user exit, or anything else) verify the consistency of some fields (for example, the consistency between the Tax code of the country and the country of the supplier).
If it's not clear, I could precise...
Thanks in advance for you help...Hi,
I am looking for a User Exit which can be executed when a user click on "Save" button.
In this User Exit, I would like to implement some controls to check the consistency of filled fields.
I have an example to better understand : I work on transaction code ME11 and ME12 (create and modify Info Record). When all mandatory fields are filled, the user can save its. When the user click on "Save" button, I want that a checking (with a user exit, or anything else) verify the consistency of some fields (for example, the consistency between the Tax code of the country and the country of the supplier).
If it's not clear, I could precise...
Thanks in advance for you help... -
User exit to check/uncheck the GR Indicator at the time of PO creation
Hi,
Can anybody help me out in finding the right user exit/BAdi to control the GR Indicator flag.
We already tried the user exits:
EXIT_SAPLMEKO_001
EXIT_SAPLMEKO_002
EXIT_SAPLFYTX_USER_001
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
EXIT_SAPMM06E_009 and also tried the BAdi ME_PROCESS_PO_CUST.
Nothing is updating the GR Indicator flag.
Please let me know if any other user exits exist.
Thanks in advance. Quick response is appreciated.
BhaskarHi,
Try this code..I have used memory pointers....
In the userexit <b>EXIT_SAPMM06E_012</b>
DATA lwa_ekpo LIKE bekpo.
data lw_field(50).
FIELD-SYMBOLS <t_xekpo> TYPE STANDARD TABLE.
IF sy-tcode = 'ME21'.
lw_field = '(SAPLMEPO)POT[]'.
ASSIGN (lw_field) TO <t_xekpo>.
if sy-subrc ne 0.
lw_field = '(SAPMM06E)POT[]'.
ASSIGN (lw_field) TO <t_xekpo>.
if sy-subrc <> 0.
message e208(00) 'Couldn't find POT'.
endif.
endif.
loop at <t_xekpo> into lwa_ekpo.
Check the conditions..
example..
if ......
Check the GR indicator..
lwa_ekpo-WEBRE = 'X'.
<b>MODIFY <t_xekpo> from lwa_ekpo transporting WEBRE.</b>
endif.
endloop.
ENDIF.
Hope this helps..
Thanks,
Naren -
User exit name to validate the Trasactiopn type at t.code ABAON
Hi,
we need to validate the Posting date and Transaction type at transaction code ABAON (Enter Asset transactions).
Please help me which user exit can we use to validate this?
For T.code ABAON i checked the packeage name as 'AA'
based on the package, we found the below User exit names. Which can i use out of the below.
AAPM0001 Integration of asset accounting and plant maintenance
AFAR0003 External changeover method
AFAR0004 Determination of proportional values for retirement
AINT0004 Change amount posted for certain areas
AINT0005 Dummy for extended syntax check. Do not use.
AISA0001 Assign Inventory Number
AIST0001 Exchange number range in master data maintenance
AIST0002 Customer fields in asset master
AMSP0002 Determine relationship type for two company codes
TRAN0001 User exit for asset transfer
Please help us .
Thanks in advance,
Satya.Hi Satyanarayana,
Why dont you try with Validations & Substitutions using GGB0.
For more information on Validation & Sustitutions follow below link:
Re: substitutions & validations
Regards
Abhii -
Hello all,
my requirement is, system should give error message while creating sales order, if chapter ID is not maintained for a material and plant combination.
please suggest the user exit.Hi
CASE 1 : All Plants are excisable.
In Material master , Foreign Trade data tab- mentioned Control code field mandatory. ( i.e nothing but Chapter ID)
CASE 2 : Few Plants are excisable
In the Case 2 you need to go for Enhancement
Program Name : MV45AFZB
User Exit: USEREXIT_CHECK_VBAP ( Item Level Check )
By using above user exit you write a logic with the help of ABAPer
Plant and Chapter ID combination table : J_1IMTCHID -
Need BADI or user exit to check info record on MM41/MM42.
System: SAP ECC 6.0 Retail
Problem: During article maintenance (MM41/MM42), we want to check certain fields on the info record (EINA) for only one valuation class.
Steps already taken:
Checked the current BADi. The current BADi, BADI_MATERIAL_CHECK, did not contain a parameter for EINA. (It did contain parameters for MARA, MARC, MBEW, MKVE, etc.)
Searched for other user exits and/or BADiu2019s. In SPRO/IMG under Logistics General, Material Master, Retail Specific Settings, Settings for Core Master Data and BADi: Additional Checks and Data Adjustment, I found u201CWRF_MAT_MAINTAINDATAu201D which contains a method u201CMODIFY_INFORECORD_DATAu201D. This looked like it may be what I was looking for.
So I created an implementation ZWRF_MAT_MAINTAINDAT. It insisted on defined filters. So I set up the following filters:
01 Core Article Master Data Maintenance
02 Article Copy Functions
03 Article Mass Maintenance
99 Not Specified
Then I activated it.
I put a break into the method, but the transaction MM42 (nor MM41) would stop at the break point.
Did I miss a step? Is this the wrong BADi? Are the filters wrong?
Can anyone help?There is BAdI for this.
However, a SAP consultant provided the following:
In IF_EX_BADI_MATERIAL_CHECK~CHECK_DATA_RETAIL
METHOD if_ex_badi_material_check~check_data_retail.
* Implementation of BADI_MATERIAL_CHECK
* Author: Syama Srinivasan, SAP Retail
* Date: December 17, 2008
* Description:
* Check EINA fields in Purchasing View of Article Master Create/Modify using MM41 & MM42.
* If "Valuation Class" in the "Basic View --> General Data" field is 3100, then ensure
* that the "Var. Order Unit" OR "Return Agmt" fields in "Purchasing Veiw --> General
* data for each vendor" are not blank.
* Work area declaration.
DATA: l_eina TYPE eina, "Purchasing Info Record: General Data
l_maw1 TYPE maw1. "Article Master: Default Fields and Special Retail Fields
* Local variables
DATA: lv_eina TYPE char30 VALUE '(SAPLMGMW)EINA', "EINA Work area
lv_maw1 TYPE char30 VALUE '(SAPLMGMW)MAW1'. "MAW1 Work
DATA: ls_errdat TYPE merrdat.
* Field symbols
FIELD-SYMBOLS: <fs_xmaw1> TYPE maw1,
<fs_xeina> TYPE eina.
ASSIGN: (lv_maw1) TO <fs_xmaw1>,
(lv_eina) TO <fs_xeina>.
IF sy-tcode = 'MM41'
OR sy-tcode = 'MM42'.
* Perform the check only if "Valuation class" is 3100
IF <fs_xeina> IS ASSIGNED AND
<fs_xmaw1> IS ASSIGNED.
IF <fs_xmaw1>-wbkla = '3100'
AND <fs_xeina>-lifnr IS NOT INITIAL.
IF <fs_xeina>-vabme IS INITIAL OR
<fs_xeina>-rueck IS INITIAL.
* MESSAGE e009(z1id) WITH <fs_xmaw1>-wbkla.
ls_errdat-msgid = 'Z1ID'.
ls_errdat-msgty = 'E'.
ls_errdat-msgno = '009'.
ls_errdat-msgv1 = <fs_xmaw1>-wbkla.
APPEND ls_errdat TO rt_errdat.
MESSAGE e009(z1id) WITH <fs_xmaw1>-wbkla.
ENDIF.
ENDIF.
ENDIF.
* Perform the check only if "Valuation class" is 3100
IF <fs_xeina> IS ASSIGNED AND
<fs_xmaw1> IS ASSIGNED.
IF <fs_xmaw1>-wbkla = '3100'
AND <fs_xeina>-lifnr IS NOT INITIAL.
IF <fs_xeina>-vabme NE '2'.
* <fs_xeina>-vabme = '2'. This doesn't work
ls_errdat-msgid = 'Z1ID'.
ls_errdat-msgty = 'E'.
ls_errdat-msgno = '010'.
ls_errdat-msgv1 = <fs_xmaw1>-wbkla.
APPEND ls_errdat TO rt_errdat.
MESSAGE e010(z1id) WITH <fs_xmaw1>-wbkla.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD. -
User Exit for validating overall limit field and expected limit field-ME2xN
Dear Gurus,
Can you please suggest me any user exit or BAdi to validate the overall limit field and expected limit field in transaction ME2xN.
Or any other way to to achieve this functionality in ME2xN.
Our Requirement is while raising a service PO in the Limits tab the 'Overall limit' should be same as 'Expected Value', at present the user can enter overall limit greater than 'Expected Value'.
Regards,
Priyank Joshithis will not work. you cannot add another structure (AUFK) on top of CEBAN. all characteristics have to be of one structure and since you want to release a PR it has to be CEBAN. before attempting to program something around that why do you not go to tx. OLME -> PR -> Release Strategy -> With Classfication -> Release Strategie and run it in a simulation mode. you will then see how it reacts.
there's a white-paper on service.sap.com explaning in detail release-strategies. it's a good one and a good read too! -
User Exit to make Payment Term field non editable in item level .
Hi all,
User wants to make the Payment Term field in sales order as non editable and Payment terms is copied from Customer Master to Sales order.
I use user exit MV45AFZZ (USEREXIT_FIELD_MODIFICATION) to make Payment Term field non editable in header level.
I am not able to do it in item level. Pl help to to make Payment Term field non editable in item level.
Thanks,
sunilHi,
You can try implicit enhancement in the include MV45AF0T_TCTRL_U_ERF_AUFTRAG_I
use below code.
DATA: WA_COLS LIKE LINE OF TCTRL_U_ERF_AUFTRAG-COLS.
LOOP AT TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
IF WA_COLS-SCREEN-NAME = 'VBAP-ZTERM'. " Check the field name
WA_COLS-SCREEN-INPUT = 0.
WA_COLS-SCREEN-OUTPUT = 1.
MODIFY TCTRL_U_ERF_AUFTRAG-COLS FROM WA_COLS.
ENDIF.
ENDLOOP.
It better to control it via a custom authorization object.
put a authorization create a custom authorization object so that you can restrict it for a certain users.
AUTHORITY-CHECK OBJECT 'ZTERM'
ID 'ACTVT' FIELD '02'.
IF SY-SUBRC NE 0.
LOOP AT TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
ENDLOOP.
ENDIF.
Regards
Aromal -
User Exit/ BADI to validate input in LT06
Dear Gurus,
I would like to ask what user exit/BADI i could use to validate or check the input value before creating the material document in LT06?
I have tried MWMTO001 and put break point inside FM EXIT_SAPLL03T_001, but the break point is not called.
Thanks a lot.Hi Shirley,
If you get the proper place where you need to add your code then best option is, you can findout implicit enhancement for this and add your code in inside implicit part.
every screen having PBO and PAI part , you can try to add your code in PAI part.
Note: for this BAdI definition WM_ENHANCMENT implementation, need to sap access key and remove tick from BADI definition but I don't think this is right option.
Regards,
Prasenjit -
PO ( ME21 ) User Exit..
Hi All,
i have to add two custom fields in PO item level table control.
is it any screen exit avaliable for add those fields in Purchase Order item level table control?
if is please provide that enhancement name or give me some other soluction for this issue.
thanks
john.HI
GOOD
GO THROUGH THE FOLLOWING USER EXITS,THESE MIGHT HELP YOU TO SOLVE YOUR PROBLEM
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
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
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.
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
MM06E011 Activate PReq Block
THANKS
MRUTYUN -
User exit to check vendor tax type in tcode FB60
Dear All,
i need o create an user exit for FB60 check the vendor tax types .
Plz advice.
regards
sivaHi,
check these..
Enhancement/ Business Add-in Description
Enhancement
SAPLF051 Workflow for FI (pre-capture, release for payment)
RFKORIEX Automatic correspondence
RFEPOS00 Line item display: Checking of selection conditions
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
FEDI0001 Function Exits for EDI in FI
FARC0002 Additional Checks for Archiving MM Vendor Master Data
F180A001 Balance Sheet Adjustment
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
Business Add-in
FBAS_CIN_MF05AFA0 EWT - Downpayment Clearing - Tax transfer for CIN
FISPLIT Online Split: Cash Discount, Exchange Rate Differences
FI_AUTHORITY_ITEM Extended Authorization Check for Document Display (FB03)
FI_DOC_DISP_LI Diversion to Document Items (FB03)
FI_FB08_SUBST_BUDAT FB08: Check Posting Date for Reversal of FI Doc. with FB08
FI_GET_INV_PYMT_AMT BAdI for determining the payment amount for an invoice
FI_HEADER_SUB_1300 Screen Enhancement for Document Header SAPMF05A
FI_PAYREF_BADI_010 BAdI: Payment Reference Number
FI_RES_ITEM_CURRENCY Document of Residual Item with Invoice Currency
FI_TRANS_DATE_DERIVE Derive BKPF-WWERT from Other Document Header Data
FVFZ Replacement for Function Modules of Function Group FVFZ
INVOIC_FI_INBOUND BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)
RFESR000_BADI_001 BAdI for Own Processing of POR Item
AC_QUANTITY_GET Transfer of Quantities to Accounting - Customer Exit
ADJUST_NET_DAYS Change to Net Due Date
BADI_ENJ_ALT_ADR Go to alternative vendor/customer data
BADI_F040_SCREEN_600 Screen Enhancement on F040 0600 Document Header
BADI_FDCB_SUBBAS01 Screen Enhancement 1 on FDCB Basic Data Screen (010, 510)
BADI_FDCB_SUBBAS02 Screen Enhancement 2 on FDCB Basic Data Screen (010, 510)
BADI_FDCB_SUBBAS03 Screen Enhancement 3 on FDCB Basic Data Screen (010, 510)
BADI_FDCB_SUBBAS04 Screen Enhancement 4 on FDCB Basic Data Screen (010, 510)
BADI_FDCB_SUBBAS05 Screen Enhancement 5 on FDCB Basic Data Screen (010, 510)
BADI_MIRO_SPLT_ADD Append additional fields of ACCVS to ACCIT
BADI_PRKNG_NO_UPDATE BAdI for Deactivating Update of Parked Documents
F050S008 FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger
FBAS_CIN_LTAX1F02 Tax interface
No.of Exits: 14
No.of BADis: 26
Arunima
Maybe you are looking for
-
HOW TO - move a datafile from one disk to another ?
How can we move a datafile which is part of the big tablespace to another disk. We have added new Disk to our server - OS windows 2000 / Oracle 9i - 9.2.0.5 We want to move a datafile from D drive to F drive. Shutdown of the database is possible. Tha
-
How do I create duplicates in place
I'd like to make a grayscale image with an octagon at the center and an identical rectangle radiating out from each flat side of the octagon. Is there a simple way to do this in Illustrator CS4? I made my octagon. Then added a rectangle position a
-
11.1.4 wont download
11.1.4 wont download, then renders my itunes unusable. I had to restore my computer to an earlier date and refuse the download to keep itunes running running vista
-
POP UP window resize in web dynpro ABAP
Hi All, I have created a pop up window by using method create_window of interface if_wd_window . The pop up window is Resizable by default . If user Resizes the pop up window , Screen is uncooperative . As a solution we decided not to allow Resizabl
-
Best way to use CSS in random text
Mick White recommended this script for displaying random text. Is there a way to mod this so that it's can show multiple CSS styles (one style for the quote and one for the name)? Or should I do this another way? (I'm not great with databases yet.) T