How to add net price in BAPI BAPI_PO_CREATE1

hi all:
when i use bapi BAPI_PO_CREATE1, i cannot add net price in PO. code is as follow.
*POPULATE ITEM DATA.
        clear t_po_items.
        t_po_items-po_item      = v_poitem * 10.
        t_po_items-material     = SEQ_FILEH-matnr.
        t_po_items-SHORT_TEXT   = SEQ_FILEH-MAKTX.
        t_po_items-plant        = p_RESWK.
        t_po_items-quantity     = SEQ_FILEH-MENGE.
        t_po_items-PO_UNIT      = SEQ_FILEH-MEINS.
        t_po_items-TRACKINGNO   = SEQ_FILEH-BEDNR.
        t_po_items-ACCTASSCAT   = SEQ_FILEH-KNTTP.
        t_po_items-ADMOI        = SEQ_FILEH-ADMOI.
        t_po_items-NET_PRICE    = SEQ_FILEH-netpr.
        t_po_items-PRICE_UNIT   = SEQ_FILEH-peinh.
        t_po_items-FREE_ITEM    = ' '.
       t_po_items-IR_IND       = c_x.
        APPEND t_po_items.
*POPULATE ITEM FLAG TABLE
        clear t_po_itemsx.
        t_po_itemsx-po_item     = v_poitem * 10.
        t_po_itemsx-po_itemx    = c_x.
        t_po_itemsx-material    = c_x.
        t_po_itemsx-SHORT_TEXT  = c_x.
        t_po_itemsx-plant       = c_x.
        t_po_itemsx-quantity    = c_x.
        t_po_itemsx-PO_UNIT     = c_x.
        t_po_itemsx-TRACKINGNO  = c_x.
        t_po_itemsX-ACCTASSCAT  = c_x.
        t_po_itemsx-tax_code    = c_x.
        t_po_itemsX-item_cat    = c_x.
        t_po_itemsx-ADMOI       = c_x.
        t_po_itemsX-IR_IND      = c_x.
        t_po_itemsx-NET_PRICE   = c_x.
        t_po_itemsx-PRICE_UNIT  = c_x.
        t_po_itemsX-PO_PRICE    = c_x.
        t_po_itemsx-FREE_ITEM   = c_x.
        APPEND t_po_itemsx.
any advice?

Hi Gang LI,
Try by adding this to
t_po_items-po_price = '2'. ( 1 = Gross,  2 = Net price )

