Materials Management - Purchase Order. FUNCTION 'BAPI_PO_CHANGE'

Hello!
How to use FUNCTION 'BAPI_PO_CHANGE'?
Required paramiter only PO number?
I need to change POITEM.
Somebody hav example / description?

Hi,
refer to the link below for sample code :
[http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm]
Regards,
Surinder

Similar Messages

  • One inspection lot for multiple materials of purchase order line items

    Hi All,
    My client requirement is one inspection lot for multiple materials of purchase order line items.
    Please share your thoughts.
    Thanks in advance for early reply.
    Regards,
    Jishu

    I totally agree with Amol.
    I don't think I would touch that development nor would I ever tell a client it could reliably be done through development.
    Knowing what I know about the table structures, I don't think you could create any development for this that could use a significant amount of the existing tables and functionality.  I think you'd have to create all your own Z tables and basically rebuild the functionality.  Tying it back in with SAP data will be difficult.
    You're even looking at all custom screens for your results recording and UD as well.  And if you have follow-on functions like batch classification requirements, batch determination, COA publication, results copy functions, use of DMR and sampling procedures, physical samples, quality notifications, etc. etc.. you could be looking a whole lot of development.
    Craig

  • How we enter text for materials in purchase order smartform

    hi guru
    how we enter text for materials in purchase order smartform
    my requirement is create smartform for purchase order.
    in this i have to create item-text, by using which tcode we can give item data
    plz give more expalnation for this plzzzzzzzzz

    Hi,
           You can use read_text function module for readind text of material and store this value in internal table later pass this internal table to smartform will solve your problem.
    otherwise there is direct option for text element property that is include text u can use that also
    Regards
    Gagan

  • How to create the Copy icon in the change Purchase order functionality

    Hi,
    In the shopping cart creation screen, there has a option to copy one Item in the Items in Shopping Cart section.This functionality is supplied by standard SAP.
    Now I will have to build the same logic ( Copy Icon with the copy and paste logic)  in the Cahnge Purchase Order functionality.
    So anybody told me how this can happen?
    Also want to know the BADI or some Function Module name from where standard  SAP did the same thing ?
    Thanks for your help in advance.

    Hi. You could add a new button by amending the template, then use the BBP_DOC_CHANGE_BADI to copy the item when it is pressed.
    Just copy all the details for the line to be copied in the BADI. I think you will have to generate new GUIDs for the new lines using function GUID_CREATE. All the other GUIDs, header, partner etc could be copied from what was already there.
    Alternatively, still using BBP_DOC_CHANGE_BADI, you could add a new custom field, see note 672960, called "Copy Item" and the user could enter an X or something in there to indicate they want to copy.
    Or how about a number of copies, they could enter 1 for 1 copy, 10 for 10 and so on?
    When the user presses check the BADI runs and you copy the lines.
    It would not be as neat to look at as the copy button, but it would actually give more functionality and would mean you would not have to mess around with templates.
    Regards,
    Dave.

  • Managing Purchasing orders that contains third-party materials

    Hello everybody,
    How can I manage the purchasing orders related to third-party materials (sales order that contains third party materials). For example, I use ME5A to create purchase orders from the purchase requests created by MPS. Does exists any transaction to manage (create and list) purchase orders from sales order that contains third-party materials? (now, we are using a non-standard list, but I’m sure that SAP offers an standard solution. Does anybody knows it?).
    Thanks in advance,
    Ricard.

    Thanks Chetan,
    Now I can see the items (third party materials) at ME5A list. But I can’t create the P.O from ME5A (the purchase requisitions of the third party material does not apear at md04). Maybe I have to do some customization? Or do I need another transaction?
    Thanks,
    Ricard.

  • Updating Purchase Order data - BAPI_PO_CHANGE?

    Hi,
    I have been searching for a SAP standard tool that can update a Purchase Order upon its execution. The closest function module I could find was BAPI_PO_CHANGE. However, it was documented as a restriction that updating of service data is not possible with this function module (I have also tested this).
    Are there any other possible mechanisms which can be called/used for the purpose of updating a PO including its services? It would be most desirable if the following fields on a Purchase Order can be changed/updated via this mechanism (fields in bold are data found in a service):
    Field Field name
    Percentage EBKN-VPROZ
    Distribution Indicator EBAN-VRTKZ
    Project EBKN-PROJN
    Order EBKN-AUFNR
    Responsibility Cost Centre EBKN-ZZMRESP
    WBS Element EBKN-PS_PSP_PNR
    Cost Centre EBKN-KOSTL
    Unblocking User ESLL-USERF2_TXT
    User for Approval ESLL-USERF1_TXT
    Currency EBAN-WAERS
    Quantity EBAN-MENGE
    Price EBAN-PREIS
    Price unit EBAN-PEINH
    Overall Limit ESUH-SUMLIMIT
    Expected Value ESUH-COMMITMENT
    Net Value ESLL-NETWR
    Thanks in advance.
    ~ Andi

    Hi,
    You can try these FM to update info record.
    ME_DB_UPDATE_INFORECORDS
    ME_UPDATE_INFORECORD
    ME_UPDATE_INFORECORD_COND
    ME_UPDATE_INFORECORD_PD
    Check the sample code on BAPI_PO_CHANGE
    http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
    Regards,
    Shiva Kumar

  • Changing a Purchase Order with "BAPI_PO_CHANGE"

    Hi Experts,
    I am trying to change the Confirmation data for an existing PO using the BAPI "BAPI_PO_CHANGE".
    I am filling the PO Number in the "PURCHASEORDER" Import parameter.
    I am also filling the "CONF_TYPE", "DELIV_DATE" and "QUANTITY" fields in the "POCONFIRMATION" Table parameter which is specifically the data i need to add to the existing PO under the "Confirmations" tab of the PO.
    I am getting all the input data for the BAPI from a file on the presentation server. The file has details of Material Number, Purchase Order Number, Ship to Address, Delivery Date and Quantity.
    But i am not able to change any data in the Purchase Order when i test the BAPI. I am getting the following messages in the "RETURN" Tables parameter:
    T ID                   NUM MESSAGE
    W ME                   667 Max. line number reached (Please always first enter line number manually)
    E BAPI                 003 Instance 45317399 of object type PurchaseOrder could not be changed
    W ME                   178 Batch SURE not maintained for material 10013537 (please check your input)
    E 06                   218 Net price must be greater than 0
    I am not sure if i am missing to fill any parameter here.
    Kindly help me in resolving this issue.
    Thanks in advance.
    Regards,
    Keerthi

    Hello to all,
    that is just for documentation. SAP answerd the problem in OSS-304243 but this message is not accessable if you don't have powerful OSS-Users.
    This SAP-note might be interesting: 197958
    OSS-Message 652796 8.8.2011
    BAPI_PO_CHANGE
    We can not process confirmations by using the parameter poconfirmation.
    The Baps reports always S 06 022 - no data changed.
    In the SDN there are some hints telling that the BAPI_PO_CHANGE does notsupport processing of confirmations. More detailled infos should be in
    the OSS-Message 0000304243 but this message is not accessable for us.
    Can you confirm that the BAPI_PO_CHANGE does not support adding
    confirmations? We debugged the BAPI and there is no code for updating
    confirmations found.
    Best regards
    Bernhard Lascy
    09.08.2011 - 10:43:07 CET - Antwort von SAP
    Dear Bernhard,
    I regret to inform you that the functionality you request is not
    implemented in the R/3 standard system.
    Unfortunately it is not possible to change/load confirmations with the
    function module BAPI_PO_CREATE/BAPI_PO_CHANGE. Table POCONFIRMATION in
    BAPI interface is relevant for Display/List Vendor Confirmation in BAPI,not for update/insert Vendor confirmation in PO.
    Furthermore, we recommends that you use Idocs for automatically
    entering confirmations. The Message type to use is ORDRSP.
    You may read more about this topic in the online documentation.
    Please see also following attached note for your reference.
    456127 FAQ: Electronic Data Interchange (EDI) in purchasing
    Best regards,
    Pavel Olysar
    Support Consultant
    Global Support - Logistics

  • Purchase order - Function - Confirmation

    Hi,
    I need find a function to simulate the confirmations in purchase order.
    The standard process is strange. Sometimes, reduces even though the total amount does not reach a confirmed total order.  It's like the standard randomly chose the quantity to reduce.
    Best Regards
    Edited by: Andréa Molina on Feb 14, 2012 7:16 PM

    We created a new way to make the p.o. confirmations.
    The process of confirmations should be like a standard process (ME22N). When standard reduce, the Z program reduce too. To try make that I studied the standard process, but the process does not follow a logical pattern common to all situations.
    After all, in our process we have two confirmations:
    Y1 - Confirme and creat a requirement in MD04 and Y3 - Ship, don't create a new requirement BUT repalces the Y1.
    Exemple: The vendor confirm the deliv. date. The Y1 confirmation is created. When the vendor send the item (if international vendor) a new confirmation is created - the Y3.
    Now, follows a real exemple of situation:
    The item has 6.000 PC - P.O quantity (total).
    All conditions below has one Y1 and Y3 confirmations:
    Situation 1: 3000(Y1) and 3050(Y3). The quantity reduces was 50.
    Situation 2: 2000(Y1) and 2050(Y3). Nothing reduces.
    Situation 3: 3050(Y1) and 3000(Y3). The quantity reduces was 50.
    Situation 4: 3000(Y1) and 3000(Y3). Nothing reduces.
    Situation 5: 3050(Y1) and 3050(Y3). The quantity reduces was 100.
    The difference between the 1-3 and the 4 is only the quantity. The quantity isn't the same of total quantity of P.O.
    It appears that when the sum of quantities a value greater than half of the total the standard  reduces the quantities over half. But using logic it seems to me somewhat risky.
    So,  I'm looking for a bapi/function that do this count and provides the reduces quantity like the ME232N transaction.

  • Purchase Order : function to determine the purchase order number

    Hi,
    I'm working on data migration to create purchase order. I must use the internally range number. Does anybody knows which function must i use to create the purchase order number before calling the bapi bapi_po_create ?
    with regards
    Jean-Luc Ledoux

    Hi,
    The BAPI is designed to generate the next free number that is defined by the company and allocate it in series.
    This is taken care internally.
    explain the scenario like as from what data ur creating the PO and wht exactly do u mean by having ur own internal number range.....
    No body will have 2 number ranges to define PO....
    if ur uploading data from legacy system then u can have 2 fields called as old purchase order number and purchase order number in new erp system.
    if this is ur scenario ask how the functional mapping is done in the company to accomadate legacy purchase order numbers.
    Regards,
    Jayaram Maganti

  • Management Purchase order in ERP

    Hello,
    I ve been searching any cockpit, management view, to control the purchase order.
    In other words, I want to know what are delays orders, the order should be executed... whatever...
    Probably, there is something standard like md06 to production order.
    What could you suggest ?
    Thank you for your replie!

    Hi,
         You can use some List Displays TRC: (For example: ME2L, ME2N).
        Pls set 'WE103' (Open good receipt) to Selection parameter and system date to Delivery date to.
        But this TRC may take long time.   This case you need input document date, plant etc.
       Pls try.
    Regards,
       Gaito

  • Material Management - Purchase Order

    Hi,
    My Requirement :
    I have 4 material. MAT1, MAT2, MAT3, MAT4.
    MAT1 -  has an Open Purchase Order.
    MAT2 - No Purchase Order Placed.
    MAT3 - No Purchase Order Placed.
    MAT4 - has a Closed Purchase Order.
    Could any one help me from which tables and fields I can get these information, that for a material number there has not been a purchase order placed and which has an open or a closed one.
    Will Reward on helpful answers.
    Thank you.

    Hi Subin,
    To cater this requirement, you have to go step by step.
    First fetch all PO against material no from EKBE table.
    After check against one by one PO, if it has entry MSEG table then it is delivered means it is closed.
    After that display in your report.
    Hope it will solve your problem.
    Regards
    Krishnendu

  • Return Purchase Order Functionality

    Hi ,
    I have created a Return PO ( With R as checked) and now trying to do MIGO agst that.
    In MIGO , what options i have to select. I can recall there was an option for "GOOD RECEIPT" and "RETURN PURCHASE ORDER" , but here "RETURN PURCHASE ORDER" is not coming as a reference document.
    Could u pls tell me the reason for that or how can I make a GR for that Purchase Order ?
    Regards
    SHREY

    Hi,
    Select option Goods Receipt > Purchase Order in MIGO and follow the below process.
    1. ME21N - Create a Returns PO (Activate "Returns" indicator for PO line item)
    2. MIGO - Goods Receipt > Purchase Order (Returns PO) (Here system will hit Mvmt type "161" and you can also select Un-restricted/blocked stock from where you want to return the stock)
    3. J1IS u2013 Excise Invoice Other Movements
    Here click on u201Ccreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD
    Doc Number - Material document No of 161 mvmt
    Doc Year
    Series Group
    Excise Group
    Vendor
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    4. J1IV - Post and Print Outgoing Excise Invoice.
    5. MIRO - Credit memo w.r.t. Returns PO.

  • BBPIV09: Find Purchase Order Functionality

    Hello SRM Experts
      I am trying to create an Invoice using Invoice Clerk role in IMS . Transaction BBPIV09. When I try to find POs from this screen system takes me to the find Invoices screen. This screen has two options either create invoices or display invoices.
    When I press creat invoice button to go back to the Invoice Entry page ,and then again select Find Purchase Orders, system takes me to the PO Search screen.
    Has anyone encountered this problem in IMS to help me out on this?
    Thanks in Advance
    Regards

    I got a solution to this problem. This was a bug in the Standard SAP System. SAP corrected the code and that fixed the problem. The note created by SAP to resolve this is 1294017
    Regards
    Virender

  • Transport Management Purchase Order

    Dear All,
    I am facing problem with purchase order which we are using during shipment cost account assignment settlement.
    I created purchase order with below values.
    Vendor=304210
    Purchasing org.=CPC
    Purch. group=CPC
    Company code=INN
    Item Overview
    Account assignment category=K
    Item Category=D
    Short text=Transportation service
    HERE SYSTEM NO ALLOWING ME
    PO quantity=1
    OPU=PU
    Order currency=INR
    Material group=TST
    Plant=1200
    Item Detail
    Limits
    Overall Limit 50000
    Expected Value 5000
    Accounting assignment
    G/L account=734562
    Cost center=1000
    Now system allowing me for first shipping No. cost account assignment settlement.
    But when i do for second shipping no. system don't takes purchase order automatically.
    I want i have one purchase order and system has to allow me for multiple shipping no settlement against that purchase order.
    How can i do this ?
    Regards,

    You can post this in MM forum. YOu will get immediate answer

  • Purchase order function module

    the CHANGEDOCUMENT_READ_POSITIONS is capturing the changes in the line item level but if there is any change in the PO inforecord text level then it is not caputring .................
    Please suggest what action need to be taken so that it caputres the info record text level change also

    Hi,
    function module "CHANGEDOCUMENT_READ" will give list of all change logs related to object key (for which the change logging is activated).
    Regards
    Vinod

Maybe you are looking for