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 .

Similar Messages

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

  • 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

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

  • 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'.

  • 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

  • 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

  • Net price in R/3 PO differ from the actual local PO net price Urgent

    Hi,
    I  am working on extended classic scenario
    I created a local PO, in which the net price of the material is 100 Euro later on I changed the payment terms and when I checked the backend PO which is the copy of the local PO, I found that the net price has been changed from 100 Euro to 212 Euro and when I checked the PO in SRM I could see the same value i.e. 100 Euro.I checked the change document in backend system and found that the net price has been changed by the SRM_RFC user.
    This has happened for quite a few number of local PO
    I am not able to understand how the backend PO net price can differ from the local PO net price.
    Please provide me useful input
    Regards,
    Yatendra

    Hi Yatendra,
    I think this is due to R/3.
    Can you check the source of supply in R/3 PO ?
    especially if a PIR or contract has been assigned ?
    Look at price conditions in R/3 PO item, to see the execution plan of pricing.
    I think that during ECS PO creation in R/3, the SRM price is correctly passed, but during the change the price is overwritten by R/3.
    What are your SRM & R/3 releases ?
    Check OSS arround BAPI_PO_CREATE, BAPI_PO_CREATE1 and BAPI_PO_CHANGE.
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • Net price must be greater than 0 error while creating PO using BAPI

    Hi guys!
    I'm using BAPI_PO_CREATE1 to create several PO's from a Z table record. I finally achieved that my BAPI to work as wished, with conditions, etc.
    The problem im having is that  i get the error of net price must be > 0.
    I do not have any condition type defined . Is it necessary to define one?
    Plz any help will be very appreciated.
    Thx.

    It will be configuration problem,create one PO manually and see the results
    and create same data for Po using  Function module and see the results
    most of the time net price should be more than 0,keep net price should be more than zero
    see the simple program ,what i created :
    *& Report  ZBAPI
    REPORT  ZBAPI.
    DATA: BEGIN OF i_data OCCURS 0,
            text(255),
          END OF i_data.
    DATA: i_ekko TYPE bapiekkoc.
    DATA: it_ekko LIKE TABLE OF i_ekko INITIAL SIZE 0  WITH HEADER LINE.
    DATA: BEGIN OF i_ekpo OCCURS 0,
            po_item(5),
            pur_mat(18),
            plant(4),
            net_price(23),
            disp_quan(13),
         END OF i_ekpo.
    DATA: it_ekpo LIKE TABLE OF bapiekpoc INITIAL SIZE 0 WITH HEADER LINE .
    DATA: BEGIN OF i_eket OCCURS 0,
             po_item(5),
             deliv_date(8),
             quantity(13),
          END OF i_eket.
    DATA: it_eket LIKE TABLE OF bapieket INITIAL SIZE 0 WITH HEADER LINE.
    DATA: v_index TYPE i.
    DATA: return TYPE TABLE OF bapireturn INITIAL SIZE 0 WITH HEADER LINE.
    DATA: po_num(10).
    START-OF-SELECTION.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
      FILENAME                      = ' '
      FILETYPE                      = ' '
      ITEM                          = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      LINE_EXIT                     = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      SILENT                        = 'S'
    IMPORTING
      FILESIZE                      =
      CANCEL                        =
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      TABLES
        data_tab                      = i_data
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      OTHERS                        = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at i_data.
    if i_data-text(1) = 'H'.
       shift i_data-text.
       v_index = v_index + 1.
       split i_data-text at ',' into i_ekko-doc_type
                                    i_ekko-purch_org
                                    i_ekko-pur_group
                                    i_ekko-vendor.
      append i_ekko to it_ekko.
    elseif i_data-text(1) = 'I'.
    shift i_data-text.
    split i_data-text at ',' into i_ekpo-po_item
                                   i_ekpo-pur_mat
                                   i_ekpo-plant
                                   i_ekpo-net_price
                                   i_ekpo-disp_quan.
    append i_ekpo.
    move-corresponding i_ekpo to it_ekpo.
    append it_ekpo.
    clear it_ekpo.
    else.
    shift i_data-text.
    split i_data-text at ',' into i_eket-po_item
                                   i_eket-deliv_date
                                   i_eket-quantity.
    append it_eket .
    move-corresponding i_eket to it_eket.
    append it_eket.
    clear it_eket.
    endif.
    endloop.
    CALL FUNCTION 'BAPI_PO_CREATE'
      EXPORTING
        po_header                        = i_ekko
      PO_HEADER_ADD_DATA               =
      HEADER_ADD_DATA_RELEVANT         =
      PO_ADDRESS                       =
      SKIP_ITEMS_WITH_ERROR            = 'X'
      ITEM_ADD_DATA_RELEVANT           =
      HEADER_TECH_FIELDS               =
    IMPORTING
      PURCHASEORDER                    =
      tables
        po_items                         = it_ekpo
      PO_ITEM_ADD_DATA                 =
        po_item_schedules                = it_eket
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_TEXT                     =
       RETURN                           = return
      PO_LIMITS                        =
      PO_CONTRACT_LIMITS               =
      PO_SERVICES                      =
      PO_SRV_ACCASS_VALUES             =
      PO_SERVICES_TEXT                 =
      PO_BUSINESS_PARTNER              =
      EXTENSIONIN                      =
      POADDRDELIVERY                   =
    write: po_num.
    use BAPi_TRANSACTION_COMITT FM always
      loop at return.
      write:/ return-message,return-type.
      endloop.
    Thanks
    Seshu
    Message was edited by:
            Seshu Maramreddy
    Message was edited by:
            Seshu Maramreddy

  • Net price update in creation of the purchase order

    Guys,
    I have a query, please find the details below.
    I have created a ABAP for posting the purchase orders using the BAPI function 'BAPI_PO_CREATE1', I am passing the net price value in the input file. But the system is taking the net price from the purchase info record of that material. My own net price is not considered.
    Please find my observations below.
    1. First of all system is checking whether there is a PIR maintained for the material or not. If PIR is maintained, then system is defaultly considering the net price maintained in the PIR.
    2. Later I have deleted the net price maintained in PIR. In this case, system is considering the net price of that material from the previous purchase order.
    But my query is that I don't want the system to consider the net price from previous material, I want to update my own net price to line item of the PO.
    Could anyone please suggest me how should I proceed further so solve this query?
    Thanks in advance.
    Regards,
    Vijaymadhur.

    Hi,
    Yes, this can be achieved. Don't maintain any price in inforecord. Then in SPRO > Materials Management > Purchasing > Environment Data > Define default value for buyers > Here click on settings on default values > In Inforecord update > Maintain no update fro PO and quotation.
    Now the last PO price will not be saved in Inforecord and hence this will not b carried to PO.
    Regards,
    Prabu

  • Net Price is geeting change after BAPI

    Hi,
    I am paasing  netprice value as 1.00 in the line item  while creating creating  PO by using BAPI BAPI_PO_CREATE1. But the value is getting changed after po created. Please suggest me what to do? immediate response will be appreciated.
    Regards,
    Priyaranjan

    Hi,
      Thanks for your reply. Yes there is some user-exit is there but in that user-exit netprice is not calculated. when i debug the stnadrd bapi at one moment the value is getting changed.As it is a standard program one we can't chnage this value. Please help me in this regards. Is there any other parameter i have to pass?
    Please see the below code and suggest me
    refresh all the tables before use
    refresh bapimepoheader.
    refresh bapimepoheaderx.
    refresh bapimepoitem.
    refresh bapimepoitemx.
    refresh bapimepocond.
    refresh bapimepocondx.
    refresh BAPIMEPOSCHEDULE.
    refresh BAPIMEPOSCHEDULX.
    refresh bapiret2.
    clear WA_ORDER-EBELN.
    setup the data interface
      sort i_po by ebelp ascending.
      read table i_po index 1.
    PO header info
      clear bapimepoheader.
      bapimepoheader-vendor    = i_po-lifnr.   " vendor no.
      bapimepoheader-purch_org = i_po-ekorg.   " purch org
      bapimepoheader-pur_group = i_po-ekgrp.   " purch gp
      bapimepoheader-comp_code = i_po-bukrs.   " company
      bapimepoheader-doc_type  = i_po-bsart.   " order type
    bapimepoheader-created_by = sy-uname.
    bapimepoheader-creat_date = sy-datum.
    bapimepoheader-doc_date   = sy-datum.
      bapimepoheader-currency     = i_po-waers. " currency
      bapimepoheader-currency_iso = i_po-waers. " currency
    spec.changed by Chee Kok on 06/27/2003: use Z00 instead of Z000
      bapimepoheader-pmnttrms     = 'Z00'.      " payment term
    spec.changed by Chee Kok on 06/27/2003: use exchange rate from ref PO
      bapimepoheader-exch_rate    = i_po-wkurs. " fx rate
      bapimepoheader-ex_rate_fx   = 'X'.        " fixed fx rate (kufix)
      bapimepoheader-zzsubmi = wa_order-zzsubmi. " Collective No DEVK949611
      append bapimepoheader.
      clear bapimepoheaderx.
      bapimepoheaderx-vendor    = 'X'.  " vendor
      bapimepoheaderx-purch_org = 'X'.  " purch org
      bapimepoheaderx-pur_group = 'X'.  " purch gp
      bapimepoheaderx-comp_code = 'X'.  " company
      bapimepoheaderx-doc_type = 'X'.   " doc tye
    bapimepoheaderx-created_by = 'X'.
    bapimepoheaderx-creat_date = 'X'.
    bapimepoheaderx-doc_date = 'X'.
      bapimepoheaderx-currency = 'X'.     " currency
      bapimepoheaderx-currency_iso = 'X'. " currency
      bapimepoheaderx-pmnttrms = 'X'.     " payment term
      bapimepoheaderx-exch_rate = 'X'.    " fx rage
      bapimepoheaderx-ex_rate_fx = 'X'.   " fixed fx rate
      bapimepoheaderx-zzsubmi = 'X'.   "Collective No DEVK949611
      append bapimepoheaderx.
    PO item info & condition table
      loop at i_po.
        clear bapimepoitem.
        bapimepoitem-po_item   = i_po-ebelp.  " order item no.
        bapimepoitem-tax_code  = WA_ORDER-mwskz.  " tax code
        bapimepoitem-material  = i_po-ematn.  " material
        bapimepoitem-ematerial = i_po-ematn.  " material
        bapimepoitem-quantity  = i_po-menge_for_save.  " qty
        bapimepoitem-PO_UNIT   = i_po-meins.  " order unit
        bapimepoitem-plant     = i_po-werks.  " plant
        bapimepoitem-item_cat  = i_po-pstyp.  " item cat.
      bapimepoitem-info_upd  = 'X'.         " info. record
        bapimepoitem-stge_loc  = i_po-lgort.  " storage loc
        bapimepoitem-ret_item  = 'X'.         " return item (retpo)
        bapimepoitem-net_price = i_po-netpr.  " net price
       bapimepoitemx-po_price =  '2'.  " DEVK954608
    for plant 2010, set stock type to "Quality inspection"
    (New requirement from Chee Kok 2003/07/24)
        if I_PO-WERKS = '2010'.
        bapimepoitem-QUAL_INSP = 'X'.       " stock type
    use "Blocked stock" instead (Chee Kok 2003/07/25)
          bapimepoitem-QUAL_INSP = 'S'.      " stock type
        endif.
        append bapimepoitem.
        clear bapimepoitemx.
        bapimepoitemx-po_item   = i_po-ebelp. " order item no.
        bapimepoitemx-po_itemx  = 'X'." important: OSS note 484692
        bapimepoitemx-tax_code  = 'X'.        " tax code
        bapimepoitemx-material  = 'X'.        " material
        bapimepoitemx-ematerial = 'X'.        " material
        bapimepoitemx-quantity  = 'X'.        " qty
        bapimepoitemx-PO_UNIT   = 'X'.        " order unit
        bapimepoitemx-plant     = 'X'.        " plant
        bapimepoitemx-item_cat  = 'X'.        " item cat.
      bapimepoitemx-info_upd   = 'X'.       " info. record
        bapimepoitemx-stge_loc  = 'X'.        " storage loc
        bapimepoitemx-ret_item  = 'X'.        " return item (retpo)
        bapimepoitemx-net_price = 'X'.        " net price
       bapimepoitem-po_price   = 'X'.  " net price DEVK954608
    for plant 2010, set stock type to "Quality inspection"
    (New requirement from Chee Kok 2003/07/24)
        if I_PO-WERKS = '2010'.
          bapimepoitemx-QUAL_INSP = 'X'.      " stock type
        endif.
        append bapimepoitemx.
        clear BAPIMEPOSCHEDULE.
        BAPIMEPOSCHEDULE-PO_ITEM        = i_po-ebelp.  " order item
        BAPIMEPOSCHEDULE-SCHED_LINE     = '1'.         " sch line no.
        BAPIMEPOSCHEDULE-DEL_DATCAT_EXT = 'D'.         " deli cat.
        BAPIMEPOSCHEDULE-DELIVERY_DATE  = l_datum.     " current date
        BAPIMEPOSCHEDULE-QUANTITY       = i_po-menge_for_save.  " qty
        append BAPIMEPOSCHEDULE.
        clear BAPIMEPOSCHEDULX.
        BAPIMEPOSCHEDULX-PO_ITEM        = i_po-ebelp.  " order item
        BAPIMEPOSCHEDULX-SCHED_LINE     = '1'.         " sch line no.
        BAPIMEPOSCHEDULX-PO_ITEMX       = 'X'. " important: OSS note 484692
        BAPIMEPOSCHEDULX-SCHED_LINEX    = 'X'. " important: OSS note 484692
        BAPIMEPOSCHEDULX-DEL_DATCAT_EXT = 'X'.         " deli cat.
        BAPIMEPOSCHEDULX-DELIVERY_DATE  = 'X'.         " date
        BAPIMEPOSCHEDULX-QUANTITY       = 'X'.         " qty
        append BAPIMEPOSCHEDULX.
        clear bapimepocond.
        bapimepocond-itm_number   = i_po-ebelp.  " order item no.
        bapimepocond-cond_type    = 'PB00'.      " cond type
      bapimepocond-cond_value   = i_po-netpr.  " net price
        bapimepocond-cond_value   = i_po-kbetr.  " net price
        bapimepocond-currency     = i_po-waers.  " currency
        bapimepocond-currency_iso = i_po-waers.  " currency
    bapimepocond-COND_UNIT       = i_po-kmein. " price uom
    bapimepocond-COND_UNIT       = i_po-meins. " order unit
        bapimepocond-COND_UNIT       = i_po-BPRME. " price UOM (PO or IR)
      bapimepocond-COND_UNIT_ISO   =
      bapimepocond-COND_P_UNT      = i_po-kpein. " price unit e.g. 1
        bapimepocond-COND_P_UNT      = i_po-PEINH_FOR_SAVE.
                                     " price unit from info rec or PO
        bapimepocond-change_id    = 'I'.           " insert mode!
        append bapimepocond.
        clear bapimepocondx.
        bapimepocondx-itm_number   = i_po-ebelp.  " order item no.
        bapimepocondx-cond_type    = 'X'.         " cond type
        bapimepocondx-cond_value   = 'X'.         " net price
        bapimepocondx-currency     = 'X'.         " currency
        bapimepocondx-currency_iso = 'X'.         " currency
        bapimepocondx-COND_UNIT       = 'X'.      " price unit
      bapimepocondx-COND_UNIT_ISO   = 'X'.
       bapimepocondx-COND_P_UNT      = 'X'.
        bapimepocondx-change_id       = 'X'.      " insert mode
        append bapimepocondx.
      endloop.
    CLEAR: L_SUBMI.
    L_SUBMI = WA_ORDER-ZZSUBMI.
      EXPORT l_submi TO MEMORY ID 'SUBMI'.
    call the bapi function finally
      call function 'BAPI_PO_CREATE1'
        exporting
         NO_PRICE_FROM_PO        = 'X'    "*DEVK954608
          poheader                = bapimepoheader
          poheaderx               = bapimepoheaderx
      POADDRVENDOR            =
      TESTRUN                 =
       importing
          exppurchaseorder        = WA_ORDER-EBELN  " saved return po no.
       tables
          return                  = bapiret2
          poitem                  = bapimepoitem
          poitemx                 = bapimepoitemx
      POADDRDELIVERY          =
        POSCHEDULE              = BAPIMEPOSCHEDULE
        POSCHEDULEX             = BAPIMEPOSCHEDULX
      POACCOUNT               =
      POACCOUNTX              =
          pocond                  = bapimepocond
          pocondx                 = bapimepocondx
      POLIMITS                =
      POCONTRACTLIMITS        =
      POSERVICES              =
      POSRVACCESSVALUES       =
      POSERVICESTEXT          =
    Begin of SR20040----DEVK954608
    commit work.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'
    IMPORTING
      RETURN        =

  • Net Price error in BAPI

    Hi ,
           I am new to BAPI.   I am getting error in the return table of BAPI BAPI_PO_CREATE1 that "net price should be greater than 0 " .Until i call the BAPI the value is greater than zero , but when i call the BAPI the net_price(TYPE BAPICUREXT)  is becoming automatically zero. I am not able to know why the the value net_price is changing at the item level.
             So no purchase Order is created . Why the net_price is changing and how can i overcome this.

    Hi Meghana,
      could you plz post the code before calling the BAPI, so that i can able to tell you why it is making the price as zero.
    Regards,
    Ramesh.

  • Change of Net Price in Sales Order

    Hello Experts!
    I wanted to know how the "Net Price" of a sales order can be "changed" by the system or "indirectly" by the user.  I have an issue with the net price that changed in the sales order, and wanted to know how this could have happened; <b>besides</b> changing the pricing conditions, price adjustments, and order surcharge.  Is there someway the system could have changed it or user "indirectly"?  Please advise.  Thank you in advance!
    WC

    Net price is not changed directly.
    It's chanegd via changes to pricing only unless you have some code which updates this field AFTER SAP calculated it based on pricing conditions.
    NOTE: if you reject line items it's vlaue is substracted form order net value, the same is true if any of your pricing conditions is made inactive due to various reasons.
    Changes to pricing condiitons are not shown in order change history, you can see changes per condition record, but if any of your conditions in sales order was made inactive - you won't see it in change log. One of the options may be - if you generate any outputs (IDOCs) which send pricing info - you can check those IDOCs to determine when & what was changed in the pricing of your order.

  • Using gross price instead of net price at Quotation

    Hi,
    I'm working at a company that just bought SAP ERP ECC 6.0. Our consultants told us that SAP only works with Net price in MM. It sounds a little bit weird for us, because here in Brazil we usually use Gross price in all our transactions.
    Here in Brazil we have some taxes that are included in gross price and it's a hard work ask the final user to calculate the taxes out of SAP and input net Price in the system.
    I read a little bit some documentation provided by SAP at Internet called SAP Library and I found an article titled:Entering a Quotation Against an RFQ
    In this article says the following: " You enter the net price per unit in the Net price field. This price includes the vendor's normal discounts and surcharges only. Cash discounts (for prompt payment) and taxes (e.g. value-added tax) are calculated separately.
    You enter the gross price in the Net price field, and maintain the conditions for the item. Then the system automatically replaces the entered gross price with the calculated net price (see Maintaining Conditions)."
    As we can see, there are two ways to input the price. Gross price and Net price. I'd like to know if is there the possibility to configure the "mentioned conditions" for a group material and at the moment I type the gross price in Quotation the system automatically calculate the net price?
    Our consultant told us that this procedure should be done for each item in quotation, in my opinion I guess that SAP can link the applicable taxes for the material based on its group material. If something like that is possible, our daily work will be simplified so much because the system will know the taxes that should be discounted for the material and calculate automatically the net price.
    If this possibility exists, could you please tell me in technique terms (transactions) that should be set?
    Another question is about Taxable Income, is there any place in SAP where I can configure the Taxable Income for a material or group material for the taxes set at "mentioned conditions"?
    Thanks in advance,
    Sorry about my English.
    Best Regards,
    Amorim, Rodrigo.

    What you need is a new pricing procedure design to fit your requirements. The standard pricing procedure allows you to enter the net price. Then the gross price is calculated after taking into account the discounts, taxes etc. These discounts and taxes can be designed to determined automatically through material group also. So to achieve your requirement the pricing procedure has to be changed accordingly to calculate the net price from gross price entered. While this can be done, but all other impacts on pricing reports and accounting document posting with correce valuation price etc. have to be tested in detail.