Similar Messages

  • Changing Net Price using bapi 'BAPI_PO_CREATE1'

    Hi All,
    I have a requirement to create the PO using BAPI .In this ,  the Net Price value is automatically updated from Info record.
    Can any one pls suggest the procedure how to update this Net Price through a flat file , and not through the info record.
    Thanks in advance...
    Regards,
    Sivani.

    HI,
    Try to set the IMPORT paramter NO_PRICE_FROM_PO = 'X'.
    also if u want the data from the flat file collect the data from flat file to internal table.
    loop through that internal table
    call BAPI.
    endloop.
    Hope this solves ur problem
    Thanks ,
    Ruchi

  • To add Net price in Purchase order

    Hi,
    I have a sceneria where i need to add net price against line item which was marked as free in purchase order (Net price is 0). Subsequently material was deliverd from vendor and GI also was done. Goods receipt is also completed. This material batch number is consumed for custmer sales orders subsequently. There is 0 quantity available for this material in the plant. Now the user wants to change the net price to 2 for the line item. To change net price in purchase order, we tried to cancel GR material document.But we get an error that 'Deficit of unrestricted use' for the batch number.
    Can any one give us solution for changing the net price in purchase order?
    Regards,

    Hello,
    the only chance to add a PO price is to unflag the free flag in ME22N.  This is only possible when quantity received for the PO is zero. Therfore you must reverse the quantity received by doing a dummy receipt for the batch, reverse the GR for PO, you change the flag, set a price, redo GR for the PO, reverse the dummy receipt.
    Hope this helps, regards
    Michael

  • How to add new xml item(BAPI requset)?

    Hello
    i want to create bom to ERP from mii
    how to add new xml item(BAPI requset)?
    i use bapi CAD_CREATE_BOM_WITH_SUB_ITEMS
    this bapi's format is
    <table>
    <item>
        <col1>1111</col1>
        <col2>bbbb</col2>
    </item>
    </table>
    i want to add <item>
    like this
    <table>
    <item>
        <col1>1111</col1>
        <col2>bbbb</col2>
    </item>
    <item>
        <col1>22222</col1>
        <col2>bbbb</col2>
    </item>
    </table>
    how to set trx?
    i tryed
    SAP_JCo_Interface_0.Request{/CAD_CREATE_BOM_WITH_SUB_ITEMS/TABLES/BOM_ITEM/item[2]/SORTF}
    when error occured
    use MII12.0
    Edited by: Atsushi Iwasaki on May 18, 2010 6:22 AM

    Hi,
    You can try this alternative
    Step 1) Create XML Document with required structure which you want to pass it to BAPI request.
    Step 2) Populate the XML Row with required contents and map it to above created XML document
    Step 3) Map above created XML Document to BAPI request (use assign XML option dfrom link editor rather tha assign value)
    This will help to map dynamic contents to your BAPI request.
    Regards,
    Shalaka

  • How to add extra tab in bapi at item level

    hi developer,
    please guide me in solving this problem i.e how to add extra tab in bapi at item level .
    thanks .
    ravi

    What are you exactly asking for, I don't understand your question...
    Transaction screen, adding a tab / customer fields
    Business Object / BAPI, modifying BAPI signature, extension
    NB : The quality of an answer depends significantly on the quality of the question ...
    Regards,
    Raymond

  • How to populate net price on delivery

    Hi All
          We are running closed order reports on sales overview cube with the selection on Actual goods issue date. But we are not getting Net price and ordered quantity in the report. The reason is Net price is coming from sales order but when we extract using Actual goods issue date data is populating from delivery line only.
      Anyone have idea on this how to extract delivered orders with netprice and also we need ordered quantity.
    Thanks
    Vani

    There might be more than one method to resolve the requirement.
    You can develop a routine in t.code VOFM and add it in the column  AltCTy. The logic in the routine can be if the netvalue exceeds 2500, then the net value should be 2500.
    The second option is you can try with using standard. In VK12, after maintaining the pricing as 100/day, go to details. Then in upper limit add value as 2500. Then create a test sales order for 25 days and more than 25 days, then check the values. I think this can help with your scenario.
    Regards,

  • How to change net Price by using BAPI_PO_change

    Hi experts..
    How i can change net price by using bapi_po_change.
    What parameters i have to pass in this fm.
    if possible please tell me , which table this FM will update.
    Thanks.
    I will award points for all help.

    See the below code and have tested and it works great..
    REPORT  ZTEST_PG_07 NO STANDARD PAGE HEADING
                        MESSAGE-ID z9_msg_prash.
    Tables Declaration  ****
    TABLES: ekpo.
    Variables Declaration  ****
    DATA: v_purchaseorder TYPE bapimepoheader-po_number.
    DATA: v_ebelp TYPE ekpo-ebelp.
    Constants Declaration  ****
    CONSTANTS: x VALUE 'X'.
    Internal Tables Declaration  ****
    DATA: it_return  TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    DATA: it_poitem  TYPE STANDARD TABLE OF bapimepoitem WITH HEADER LINE.
    DATA: it_poitemx TYPE STANDARD TABLE OF bapimepoitemx WITH HEADER LINE.
    DATA: wa_return  TYPE bapiret2.
    Selection Screen  ****
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p_ebeln LIKE ekpo-ebeln OBLIGATORY.
    PARAMETERS: p_ebelp LIKE ekpo-ebelp.
    PARAMETERS: p_menge LIKE ekpo-menge.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON p_ebeln.
      IF p_ebeln IS NOT INITIAL.
        SELECT SINGLE ebeln INTO v_purchaseorder FROM ekpo
        WHERE ebeln = p_ebeln.
        IF sy-subrc <> 0.
          MESSAGE e002.
        ENDIF.
      ELSE.
        MESSAGE e005.
      ENDIF.
    AT SELECTION-SCREEN ON p_ebelp.
      if p_ebeln is not initial.
      IF p_ebelp IS NOT INITIAL.
        SELECT SINGLE ebelp INTO v_ebelp FROM ekpo
        WHERE ebeln = p_ebeln AND ebelp = p_ebelp.
        IF sy-subrc <> 0.
          MESSAGE e003.
        ENDIF.
      ELSE.
        MESSAGE e006.
      ENDIF.
      endif.
    START-OF-SELECTION
    START-OF-SELECTION.
      v_purchaseorder = p_ebeln.
      it_poitem-po_item  = p_ebelp.
      it_poitem-quantity = p_menge.
      it_poitem-net_price = '20.00'.
      APPEND it_poitem.
      it_poitemx-po_item  = p_ebelp.
      it_poitemx-po_itemx = x.
      it_poitemx-quantity = x.
      APPEND it_poitemx.
    *&----Calling BAPI function module
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
         purchaseorder                = v_purchaseorder
        testrun                      = x
       TABLES
         return                       = it_return
         poitem                       = it_poitem
         poitemx                      = it_poitemx.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            WAIT          = space
         IMPORTING
           RETURN        =
    END-OF-SELECTION
    END-OF-SELECTION.
      LOOP AT it_return INTO wa_return.
        WRITE:/ wa_return-message.
      ENDLOOP.
    Thanks
    Seshu

  • How to calculate net price based on customized formula

    Hi  all expert,
    I have a requirement in a rental process:
    The price of a rental is defined as daily rate (e.g. 100/day) and monthly rate (e.g. 2500/month).
    when I create a rental contract, I'd like SAP to calculate net price based on contract duration with both rate and use the lower one.
    e.g. rental 5 days. use daily rate = 500; monthly rate = 2500; So use 500.
    e.g. rental >=26 days. use daily rate >= 2600; monthly rate = 2500; So use monthly rate 2500.
    I was think to use price condition scales to set:
    1 - 25 days: 100/day
    >=26 days: 2500/month
    But the problem is there are 30day a month and 31 days a month. When the contract has to calculate partial month, daily rate has to be calculated as monthly rate/actual days in the month.
    How to handle it?
    Thank you in advance!    

    There might be more than one method to resolve the requirement.
    You can develop a routine in t.code VOFM and add it in the column  AltCTy. The logic in the routine can be if the netvalue exceeds 2500, then the net value should be 2500.
    The second option is you can try with using standard. In VK12, after maintaining the pricing as 100/day, go to details. Then in upper limit add value as 2500. Then create a test sales order for 25 days and more than 25 days, then check the values. I think this can help with your scenario.
    Regards,

  • Quantity conversion error in net price calculation in BAPI_PO_CREATE1

    I'm creating PO from BAPI_PO_CREATE1 .here i'm getting follwing error
    quantity conversion error in net price calculation.
    plz guide me to remove it.

    Are you using quantities directly entered by the user while calling the function to do the net price calculation? If that is the case, you should use FM CONVERSION_EXIT_ALPHA_INPUT to convert the quantity from the external format into the internal one!
    Another possibility is that some customizing is missing for converting quantities in different unit of measures (like the quantity in pieces is known, but the pricing calculation is being done on kilos.. but the convertion between these 2 unit of measures is missing).
    Good luck!

  • ABAP: How to add a Price Condition Item to an order item

    Hi experts,
       Is it possible to add a Price Condition Item to an order item by BAPI or Function in sap crm? (like: 0k04 10 USD 1 EA)

    Hi,
    You need to use CRM_ORDER_MAINTAIN and have to use structure IT_PRIDOC to update or add new pricing data.
    But do remember, you have to call FM 'BAPI_TRANSACTION_COMMIT' once you are done with call to FM CRM_ORDER_MAINTAIN, else all your updation will remain in buffer and will have no effect in Database, which will let u feel as if things are not working they should be.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • How to get net price of a given material(Just like in VA01)

    Hello Experts,
    How do I get the net price of a given material? Just like when entering a
    material in VA01(sales order creation). Hope you can help me guys.
    Thank you and take care!

    This is a million dollar question.
    It depends on how the pricing have been configured in your system and only your SD consultant can answer it correctly. Price in VA01 could be determined by using the pricing conditions or, if allowed, a manual user entry (i.e. when users just type in the price). Discounts, taxes, etc. are calculated in a similar way, also based on the configuration.
    Pricing conditions are displayed in transaction VK13. You might want to take a look at an order in VA03 -> double-click on a line and go to Conditions tab. There are buttons Analysis and Condition Rec. that might be useful for your research. It is possible to configure different price for the same material and different customer, distribution channel, etc., so you will have to ask your SD consultant how to get the correct number in each case.
    Just FYI the net price on the order/contract is in VBAP-NETWR and condition are stored in the tables Annn, e.g. A901, etc. The tables are generated according to the configuration and are different in each system.

  • How to make net price field in Purchase Order Uneditable

    Hello all,
    I am facing a problem. During creation of purchase orders the material price is picked up from the Info Record, but the net price field is editable. Please guide me how through standard SAP can i make this net price field uneditable.
    Thanks in Advance,
    Ritesh.

    Hi Ritesh,
    You can goto:
    SPRO-MM-Purchasing-Purchase Order-Define Screen Layout at Document Level
    from here you select ME21N-Selection group-Quantity and Price.
    Make the price and price unit as DISPLAY.
    By this it will show only display for price, but you have to take not that there is also condition tab which user can change the price, this price is from INFOREC.
    Goto to M/06 select your Condition type, In Manual entries maintain "D"-Not possible to process manually
    Regards,
    Maia

  • How change plant, net price, OPu, and Material Number from ME32K

    Hi GURUs,
    May let me know how I should configure ME32K in order to allow users to change:
    - Material Number
    - Net Price
    - Order Purchasing Unit
    - Plant
    I have tried setting up field selections layout properly, even debug PBO, it is still greyed out for those fields.
    Please help.
    Thanks,
    Tony Yuwono

    there is no way to change the price in item overview in the contract.
    The reason is explained in OSS note 685117.
    ........The problem is that Scales and/or validity periods may exist for the conditions, because contracts have time dependant conditions, just like info records do.
    This is in contrast to e.g. Purchase orders which have Time independant conditions and so, NO scales nor validity periods.
    A Purchase order has A price! The price maybe determined based on a source; a contract or an info record. Depending on the order quantity and the date, the PO price is determined.
    The contract does not have A date, it might have several; indicated by the validity periods. Furthermore the price is dependant on eventual scales. Therefore it does not have A price either..........

  • How to copy net price of the Contract to Valuation price.

    Dear All,
    I have a requirement to change the valuation price when raising purchase requisitions (ME51n). when selecting source of supply (Contracts), i want to copy the Net price of the selected contract to the Valuation price of the Purchase Requisition. i tried to find a Badi or User Exit to do this, but i couldn't find any.
    Can you please help me on this.
    Thanks,
    Chaminda.
    Hi all,
    I found a way to do this.
    ME_PROCESS_REQ_CUST
    Edited by: chaminda CK on May 7, 2010 7:21 AM

    found the answer
    ME_PROCESS_REQ_CUST
    PROCESS_ITEM method can be used.
    Edited by: chaminda CK on May 7, 2010 7:23 AM

  • How to add new price break lines to existing PO quotations?

    Hi,
    I am using a custom interface (to insert quotations data into PO headers/lines interface tables) and PO documents open interface to create PO Quotations in Oracle.
    I need to modify this interface to:
    1. Update existing price break lines for a quotation line.
    2. Add new price break lines to existing quotation line(which may/may not have exsiting price break lines).
    Please let me know:
    1. What modifications need to be done to the existing code.
    2. What values needs to be passed to the action columns in PO_HEADERS_INTERFACE and PO_LINES_INTERFACE for above scenarios?
    Any ideas/help will be appreciated.
    Thanks
    Imran

    Hi Imran,
    I have done a similar exercise for BPA price breakup.. Let me know if you need that as reference. I can share that :).. Please provide your personal mail id..
    Regards,
    S.P DASH

