Exit REFERENCE_SITE in txn ME22N
I was looking for all the possible user exits in trasaction ME22N using CL_Exithandler and method get_instance, checking parameter exit_name..
I came across an exit called REFERENCE_SITE: does anyone know anything about it? I do not seem to find it or any information about this anywhere.....
thanks
Thanks for pointing me in the right direction.
I was able to put my code in EXIT_SAPMM06E_012 and retrieve the component data through (SAPLEINK)XMDPM[]
Below is the code I used to assign the data to be able to evaluate it.
FIELD-SYMBOLS: <z_mdpm_x> TYPE ANY.
DATA: i_mdpm_x TYPE STANDARD TABLE OF MDPM_X.
Fetching Component data
ASSIGN ('(SAPLEINK)XMDPM[]') to <z_mdpm_x>.
CHECK sy-subrc = 0.
Assigning data into an internal table
i_mdpm_x[] = <z_mdpm_x>.
CHECK i_mdpm_x[] IS NOT INITIAL.
David
Edited by: David Herrema on Oct 20, 2010 3:03 PM
Similar Messages
-
Hello All,
A code has been written in the User exit for Tcode ME22N, Which sets the indicator on PO line item. This has been done by modifying the standard itab POT by using field symbols, because the fields to be modified are shown in display mode in the tcode ME22N and cannot be done in BDC. See the below code in user exit ZXM06U43.
DATA char(50) VALUE '(SAPLMEPO)POT[]'.
CLEAR wa_ind.
FIELD-SYMBOLS <f1> TYPE ANY.
Move memory of internal table POT to field symbol f1.
ASSIGN (char) TO <f1>.
Move content of f1 to internal table i_ind
i_ind[] = <f1> .
LOOP AT i_ind INTO wa_ind.
IF wa_ind-pstyp = '9'. " Service PO - item category
IF PO Line item has History per Purchasing Document as 'D'
Set indicators on, for the line item.
CLEAR v_cnt.
SELECT COUNT( * ) INTO v_cnt FROM ent5100
WHERE ebeln = wa_ind-ebeln
AND ebelp = wa_ind-ebelp
AND bewtp = 'D'.
IF sy-subrc = 0.
wa_ind-wepos = 'X'. " Set Goods Receipt Indicator
wa_ind-webre = 'X'. " Set GR-based IV Indicator
wa_ind-lebre = 'X'. " Set Srv-based IV Indicator
ELSE.
*End of addition SAP-20070910104025 - SL36 - D01K963369
wa_ind-wepos = ' '. " Clear Goods Receipt Indicator
wa_ind-webre = ' '. " Clear GR-based IV Indicator
wa_ind-lebre = ' '. " Clear Srv-based IV Indicator
wa_ind-xersy = ' '. " Clear ERS Indicator
ENDIF.
MODIFY i_ind FROM wa_ind INDEX sy-tabix.
ENDIF.
ENDLOOP.
<f1> = i_ind[].
ENDIF.
ENDIF.
This code is in production and has been working fine.
The requirnment is now to make this indicator work for all the Purchase order before this code has been written in the Exit. For this my functional suggests that to write a separate program using BDC for PO change and jus add a period/dot in the short text and save it. The code has been written, the user exit and the above code is getting triggrred values are updated in internal table correctly.
However the flags was not set or cleared when seen in the tcode ME22N . This works fine if the tcode me22n is run directly and not working in BDC.
I have tried with ME22 without enjoy transaction in BDC changing the POT Program to SAPMM06E. It does not work.
Please help me as why it is not uodating in the table when using BDC.
Thanks in Advance.
Senthil KumarHi All,
Any luck on this??
Thanks -
User Exit/BAdI for transaction ME22N - Release status of PO
Dear All,
Requirement: Irrespective of any change to a PO having its release indicator set to approved, the release indicator must not get updated.
As of now, editing a PO (using ME22N) leads to the updation of release group, release strategy and release indicator - this should be prevented from happening for all POs that have a release indicator set to Approved.
We know that in the system, this is determined in the FM ME_REL_STRATEGIE_EKKO. However we are using the version 4.6C and not being able to find a suitable user exit or other enhancement option. Can someone help us with a way to prevent this change from happening.
Regards,
NimishHi,
Did you check the BAdi: ME_PROCESS_PO_CUST.
Reddy -
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 -
Hi gurus,
i have a requirement to make ME21N/ME22N-> item-> Invoice's tax code modifiable for certain conditions and add a checking for the jurisdiction code.
how shall i do that?
i tried looking for exits that the transaction passes through but MEPO1317-mwskz(tax code) and MEPO1317-txjcd(jurisd. code) are not global and therefore are unknown to those exits.
please help.
tnx,
navitnx for that info gustavo.
anywayz, i need to modify the screen of the invoice tab.
as of the present, tax code is not modifiable.
user can't manually enter data onto the screen.
the requirement needs it to be modifiable under certain conditions.
how to do that? -
BADI / USER-EXITS available for Txn. QE01
Hi Experts,
Could anyone please suggest appropriate BADIu2019s and user-exists available for Txn. QE01 to send the status change.
Our requirement is to send a mail notification to the user when all the result recording status of the inspection characteristics turn to 'complete'
In Tx QE01 the inspection results are recorded for each inspection characteristics.When results recorded for all the characteristics the user will close the insp. characteristic and the status will change to 'complete' then needs a mail notification so that user decision (UD) can be performed for the inspection lot.UD (Txn QA11) will be performing after result recording.
Any suggestion will be appreciated.
Thanx and RegardsHi ,
Please check below BADI and User exits .
Bus. add-in name Description
QE_RESULT_VALUATION "Valuation of Single Values
QE_SAVE "Save Results
QEEM_SUBSCREEN_5000 "EE: BAdI Subscreen for Display of Data on Screen 5000
QM_IDI_INSPPOINT "Changing of Inspection Point Processing in IDI and BAPIs
QM_INPUT_PROCEDURE "Input Processing
Exit name Description
QEEM0003 "User exit: add. functions after valuating insp. characs
QEEM0004 "User exit: add. functions after valuation of partial samples
QEEM0006 "User exit: add. functions after closing inspection characs
QEEM0007 "User exit: add. functions after completing partial samples
QEEM0011 "User exit: add. functions before valuating insp. characs
QEEM0012 "User exit: add. functions before valuating partial samples
QEEM0015 "User exit: add. functions after entering individual results
QEEM0020 "User exit: additional functions after entering the inspector
QEEM0021 "User exit: additional functions for user key +US1
QEEM0022 "User exit: additional functions for user key +US2
QEEM0023 "User exit: additional functions for user key +US3
QEEM0024 "User exit: additional functions for user key +US4
QEEM0029 "User-Exit for Characteristic Overview Subscreen
QEEM0030 "User-Exit for Subscreen: Characteristic Single Screen
QEEM0031 "User-Exit for Table Structure with External Numbers
QEEM0032 "Presentation of the characteristic text in the logon lang.
QEEV0003 "Determination of order type for print
QIST0002 "Generating MATERIAL_DATA for QM STI Interface
QIST0003 "Generating VENDOR_DATA for QM STI Interface
QIST0004 "Generating CHARACTERISTIC_HEADER for QM STI Interface
QIST0005 "Generating CHARACTERISTIC_QUANTITATIVE for QM STI
QIST0007 "Generating SAMPLE_HEADER for QM STI Interface
QIST0008 "Generating RESULTS_ADDITIONAL_DATA for QM STI
QIST0009 "Generating RESULTS_QUANTITATIVE for QM STI Interface
QIST0010 "Generating REPORT_HEADER for QM STI Interface
QIST0011 "Generating METHOD_DATA for QM STI Interface -
User exit or BADI for ME22N transaction (please read my requirement)
In me22n transaction when i change a PO Delivery date for any line item and click on save The field latest GR date MEPO1313-LEWED in DELIVERY tab below should display date as per my requirement i.e (delivery date + 90 days)
What uerexit is to be used else if BADI is used pleasee provide me step by step guide as i have never used vadi
IT is urgent. plz helopp.Hi
Find the available exits with the following program:::
*& Report ZFINDUSEREXIT
report zfinduserexit.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
Execute the report, give the transaction you want to find user exit, and query.
<b>BADI</b>
To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
double click on method get_instance, get a break point on case statement.
execute and start the required transaction in new session.
look for variable <b>exit_name.</b> It would show the available badi's.
Please do reward if useful
Regards
Dinesh -
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. -
User exit for change PO (me22n) for save header and item text.
Hi Experts,
I have a requirement to read the header texts/item text at run time .
please tell me is there any save user exit for tc me22n .
Thanks in Advance.
PareshTransaction Code - ME21N Create Purchase Order
Exit Name Description
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
AMPL0001 User subscreen for additional data on AMPL
No of Exits: 35
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal -
Hi,
I need a user exit or Badi for defaulting Plant at line item level.
The scenario goes like this: when ever user tries to change an existing Purchase order and tries to add a new line item in it, I need to trigger USEREXIT or BADI , so that it reads the previous line Plant and updates the current line with the same plant.
I tried with user exit MM06E005 but it didnt seem to work.
Can any one please help me?
I am new to BADI, so I am not sure how to find the BADI and use it. It would be great if anyone can help me i this.
Thanks
RamyaHello
The BAdI ME_PROCESS_PO_CUST is the right one. The method PROCESS_ITEM should be triggered whenever the user changes something in the purchase order at item level and executes any kind of function (e.g. ENTER, CHECK or SAVE).
However, instead of overwriting the user input via the BAdI you should implement method CHECK ( Closing Check ) where you can validate the user input. If any of your validation fails you can send an error message and set CHANGING parameter CH_FAILED = 'X'. This approach is much more transparent for the user.
NOTE: In order to "send" an error message you need to add the include mm_messages_mac to your implementing class. For an example see class CL_EXM_IM_ME_PROCESS_PO_CUST (should be available on ERP 6.0):
METHOD if_ex_me_process_po_cust~process_item .
DATA: ls_mepoitem TYPE mepoitem,
ls_customer TYPE mepo_badi_exampl,
ls_tbsg TYPE tbsg.
INCLUDE mm_messages_mac. "useful macros for message handling
* here we check customers data
ls_mepoitem = im_item->get_data( ).
IF ls_mepoitem-loekz EQ 'D'.
* check field badi_afnam
IF ls_customer-badi_afnam IS INITIAL.
mmpur_metafield mmmfd_cust_02.
mmpur_message_forced 'W' 'ME' '083' text-003 '' '' ''.
ENDIF.
ENDIF.
ENDMETHOD. "IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
Regards
Uwe -
User exit / badi for txn: FBCJ
Hi experts,
After posting FBCJ entry we are passing one more entry with FB01,
My requirement is to automate the entry from FBCJ.
Can we pass FB01 entry as soon as we post FBCJ by using user exit / badi.
I tried the badi "CJ_DOCUMENT" but it fails even after activating it.
Thanks
Ganesh
Edited by: Ganesh Modhave on Sep 4, 2008 9:06 AMhello,
just check out the BADI CJ_DOCUMENT for tcode FBCJ if this suits ur requirement.
Regards,
Sagar. -
Hi,
I am Mohan. I faced on Problem with the User Exit. I write the user exit for the ME21n for PO Creation. While Creation of the PO the Purchase Requition is mandatory. it is working for the ME21n. But PO creation is another two ways is there. Those are ME22N (Purchase order---> Create) and ME23N
(Purchase order---> Create) for this case also my condition applicable but it is not working for this case. How to write the Code for this. by using Sy-ucomm also. but it is not working.
Please help me.
Regards,
MohanFollowing the user exit's related to ME22N transaction.
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
Regards. -
User-exit/BADI for version tab in ME22N
Dear Friends,
I have a requirement pertaining to user exit/BADI.
In ME22n in version tab when ever we change any data of PO the Version Completed check box should be checked.
Please let me know about the User Exit to be used and few lines of Pseudo code to proceed further.
Thanks,
AnshulDear Dave,
Check any enhancement Point is available to inlcude your logic in that place.
With Regards,
Selvan.M -
Hello all,
Here is what I want: I need to check the 'User entered' values of Vendor confirmation (EKES) details from ME22N and validate the same in one of the User exits, BEFORE the PO is saved. I have checked most of the User exits for the transaction ME22N. I found one such user exit EXIT_SAPMM06E_012 that has all the user entered values Except the EKES that I actually want. I also checked the user exit EXIT_SAPMM06E_013 that has EKES details, but is called after the PO is saved. Please let me know in case anyone of you have a solution to it. Also, am not sure if there is any BADI for this.
Thanks and Regards,
Deepa S.Maybe you can use the EXIT_SAPMM06E_012 user exit, and pull the needed data thru field symbols. Here is an example of what I'm talking about.
These two programs simulate passing data thru field symbols. In the first, it gets data into IMARC, then it calls a subroutine which resides in the second program, in this subroutine, it uses field symbols to access the data of IMARC.
** Pass values with field symbols with using parameters.
** can be done thru function module or thru external subroutine
** call. variables must be global.
report zrich_0006 .
tables: mara.
parameters: p_matnr type mara-matnr..
data: matnr type mara-matnr.
data: imarc type table of marc with header line.
matnr = p_matnr.
select * from marc into table imarc up to 10 rows
where matnr = p_matnr.
perform entry in program zrich_0007.
report zrich_0007 .
* FORM entry *
form entry.
data: field(50).
data: xmarc type marc.
field-symbols: <matnr>.
<b> field-symbols: <imarc> type marc_upl_tt.</b>
* Assign an individual variable
field = '(ZRICH_0006)matnr'.
assign (field) to <matnr>.
* Assign an internal table
<b> field = '(ZRICH_0006)IMARC[]'.
assign (field) to <imarc>.</b>
* Write out your data
write <matnr>.
loop at <imarc> into xmarc.
write: / xmarc-werks.
endloop.
endform.
In your case, you will want to add this code into your include which is in the EXIT function module.
Regards,
RIch Heilman
Message was edited by: Rich Heilman -
Screen exit or Badi for MIR7 parking txn
Screen exit or Badi for MIR7 parking txn
Wht are the Sccreen exit or badis available for MIR7 txn ,
plz help me with the program which can find all the exits available ina txn ?hi
Enhancement
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Business Add-in
INVOICE_UPDATE Business Add-In: Logistics Invoice Verification
PPA_CUST_BADI
FAGL_PERIOD_CHECK
MRM_VARIANCE_TYPE
MRM_HEADER_CHECK
INVOICE_UPDATE
Yogesh N
Maybe you are looking for
-
ZEN Vision 'Hardware Problem' error mess
Model No: ZEN Vision - PMC-HD0002 Error occurred as a result of a firmware upgrade.I can access 'recovery mode' &?have attempted several further firmware upgrades.It loads, rebuilds, reboots, starts then the 'hardware problem' error message returns.T
-
Has anyone used Quick book on their Mac in Canada?
-
Netweaver NW_JAVA_700SP14_SR3.rar(4GB) download stops at 2GB
We have tried downloading Netweaver NW_JAVA_700SP14_SR3.rar(4.3 GB) several times from home and office. It gets to 2GB and stops with no error. But, on opening it, it gives an error.
-
My daughter's Ipod touch is locked and says to go to iTunes.
My daughter locked her iPod some how and I can't get it to work. It says to go to iTunes.
-
Hi all i m getting difficulties in installing new songs so plz help to how to add new songs.