Maybe you are looking for

  • How to sync pdf files in iBook on Mac to iBook on iPad/phone?

    I used to easily move pdf files I created on my Mac to my iPad by using iTunes to sync them as books.  But now books are separate from iTunes (as they should be), and iBooks doesn't sync my pdfs to my iPad.  I've done it using Dropbox as an intermedi

  • Communication chaneel error

    Hi Experts, My scenario is FileRFCFile Syncrinous. All the files being picked up from output tray by the Sender file CC. and because of one error file suddenly Sender File CC is not picking remaining all the files in the tray. even after deleting the

  • Word Processing/spreadsheet software?

    Hi... I have a very basic question: I am considering purchasing a BlackBerry Curve 8310 (AT&T).  I was originally considering the 8820 but it lacks a camera.  I'd actually prefer the 8320 for the WiFi capability but don't like to go with T-Mobile. Si

  • Fullscreen doesn't work

    Hi, I prepared a footer for a website and have the following issue: There are two buttons on footer bar that interests us. One is fullscreen - clicked activates fscommand function. But fscommand works only when I debug my fla. Otherwise, nothing happ

  • My iMessage isn't working it keeps pushing me out what do I do ?

    Everytime I click on iMessage it stays on a blank screen for about a minute then puts me back to the home screen .... Help !!