Maybe you are looking for

  • Help with 2 iTunes accounts on 1 computer

    A few questions here Gfs laptop has broke so to replace going to get an iPad so she wants to put her iTunes account on my computer. I am assuming the simplest way to do this (windows 7) is to create her own user name, sign herself in, download iTunes

  • Verify Database

    Dear All, when i am executing Verify backup through DB13 i am getting errors same i am copying here Job logs 16.08.2009     05:00:57     Job started 16.08.2009     05:00:57     Step 001 started (program RSDBAJOB, variant &0000000000241, user ID SARAV

  • Po Released

    Hi All, Release Producure is not Re actvate at time of modification of PO if total amended value is less than Original value. Please suggest if any customization is available for this. Thanks in advance........... Sanjay

  • Photocast messes up the picture order of the album and won't sync w/ iPod

    I spent a lot of time organizing a couple of hundred pics in chronologic order and everything looks fine when viewed in iPhoto on my computer. Then I photocasted the pics to family and myself so I could view it on a different computer. Well, all the

  • How do I dsable attack site warnings. I never got these before.

    Where do I find the Security Tab to uncheck "Block reported attack sites". I never got this message before and I have always visited Virginia Tech's website for sports (Hokiesports.com) and I know it is not an attack site. Is this a new feature? I wa