Purchase Order BADI - Process Item

All,
I'm creating a purchase order with 2 line items 10 and 20.
I put a break-point in the METHOD IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM and I can access the data related to the first
line item only that is for  EBELP = '00010'.
The structure MEPOITEM has only data related to the first line item 10.
Is there a way I can access data for all other line items in this method?
Meghna

Hello Meghna
You can use method CHECK (or, if the header is changed, method PROCESS_HEADER).
method IF_EX_ME_PROCESS_REQ_CUST~CHECK.
* define local data
  data: lt_items    TYPE MMPUR_REQUISITION_ITEMS,
           ls_item     LIKE LINE OF lt_items,
           ls_data    TYPE MEREQ_ITEM.
  lt_items = im_header->get_items( ).
  LOOP AT lt_items INTO ls_item.
    ls_data = ls_item-item->get_data( ).
   IF ( ls_data-BNFPO = '00010' ).
"   Process item 10
  ENDIF.
  ENDLOOP.
endmethod.
Regards
  Uwe

Similar Messages

  • Purchase order BADIs

    Hi,
    Can anyone provide the list of Purchase order BADIs.
    Thanks,
    Shivaa.

    Hi,
        This are all the list of BADIs for Purchase order Tcode
                                                                                    ME_BSART_DET         Change document type for automatically generated POs          
    ME_CCP_BESWK_AUTH_CH BAdI for authorization checks for procuring plant             
    ME_CCP_DEL_DURATION  Calc. of Delivery Duration in CCP Process (Not in Standard)   
    ME_CHECK_ALL_ITEMS   Run Through Items Again in the Event of Changes in EKKO       
    ME_CHECK_SOURCES     Additional Checks in Source Determination/Checking            
    ME_CIN_LEINRF2R      BADI for CIN India - Delivery charges                         
    ME_CIN_LEINRF2V      BADI for LEINRF03 excise_invoice_details                      
    ME_CIN_MM06EFKO      Copy PO data for use by Country version India                 
    ME_CIP_ALLOW_CHANGE  Configuration in Purchasing: Changeability Control            
    ME_DEFINE_CALCTYPE   Control of Pricing Type: Additional Fields                    
    ME_GUI_PO_CUST       Customer's Own Screens in Enjoy Purchase Order                
    ME_HOLD_PO           Hold Enjoy Purchase Orders: Activation/Deactivation           
    ME_PROCESS_COMP      Processing of Component Default Data at Time of GR: Customer  
    ME_PROCESS_PO_CUST   Enhancements for Processing Enjoy Purchase Order: Customer    
    ME_PURCHDOC_POSTED   Purchasing Document Posted                                    
    ME_REQ_OI_EXT        Commitment Update in the Case of External Requisitions        
    ME_REQ_POSTED        Purchase Requisition Posted                                   
    ME_TAX_FROM_ADDRESS  Tax jurisdiction code taken from address                      
    MM_EDI_DESADV_IN     Supplementation of Delivery Interface from Purchase Order     
    SMOD_MRFLB001        Control Items for Contract Release Order                                                                               
    Regards
    Bala Krishna

  • Transfer of tax indicator to purchase order for service items in shopping cart

    Hi all.
    I have a problem with the tax indicator in the shopping carts and in the backend purchase orders for service items. If I create a shopping cart with service items with different tax indicators, the backend purchase order have a unique item including all the services. So, all the PO items are under one tax indicator while in the shopping cart there is more than one indicator. I mean, the PO is not correctly replicated with the information of the SC.
    Example: shopping cart in SRM with 3 items, tax codes: V1, V2, V1. The standard code transfers the information to the backend, and creates a purchase order with an unique item with the 3 services under tax code V1. So, the second service is not under the correct tax code, and will be wrongly invoiced.
    We have debugged all the code of the process, and we think it is a standard bug. When you replicate a PO in the backend from a SC in SRM, have you experienced this behaviour, or the service items are grouped in different PO items each one with the correct tax indicator?
    Thanks in advance.

    Hi again...
    I forgot to mention that we have found and applied the note 1822107 (Purchase order: wrong tax code for PO with 2 service items), that fits exactly to our problem. But after testing, it doesn't work.
    Regards.

  • I found a exit CIFPUR02 for purchase order inbound process.is it suitable?

    I found a exit CIFPUR02 for purchase order inbound process.is it suitable?
    my idoc is PORDCR102 AND message type is PORDCR1. my requirement is this is EXIT should trigger before saving the data in me21n.
    Edited by: rk.kolisetty on Jun 24, 2010 4:59 PM

    Hi,
    Following are the user exit relevant to T Code ME21n.
    AMPL0001  User subscreen for additional data on AMPL
    LMEDR001  Enhancements to print program
    LMEKO001  Extend communications structure KOMK for pricing
    LMEKO002  Extend communications structure KOMP for pricing
    LMELA002  Adopt batch no. from shipping notification when posting
    LMELA010  Inbound shipping notification: Transfer item data from
    LMEQR001  User exit for source determination
    LMEXF001  Conditions in Purchasing Documents Without Invoice Rece
    LWSUS001  Customer-Specific Source Determination in Retail
    M06B0001  Role determination for purchase requisition release
    M06B0002  Changes to comm. structure for purchase requisition rel
    M06B0003  Number range and document number
    M06B0004  Number range and document number
    M06B0005  Changes to comm. structure for overall release of requi
    M06E0004  Changes to communication structure for release purch. d
    M06E0005  Role determination for release of purchasing documents
    ME590001  Grouping of requsitions for PO split in ME59
    MEETA001  Define schedule line type (backlog, immed. req., previe
    MEFLD004  Determine earliest delivery date f. check w. GR (only P
    MELAB001  Gen. forecast delivery schedules: Transfer schedule imp
    MEQUERY1  Enhancement to Document Overview ME21N/ME51N
    MEVME001  WE default quantity calc. and over/ underdelivery toler
    MM06E001  User exits for EDI inbound and outbound purchasing docu
    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 P
    MM06E008  Monitoring of contr. target value in case of release or
    MM06E009  Relevant texts for "Texts exist" indicator
    MM06E010  Field selection for vendor address
    MM06E011  Activate PReq Block
    MMAL0001  ALE source list distribution: Outbound processing
    MMAL0002  ALE source list distribution: Inbound processing
    MMAL0003  ALE purcasing info record distribution: Outbound proces
    MMAL0004  ALE purchasing info record distribution: Inbound proces
    MMDA0001  Default delivery addresses
    MMFAB001  User exit for generation of release order
    MRFLB001
    Rgd,
    Chetan

  • Purchase order has no items

    Hi All,
    While i am posting the MIGO transaction with reference to PO I encountered error as a "Purchase order has no items.
    Thanks and regards,
    Ravi Vruddhula.

    Following are the reason
    Check the confirmation tab ate item level at the purchase order. It should be blank.
    Is there any goods receipt ag. this PO, if yes, check the PO history tab at item livel in the PO. Check the pending qty.
    It sholud not be deleted PO.
    Check the delivery date in the PUrchase order.
    Check the release stratagy in the PO. It should be release.
    Thanks,
    Samir Bhatt

  • PO account assignment Q + Purchase order has no items + M7033

    Hi All,
    I have create a PO with account assignment Q and now when I am trying to post GR to this PO I am getting the error 'Purchase Order has no items' Message number M7033. Please Guide.
    Thanks and Regards
    Pavan

    Following are the reason
    Check the confirmation tab ate item level at the purchase order. It should be blank.
    Is there any goods receipt ag. this PO, if yes, check the PO history tab at item livel in the PO. Check the pending qty.
    It sholud not be deleted PO.
    Check the delivery date in the PUrchase order.
    Check the release stratagy in the PO. It should be release.
    Thanks,
    Samir Bhatt

  • Unable to cancel - open purchase order where all items are removed

    Hi all,
    When We try to cancel/close open purchase order where all items are removed from item master ?
    It showing error message,
    "No matching records found  'Items' (OITM) "
    Purcahse order was created on may-2007.
    As purchase order showing in open item list.
    Any solution for this problem ?
    Jeyakanthan

    SAP does allow items to be removed from the item master with open documents, but only if the documents have not created journals.
    It does create headaches though, and this situation is one of them.
    If there are not many items, I suggest you recreate the items, close the PO and just cancel the items rather than remove them.
    The other workaround is to change the items on the PO to something different that is in the item master, then close it.

  • Purchase order for KIT item

    Hi,
    my requirement is to raise Purchase order for KIT item.For Example--
    For 1 Kit item A, including 1 table and 4 chairs. Define components (table and chair) for item A by using Bills of Material screen. In Order Management, when user orders 100 item A, system will generate automatically 100 tables and 400 chairs and Ship to customer. Item A does not have Onhand, only its components have Onhand.
    will the oracle purchasing support this KIT purchase concept.
    pl give me suggestions.
    Thanks in Advance,
    regards,
    venkat

    Venkat
    I'm thinking that your requisition from OM will be automatically converted to internal requisition for 100 tables and 400 chairs, based on your setup.
    Would you still need to have 'KIT' setup in procurement?
    The other thing I can think of is, you can use Requisition Templates to help in ordering items on a repetitive basis.
    Let us know what you think.

  • How to link asset with purchase order and PO Item.

    Hello,
           I have to generate a report which contains columns
    Asset No , po no(ebeln) ,PO Item(ebelp),Material no etc
    My query is how to link asset with purchase order and      PO Item.
    I am selecting asset and po no. from anla  but how to get
    po item no(ebelp)?
    po line item is important in this report because every line item has differrent asset and material no.
    i tried to match asset no in mseg table but i am not getting asset no in mseg .
    how should i proceed ?

    Thanks Thomas & Srimanta for the quick response.
    When I checked EKKN table by entering PO there is no asset no. in anln1 field.
    Also I would like to add that, In me23n for a PO, account assignment category we are entering 'F' for internal order settlement.
    Where can i find the link between asset and po no(ebeln) and po item(ebelp)?
    Regards,
    Rachel
    Edited by: Rachel on Aug 11, 2008 7:23 AM

  • Delivery date in Purchase Order in the item overview

    Hi all,
    In which table is Delivery date in Purchase Order in the item overview stored.
    the screen field name is eeind.
    Thanks

    In table EKET in field EINDT the delivery date is stored, based on the Schedule lines in the PO Item

  • Order Status Processing items - Delivers 3rd-9th Oct

    My order says processing items but my delivery date is still down as 3rd to 9th October.
    Anyone else have this? Also is it still likely or should I have received a dispatched email by now?
    I ordered on 15th Sept.

    Iwantone wrote:
    Do we get compensation if it does not arrive in that time?
    Haha... wow... care to share whatever drugs you're on? 

  • Enhacement  for  Purchase order creation (Service Item)

    Dear All,
    While creating the purchase order for service items , the base value for calculating the tax must be a value of a pricing condition type.
    Can anyone advice how to link the pricing and tax details of a service item.
    Thanks
    Ravindra Suvarna

    Hi,
    It is a coding error.
    Could you please check if you have applied the note 1049031 with the latest version 13?
    Regards,
    Edit

  • Status Change for Purchase order in Process Purchase order

    Hi All,
    We have implemented SRM 4.0 with Extended Classic scenario.
    SRM does provide standard status for Process Purchase order worklist (such as Ordered, Held, Error in Process etc.). Is there any BADI i can use to overright my own status message for the PO.
    To give brief background of the requirement. Client wanted status to be changed to "Cancel" For POs whose all the line items we have deleted or "Close" when Last delivery or Final Invoice check is ticked.
    I am aware that i can use BBP_DOC_SAVE_BADI as structure BBP_PDS_ITEM i can get items deletion indicator. But will i able to change the standard Status message?
    Presently even though all line items marked delete still shows PO as "Ordered" status.
    Kindly let me know if i can acheive with anyway.
    Thank you
    Ritesh

    Hi Masa,
    Thank you for your response. I have few doubts about the configuration which you have suggested.
    - Define Status schema for User status will create a status Profile in which i have to include my own status. In the document of Define Status Schema it specifies that After creating User profile you have to assign same profile to transaction types. (I.e. BUS2201 or BUS2121 etc).
    My concern is will my own status profile over-write the standard status which is coming? such as Ordered, Created, Transmission fail etc.
    If so then do i have to create status profile to include all the Standard Status message in it as well?
    - Other thing i found that Ordering PO goes through many standard status message (COMP, CRTD, CTRA, DCOM, ORDR) and always the last status in the Hearder will display on  ITS level. Is my understanding right?
    - I found that there is a standard system status message I1045 (BECN Cancel) Can i use this through BADI?
    Kindly let me know.
    Thank you once again.
    Regards
    Ritesh

  • Purchase Order / Requisition Line Item Approval

    Hi
    Just wondering if Purchase Order / Purchase Requisition LINE ITEM approval is an option for workflow?
    Would the better solution be to use SRM line item approval on a shopping cart and create the Purchase Order from this?

    Hi
    Just wondering if Purchase Order / Purchase Requisition LINE ITEM approval is an option for workflow?
    If the process involved the need to use different approvers for different line items, would the better solution be to use SRM line item approval on a shopping cart and create the Purchase Order from this?

  • Problem in enhancing the Purchase Order BADI with custom fields

    Hi All,
    I have problem  in populating the  cutom fields for the Purchase Order. I have created a custon include  and i am passing the values to the extension of the  Function module BAPI_PO_CHANGE  In ECC 6.0. I have  one currency field (ZZMASSIST)  in the header level and  three curr fields in the  item level  , due to this currfields we are getting the errors like "Error transferring ExtensionIn data for enhancement CI_EKPODB" and "Error transferring ExtensionIn data for enhancement CI_EKKODB" .
    So i  am looking to implement  the BADI   "ME_BAPI_PO_CUST " . Please provide me the sample code for maintain the currency fields in method IF_EX_ME_BAPI_PO_CREATE_02~MAP2I_EXTENSIONIN.
    Thanks in Advence.
    Regards,
    Venkat Appikonda.

    Hi Venkat,
    Saw that you solved the issue, can I ask how do you implement it? Is the implementation done in the BAPI itself?

Maybe you are looking for