Exit/badi for ME22 line item change
hi gurus,
pls mention any exit/badi for ME22 line item changes......
Hi,
Check below thread
BADI in ME21
Regards,
Atish
Similar Messages
-
User-exit or BADI for Configurable line item change in VA01/VA02
Hi,
During sale order creation or change the configurable item characterstics depend on plant. If a plant is changed the characterstics to be entered again. In my scenario the materila characterstics are same for all the plants hence in place of entering these again want to retrieve from the database through user-exit or BADi . Is there any.
thanks
anyaHi,
Check the user exit "MV45AFZB', form-routine "USEREXIT_CHECK_VBAP".
Regards
Vinod -
User exit/BADI for Return PO item delivery Address
Hi Guyz,
We have a requirement where in when a PO item is marked as return PO item(In ME21n/ME22n/ME23n We have check box at item level) and click on enter/Check/Save, In delivery address of item details we have to populate Vendor address. By default SAP populates Plant address. If we manually give Vendor number in item details=>Delivery address tab then it populates vendor address. We want to automate this functionality.
Is there any Exit/BADI which serve this purpose.
Note: We need this functionality for few doc types(i.e PO doc type should also be available in the exit).
Any ideas could be really helpfull.
Thanks,
Vinod.Hi,
there are some user-exit & enhancements....
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
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
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
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
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
Some BADI s:
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
No.of Exits: 35
No.of BADis: 55
Arunima -
User Exit / BADI Update new line item in BSEG in MIGO/MB1B Transaction
Hi All,
I Require a BADI or user exit in MIGO transaction from which i can add or change the BSEG line item before Posting the FI document.
Regards,
Madhukar ShettyHi Asik,
Thanks for the the reply, but can tell any other badi or exit from where i can add/append a new line item in the accounting document getting posted from MIGO or MB1B.
Regards,
Madhukar Shetty -
User exit / BADI for updating STO when change in subcontracting PO
Hi
The requirement is to update the STO (stock transfer order ) when their any change in subcontracting PO at item level. Is there any exit or BADI available where STO quantity and delivery date will be updated after any change in PO at item level ?
Thanks
ManasDeepak, Exits for MB1B are
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. -
Reg. Exit/BADI for changing item data of PO in ME22N
Hi all,
My requirement is to update the field LABNR (Order Ack.) of few specific line items of a PO, in the Transaction ME22N, using Exit/BADI.
I have tried the BADI ME_PROCESS_PO_CUST. But the PROCESS_ITEM method of this BADI processes only the line item which has been changed/inserted in ME22N transaction. But my requirement is to update line items irrespective of whether that line item was "changed/not changed" during the process in ME22N screen.
Could you please suggest me some suitable Exit/BADI for this requirement.
Regards,
Anbarasan KThanks Martin.
Problem solved by implementing the method Process_Header.
1. Get the items from Header - im_header->get_items
2. Loop the item list and get the line item record - re_item-item->get_data
3. <- Logic to Update the line item - >.
4. Update the line item - re_item-item->set_data
Thank you very much.. Martin.
Regards,
Anbarasan K -
User Exit / BADI for F-02 during SAVE to update BSEG Line Items.
Hi Experts,
I need a User Exit / BADI for Transaction code F-02 which triggers during save to update BSEG-SGTXT with Vendor / Customer
name in the Tax Line Item.This is to update table BSEG .
Thanks in Advance,
NithyHi,
Do it with the BTE 00001120 (tcode FIBF).
I hope this helps you
Regards,
Eduardo
PD: I forgot, check this link. It will tell you how to do it
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/207835fb-0a01-0010-34b4-fef1240ba9b7
Edited by: Eduardo Hinojosa on Jul 15, 2009 6:38 PM -
In ME21N,User Exit/BADI for Defaulting Vendor number at item level.
Hi Experts.
In ME21N, for every purchase order, we have condtion tab for each line item.
Many condition typesot taxes are listed based on the config for the materials.
My requirements is, When we go inside by selecting a condition type we find vendor number displayed.
I need a user exit/BADI for defaulting the Vendor number.
Regards
Balaji RHi,
check with below link,
fo this one you will find both user exit and badis
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/find%252bapplication%252bclass%252bwith%252bexits%252band%252bbadis%252bfor%252ba%252btransaction
Regards,
Madhu -
How to find out Last Changed Fields for a line item of a PO
Dear All,
Pls let me know is there any FM or procedure to find the last changed fields for each line item of a PO. I should be able to get the details on the basis of Last changed Date. Can u pls guide me in this?Hello,
Check the table CDHDR,CDPOS for PO items,
Check this code:
REPORT ZV_GET_LATEST_SO .
DATA: BEGIN OF ITAB OCCURS 0,
OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
OBJECTID TYPE CDHDR-OBJECTID,
CHANGENR TYPE CDHDR-CHANGENR,
USERNAME TYPE CDHDR-USERNAME,
UDATE TYPE CDHDR-UDATE,
UTIME TYPE CDHDR-UTIME,
TCODE TYPE CDHDR-TCODE,
TABNAME TYPE CDPOS-TABNAME,
TABKEY TYPE CDPOS-TABKEY,
FNAME TYPE CDPOS-FNAME,
CHNGIND TYPE CDPOS-CHNGIND,
END OF ITAB.
TABLES: CDHDR,CDPOS.
DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
*REFRESH AUSG.
CLEAR CDHDR.
CLEAR CDPOS.
CDHDR-OBJECTCLAS = 'EINKBELEG'.
CDHDR-OBJECTID = '0000001784'. " Purchase order number
**SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
**B~TCODE
**B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
**INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
** A~OBJECTID = B~OBJECTID
** A~CHANGENR = B~CHANGENR
** WHERE OBJECTCLAS = 'VERKBELEG'
** AND OBJECTID = '0000001784'.
*SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
* AND OBJECTID = '0000001784'.
*IF NOT LT_CDPOS[] IS INITIAL.
* SELECT *
* INTO TABLE LT_CDHDR
* FROM CDHDR
* FOR ALL ENTRIES IN LT_CDPOS
* WHERE OBJECTCLAS = LT_CDPOS-OBJECTCLAS
* AND OBJECTID = LT_CDPOS-OBJECTID
* AND CHANGENR = LT_CDPOS-CHANGENR.
*ENDIF.
** SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
*LOOP AT ITAB.
* WRITE: ITAB-UDATE."ITAB-UNAME.
*ENDLOOP.
*--- Interne Tabellen -------------------------------------------------
DATA: BEGIN OF ICDSHW OCCURS 50. "Ausgabeaufbereitung
INCLUDE STRUCTURE CDSHW. "Zwischendatei
DATA: END OF ICDSHW.
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
DATE_OF_CHANGE = CDHDR-UDATE
OBJECTCLASS = CDHDR-OBJECTCLAS
OBJECTID = CDHDR-OBJECTID
TIME_OF_CHANGE = CDHDR-UTIME
USERNAME = CDHDR-USERNAME
TABLES
I_CDHDR = LT_CDHDR
EXCEPTIONS
NO_POSITION_FOUND = 1
OTHERS = 2.
LOOP AT LT_CDHDR.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
* ARCHIVE_HANDLE = 0
CHANGENUMBER = LT_CDHDR-CHANGENR
* TABLEKEY = '00000000 '
* TABLENAME = ' '
* IMPORTING
* HEADER =
TABLES
EDITPOS = ICDSHW
* EDITPOS_WITH_HEADER =
* EXCEPTIONS
* NO_POSITION_FOUND = 1
* WRONG_ACCESS_TO_ARCHIVE = 2
* OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ICDSHW.
IF ICDSHW-TABKEY+3(10) = '0000001784'
AND ICDSHW-TABKEY+13(6) = '000001'.
ENDIF.
ENDLOOP.
ENDLOOP.
Vasanth -
Get the Change log for ALV line items
Hello Experts,
I am using editable ALV table to display/change data. When user modifies data from ALV line items manually (direct entry), this change is recorded in get_context_change_log method of context node. Also in the screen I have one button, on click of this button I do some calculation for selected line items in action method and update the context node with new values. But with this second approach (button action) though values gets changed this is not recorded in to get_context_change_log of context node. I tried to use method add_context_attribute_change in button action method to add attribute changes to change log tabel but it's not adding entries to change log. Does method add_context_attribute_change only works with OVS search helps and freely programmed value helps? And is there any other way for capturing changes(done by using action method and not manually) for ALV line items?
Thanks & Regards
JayantHere is code:
METHOD.
This method is in component controller, which gets called from View Action method (on click * of button).
FIELD-SYMBOLS:<lfs> TYPE Data.
*Data Declaration
DATA lo_nd_cn_apc_item TYPE REF TO if_wd_context_node.
DATA lit_apc_item TYPE wd_this->elements_cn_apc_item.
DATA lo_el_cn_apc_item TYPE REF TO if_wd_context_element.
data: l_component type ref to if_wd_component,
l_context type ref to if_wd_context,
lfd_added type abap_bool.
CLEAR:lo_nd_cn_apc_item,lo_el_cn_apc_item.
navigate from <CONTEXT> to <CN_APC_ITEM> via lead selection
lo_nd_cn_apc_item = wd_context->get_child_node( name = wd_this->wdctx_cn_apc_item ).
REFRESH:lit_apc_item.
@TODO handle non existant child
IF lo_nd_cn_apc_item IS NOT INITIAL.
lo_nd_cn_apc_item->get_static_attributes_table( IMPORTING table = lit_apc_item ).
get element via lead selection
lo_el_cn_apc_item = lo_nd_cn_apc_item->get_element( ).
ENDIF.
l_component = wd_this->wd_get_api( ).
l_context = l_component->get_context( ).
Calculate Cost
LOOP AT lit_apc_item ASSIGNING <lfs>.
<lfs>-cal_amount = ( <lfs>-cost_percent * <lfs>-sec_amount ) / 100.
lfd_added = l_context->add_context_attribute_change(
element = lo_el_cn_apc_item
attribute_name = 'CAL_AMOUNT'
new_value = <lfs>-cal_amount
ENDLOOP.
Bind Table.
lo_nd_cn_apc_item->bind_table( new_items = lit_apc_item set_initial_elements = abap_true ).
ENDMETHOD. -
Changing Ship-To Parties for Multiple Line Items
Hello! I am wondering if there is a way to change the Ship-To party on a sales order at the line item, besides changing each line individually. Is there a more efficient way to change the Ship-To party for multiple line items? We are looking at creating a fast-change transaction to allow users to change the Ship-To party at the line item level for multiple lines. Our particular transaction will make changes by delivery group. Does anyone know if SAP version 6.0 will have functionality to allow users to change the Ship-To party for multiple lines at one time? Thanks!
HI ,
Go to tcode MASS, enter the object BUS2032, then execte-enter, now select the mass odrer item data. Here u can change the req fields.
cheers
reward if helpful -
User-exit to fill PO line item G/L account no. and other details
Hi All,
I am looking a customer function or a BADI to fill in the account number when PO is about to be created.
My requirement is that based on some conditions account number in Account assignment tab for PO line item should be filled or overwritted if there is already a one selected, so that when user see the value for account number, it is the desired one.
I tried with exit EXIT_SAPMM06E_006, which has the table TEKKN(account assignment for purchasing document) parameter but when I debugg it and assign some other value to TEKKN-SAKTO for the corresponding line item, I can see that changed value is not coming.
Any clue?
Regards,
MarkHi Mark,
You can try implementing follwoing BADI's:
ME_GUI_PO_CUST
ME_PROCESS_PO_CUST
Let me know if it helps.
Gouri. -
LE_SHP_DELIVERY_PROC BAdi implementation - capture delivery item change
Hi Community Members,
I am recently working on enhancement which is going to forbid quantity changes for delivery line items
if corresponding PO line item is blocked or deleted.
To do this I want to use BAdi LE_SHP_DELIVERY_PROC (Enhancements in Delivery Processing)
One of methods PUBLISH_DELIVERY_ITEM imports 2 internal tables:
IT_XLIPS Current Status of Delivery Items
IT_YLIPS Database Status: Delivery Items
Inside the method I am checking if recent quantity value (IT_XLIPS-LFIMG) is not equal to the one from database (IT_YLIPS-LFIMG). If so then I throw error.
Everything is ok, but I have encountered a strange behavior.
For example when I change delivery item quantity (LFIMG, for example 1->2 ) and then go back to the initial value (2->1)...
The problem is that when entering the method (debugger) I can see inside IT_XLIPS that LFIMG is updated, but Gross/Net weigth and volume fields still have old values (NTGEW, BRGEW, VOLUM).
That is a problem because highly possible is that after quantity field customer will also want to validate weight and volume fields.
Moreover I also checked FILL_DELIVERY_ITEM and CHANGE_DELIVERY_ITEM methods of BAdi mentioned. In all of them weight/volume (and probably other fields also) behave the same.
Could you share your comments on this issue please?
What would you recommend to do to enable such validation?
Kind Regards,
Piotr.Hi
Check method DELIVERY_FINAL_CHECK. See the sample implementation and how you can write the message in CT_FINCHDEL.
Other option is to use the classic userexits. See SAP Note 415716 - User exits in delivery processing with the recommendations for them.
I hope this helps you
Regards
Eduardo -
User Exit/Badi for G/L account assignment in ME21n/ME22n
Hi All,
I need user exit/badi for account assignment in item details for following requirement.
If user changes G/L account of the first line item then I have to copy same G/L account to all line items.
Please suggest me suitable user exit for this.hello,
follow the steps.......
For User Exit's
goto to tcode->status->program name->double click on that,
then goto to-> attribute take the package name and
Goto SMOD tcode ->Utilities->give the package name and F8
then a list of exits will display for that tcode as well as that package.
u can check the table MODSAP
For BADI's,
1)goto to tcode SE24 give the CL_EXITHANDLER and display and then double click on the GET_INSTANCE
keep Break point at this location 'call method cl_exithandler=>get_class_name_by_interface'
then the tcode it will trigger there and we can debugg there we can find badi'for that tcode and then remove the break point.
2)Goto to tcode->status->program name->double click on that program will display's
then press crtl+F then cl_exithandler
Thank u,
santhosh -
Request for info. on USER EXIT/BADI for FB60
Hi,
This is with reference to FB60 user exit/badi for with holding tax.I want to use the customized table for withholding tax.
]Please guide some alternative solution rather than user exit and badi.
I dont think the following user exit and badi are used for withholding tax.
I done some analysies.I didnt find any user exit/badi related to withholding tax.I found the following
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
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
FEDI0001 Function Exits for EDI in FI
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
SAPLF051 Workflow for FI (pre-capture, release for payment)
Badi
FQST_CALC_COUNTRY,FQST_CIN_WITHITEM are related with withholding tax and they are for country specific such as India.
Every expert answer will be rewarded.
Thanks in advance
CraTry Business Transaction Events. Transaction code BERP.
Regards,
Zoltá
Maybe you are looking for
-
Aging Report does not match Balance Sheet Receivables/Payables Account
Hi experts, I am requesting your help to find out why our customer receivables/vendor payables aging reports total does not match our balance sheet accounts receivable/ accounts payable account for the same period. I would expect Customer Receivables
-
How I can change ma pay method in iTunes if I don't want to use my credit card?
How I can change my pay method y iTunes if I don't want to use my credit card?
-
How am I using so much data with iPhone 5?
Got the iPhone 5 Friday evening and by Tuesday afternoon I went over 5 gb of data usage. That's 5gb in 4 days. How is this possible?
-
Oracle TNS 12535 error after moving repository DB from Win NT to Win 2K
Business Objects 5.1 We have recently moved an Oracle database from Windows NT to Windows 2000. One particular user keeps on getting ORA-12535: TNS: operation timed out. What could be causing this? The user can run SQL*Plus and connect to the databas
-
Can i search and replace in the itunes library database file?
Hi -- I need to update the file location in the itunes database for a few thousand songs. These songs are just part of my full collection. A few hundred of these songs are referenced in playlists. Rebuilding the libarary, consolidating the library, a