Modify purchase order item before to save

Hi all,
I'm trying to modify EKPO-RETPO field from purchase order item before save it.
I've done it in the user exit: EXIT_SAPMM06E_013, but I've seen it coudl be use for update customer fields.
Anybody knows which user exit can I use to do that?
Thanks in advance.
Pat.

Hello,
You can use the BADI *MEPROCESS_PO_CUST* to suffice the requirement.
In this structure IM_ITEM has field RETPO. Please pass value to it
Hope this will help.
Thanks
Eswar

Similar Messages

  • Modify Sales order Item additional tab B

    I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....which is ok. But does it have any impact becoz the same screen fields coulbe used in any of the other transaction .......i  just wanted to know if we remove the fields from sale orde item additional tab B and some new details will have some impact

    Hi,
    Before making any modifications check "Where-used". If it is in some other program other than the VA01/02/03, then better consult your lead before modifying.
    If you do not find, go ahead and make the changes confidently.
    Regards,
    Subramanian

  • Purchase order item of maintenance order still without final billing indic

    In maintenance process, while closing the Maintenance order after MIRO and Payment, system is giving warning message as :
    "Purchase order item 4520000023 00010 of order 4000020 still without final billing indic.
    Message no. IW215
    Diagnosis
    An invoice receipt is still expected for order 4000020".
    We tried with MM consultant but setting is not there for Billing indicator.
    Any solution ?
    Regards
    Rewards if resolved...

    Hi,
    Goto respective purchage Order, Select Invoice tab in Item, put tick mark in check box of  Final invoice. Then save the purchange order.
    Preoceed further.
    Regards

  • Issue at Purchase order Item Text Transferring

    Hello,
    I have an issue with Purchase order Item text transferring from SAP R/3 to EDI.
    Here I am using Function Module - IDOC_OUTPUT_ORDERS.
    within the function module i have user exit to populate this.
    User Exit Name : EXIT_SAPLEINM_002
    Include name : ZXM06U02
    I need to populate data manually ( Hardcode ) for E1EDPT1 is 'LINK'.
                                                     and    E1EDPT2 is " some text".
    When I write the code at user exit ,it is populating so many time Link Field.
    However i need to get only one time for each Item of Purchase order.
    and also I have one more question as per SAP Standard Purchase order each item has :
    1. Item text
    2. Info record PO Text
    3. Material PO Text
    4. Delivery Text
    5. Info Record Note
    when Create PO and it created Idoc ,even when i fill all the text ,when i see data at WE02 ,it has only few text not all.
    Please give me advice ,how should i follow.
    Thanks
    Seshu
    Issue at Purchase order Item Text Transferring

    Hi,
    Do this check before adding the text..
    IF INT_EDIDD-SEGNAM = 'E1EDPT1'.
    add the text..
    ENDIF.
    Thanks,
    Naren

  • Modify purchase order to include company logo

    Hi,
           How to Modify purchase order to include company logo

    Modfying is  nothing but copying the existing form to new name.
    For example MEDRUCK  is standard one .
    Copy this to new one as follows.
    1.In SE71 Utilities -> Copy from Client
    2. Mandatory fields
    Form Name:MEDRUCk
    Source Client:Depends upon ur client
    TArget form:ZMEDRUCK
    Check both the check boxes there
    3 .Click Save button
    4.New form will be created
    5.Now do ur changes.
    Niow u have to add the program and the modified form in the NACE to an output type.
    Next using the new out put type, in the transaction mee2n give a po number.
    Next in the tool bar u have Goto -> Messages
    In that screen u have to give the new out put type and medium and partner.
    Once this is done u can save and go back check the print preview.
    Follow the above steps and let me know if u face any problem,
    Regards
    Ravi

  • Purchase Order item customer fields

    I have the following scenario:
    - I need to save some customer fields in Purchase Order item, when it is generated through the Shopping Cart (EBP).
    - When EBP will generate a PO in backend (R/3), it calls B470_PO_CREATE function module and inside it calls BAPI_PO_CREATE1 in R/3. This call does not use extensionin parameter.
    - I have all the values in PO_ITEMS parameters. (an append structure in bapi_mepoitem).
    - Trying to solve this, I think I have to use EXIT_SAPL2012_001 to create the extensionin parameter.
    - Anyone else has this problem?
    - How can I create the extensionin parameter? Is it only necessary to add 'BAPI_TE_MEPOITEM' and 'BAPI_TE_MEPOITEMX'?
    - Do you have an example?
    Thank you!

    Hi
    You have to extend CI_EKPODBX with the same fieldnames with type BAPIUPDATE (in SE11), and then while passing the EXTENSIONIN to the bapi, you have to flag those. Like the following:
    DATA: wa_extensionin TYPE BAPIPAREX,
    wa_BAPIPAREX TYPE BAPIPAREX,
    wa_BAPI_TE_MEPOITEM TYPE BAPI_TE_MEPOITEM,
    wa_BAPI_TE_MEPOITEMX TYPE BAPI_TE_MEPOITEMX.
    wa_BAPI_TE_MEPOITEM-po_item = <PO Line No.>.
    wa_BAPI_TE_MEPOITEM-ZZZ_FIELD1 = <z-field value>.
    wa_BAPIPAREX-STRUCTURE = 'BAPI_TE_MEPOITEM'.
    wa_BAPIPAREX-VALUEPART1 = wa_BAPI_TE_MEPOITEM.
    APPEND wa_BAPIPAREX TO extensionin.
    wa_BAPI_TE_MEPOITEMX-po_item = <PO Line No.>.
    wa_BAPI_TE_MEPOITEMX-ZZZ_FIELD1 = 'X'.
    wa_BAPIPAREX-STRUCTURE = 'BAPI_TE_MEPOITEMX'.
    wa_BAPIPAREX-VALUEPART1 = wa_BAPI_TE_MEPOITEMX.
    APPEND wa_BAPIPAREX TO extensionin.
    This will work. Please let me know if it does not.
    See related links ->
    Re: BAPI_PO_CREATE1 and EXTENSIONIN structure
    Re: Passing custom fields to BAPI
    Problem in populating userfields in PO using BAPI_PO_CREATE1
    Re: BAPI_PO_CHANGE
    Yann i need ur help..
    Re: Custom field values are not being transfered to the backend system
    Problem in populating userfields in PO using BAPI_PO_CREATE1
    Re: Implement ME_PROCESS_PO_CUST-Urgently!
    Re: Purchase Order (BAPI_PO_CREATE! --> EXTENSIONIN)
    Re: How to use BAPI extensions?
    Re: BAPI_PO_CREATE1 user fields not saving on EKPO
    BAPI_PO_CREATE1 - EXIT_SAPL2012_001
    Do let me know.
    Regards
    - Atul

  • Purchase orders item texts incorrect display

    Hi everyone,
    i am having a bit of a hard time solving an incorrect display of purchase orders item texts.
    For an unknown reason, i can't manage to modify the item's text of a purchase order, it's as it has been set on "display".
    I checked AKTH, ME21,ME21N and PT0F( the item i use) on spro :
    Materials Management=>Purchasing =>Purchase Order= > Define Screen Layout at Document Level =>  Reference data item for the texts and it's always set on Optionnal Entry.
    I even tried to set them on Requested Entry but i didn't manage to get the text-item field modified.
    Any kind of help would be appreciated.
    Thanks.
    Siidou

    Yes i did, thanks.
    I found the answer: when the item-text is set on Requested Entry, sap considers it as if it was set on dispalay.
    I set the item text in AKTH, ME21,ME21N and PT0F on OPptional entry and i can modify it again.

  • Problem in replicating the purchase order items

    Hi,
    The Requirement  is to replicate the line items of Purchase Order in ME23N which is extracted from BAPI_PO_GETDETAIL1 and copy it  in BAPI_PO_CHANGE .
    The problem is when i am passing ACCTASSCAT(Account assignment category) it is not replicating else it is replicating.
    while debugging the program the i am getting the data into internal table but it is not getting updated in database (ME23N).
    I am getting messages in RETURN table as follows:
    Instance 4200000020 of object type PurchaseOrder could not be changed
    Purchase order item 00170 still contains faulty account assignments
    Please also populate interface parameter POITEMX
    Account 402201 requires an assignment to a CO object
    Please find the code below.

    move 'X' to LT_ITEMX-HL_ITEM.
        move 'X' to LT_ITEMX-GR_TO_DATE.
        move 'X' to LT_ITEMX-SUPP_VENDOR.
        move 'X' to LT_ITEMX-SC_VENDOR.
        move 'X' to LT_ITEMX-KANBAN_IND.
        move 'X' to LT_ITEMX-ERS.
        move 'X' to LT_ITEMX-R_PROMO.
        move 'X' to LT_ITEMX-POINTS.
        move 'X' to LT_ITEMX-POINT_UNIT.
        move 'X' to LT_ITEMX-POINT_UNIT_ISO.
        move 'X' to LT_ITEMX-SEASON.
        move 'X' to LT_ITEMX-SEASON_YR.
        move 'X' to LT_ITEMX-BON_GRP2.
        move 'X' to LT_ITEMX-BON_GRP3.
        move 'X' to LT_ITEMX-SETT_ITEM.
        move 'X' to LT_ITEMX-MINREMLIFE.
        move 'X' to LT_ITEMX-RFQ_NO.
        move 'X' to LT_ITEMX-RFQ_ITEM.
        move 'X' to LT_ITEMX-PREQ_NO.
        move 'X' to LT_ITEMX-PREQ_ITEM.
        move 'X' to LT_ITEMX-REF_DOC.
        move 'X' to LT_ITEMX-REF_ITEM.
        move 'X' to LT_ITEMX-SI_CAT.
        move 'X' to LT_ITEMX-RET_ITEM.
        move 'X' to LT_ITEMX-AT_RELEV.
        move 'X' to LT_ITEMX-ORDER_REASON.
        move 'X' to LT_ITEMX-BRAS_NBM.
        move 'X' to LT_ITEMX-MATL_USAGE.
        move 'X' to LT_ITEMX-MAT_ORIGIN.
        move 'X' to LT_ITEMX-IN_HOUSE.
        move 'X' to LT_ITEMX-INDUS3.
        move 'X' to LT_ITEMX-INF_INDEX.
        move 'X' to LT_ITEMX-UNTIL_DATE.
        move 'X' to LT_ITEMX-DELIV_COMPL.
        move 'X' to LT_ITEMX-PART_DELIV.
        move 'X' to LT_ITEMX-SHIP_BLOCKED.
        move 'X' to LT_ITEMX-PREQ_NAME.
        move 'X' to LT_ITEMX-PERIOD_IND_EXPIRATION_DATE.
        move 'X' to LT_ITEMX-INT_OBJ_NO.
        move 'X' to LT_ITEMX-PCKG_NO.
        move 'X' to LT_ITEMX-BATCH.
        move 'X' to LT_ITEMX-VENDRBATCH.
        move 'X' to LT_ITEMX-CALCTYPE.
        move 'X' to LT_ITEMX-NO_ROUNDING.
        move 'X' to LT_ITEMX-PO_PRICE.
        move 'X' to LT_ITEMX-SUPPL_STLOC.
        move 'X' to LT_ITEMX-SRV_BASED_IV.
        move 'X' to LT_ITEMX-FUNDS_RES.
        move 'X' to LT_ITEMX-RES_ITEM.
        move 'X' to LT_ITEMX-GRANT_NBR.
        move 'X' to LT_ITEMX-FUNC_AREA_LONG.
        move 'X' to LT_ITEMX-ORIG_ACCEPT.
        move 'X' to LT_ITEMX-ALLOC_TBL.
        move 'X' to LT_ITEMX-ALLOC_TBL_ITEM.
        move 'X' to LT_ITEMX-SRC_STOCK_TYPE.
        move 'X' to LT_ITEMX-REASON_REJ.
        move 'X' to LT_ITEMX-CRM_SALES_ORDER_NO.
        move 'X' to LT_ITEMX-CRM_SALES_ORDER_ITEM_NO.
        move 'X' to LT_ITEMX-CRM_REF_SALES_ORDER_NO.
        move 'X' to LT_ITEMX-CRM_REF_SO_ITEM_NO.
        move 'X' to LT_ITEMX-PRIO_URGENCY.
        move 'X' to LT_ITEMX-PRIO_REQUIREMENT.
        move 'X' to LT_ITEMX-REASON_CODE.
        move 'X' to LT_ITEMX-LONG_ITEM_NUMBER.
        move 'X' to LT_ITEMX-EXTERNAL_SORT_NUMBER.
        move 'X' to LT_ITEMX-EXTERNAL_HIERARCHY_TYPE.
        move 'X' to LT_ITEMX-RETENTION_PERCENTAGE.
        move 'X' to LT_ITEMX-DOWNPAY_TYPE.
        move 'X' to LT_ITEMX-DOWNPAY_AMOUNT.
        move 'X' to LT_ITEMX-DOWNPAY_PERCENT.
        move 'X' to LT_ITEMX-DOWNPAY_DUEDATE.
        move 'X' to LT_ITEMX-EXT_RFX_NUMBER.
        move 'X' to LT_ITEMX-EXT_RFX_ITEM.
        move 'X' to LT_ITEMX-EXT_RFX_SYSTEM.
        move 'X' to LT_ITEMX-SRM_CONTRACT_ID.
        move 'X' to LT_ITEMX-SRM_CONTRACT_ITM.
        move 'X' to LT_ITEMX-BUDGET_PERIOD.
        append LT_ITEMX.
        clear LT_ITEMX.
      endloop.
      describe table LT_ITEM1 lines LV_NO.
      sort LT_ITEM1[] by PO_ITEM.
      read table LT_ITEM1 index LV_NO.
      append lines of LT_ITEM1 to LT_ITEM.
      clear LT_ITEM.
      LV_NUM = LV_NO * 10.
      condense LV_NUM.
      concatenate '000' LV_NUM into LV_NUM.
      loop at LT_ITEM where PO_ITEM is not initial.
        LV_INDEX = SY-TABIX.
        read table LT_ITEM1 with key PO_ITEM = LT_ITEM-PO_ITEM.
        if SY-SUBRC eq 0.
          if LV_INDEX gt LV_NO.
            LT_ITEM-PO_ITEM = LT_ITEM-PO_ITEM + LV_NUM.
            modify LT_ITEM transporting PO_ITEM.
          endif.
        endif.
      endloop.
    *LOOP at i_item.
      call function 'BAPI_PO_CHANGE'
        exporting
          PURCHASEORDER = LS_TAB-V_EBELN
        tables
          RETURN        = LT_RETURN
          POITEM        = LT_ITEM
          POITEMX       = LT_ITEMX.
    *ENDLOOP.
      if not lt_iTEM[] is initial..
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            WAIT   = 'X'.
         importing
           RETURN = LT_RETURN.
       WRITE: I_RETURN-MESSAGE.
      endif.
    endform.

  • No purchase order item was generated for shipment cost item

    Hi Gurus,
    When I am creating with reference to shipment no & shipment cost type, When I  save the shipment cost, See the logs at the time saving.
    The logs are showing in red :
    No purchase order item was generated for shipment cost item.
    Message no. VY633
    Please enter a valid partner role.
    Message no. ME351
    May I know the reason for showing red logs at the time of saving. (When I check logs, it is showing red colors).
    Please advice if I miss any thing.
    Regards
    Rakesh

    Hi Rakesh,
    Your customising is incomplete. Notes 506605 & 940532 will help you on this.
    regards, david

  • Purchase Order Items open vs ME2M discrepancy

    First posting so if this is not the right section please move this topic.  Was the closest I could come to correct forum placement.
    Hello all,  I am in the process of setting up BPM to monitor u201CN* of Purchase Order Items openu201D from various plant locations and I am noticing the number BPM gives is different than what the system you give if I used ME2M.
    For example:  I am setting up BPM to monitor Number of Purchase Order Items Open for plant location 2102.  The set up is scarce and I only have a few fields filled out in the set-up:
    -Document Type u2013 Single Value u2013 NB, UB, FO, ZPC, ZGR
    -Plant (Item) u2013 2102
    -Doc. Category u2013 F (Purchase Order)
    -All of fields are left blank
    When this runs I will get an example of 1487 (it changes on an hourly basis so I canu2019t give a static value).
    When I try to verify this number using ME2M I get a value of 1237.  A difference of 250.
    The configuration I am using for ME2M is as follows:
    -Plant u2013 2102
    -Scope of List u2013 ALLES
    -Selection Parameters u2013 WE101
    -Document Type - NB, UB, FO, ZPC, ZGR
    -All other fields at left blank
    Any reason for this discrepancy?  The closest I can guess is SAP is pulling in some additional information OR my configuration is incorrect.  Anybody run into this issue that has some tips?
    Thank you
    -nic

    I know that ME2M has nothing to due to with BPM.
    I am confused as to why when I set up BPM, in Solution Manager, to monitor Purchase Orders that are open I am getting a different number than when I use the transaction ME2M in SAP ECC.
    For example:
    When the process runs in Solution Manager I get back 1425 open POs
    When I go into SAP ECC and use the transaction ME2M it will only pull up 1175 open POs
    Somewhere along the lines I am missing or adding 250 POs.  The current setup (listed above; not sure if BPM is configured the same for everyone) is listed above.
    I have tried various set-up options in both BPM Solution Manager and SAP ECC (ME2M) but can't seem to find where these additional numbers are coming from.
    Thank you
    -nic

  • Standard program for unbilled  sales orders and purchase order items

    Can anyone advice,  is there any standard program which gives the unbilled sales order and purchase order items.

    Hi,
    Use the T.Code VA05/VA05n for list of all the sales order s which are open.
    Take T.Code:VA05N
    Select the option "Open Sales Orders".
    Execute.
    It will give you all the orders which are open.
    The standard program for this is:"SD_SALES_ORDERS_VIEW".
    The same you can also get by using the T.Code VF04.
    In this if your scenario is "Order related",then select the option "Order related".
    Else if it is "Delivery related",then select "Delivery-related".
    Execute.
    The standatd program for this is:"SDBILLDL".
    T.Code:VF05/VF05n is for list of billing documents.
    Regards,
    Krishna.
    Note:Pls search the forum.

  • In MR11 - u201CNo (suitable) purchase order/item found     u201C.

    Hi Friends,
    We are having issue with MR11 in 4.6 B. While doing MR11 for a PO where Delivery costs have not been balanced, we are getting message u201CNo (suitable) purchase order/item found     u201C.
    In the research, we found that in 4.6 B, MR11 is using program SAPMM08K, where as in ECC 6.00, it is using program SAPRCKM_MR11.
    Initial fetch from PO history table :
    4.6 B -> In 4.6 B we are using EKBI view (Join via EKKO / EKPO / EKBE for MR11) to fetch the PO history table. (It is not considering EKBZ table for delivery cost records)
    Program is checking the Quantity of EKBI, if there is no difference in quantity then it is coming out of loop and showing message
    No (suitable) purchase order/item found
        Message no. M8 401
    3CAUSE&
        No purchase order exists which corresponds to your entry for a quantity
        difference posting.
    ECC 6 -> In ECC 6.00 we are using view V_CKMLGRIR (DB View: Selection for MR11 Clearing GR/IR Clearing Account Table u2013 EKKO, EKPO and EKBE)
    Here also program is checking the Quantity in the View, if there is no difference in quantity then it is going for another fetch (which is missing in 4.6 B).
    In the another fetch, it is checking View V_CKMLGRIR_FR (DB View: Selection for MR11 Clearing Freight Clearing Accnt Table u2013 EKKO, EKPO and EKBZ)
    I've searched sap notes but couldn't find much help. I've tried different search criteria but no luck. Could anyone able to help me?
    Thanks,
    Ramesh S

    HI
    MR11 will show only the blocked invoices due to quantity/price difference.
    First of all please check your invoice (MIRO of your required PO) that it is blocked for invoice verification or not .(Please note block for payment is not relevant for MR11).
    Further please check if you have mainatined any tolerance in GRN (MIGO) for under or over delivery , so it is not escaping the PO due to under/over tolerance limit.
    Cheers
    Mukta

  • Free Item in Purchase Order Item

    Hello All,
    I would like to ask where in table level can I identify Purchase Orders which have "Free Item".  Because on the screen field i saw from the technical definition that the "Free Item" is of field MEPO1211-UMSON, but when I go to EKPO I cannot find the corresponding field.
    I have this idea but I don't know if it is right or not, in case I uncheck the "Invoice Receipt" in the Purchase Order Item details, the "Free Item" check box appears.  So I am thinking is all Purchase Order Items which have "Invoice Receipt" (EKPO-REPOS) uncheck considered as a "Free Item".
    Thanks.

    Hi,
    When we are talking about Free Items, in SAP terms, it means that we would not have any conditions/Gross/Net Price.
    Also, Invoice Receipt will be unchecked because for free items, there would not be any invoice right?
    So we can conclude that, once Invoice Receipt is unchecked + Free items is checked, this particular line item will be received as free goods.
    Note that if the material is valuated, it will affect your MAP (moving average price).

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • Profit Segment not activated during creation of purchase order item

    Hello,
    While I create a Purchase Order Item, in the account assignment tab, I may fill in at least a cost center or a cost center and an internal order.
    If I fill in only a cost center and key the enter buton, the profit segment is activated.
    If I fill in the cost center and the Internal Order at the same time and afterwards I key the enter button, the profit segment is not activated. I have to click on the Profit segment button and validate the profit segment manually.
    Could you tell me what the problem is?
    Thank you in advance
    Regards

    Hi
    That makes sense to me
    In any entry you can enter One REAL Object and more than one Stat Object...
    SInce you entered Cost Center in Option 1 - You were proposed with PSG and IO as the option
    Since you entered Cost center *** REAL IO in Option 2 - The system got what it wanted i.e. One REAL OBJECT.. hence, no more objects are proposed to you... However, you can manually enter PSG or WBS if allowed in your Field Status Group in FI
    br, Ajay M

