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 K
Thanks 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
Similar Messages
-
User Exit/ Badi for Changing Quant parameters during TO Creation
Hi Gurus,
Could you please guide me to advice the User Exit/Badi which can be used for changing Quant Data during TO Creation.
User Requirement: Using "Recepient Field" in MIGO as a Key Value for FIFO in WM during goods issue. Receipient is copied into TR and TO (Standard SAP Functionality). For the purpose of Stock Removal based on Receipient Value, we need to copy this value into Quant Data field named Certificate Number ("LQUA-ZEUGN").
I will highly appreciate reply from Gurus.
Regards,
Gupta MHi manish,
Use the Exit MWMTO001 for this purpose and modify the table accordingly. This will solve your problem.
Thanks,
Shibashis -
Need a BADI for Change Own Data Application to implement customer needs
Hi All,
I wanted to know the specific BADI which could be used for doing customer specific coding for 'Change Own Data" application.
Here the need is to do some business specific checks to suit the the customer needs
Best Regards,
SowmyaHi Sowmya,
We are also having same kind of requirement so I was wondering if you can help me with the kind of solution that you implemented. BADI name or Implementation code etc.,
Appreciate any inputs on this...
Thanks,
Rgds,
Lakshmi -
User exit/BADI for changing the exchage rate type in MIGO
Dear guru's,
Please help me in finding the user exit/BADI to change the exchange rate type in MIGO.
Regards,
Abdul Rahimdid you check this one MB_GOODSMOVEMENT?
also exchange rates needs to be changed at Purchase order level and those will be reflected while creating MIGO. -
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 -
User exit / substiution / badi for changing baseline date
Dear Experts ,
I have a requirement to change the base line date of residual document created in F-28 / F-32 to the base line date of original document getting partially cleared .
I have explored the option of substitution but it doesnt work as field ZBLDT is not available for substitution there .
Please let me know any BADI / Exit which can perform this change of baseline date .
thanks in advanceHi Milind,
Following are the user-exits for F-32 :
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)
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
I hope this will help you.
Regards,
Nitin. -
User exit/BADI for PO item blocking
Hi All,
Is there any userexit/BADI available for blocking PO item?
We want block PO item based on some header and item data validations. We need an exit which will be triggered before displaying the first screen(In case of PO change-ME22N). While creating/changing existing the item we got the BADI ME_PROCESS_PO_CUST. Here we can set im_item-loekz to value S so that item will be blocked. This is working fine only for creation/Change of item. Because this BADI will be triggered when ever we make some change in existing PO item/Creating new item.
But say we have blocked a PO item now. later we have maintained necessary data which is used in validations. Then when we enter into same PO for next time it should automatically unblock that item.
So we need exit which will be triggered before displaying first screen. If one exit is not available the we can use EXPORT/IMPORT logic to get all the data at one place. Hope there is no confusion in the requirement.
Please let me know if there is any EXIT/BADI available for this scenario.
Thanks for your help in Advance.
Does any one has some solution for this?
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Dec 10, 2008 12:37 PMHi vinod,
I have come accross similar issue of blocking PO at item level. but we wanted to do it using Tcode MEMASSPO .Can you please give any suggestion in this regard. -
Code of ME_process_cust_Po BADI for checking item data?
Hi all,
While users are creating new PO in ME21N, I have to check the condition records for the Materials they entered.
If the condition record is not maintained for the respective material The creation of PO while saving it , should not be allowed and a message should be displayed.
Please mention the respective method and code to do this?
Thanks
Vamshi.Hi ,
this is the sample code for Item check, by using mm_messages_mac(include u can raise error msg based on the INFNR(info record) field.
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'.
a physical deletion of the item was carried out. therrefor we have to*
delete customer data on the level of the item*
ls_customer-ebeln = ls_mepoitem-ebeln.
ls_customer-ebelp = ls_mepoitem-ebelp.
CALL FUNCTION 'MEPOBADIEX_SET_DATA'
EXPORTING
im_data = ls_customer
im_physical_delete_request = 'X'.
ELSE.
update/insert operation*
CALL FUNCTION 'MEPOBADIEX_GET_DATA'
EXPORTING
im_ebeln = ls_mepoitem-ebeln
im_ebelp = ls_mepoitem-ebelp
IMPORTING
ex_data = ls_customer.
check customers data*
check field badi_bsgru. This should be carried out only for new items. Once the PO is posted the*
field should no longer be changeable. This is done in Method FIELDSELECTION_ITEM.*
IF im_item->is_persistent( ) EQ mmpur_no.
IF ls_customer-badi_bsgru IS INITIAL.
Place the cursor onto field badi_bsgru. The metafield was defined in BAdI ME_GUI_PO_CUST,*
Method MAP_DYNPRO_FIELDS.*
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'W' 'ME' '083' text-002 '' '' ''.
ELSE.
check whether the field is valid*
*SELECT SINGLE * FROM tbsg INTO ls_tbsg WHERE bsgru EQ ls_customer-badi_bsgru.*
IF NOT sy-subrc IS INITIAL.
mmpur_metafield mmmfd_cust_01.
mmpur_message_forced 'E' 'ME' '083' text-004 '' '' ''.
invalidate the object*
CALL METHOD im_item->invalidate( ).
ENDIF.
ENDIF.
ENDIF.
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.
regards
Prabhu -
Exit/BADi for GR Posting Date =PO date
Hi all ,
Is there any Exit or BAdi for restricting users to post GR date greater than PO creation date.
Regards
Gibi PhilipHii,
Check the below exit
MB_CF001 Updating of material document data upon posting
or
BADI
MB_DOCUMENT_BADI
Ask the abaper to check the above exits
Regards,
Kumar -
User exit/Badi for changing operation work center based on service product
Hi,
I have an requirement to change the operation work center based on the service product in IW31/IW32 transaction. I am using the BAdi 'IM_SM_BADI_READT399A' for changing the main work center. It changes all the operation work centers except the first one. But I need to change it all the operations.
Thanks in Advance.I am using the enhancement spot 'IWO1_TL_INTEGRATION2' for changing the first operation work center
-
Exit/bAdI for changing the item level field in VA02.
Dear Guruss...
I am facing a problem while trying toi change the account assignment group in VA02. The field is present at the iteem level in the tab BILLING.
When I change the field by choosing one of the values provided in the search help and enter, the value is again reset to its initial value. However if I change the value and SAVE (without pressing enter) then the value is saved.
The technical field name is VBAP-KTGRM, I have checked in the include:MV45AFZZ by putting break-points at all the forms but unfortunately none of them is getting triggered when I press enter.
During the debugging I found tha the values of the structure VBAP are overwritten by those of XVBAP everytime I press enter.
I also checked for the bAdI but can not get any help.
Is there any bAdI or exit that can help me for this????
Thanks in Advance......
Abhi.....Hi Digvijay
these are some of the enhancements/badi's which is related to t-code va02. just check it out
Transaction Code - VA02 Change Sales Order
Enhancement/ Business Add-in Description
Enhancement
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
SDAPO001 Activating Sourcing Subitem Quantity Propagation
Business Add-in
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
Regards
Zulfikhar ali
Edited by: Zulfikhar Ali Bhutto.N on Sep 23, 2011 11:15 AM -
IW31 - User Exit / BADI for changing data in Component's Order.
Hi gurus,
I need to update the field WEMPF in the order components during the Order Creation (Tx IW31).
Is there any User Exit or Badi I can use?
Thanks in advance !!At WO10009 User Exit...we can use this FM:
CO_BC_RESBD_OF_ORDER_GET -> Get RESB internal table.
CO_BT_RESB_UPDATE -> Update RESB table.
Althought during creation (IW31) when the order numer is temporal ($$$$$$$$$$$1), this FM works great, cause it reads from memory, not from database.
Regards, -
MRP User Exit/BAdI for changing plant stock
Hi,
I have a client who is wanting to add consignment stock to plant stock during the MRP run for materials with a certain material group.
I need to find an exit or a BAdI which is called at an appropriate time to have a developer code this function.
Anyone have any ideas? I don't want to make changes to SAP Standard code!
Thanks,
MarkHi,
If am right, you want to consider the customer consignment stock in MRP, if yes then I believe the BADi -> MD_CHANGE_MRP_DATA should meet your need.
I have not used this BADi, but check with your abaper if the method CHANGE_MDPSX_MARD reads the stock & then the unrestricted stock can be added with customer consignment stock from MSKU.
Check & revert if the above meets your need.
Regards,
Vivek -
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 -
BADI ME_PROCESS_PO_CUST for changing header data
Hello Experts,
I'm using Method PROCESS_HEADER in Badi ME_PROCESS_PO_CUST in order to change some header data.
I want to change header data depending on the partner data which are on header level.
It works fine as long as there are data changed in the header or item level and not only on the partner screen.
The method in this Badi isn't processed if only partner data are changed. But for me it is necessary to set a special field on the header depending on the partner data.
Regards,
SvenHi,
Firstly, for changing Header data without any INSERT/UPDATE?MODIFY statement, badi - ME_PROCESS_PO_CUST will not be useful.
As method you mentioned has no header parameters under CHANGING / EXPORTING clause.
You can use the badi which has the parametrs you want in either change/ Export mode. It can be defined under table also.
Below is the list of important badis gettign called, however none of them contains header values in change/export clause.
ME_CCP_ACTIVE_CHECK
MD_STOCK_TRANSFER
ME_DEFINE_CALCTYPE
ME_PO_PRICING
ME_FIELDSTATUS_STOCK
ME_COMMITMENT_STO_CH
ME_COMMITMNT_PARKING
ME_INFOREC_SEND
ME_CHECK_SOURCES
ME_PURCHDOC_POSTED
Instead you can use enhacement MM06E005 Customer fields in purchasing document.
Create a project under Transaction CMOD.
Assign enhancement as Project component.
You'll find Exit 012. At time of save you can change header im_ekko based on you parterner data tab.
Regards,
Amee.
Maybe you are looking for
-
When I tried to buy ankimobile for my iPad, I got a message that my account was not accepted in the Australian store, and to transfer to the U.S. store. I don't know how I got to the Australian store and I tried but can't figure out how to get back
-
Need Help with site performance
Looking for Help.. In particular we would like help from experts in ssl, browser experts (how browsers handle encryption, de-encryption), iPlanet experts, Sun crypto card experts, webdesign for performance experts. Our website is hosted on a Sun Ente
-
Coloured spinning wheel for several minutes at a time
Help! Whenever we try and do anything in iMovie we get coloured spinning wheel for many minutes at a time. It won't do anything without "thinking" for ages. We have imported quite a lot of footage. Have we filled up its little brain?
-
How to download Adobe jars.
Hi All, i want to download these jars 1. adobe-generatepdf-client.jar 2. adobe-livecycle-client.jar 3. adobe-usermanager-client.jar 4. adobe-utilities.jar but i am unable to find these in google how can i download. thanks Raghu
-
I am attempting to transfer positional data (on a predetermined route) overlaid on a map and indications of boolean output states to secondary computer through datasocket (LabVIEW 8.6, Datasocket 4.5). Is it required to compress all these parts into