UserExit/BADI for ME22N services tab
Hi all,
My requirement is that, I need to do validation of the Service Quantity of Purchase Items in ME22N transaction (ie. Change PO).
I have tried a BADI "ME_PROCESS_PO_CUST", but I am getting only the PO item quantity in this BADI, not the service quantity.
Can any body suggest me a correct UserExit/BADI to to the validation of Service Quantity.
Regards,
Anbarasan K
Thanks Charlie.
The user exit SRVESLL worked.
Similar Messages
-
BADI for ME22n - Component Object List
Hi ,
I am working with transaction ME22n. When the item category is L. The material data tab shows a button called Components (Object List). On clicking this button i am taken to another screen which has childeren material items and the related data. I need to capture the values on this screen and compare them with the database values to identify any changes.
I am working with BADI ME_PROCESS_PO_CUST , method CHECK and OPEN. Please tell me in which method parameter those screen values are stored and i can fetch them.
Also please suggest me any other approach possible which i can use to capture the screen field values in the component screen.
Any help would be deeply appreciated.
Thanks in advance.
Moderator message : Duplicate post locked. Continue with thread [BADI for ME22n - Component Object List|BADI for ME22n - Component Object List]
Edited by: Vinod Kumar on Aug 9, 2011 12:25 PMHi,
Please check this thread
User exit for component data in ME21n/ME22n
Thanks -
Userexit/BAdi for CBIH102 (HR-EHS module)
Hi guru's,
Please help find the userexit/BAdi for Transaction code: CBIH102. The Requirement is to auto-populate the Accident Category (CCIHT_IPEVA-IALPCAT) field during the Creation/Change mode. I tried the below exits/BAdi & set all the breakpoints, activated CMOD projects and even implemented BAdi. It is not triggering. Enhancement Framew
Object Name Description
EHSIAHM1 EH&S: Menu Exit 1 for Incident/Accident Log Header
EHSIAHM2 EH&S: Menu Exit 2 for Incident/Accident Log Header
EHSIAPM1 EH&S: Menu Exit 1 for Incident/Accident Log Person
EHSIAPM2 EH&S: Menu Exit 2 for Incident/Accident Log Person
EHSMPHM1 EHS: Menu Exit 1 for Measurement Project Header Data
EHSMPHM2 EHS: Menu Exit 2 for Measurement Project Header Data
EHSMPJM1 EHS: Menu Exit 1 for Measurement Project Measurements
EHSMPJM2 EHS: Menu Exit 2 for Measurement Project Measurements
EHSSARA EHS: Check/Edit Lines in SARA List Before Printout
BAdi Name Description
EHSI_AC_COSTC EHS: Cost Calculation in Safety Measures
EHSI_ANNC_RATCP EHS: Calculation of Rating of Standardized Criteria
EHSI_ER_MEX_01 EHS: Risk Assessment Menu Exit 1
EHSI_ER_MEX_02 EHS: Risk Assessment Menu Exit 2
EHSI_ER_MEX_03 EHS: Risk Assessment Menu Exit 3
EHSI_ER_MEX_04 EHS: Risk Assessment Menu Exit 4
EHSI_FAL_***_SRV_SCR EHS: Screen Enhancement: Injury/Illness Log-Service Assignmt
EHSI_FAL_MEX_01 EHS: Injury/Illness Log Menu Exit 1
EHSI_FAL_MEX_02 EHS: Injury/Illness Log Menu Exit 2
EHSI_FAL_MEX_03 EHS: Injury/Illness Log Menu Exit 3
EHSI_FAL_MEX_04 EHS: Injury/Illness Log Menu Exit 4
EHSI_IA_RPHDFLG_COMP EHS: Determ. of Reportable Event Indicator in Inc./Acc. Hdr
EHSI_INT_ORG_1403 EHS: Write Long-Term Average to Infotype 1403
EHSI_MJVA_MATCHUP EHS: Transfer Measured Values - Amounts
EHSI_MJ_IMPORT EHS: Import Measured Values
EHSI_MJ_MEX_01 EHS: Measurement Management - Measurement - Menu Exit 1
EHSI_MJ_MEX_02 EHS: Measurement Management - Measurement - Menu Exit 2
EHSI_MP_CREATE EHS: Create Measurement Projects
EHSI_MP_DV_SCR EHS: Screen Exit: Device List in Measurement Management
EHSI_MP_EPI_IMP EHS: Import Exposure Profile
EHSI_MP_METHOD_HELP EHS: F4 Help for Measurement Method
EHSI_MP_MEX_01 EHS: Measurement Management - Meas. Project - Menu Exit 1
EHSI_MP_MEX_02 EHS: Measurement Management - Meas. Project - Menu Exit 2
EHSI_WA_MEX_01 EHS: Work Area Menu Exit 1
EHSI_WA_MEX_02 EHS: Work Area Menu Exit 2
EHSI_WA_MEX_03 EHS: Work Area Menu Exit 3
EHSI_WA_MEX_04 EHS: Work Area Menu Exit 4
EHSI_WA_OVERALL_RAT BAdI Default Impl.: Work Area Overall Rating
EHSI_WA_RECEIVED_RAT BAdI Default Impl.: Work Area Received Rating
EHSI_ACPM_DATA_TRANS BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_HEAD_SCR BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_MEX_1 BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_MEX_2 BAdI Default Impl.: Work Area Received Rating
EHSI_CLM_PAY_SCR BAdI Default Impl.: Work Area Received Rating
EHSI_IAL_COSTS_SCR BAdI Default Impl.: Work Area Received Rating
EHSI_IPEVA_TIMDAT EHS: Make the Multiple Absences in the I/A Log flexible
Regards,
VinayakUp please )
-
I have found the BADI for ME22N . It is ME_PROCESS_PO_CUST. In this BADI, when i double click on the interface PROCESS_ITEM, I go in the method where i can write code. In this code i want to fetch the PO item no. which i get at run time. This method has parameter IM_ITEM as parameter. How do i capture the value which comes at run time for this PO item. I am not able to write the syntax for it.
When i debug , in IM_ITEM ,i get some class names one of which is CL_PO_ITEM_HANDLE_MM and some variable name PO_ITEM_NUMBER which contains the value of PO Item. But i dont know how to write syntax .Priti,
code looks like this:
Sample code for a PO Badi:
BAdI Name: ZCHECK_PO_LINE_ITEM (Implementation name) PO Account assignment
Definition Name: ME_PROCESS_PO_CUST
Interface Name : IF_EX_ME_PROCESS_PO_CUST
Implementing Class: ZCL_IM_BADIN_ACCOUNT_ASSGN
Method : PROCESS_HEADER
METHOD if_ex_me_process_po_cust~process_header .
DATA : re_data TYPE mepoheader.
*get the item data
CALL METHOD im_header->get_data
RECEIVING
re_data = re_data.
re_header = re_data.
IF ( re_data-bsart NE 'ZOC' AND re_data-bsart NE 'ZPC' ).
IF ( re_data-bsart 'ZIC' AND re_data-bsart 'UB' ).
IF re_data-bukrs NE '1001'.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'Use only Sipchem Company'
'Code for External Procurement'.
ENDIF.
ENDIF.
ENDIF.
ENDMETHOD.
Method : PROCESS_ITEM
METHOD if_ex_me_process_po_cust~process_item .
DATA: v_menge TYPE bamng, " PR Quantity
v_statu. " PR Status
DATA : re_data TYPE mepoitem,
re_data1 TYPE mepoaccounting,
re_accountings TYPE purchase_order_accountings ,
header TYPE purchase_order_accounting.
*get the item data
CALL METHOD im_item->get_data
RECEIVING
re_data = re_data.
IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
IF re_header-bsart EQ 'ZRL'.
IF re_data-konnr EQ space.
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant create a Release order'
'without a reference to Outline Agreeement'.
ENDIF.
ENDIF.
u2022 IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
IF ( re_data-banfn EQ space AND re_data-anfnr EQ space ).
MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can create a Purchase order'
'only with reference to a PR or RFQ'.
ENDIF.
u2022 ENDIF.
u2022
o call method IM_ITEM->GET_ACCOUNTINGS
o RECEIVING
o RE_ACCOUNTINGS = RE_ACCOUNTINGS.
**get the accounting reference variable,this reference is needed to get
**the GL account *number and Asset number
*loop at RE_ACCOUNTINGS into header.
**get the accounting info.
u2022 call method header-ACCOUNTING->GET_DATA
this one i have used for our requirement.
Amit. -
Any Userexit & BADI for transaction VB(7 during final settlement
Hi SAP GURUS,
I have checked no user exit and BADI. Any Userexit & BADI for transaction VB(7 during final settlement. During final settlement of rebate, I have to change the amount from KONP table in transaction VB(7 . Let me know the userexit and BADI.
Regards,
Karthik.Hi Sekhar,
These following BADI are not capturing KONP item details.
I want to capture KONP item details to modify amount.
ARC_SD_COND_CHECK : Archiving Object SD_COND: Additional Checks
ARC_SD_COND_WRITE : Archiving Object SD_COND: Archive Additional Data
SD_COND_SAVE_A : Save condition application A, E
Regards,
Karthik. -
ESS: Badi for Travel Services
Hi all,
I need to apply few check while travel services like Train, Outbound Flight, Inbound Flight, Car are filled up by employee, Please Suggest some BADI for travel services...Hi,
Its not a transaction, its ESS service. -
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 -
How to activate Business Add-In (BAdI) for Enterprise Service
Hi,
I have connected enterprise service
Find Production Order by Work Centre
external/technical Name: ProductionOrderSimpleByWorkCentreQueryResponse_In
Namespace: http://sap.com/xi/APPL/SE/Global
SAP Software Component Version: ESA ECC-SE 605
Internal Name: ECC_PRODUCTIONORDERSWQR
SAP Library - Enterprise Services for SAP ERP
http://es-workplace.sap.com/socoview(bD1lbiZjPTAwMSZkPW1pbg==)/render.asp?packageid=DE0426DD9B0249F19515001A64D3F462&id=…
from our ECC system to our PI 7.1 and did first tests.
I'm getting response to my requests from the ECC system.
But in the response, there are only the production order IDs for the requested work centre.
I suppose that the BAdI PORD_SE_PRODUCTIONORDERSWQR, mentioned in service description, has to be activated for the service in the ECC system, to get all the other optional production order elements, defined in the service response message type.
Am I right?
Which steps in the ECC backend are neccessary to activate a BAdI for an enterprise service?
Regards
RolandSalegram,
BADi is not provide us functionality for data upload for Annual PF / Pension Report.
BADi is using for some add in our business transaction.
just explore tx se18 ans se19.
Amit. -
Userexit/badi for tcode MB1A
Hi,
I am currently looking for a userexit or BADI for transaction MB1A for me to modify/delete the accounting documents document created by this transaction.
Thanks!The below are the available user exits for MB1A.
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation
BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
To check for the suitable badi, Go to transaction SE24 and give the Object type as CL_EXITHANDLER and click on Display button.
Double click on method GET_INSTANCE, put a break point on case statement.
Execute your transaction and look for variable EXIT_NAME at your scenario then It will show the available badi's.
Reward if it is useful.
Thanks,
Srinivas -
Userexit/BADI for MBST Tcode
Hi all,
Is there any userexit or BADI for Transaction MBST.
Pl help.
Regards,
Vamsi.hi,
I want know out of userexits listed in above thread, while saving which user exit will call.
iam trying putting breakpoint in all exits, but i am not getting any relevant exit.
while posting or saving Material document number for cancellation in MBST.
regards,
vamsi. -
Userexit/Badi for vendor or enduser addition/change in sales order creation
Hello Gurus,
I need a userexit/badi that gets triggered on the addition/change of partners in sales orders
I need to make some validations when the user adds/changes the vendor or
enduser in the sales order creation.
I tried many exits that I could find from forum but they were not able to asist.
Any help would be much appreciated.
Thanks in Advance,
Sumit.Well, if all else fails, USEREXIT_MOVE_FIELD_TO_VBAK will definitely be called when you change partners... but of course it will be called much more often than at only partner changes. Still, internal table XVBPA shows the current partners, so you could compare its content with the earlier state of the table to recognize a partner change you're interested in.
Strangely, the usual Y-table (YVBPA) is not populated, not sure why, otherwise the comparison would be even easier. -
Userexit or BADI for adding additional tab in MIGO screen.
Hi all ,
Kindly tell me as to which exit or BADI is used to add additional tab in MIGO header.
RegardsHi,
Create a program with the screen type sub-screen in SE80 and design the layout for the custom fields.
Declare the custom fields in a Z**TOP include.
Under the PBO method declare the program name and screen number
Under PAI method declare the field to u2018Xu2019.
Under the line modify method declare a flag and set to u2018Xu2019 checking for material document number by which we can set the fields to be in display mode when we open MIGO for display of material document created after doing goods receipt.
Under the POST_DOCUMENT method write the code for appending the value to Z table along with the values of the line item (In this case production order number, material, u2026u2026.). For these values to be available here in this method use the memory concept u201CExport to memory idu201D in the method LINE_MODIFY.
In order to do any validations to the custom fields, go to transaction SE80 and mention the program Name created and in PROCESS ON VALUE_REQUEST create a module and provide the validations required for those custom Fields.
In order to make the fields to be in display mode during the display of material document, create a module under PBO and import the flag value and the production order number details in the method LINE_MODIFY and if that flag = u2018Xu2019, use
LOOP AT SCREEN.
IF SCREEN-NAME = 'ZZGBAGS'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.Retrieve the values from the Z table matching the key field (production order number) and pass the value of the custom field on to the screen. -
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 or BADI for ml81n - Service Entry Sheet
Hi all,
I would like to find a user exit or BADI or enhancement upon saving.
The requirement is posting to specific GL A/C from the Service No. given.
Please don't provide me a list of unnecessary user exit or BADI.
Urgently need for solution, Thanks.Hi,
Check out the various exits for ml81n
INTERFAC Interface for data transfer
SRVDET User screen on tab strip of service detail screen
SRVEDIT Service list control (maintenance/display)
SRVENTRY Unplanned part of entry sheet (obsolete since Rel. 3.1G)
SRVESI Data conversion entry sheet interface
SRVESKN Set account assignment in service line
SRVESLL Service line checks
SRVESSR Set entry sheet header data
SRVEUSCR User screen on entry sheet tabstrip
SRVKNTTP Setting the account assgnmt category when reading in, if
SRVLIMIT Limit check
SRVMAIL1 Processing of mail before generation of sheet
SRVMSTLV Conversion of data during importing of standard service c
SRVPOWEB Purchase order for service entry in Web
SRVQUOT Service export/import for inquiry/quotations
SRVREL Changes to comm. structure for release of entry sheet
SRVSEL Service selection from non-SAP systems
SRV_FRM SRV: Formula calculation (obsolete since 4.0A!) -
Exit / badi for individual service line item detail with internal orders.
Hello guys,
<b>Issue 1.</b>as per our scenario we want to get the individual service line item details with Internal Orders.
Please provide me any exit/badi with each item level with individual service line item Internal Orders.
<b>Issue 2:</b> Remain same for issue 3 for blocking status. We want to delete item level for particular line what about the service rows which assigned in particular item.
point will be rewarded for the suitabel answers.
please give me response ASAP.
With Regards
yogeshHey Yogesh,
I have the same scenario... Could you please drop a mail to [email protected] with the details of BADI and other details that you implemted for the same.
Thanks a lot in advance.
Maybe you are looking for
-
Windows 7 partition not showing up at boot, but it appears within Disk Utility.
I have a Macbook Pro that's had 2 partitions for the past year. I created a 3rd partition yesterday and promptly deleted it. Ever since, I haven't been able to boot in Windows - Mavericks is the only option. Disk Utility shows my Boot Camp partition,
-
7.3 iTunes :service 'iPod service' (iPod service) failed to start."
Please help me i'm desperate. Ok so, i go to update and charge my ipod and when i plug in my ipod and open ituens it says that i need to download 7.3 for some reason i didnt think much of it. basically i tried downloading it, and when it go to the ve
-
Hi, I want to make it possible for the users to create documents from a template e.g a MS word document. The template should of course be checked in and not writeable (only readable) to avoid that users change/modify the template. We are using UCM11g
-
Simulating of system time for JVM
I have following problem: There is a big system written in Java, which needs to be tested automatically. There are test cases, which concern events in the future - in a few days, months, etc. That means, some initial state of the system can be prepar
-
Partial visibility of rows in Jtable
Hi , I have created a JTable and added it to the scrollpane as viewport v= scrollpane.getViewport(); v.setSize(300,300) v.add(table); i have some 60 rows to be displayed . Initially when the table is shown , it is showing 19 rows (0 to 18) and 19 th