Problem net price BAPI_PO_CREATE1

hello, I did a report that creates purchase orders (BAPI_PO_CREATE1) relates to a contract, I have a problem in the positions of the order shall be taken of the positions of contract prices, while I in the structure (poitem) I pass other prices.
  CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
      poheader         = w_headercreate
      poheaderx        = w_headercreatex
    IMPORTING
      exppurchaseorder = d_oda
      expheader        = w_expheader
    TABLES
      return           = i_po_return
      poitem           = i_po_item
      poitemx          = i_po_itemx
      poaccount        = i_po_account
      poaccountx       = i_po_accountx.
help
Edited by: francesco aiello on Dec 17, 2009 12:17 PM
Edited by: francesco aiello on Dec 17, 2009 12:22 PM

risolto

Similar Messages

  • Net Price showing zero while using BAPI_PO_CREATE1 for me21n

    Dear All,
    I am using BAPI_PO_CREATE1 for ME21N. The problem is, after execution of the program the error msg it shows-
    No instance of object type PurchaseOrder has been created. External reference:
    Purchase order still contains faulty items
    Net price must be greater than 0
    The values are coming from excel file.
    Please tell me where I am doing wrong.
    With regards,
    Rosaline.

    Hi,
    Symptom
    You create a purchase order with BAPI_PO_CREATE1 or you add an item to an existing purchase order with BAPI_PO_CHANGE. You assign a value in field POITEM-NET_PRICE. However, this value is not transferred. If it was not possible for you to determine any conditions, the system generated the error message 06218 'Net price must be greater than 0'.
    Other terms
    BAPI_PO_CREATE1, BAPI_PO_CHANGE, price, net price, gross price, conditions, price determination, condition type, 06218, EKPO-NETPR, NETPR, POITEM-NET_PRICE, NET_PRICE, PO_PRICE, BAPI_PO_PRICE, BUS2012, PurchaseOrder.CreateFromData1, CreateFromData1, PurchaeOrder.Change
    Reason and Prerequisites
    This function has not been available up to now. You could also assign conditions via the condition tables.
    Read also Notes 399791, 428621, 529287, 578253 and 539950 for this.
    Solution
    The present note adds field PO_PRICE to table POITEM. PO_PRICE can have the values ' ', '1' or '2' with the following meaning:
        PO_PRICE = ' ': The price determination is carried out as before.
        PO_PRICE = '1': The value assigned in field NET_PRICE is transferred as a gross price, that is it is set in the condition type that is defined as a base price in the calculation schema. All other condition types remain unchanged. No conditions are copied from the last document.
        PO_PRICE = '2': The value assigned in field NET_PRICE is transferred as a net price, that is it is set in the condition type that is defined as base price in the calculation scheme. All other condition types are deleted.
    Note the following
    The following restrictions apply to field PO_PRICE:
        If you assign conditions via the BAPI interface, these are always transferred. This is carried out independently of the value that you assign in field PO_PRICE.
        If you add a new item to a purchase order with BAPI_PO_CHANGE, it does not suffice to fill field POITEM-NET_PRICE on item level. The corresponding currency must be specified explicitly on header level.
        You can only use field PO_PRICE during the creation of a purchase order item. If you want to change the price of an already existing item, you can only do this via the conditions.
        If you fill field POITEM-PO_PRICE, you must enter an 'X' in POITEMX-PO_PRICE so that the value is transferred.
    Correction
    The correction is made available via R/3 support package. If you want to implement the note manually, proceed as follows:
        1. Make sure that your system contains Notes 494759, 552189 and 578253.
        2. Create data type BAPI_PO_PRICE with the following attributes:
                        Short text:
                           Price transfer indicator: 1  = gross, 2 = net
                        Package: ME
                        Domain: BPUEB
        3. Extend structure BAPIMEPOITEM (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPI_PO_PRICE
        4. Extend structure BAPIMEPOITEMX (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPIUPDATE
        5. Extend structure MEPOITEM_DATA (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPI_PO_PRICE
        6. Extend structure MEPOITEM_DATAX (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPIUPDATE
        7. Implement the correction instructions in your system.
    regards,
    Ravi
    Edited by: Parupelly on Dec 14, 2011 1:30 PM

  • BAPI_PO_CREATE1 use in a loop - net price issue

    Hi,
    I'm using BAPI_PO_CREATE1 within a loop to create a PO with multiple items - grouped by vendor, plant and delivery date. After each BAPI call I use BAPI_TRANSACTION_COMMIT with WAIT = 'X', further I track the results from BAPIRETURN into some kind of log. All my structures and internal tables used in the bapi interface are cleared/freed after each call in order not to have inconsistent data. I'm passing only 1 condition 'PBXX' with net price. I'm passing 2 records in the condition table - 1st with CHANGE_ID = 'D', and second one with CHANGE_ID = 'I'. Further, I set (no_price_from_po  = 'X') and (memory_uncomplete = 'X')
    At the tests I used the same material vendor and plant in all items and only delivery date is different in order to create few orders one after another. Even price is changed for each item.
    First of my PO within a loop is created as expected - with correct price value, even if the combination material/plant is passed twise and the resulted PO have 2 items.
    The issue I have is comming out at the next PO-s (2nd, 3th..) - the system returns error message:
    E-218 Net price must be greater than 0
    I stuck right here. Tried quite a lot of different screnarios without success. Further tried even different vendor/material/plant for the second PO. Checked also the forum posts before to consider to write this one - haven't found anything relevant which might be of any help.
    Any ideas what is wrong?
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Hi,
    in fact my price values were not so small - 2.15, 1.55, 2.45, etc... but nothing less than 1.00. Nevertheless, you pointed me to the right direction - to search OSS for the answer. OSS Note 571860:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=571860
    helps me to find out what I missed in my scenario: I didn't set ITEM-NET_PRICE at all, just via condition table. Now, when I added the following:
    item-net_price = some_price. itemx-net_price = 'X'.
    item-po_price = '2'. itemx-po_price = 'X'.   " <-- in fact, PO is created even without this line
    all of my POs are created with correct prices from the input.
    Problem solved.
    Thanks!
    Ivaylo

  • 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!

  • V_NL Net price report problem

    Hi Experts,
    I have a problem in V_NL Net price report it is not showing net price correctly in report vs sales or billing net value.
    I could tell what is our scenerio in pricing report and what i have done on SAP.
    We need net value pricing report for each material for particular customer excluded frieght and tax.   As per user requirement we customized the report and included fiield sales office on that. 
    When we ran the report it shows entirely different price we don't know where those net values picked from. When i checked previous posts and i implemented OSS note 415141 for further adjustments.  Still i couldn't get the correct report if anybody would have worked on same issue....
    What should i need to do on configuration side to get this report correctly.
    Kindly reply back and let me know the solution.
    regards
    rc gopi

    This is teh documentation I got for the program SDNETPR0
    Short text
    Create net price list
    Description
    This program is used for creating the 'Net price list'.
    Requirements (example)
    The following must exist:
    Order type TA is defined
    Billing type FX is defined
    Item category DLN is defined
    Copying control for the combination FX - TA - DLN is defined
    The default data for fields 'Billing type', 'Order type' and 'Item category' allow individual copying control. In this context, you must bear in mind that the system will run through the  copying requirements and data tranfer routines created for this purpose and stored in copying control.
    These entries and objects are released with the standard.
    The system also requires that the pricing procedure uses subtotal 2 (KZWI2) for temporary storage of the net price.
    Output
    The output contains the following per customer:
    Material incl. description
    Price content (sales quantity unit)
    Price incl. currency (VBRP-KZWI2)
    The document types and I.Cs mentioned here are for examples. The area output says what details are presented to the user finally based on the details inputted.
    Most of the fields are mandatory here.
    Hope this helps. You can reward if this helps you

  • 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

  • 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 )

  • BAPI_PO_CREATE1 Net Price

    Hi Experts,
    Using BAPI_PO_CREATE1, I try to create a PO with net price $10. This line item is referencing to a Contract item with price $12.
    After executing the FM, PO was created with net price $12, which is taking from the referencing Contract instead. How can I prevent this from happening? Is there any enhancement I can make to the standard FM?
    Thanks.
    Best Regards,
    Wei Shan

    Hi Dude,
    Enhancement's in BAPI_PO_CREATE1.
    1. MGV_GENERATED_SAPL2012
    2. /NFM/MM_SAPL2012.
    3. MGV_GENERATED_SAPL2012.
    steps to find out the enhancement :
    Goto se37 -> Pass the BAPI name -> Display -> goto function module at meun bar -> enhance Source code -> you will be finding the above 3 enhancements...
    To implement place the cursor at right enhancement and right click and click implement enhancement -> create , to add the custom code .

  • How to make BAPI_PO_CREATE1 not to get net price in inforecord, etc...

    Hello Experts,
    If we dont pass any values in the net price, this BAPI gets the default price in the inforecord.
    Now, we do now want this. Instead, what we want is to not create the PO entirely. Is there a way
    to prevent BAPI_PO_CREATE1 to NOT get net price from inforecord?

    Hello
    Try to set the IMPORT paramter NO_PRICE_FROM_PO = 'X'.

  • Net Price vs Total Price (Rounding Problem)

    Hi experts,
    SRM 7.0 PPS Extended Classic scenario.
    Users want to create a SC with a known total price (lets suppose 150k). As I have to split this value into net price and tax amount (supposing a tax rate equal to 16%):
       - If I enter 129.310,34 as net value then total value is 149.999,99
       - If I enter 129.310.35 as net value then total value is 150.000,01
    So there is no way to achieve a total value equal to 150.000,00 (no more no less)
    How can we handle this situation? Is it possible to directly enter gross prices instead of net prices at item level?
    I am afraid that similar problem will be present when dealing with all other SRM documents...
    Thanks in advance for your suggestions
    Best regards
    Vicente

    Thanks Rahul,
    This explains why I cannot select 2 decimal places for EUR. In fact, EUR is already pre-set to have 2 decimal places.
    But the original problem of rounding is still open
    Customer is used to manage prices as a whole (total price). They do not need tax details. Taxes are implicitily included in their total price, but they don't need to split into net price*quantity + tax rate.
    Basically they have a budget of nnnnn.dd EUR for some requisition. So they need to see exactly nnnnn.dd EUR in the total price.
    As they have to split into net price and tax rate to fill in the shopping cart items, they will almost never get exactly the desired total (due to rounding). This is not acceptable by business cause they work with the total price and they need the total price to be exactly what they want...
    I guess that bidders will have the same problem when entering prices in bid responses (actually, surrogate bidding is being always used, so for sure customer will have the same problem).
    I am sure that there should be some kind of solution. For instance, I am thinking of using 0.0 as tax rate and hide tax rate field, but I don't like this at all (they don't need tax details, but it doesn't mean that there is no taxes...)
    All suggestions are welcome
    Thanks again
    Regards
    Vicente

  • NET Price problem

    Hi all,
    I found a NET price (NETP) problem in Invoice,
    I've condition table for the NET price, if I manual update the NET price in Order, (no problem for Auto pricing for price table)
    when I split the Order when create the Delivery Notes, for e.g.
    Order item 10 Qty 6000, unit price 0.75 USD
    DN1 Qty 1000,
    DN2 Qty 5000,
    DN1 -> invoice 1, unit price 0.125
    DN2 -> invoice 2, unit price 0.625
    When billing, the unit price should be 0.75 for each invoice... but it change proportional according to the qty...
    How can I fix it not changed automatically ?
    Thanks.
    Terry

    Dear Terry,
    Please make sure that there is no routines assigned to the pricing condition type in your pricing procedure (Other than 2 in the requirement colomun).
    Check through V/08 transaction.
    Go to V/06 transaction select your pricing condition type then go in to the detail settings here you keep these settings.
    Cond. class   B Prices
    Calculat.type C Quantity
    Rounding rule   Commercial
    Check Item condition
    Check Amount/Percent
    Check Condition Index
    Scale basis   C Quantity scale
    Check value   A Descending
    I hope it will help you,
    Regards,
    Murali.

  • BAPI_PO_CREATE1 - zero Net price

    Hi folks,
    We have a setup to create POs that uses BAPI_PO_CREATE1. The POs are created directly from a Sales Order and it is working fine i.e. POs are created - apart from the fact that the Net price comes through as zero rather than what is in the Info record. However, on a debug check at the entry point for the BAPI, the price is as required in POITEM with the X in POITEMX OK as well. So all should be OK as per the rest of the data passed over as far as I can see.
    I cannot work out if any other field is missing or is wrong despite checking various other queries along similar lines and following details in them. Can anyone please advise on this?
    FYI, we are V4.7 R110 at SP Appl level 28, basis and ABA level 62.
    Many thanks in advance
    Jim Jackson

    Hi Prabhu
    But as mentioned in my original query, those are already in place at the start of the BAPI function call. Hence the query..
    I've also run it with and without NO_PRICE_FROM_PO = 'X' with no difference in the created POs i.e. zero net price each time.
    The rest of the PO is created as expected from the data passed to the BAPI and it is only the net price that is wrong.
    Regards
    Jim

  • Split Valuation- Net Price Problem in Po

    Dear All,
           The Split Valuation confiigured for Material as
           Val Type(A)- Ex Procurement
           Val Type(B)- Internal House Production.
    assigned Valuation Category(C) with A & B and with Plant.
    In Material Master Accounting view enter all the reqired inputs
    First i Created PR and its ok and go for PO, it asking " net Price" and entered the Net Price, again it showing error msg " net price greater than 0.
      Note: for this material PIR, Source List require or not.
           so what i done a mistake? and can any one explain it.
    Thanks

    net price always remains exclusive freight/delivery cost.
    the freight/delivery cost gets added on the net price
    so going by logic the calculation which ur system is showing is perfect.
    "Re PO: As per you, only net value will be displayed in PO and effective price will not display . why?"
    this is becoz it shows the price of that particular material per unit.
    regards,
    indranil

  • PO Net price problem

    Sir in ME21n my system is not taking net price ,if i mention any net price it dissipears & system gives message that net price is greater than " 0 ". Also condation type of net price is dissipeared from ME21n.
    What is this.
    I am on line............

    Hi,
    Don't enter Price in "Net Price" field directly.
    Enter Price manually against condition type (PBXX) under "Conditions" Tab, it will automatically carry this value to "Net Price" field.
    Because Net Price = Gross Price - Discount. So you can not directly enter value in "Net Price" field. Enter Gross Price against condition type (PB00 or PBXX)

  • Problem with updating net price value through PORDCH Idoc

    Hi All,
    I have a ABAP program which calls the function module BAPI_PO_CHANGE to update the line item details using an idoc.
    During this change it is updating Limit values in PO bot not the net price.
    And the Idoc status is having message as BAPI Change has been done successfully instead of "PO number changed".
    Any suggestions to solve this issue.
    Thanks,
    Spandana

    Please post the details of the application release, database version and OS.
    Please see these MOS docs.
    Getting "ORA-20001: The primary key specified is invalid" Error Using HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA API [ID 737145.1]
    APP-PAY-07220: The primary key specified is invalid - ERROR Received Creating GRE/Legal Entity In New Business Group [ID 849754.1]
    Error Occurs While Hiring Applicants APP-PAY-07220: The Primary Key Specified Is Invalid [ID 1084464.1]
    Terminated Employee Scorecards Error's: Ora-20001: The Primary Key Specified Is Invalid [ID 859315.1]
    Hr_assignment_api.Update_emp_asg_criteria Gives Ora-20001, Ora-06512 [ID 334491.1]
    PERWSTEM Termination 'APP-PAY-07220 The Primary key specified is invalid' and Database 11.1.0.7.0 [ID 1263357.1]
    Error 'APP-PAY-07220: Primary Key Specified Is Invalid' When Attempting to Process Open Life Event [ID 567224.1]
    Republishing Performance Management Plan (PMP) Fails with Error: ORA-20001: The primary key specified is invalid [ID 956234.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Importing fixed width text from a .txt file

    I am really struggling to do in Numbers '09 something which I can do easily in Excel. I have a txt file containing plain text in fixed-width columns which I would like to import into numbers. I just cannot find a way to do it. I have tried using the

  • *NO AUTHORIZATIONS FOR CREATING ACCOUNTS IN COMPANY CODE*

    HI NO AUTHORIZATIONS FOR CREATING ACCOUNTS IN COMPANY CODE SYSTEM MESSAGE: No authorization for creating accounts in company code 3333 Message no. F2305 System Response You cannot access the requested data. Procedure for System Administration If nece

  • Unexpected error from Microsoft HTML compiler.

    when trying to complie my .mpj file into Microsoft HTML help, I get the following error message Unexpected error from Microsoft HTML compiler. any ideas about what to do to get my compiler to work properly?

  • Can't record more than 5 tracks, why?

    i Have 5 tracks and I'm trying to record on a sixth one but when I hit record it ends up recording over a previous track. Why?

  • OLAP integration problem

    The first time I deploy the demo by select Metadata Export,Bridge,I get no error.But when I follow the instruction "How to demo Oracle9i Warehouse Builder, version 9.2" to deploy another project as follows: From the Project menu, select Metadata Expo