BADI for Currency

Hi All,
We are working on standalone scenario and PO have to pick currency based on company code the standard as of now is the currency gets selected from the vendor master data.
Please let us know if there is any BADI for currency?
Thanks,
Ravi Varma

Hi Atul,
We are working on a standalone scenario SRM 4.0 and we have central purchasing organization for our two company codes(USD & INR). Our direct purchase order is created with the currency INR but if we confirm the INR gets overwritten as USD and it is in display mode.
We tried to change this standard functionality thru. the BADI and thought it will be a simple task. But,
the above mentioned BADI
BBP_DOC_CHANGE_BADI
seems does not have a currency field in export parameters. Before this BADI triggers wrong currency is populated.
Any suggestions or some more BADIs/Userexits to achieve our requirement for the above mentioned scenario.
As per our understanding the confirmation BBPCF02 gets details from the purchase order but if our abaper debugged and says it is coming from the vendor master. In purchase order it is manual entry, so only for confirmation why does the system picks the vendor master currency?
Any thoughts suggestions pls.
Best Regards,
Sridhar.

Similar Messages

  • Project settlement to CO-PA and BAdI for automatic creation of rules

    Hello SAP experts!
    I have managed to implement settlement rule strategy to CO-PA for sales project WBS-elements, which automatically creates the settlement rules for WBS-elements with billing indicator. One or more sales order items are assigned to the WBS-elements. When the system derives settlement rules, it generates profitability segments that contain the characteristic values of the WBS elements and the sales orders assigned to them. The problem is, that only one single settlement receiver is determined for each WBS-element. And if more that one sales order item is assigned to the same WBS-element only those characteristics are copied to the settlement rule that are same in all sales order items.
    For example; it products are different in all sales order items, the automatically created settlement rule does not contain the characteristic value product or neighter other caracteristics derived from product.
    Do You have experience of using BAdI for influencing the generation of settlement rules? What it actually makes possible?
    Br, Nina

    Dear Waman,
    thank you for your reply !
    Yet - this still does not solve our problem. In that note (and also in the related note 201445) there is no valuable information included concerning transaction currency:
    Our WBS elements (and also other cost objects, e.g. sales order items) are being debited in all of the three currencies.....but the credit (during settlement) only takes place in two of them:  object and CO area currency.
    I really appreciate additional help on this. It would be hard to believe that we are the only SAP customer having this kind of problem.
    Best regards,
    Thomas

  • BAdi for Statistical Posting F-38 & F-55

    Hi Experts,
    I am going to add additional fields in AR and AP - Statistical posting, F-38 and F-55
    I try to look for BADI to maintain it, i came across FI_HEADER_SUB_1300IM, with that, i am able to add the fields for FB01 but it seems cannot be added into F-38 and F-55.
    Any suggestion?
    Thanks!!

    Hi,
    For f-38 and f-55,
                                                                                    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           
    FARC0002                                Additional Checks for Archiving MM Vendor Master Data            
    F180A001                                Balance Sheet Adjustment                                         
    F050S007                                FIDCCH Outbound: Influence on IDoc for Document Change           
    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                                                                               
    Business Add-in                                                                               
    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_PRKNG_NO_UPDATE                    BAdI for Deactivating Update of Parked Documents                 
    INVOIC_FI_INBOUND                       BADIs for Inbound IDoc INVOIC FI (Vendor Invoice)                
    F050S008                                FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger            
    FBAS_CIN_LTAX1F02                       Tax interface                                                                               
    FBAS_CIN_MF05AFA0                       EWT - Downpayment Clearing - Tax transfer for CIN              
    ADJUST_NET_DAYS                         Change to Net Due Date                                         
    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                
    RFESR000_BADI_001                       BAdI for Own Processing of POR Item                            
    FI_TRANS_DATE_DERIVE                    Derive BKPF-WWERT from Other Document Header Data              
    FVFZ                                    Replacement for Function Modules of Function Group FVFZ        
    AC_QUANTITY_GET                         Transfer of Quantities to Accounting - Customer Exit           
    If it is helpful rewards points
    Regards
    Pratap.M

  • BADI  for  Classic  and Extended Classic Scenario

    Hi,
       Please   provide  list  of  Reports and BADI's  for 
           Classic  and Extended Classic Scenario.
    Thanks,
    Srini

    Hi,
    In SRM there will be a number of BADI's are Available, We can utilize them according to the requirements
    As per the request few important BAID are provided below..
    Workflows
    1). BBP_CHNG_AGNT_ALLOW:          Allow / Allow Change/Add Approver
    This BADI is implemented not to allow users to change the approvers in the workflow.
    2). BBP_WFL_SECUR_BADI:          Overwrites the authorization level of the approver
    This BADI controls the restart of the workflow
    Purchasing Related
    1). BBP_PGRP_FIND:               Shopping Cart: Determine Responsible Purchasing Group(s)
    This determines the responsible purchasing group for the shopping carts.
    Shopping Cart Related
    1). BBP_SC_MODIFY_UI:          BADI to Change Shopping Cart Layout
    2). BBP_GROUP_LOC_PO:          Exit Grouping of Items for Local Purchase Orders
    This splits local PO if more than one contract in a PO.
    3). BBP_TARGET_OBJECTS:          Exit while determining target objects in backend
    4). BBP_WF_LIST:               Change Worklists and Search Results Lists
    This is used to restrict the search results for the user.
    5). BBP_CTR_BE_CREATE:          Exit when Creating a Contract in the Backend System
    6). BBP_CREATE_PO_BACK:          Exit while creating a purchase order in the backend system
    This BADI is used to add the shopping carts attachments to the PO and also to make adjustments in payment terms, currency etcu2026
    7). BBP_DOC_CHECK_BADI:     General BAdI in Cross-Check for Message Returns
    8). BBP_DOC_CHANGE_BADI:     BAdI for Changing EBP Purchasing Documents
    9). BBP_ECS_PO_OUT_BADI:     ECS: PO Transfer to Logistics Backend
    Thanks
    prasad .s

  • Badi for FB01 post

    Hi friends
    Someone knows a BADI or exit for document post/fi? I mean in FB01 transaction.
    Best Regards

    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                  
    FARC0002                                Additional Checks for Archiving MM Vendor Master Data                   
    F180A001                                Balance Sheet Adjustment                                                
    F050S007                                FIDCCH Outbound: Influence on IDoc for Document Change                  
    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                                                                               
    Business Add-in                                                                               
    BADI_FDCB_SUBBAS05                      Screen Enhancement 5 on FDCB Basic Data Screen (010, 510)               
    BADI_PRKNG_NO_UPDATE                    BAdI for Deactivating Update of Parked Documents                        
    F050S008                                FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger                   
    FBAS_CIN_LTAX1F02                       Tax interface                                                           
    FBAS_CIN_MF05AFA0                       EWT - Downpayment Clearing - Tax transfer for CIN                       
    FISPLIT                                 Online Split: Cash Discount, Exchange Rate Differences                  
    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                                     
    FI_DOC_DISP_LI                          Diversion to Document Items (FB03)                                      
    FI_FB08_SUBST_BUDAT                     FB08: Check Posting Date for Reversal of FI Doc. with FB08

  • BADI for transaction FBRA

    hello,
    while doing the reversal of clearing document through transaction code FBRA , is there any user exit (BADI) available ..?
    if yes..pls give the names of the BADIs
    thnks for ur help..

    hi,
    use these exits and badis.
    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
    FARC0002                                Additional Checks for Archiving MM Vendor Master Data
    F180A001                                Balance Sheet Adjustment
    F050S007                                FIDCCH Outbound: Influence on IDoc for Document Change
    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
    Business Add-in
    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
    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_HEADER_SUB_1300                      Screen Enhancement for Document Header SAPMF05A
    FI_GET_INV_PYMT_AMT                     BAdI for determining the payment amount for an invoice
    FI_AUTHORITY_ITEM                       Extended Authorization Check for Document Display (FB03)
    BADI_BRNCH_TO_BUDAT                     Deriving BUDAT based on BRNCH (ENJOY)
    BADI_ENJ_ALT_ADR                        Go to alternative vendor/customer data
    AC_QUANTITY_GET                         Transfer of Quantities to Accounting - Customer Exit
    ADJUST_NET_DAYS                         Change to Net Due Date
    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_PRKNG_NO_UPDATE                    BAdI for Deactivating Update of Parked Documents
    F050S008                                FIDCC1, FIDCC2 Inbound IDoc: Update Comparison Ledger
    FBAS_CIN_LTAX1F02                       Tax interface
    FBAS_CIN_MF05AFA0                       EWT - Downpayment Clearing - Tax transfer for CIN
    FISPLIT                                 Online Split: Cash Discount, Exchange Rate Differences

  • User Exit or BADi for FB02

    Hi
    Does somebody knows some user exit or BADI for add validations to FB02 when user changes some position data.
    I need to validate some header BKPF (Company, Currency) and detail BSEG (Posting Key, Account Bank)  data when change the position.
    Does somebody knows one user exit or Badi wich i can use to do it  ?
    Thanks
    Frank

    Thanks for your answers.
    I need to make validations for send error messages and i can not use FI Validations and Sustitutions because i send several differents messages  and wuold need N steps (one step for each message).
    The enhancement points called in CHANGE_TO_MODIFY are executed when ok-code is 'CHAE' that is when the user calls FB03 and then change to modify mode for make changes like if he goes to FB02 , but these enhancements are no executed any more when the data changes are made and user press save.
    I already found some enhancement executed just before data saving (it's in FORM belegsummen_pruefen) so i make the validation and send the error message , but when error message appears the screen get protected so the user can not change any screen field for make the data corrections.
    Best Regards
    Frank

  • 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

  • Do you have any idea what is the BADI for creation of Purchase Order?

    Hi Gurus, I would like to ask regarding the BADI for the P.O creation in SRM. I have a requirement that if the Account Assignment Type is "asset" it should tick the checkbox (goods receipt/confirmation of performance of service) in the related documents tab of item.  Thanks a lot. I hope you can help me gurus.

    Thanks for the help.

  • User Exit/ BADI for PO release

    Hi Experts,
    Can anyone please tell me about the User Exit or BADI for Sub contract PO release.Also tel me how to proceed for the following 2 requirement ,
    i have to send an IDOC as & when the Sub contract PO releases.
    And automatically resent if changes are made in PO with the repeat output function in ME22N.
    Regards,
    Nik

    Hi,
      Use trx SE19 to implement your BADI: create an ZME_PROCESS_PO_CUST using ME_PROCESS_PO_CUST as definition.
    Now in Interface Tabs you can see the METHODs you can use as "user-exit", in particular there's PROCESS_ITEM to manage items data.
    You have to write your code into this method.
    This method has IM_ITEM like parameter in its interface, and it's like the type IF_PURCHASE_ORDER_ITEM_MM.
    This type has the method IF_LONGTEXTS_MM~SET_TEXT, you can try to use it to set your text in item.
    This is code for example:
    DATA: TLINE TYPE MMPUR_T_TEXTLINES.
    CALL METHOD IM_ITEM->IF_LONGTEXTS_MM~SET_TEXT
    EXPORTING
    IM_TDID = <YOUR ID>
    IM_TEXTLINES = TLINE.
    So you should read the text you want to copy and pass it to TLINE.
    You can use the METHOD PROCESS_HEADER to read the text you need. This METHOD has IM_HEADER as parameter and it's like the type IF_PURCHASE_ORDER_MM, this type has the method IF_LONGTEXTS_MM~GET_TEXT to read header logn text.
    Anyway while you're in implementation of the BADI go to:
    GoTo->Sample Code
    Here you can try an example how to implement the method you need to use.
    Regards

  • User exit / BADI for training and event management

    Hi all,
    Can anybody tell me if there is any user exit / BADI for training and event management module?
    Thanks & regards,
    LOI

    Hi
    BADI's for Training and Event Management
    HRTEM00MASTERDATA      HR: Training and Event Management - Master Data
    HRTEM00NET_ACTIVITY      Determine Activities of an Attendee (e.g. ESS PV8I)
    HRTEM00NET_WEBST      Set Cancellation Reason in ESS PV8I
    HRTEM_CORR_NOTIF_REQ      Customer Enhancement:Confirmation on Send (R/3 Mail, E-Mail)
    HRTEM_HANDLE_BOOKING      HR-TEM BAdI: Employee Leaves Company - Update TEM Data
    HRTEM_INT_ZW           HR-TEM: Badi for Integration TEM - Time Management
    HRTEM_READ_OBJECT      Customer Enhancement: Name Format
    RHPV0001 Customer      Enhancement for Additional Checks for Booking
    Enhancemnet Spot:
    HRTEM00MASTERDATA      HR: Training and Event Management - Master Data
    ~~~Ganesh Kumar K.

  • How to create a BADI for the sceanrio

    Hi abapers,
    I have a scenario as follows.
    I create a Transaction where in i put the details of the product and quantity for a particular project's site. The amount gets calculated based on the products  unit value and its displayed in net value field. Now the user saves the transaction and a number gets generated. If the net value amount is less than 500 then the user can approve , if its greater than 501 and less than 1500 then a mail should be generated to his superior who is able to approve and ifs amount is greater than 1501 then a mail should be generated to the top of hierarchy who should approve it.
    Now the real challenge is if the same project card  has more than 1  new request and the amount is less than 500 the user should not be able to approve  instead it should generate a mail to his hierarchy for approval  since  the site has already been exceeded its limit of approval. bcoz earlier 500 and current 400 which will make it to greater than 500.similarly for the hiearchy.How do i go about  it.
    Now i want to create a BADI  on the save event of transaction to check the net value amount as well as check for earlier amounts saved for the particular site.
    Any help will be appreciated.
    Regards,
    Navin .

    hai navin
    r u using ECC 6.0 or 4.7 if 4.7 u can create badi defintiion directly form se18 transaction
    and define the interface and its methods , once u define them activate them
    and to use in ur code u create an instance of ur badi name
    and then use
                     cl_exithandler=>get_instance  method in instance name parameter just pass ur badi name and this will create a badi defintion in ur code, and an oen can implement it
    if u r usign ecc6.0 then u can either create new badis usign enhancments or classical badis
    for clasical badis just go to menu  utilites and create classical badis and follw the sam eprocedure
    regards
    m.a

  • Document Split for Currency Exchange while posting Incoming payment

    Hi Experts,
    Scenario:
    > Post incoming Customer payments using F-28
    > posting entered today (14 Jan 2009), but posting date is 30 Dec 2008)
    > Tested in Clients 001 and 005 (same setup in terms of GLs, Customers, Vendors, etc)
    I was able to post the incoming payment in Client 005.  However, in Client 001, I got error message:
    *Ex.rate diff.accts are incomplete for account 0000140000 (Trade Debtors/Customers) currency SGD
    Message no. F5063
    Diagnosis
    The accounts for posting exchange rate differences could not be determined. For the specified G/L account and the specified currency key, the accounts are only specified incompletely. Either the accounts for the implemented exchange rate difference, the accounts for the valuation differences or the balance sheet adjustment account are missing.
    System Response
    The system cannot generate the exchange rate difference posting.
    Procedure
    By pressing ENTER, you achieve that the document is reset to a status without automatic posting. In another window, you can complete default settings for exchange rate differences and post the document afterwards.
    Proceed*
    When I clicked Proceed, the system took me to OBA1, with "Document Split for Currency Exchange" option highlighted in blue.
    Does this mean that I need to create a new GL account to post Document Split for Currency Exchange?
    Note: Setup for OBA1 both 001 and 005 are the same. But I only encountered the error in 001.
    Hope someone can help me.
    Thanks...

    problem solved: add relevant Open Item GLs in OBA1 (Account Determination for OI Exchange Rate Differences)

  • Regarding Error message in ME_PROCESS_PO_CUST badi for validation.

    hi Friends,
    I am Using ME_PROCESS_PO_CUST badi for validation in Purchase order (ME21N),
    For that I implemented PROCESS_ITEM method which fires during each row now i  add another validation in same implementation for plant  should be same through out the all line item. Now following code is woking fine but when for second line item user changese plant then it shows error message as per logic which is fine but even after changing plant to correct one the error message is still coming why is it so?
    following is my current validation code
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
      DATA:ls_poitem TYPE mepoitem,
           ls_poitem_set TYPE mepoitem.
      DATA:ls_poheader TYPE MEPOHEADER.
      DATA:lm_poheader TYPE ref to IF_PURCHASE_ORDER_MM.
      DATA:w_mara TYPE mara.
      DATA:IT_ZMMTBL039 TYPE STANDARD TABLE OF ZMMTBL039 ,
           WA_ZMMTBL039 TYPE ZMMTBL039 .
      DATA:ls_poitem1 TYPE mepoitem.
      DATA:V_KUNNR1 TYPE KNA1-KUNNR.
      DATA:V_KUNNR2 TYPE KNA1-KUNNR.
      DATA:W_WERKS(4),
           w_werks_tmp(4),
           w_flag(1).
      ls_poitem = im_item->get_data( ).
      lm_poheader = im_item->GET_HEADER( ).
      ls_poheader = lm_poheader->GET_DATA( ).
      IF ls_poitem-werks IS NOT INITIAL.
        w_werks = ls_poitem-werks.
        import w_flag to w_flag from MEMORY ID 'FLAG'.
        if w_flag is initial.
          w_flag = 'X'.
          EXPORT w_werks_tmp FROM w_werks TO MEMORY ID 'MEMO1'.
          export w_flag from w_flag to MEMORY ID 'FLAG'.
          clear: w_flag.
        endif.
      ENDIF.
      IMPORT w_werks_tmp TO w_werks FROM MEMORY ID 'MEMO1'.
    break swaroopb.
      IF ls_poitem-werks NE w_werks.
          MESSAGE E010(zparts) with 'Different plants are not allowed in single PO.'.
      ENDIF.
      CLEAR: WA_ZMMTBL039,w_mara.
      REFRESH:IT_ZMMTBL039[] .
      SELECT *
        INTO TABLE IT_ZMMTBL039
        FROM ZMMTBL039
       WHERE bsart EQ ls_poheader-bsart.
      IF sy-subrc EQ 0.
        CLEAR: WA_ZMMTBL039,w_mara.
        SELECT SINGLE *
          INTO w_mara
          FROM mara
         WHERE matnr EQ ls_poitem-MATNR.
        IF SY-SUBRC EQ 0.
          READ TABLE IT_ZMMTBL039 INTO WA_ZMMTBL039 WITH KEY  bsart = ls_poheader-bsart
                                                              mtart = w_mara-mtart
                                                              spart = w_mara-spart.
          IF SY-SUBRC NE 0.
            MESSAGE E009(zparts) WITH ls_poitem-MATNR w_mara-spart ls_poheader-bsart .
          ENDIF.
        ENDIF.
      ENDIF.
    end method

    Hello Swarup
    Since you want to compare all items together (having the same plant) I would suggest to implement this logic either in method CHECK or POST of the interface.
    However, if you want to make your checks within the PROCESS_ITEM method then you should change your logic.
    It does not make sense to work with the ABAP memory within a BAdI implementing class because the class itself is your "memory".
    I would use the following logic to implement your validation:
      lo_poheader = im_item->get_header( ).  " retrieve header instance
      lt_items = lo_poheader->get_items( ).   " retrieve all items
      ls_detail_x = im_item->get_detail( ).  " details of currently processed item
      LOOP AT lt_items INTO ls_item.
        ls_detail = ls_item-item->get_detail( ).
        IF ( ls_detail-werks NE ls_detail_x-werks ).  " validation failed
        " do something...
       ENDIF.
      ENDLOOP.
    However, I would prefer to do this kind of validation in CHECK or POST method.
    Regards,
      Uwe

  • Need exit or Badi for updating Warranty data in IE02 while Prod Order conf.

    Hi All,
    I need a user exit or Badi for updating the Warranty data in IE02(Equipment Master) while production order confirmation(CO15)?
    I need to update the Begin guarantee date from Production order and warranty master type in IE02 while confirming the production order.
    Thanks,
    Sudha

    Hi,
    Are you saying first create notification,then service order
    and then Sales order.
    But the requirement is create notification then sales order and when you go in va02 and while modifying the sales order and create service order.
    Thanks & regards,
    chetan.

Maybe you are looking for

  • How to close Item while doing GR

    Dear Sir i would like to close PO item when i do Goods Receive Example   PO Qty = 5000 ea and GR = 3000 ea only, then i want to close this item during Goods Receive so, when i do GR for the rest 2000 ea, system will not allow because this item is alr

  • Hard drive not showing in Disk Utility?

    Recently, I went to install Windows 10 via Bootcamp and set up two partitions (one for OS X, 500gb and one for Windows, 500gb). I accidentally installed Windows onto of the OS X partition and somehow the Windows OS disappeared so I currently have no

  • Oracle Apps 11.5.2 CD - when is it available?

    Anybody know when the Oracle Apps 11.5.2 CD will be available?

  • Quicktime Pro after System Restore

    I'm pressed for time, so forgive me if this has already been covered. I'm preparing to do a system restore on my laptop and I've already purchased Quicktime Pro. After I've restored my PC's factory settings and reinstalling Quicktime, will I be able

  • Javamail using incorrect FROM (return) address

    Hi, we implemented a fancy DNS delegation scheme and now our java apps are sending out emails with FROM addresses that are confusing our users. Basically it looks like javamail is looking up the from address and deriving it from the delegated A recor