Maybe you are looking for

  • Runtime error when launching Acrobat 9 or Reader 9

    Reference: KB404597 According to the information in the referenced KB article, this is a known problem with Adobe Systems. The suggested "workaround" didn't work. As it is now, I cannot open any PDF files, whether from Adobe Reader, within e-mails, o

  • Circle Sunday Calendar Year

    Hii    I have a real issue regarding FI Calendar year .In my case the financial runs for April to March.But there is a financial year variant maintained for Nov-Oct financial year also,which taked the circle sunday concept of period definition i.e th

  • Cisco Prime Network Analysis Module (NAM) 5.1

    Hi I have NAM-2 with software version 4.2 installed in my network and i am making very good use of these module for troublshooting, I can run multiple captures files at local disk simultaneously and i can decode real time any capture file which is ru

  • I received an error when trying to open itunes

    I received an error when trying to open itunes.  It said itunes stopped working, so I tried to uninstall and re-install.  It let me install it, but when I tried to open it, it gave me the same error message.  How can I get itunes back on my laptop (w

  • Hyperion 11.1.2.3 --EPMA server is not starting on SQL-Server2008 R2

    I checked the SQL server DB and it looks fine and getting below error [2013-11-05T10:32:59.018-06:00] [Error] Hyperion.CommonServices.Exceptions.SessionManagerException: Session Manager could not start because database connectivity could not be estab