I want to change the amount in condition sheet using bapi_po_change

hi experts:
i want to use the bapi_po_change to change the amount in condition sheet in me23n.
the parameter i set is below:
DATA:
lt_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE, "返回内容
lt_poheader like bapimepoheader,
lt_poheaderx like bapimepoheaderx,
ls_pocondheader like BAPIMEPOCONDHEADER occurs 0 with header line,
ls_pocondheaderx like BAPIMEPOCONDHEADERX occurs 0 with header line,
ls_pocond like BAPIMEPOCOND occurs 0 with header line,
ls_pocondx like BAPIMEPOCONDX occurs 0 with header line,
lt_POITEM LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,"
lt_POITEMx LIKE BAPIMEPOITEMx OCCURS 0 WITH HEADER LINE,
l_flag(1),
g_text(50) TYPE c.
CLEAR: l_flag.
lt_POITEM-po_item = '00020'.
lt_poitem-NET_PRICE = '15.10'.
APPEND lt_POITEM.
CLEAR lt_POITEM.
lt_POITEMx-po_item = '00020'.
lt_POITEMx-po_itemx = 'X'.
lt_POITEMx-NET_PRICE = 'X'.
APPEND lt_POITEMx.
CLEAR lt_POITEMx.
ls_pocond-condition_no = '0000006887'.
ls_pocond-itm_number = '000001'.
append ls_pocond.
ls_pocondx-condition_no = '0000006887'.
ls_pocondx-itm_number = '000001'.
append ls_pocondx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = '4500000002'
TABLES
return = lt_return
POITEM = lt_POITEM
POITEMx = lt_POITEMx
POCOND = ls_pocond
POCONDX = ls_pocondx.
but it doesn't work ,it goes to change the net price, how should i set the parameter? hunger for ur advice!!

Hi,
are you using BAPI_TRANSACTION_COMMIT or a COMMIT WORK after the bapi call?
Have a look at the code of fm ME_CCP_TPO_PRICE_CHANGE maybe that can help.
Best regards
Edited by: pablo casamayor on Jun 6, 2008 10:15 AM

Similar Messages

  • Unable to manually change the amount for condition type PB00

    Hi Gurus,
    My client is using ECC5.0.
    Here when I try to change the amount for condition type PB00 using transaction ME22N, I am not able to change the value. I donu2019t get any error, but as soon as I change the value and press Enter the system replaces my entered value with the original value.
    Confusing part is that I am able to change the amount of condition price PB00 manually using transaction ME22. I donu2019t have any such problems there.
    Also I am able to manually change the amount of condition type PBXX using ME22N.
    Only in the case of PB00, if I use ME22N to manually update the amount I am not able to change it.
    Kindly help me, to find a reason as to why this could be happening, and correcting if possible?
    Thanks in advance,
    Imran

    Hello Imram,
    The purpose of maintaining 2 condition types  ie PB00 and PBXX in  a pricing procedure is that PB00 is automatic gross price determination and PBXX is manually giving gross price.
    If you go to T.Code : M/06 and check the condition types, you can see that PB00 will be having an access sequence but not PBXX.
    So if you have to manually give the gross price, you have to use PBXX.
    Regards

  • I want to change the email address that I use for my apple ID.....how do I do that!!!!

    I want to change the email address that I use for my apple ID.....how do I do that!!!!

    Hello Embark2013 - Thanks for the help!  If possible, could you or somebody in Apple-land explain to Apple that their system is IDIOTIC?!  Changing an email address should be the simplest thing imaginable.  Nobody should EVER have to consult a discussion group to learn how to do such a thing.

  • To change vendor no for condition types using BAPI_PO_CHANGE

    Hii,
    how to change vendor no for certain condition types using BAPI_PO_CHANGE.
    Is it possible .
    Any parameter is there.
    Plz help urgent
    Title edited by: Alvaro Tejada Galindo on Jun 12, 2008 5:23 PM

    Hi,
       It is possible.
    wa_pocond-vendor_no = wa_konv-lifnr.
    wa_pocondx-vendor_no = 'X'.
       wa_pocond-condition_no = wa_konv-knumv.
        wa_pocond-itm_number = wa_konv-kposn.
        wa_pocond-cond_type = wa_konv-kschl.
        wa_pocondx-condition_no = wa_konv-knumv.
        wa_pocondx-itm_number = wa_konv-kposn.
        wa_pocondx-cond_type = 'X'.
        wa_pocondx-change_id = 'U'.
        APPEND wa_pocondx TO it_pocondx.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder                = wa_konv-ebeln
          POHEADER                     =
          POHEADERX                    =
          POADDRVENDOR                 =
          TESTRUN                      =
          MEMORY_UNCOMPLETE            =
          MEMORY_COMPLETE              =
          POEXPIMPHEADER               =
          POEXPIMPHEADERX              =
          VERSIONS                     =
          NO_MESSAGING                 =
          NO_MESSAGE_REQ               =
          NO_AUTHORITY                 =
          NO_PRICE_FROM_PO             =
        IMPORTING
          EXPHEADER                    =
          EXPPOEXPIMPHEADER            =
         TABLES
           return                       = it_return
           poitem                       = it_poitem
           poitemx                      = it_poitemx
          POADDRDELIVERY               =
          POSCHEDULE                   =
          POSCHEDULEX                  =
          POACCOUNT                    =
          POACCOUNTPROFITSEGMENT       =
          POACCOUNTX                   =
          POCONDHEADER                 =
          POCONDHEADERX                =
           pocond                       = it_pocond
           pocondx                      = it_pocondx
          POLIMITS                     =
          POCONTRACTLIMITS             =
          POSERVICES                   =
          POSRVACCESSVALUES            =
          POSERVICESTEXT               =
          EXTENSIONIN                  =
          EXTENSIONOUT                 =
          POEXPIMPITEM                 =
          POEXPIMPITEMX                =
          POTEXTHEADER                 =
          POTEXTITEM                   =
          ALLVERSIONS                  =
          POPARTNER                    =
          POCOMPONENTS                 =
          POCOMPONENTSX                =
          POSHIPPING                   =
          POSHIPPINGX                  =
          POSHIPPINGEXP                =
          POHISTORY                    =
          POHISTORY_TOTALS             =
          POCONFIRMATION               =
        COMMIT WORK AND WAIT.

  • I want to change the cantry because I used us voucher and now the remanding only 0.05 and now I want use my Saudi credit card but give massage I have to finish the balance and nothing I can by by this amount I need to remove the balance to change the city

    I want to change the cantry because I used us voucher and now the remanding only 0.05 and now I want use my Saudi credit card but give massage I have to finish the balance and nothing I can by by this amount I need to remove the balance to change the city

    Click here and ask the iTunes Store staff to zero your account balance.
    (105215)

  • How to change the amount of Vendor Line Item in FB60

    Hi all,
    I want to post the invoice in SAP with FB60. The journal is as follow:
    Dr. Expense    1000 USD
    Dr. VAT-Input    100 USD
          Cr. Account Payable     1100 USD
    But the problem, the amount of Account payable is 1000 USD. Because I want to fill the amount in vendor line item (FB60) with the original expense (1000 USD).
    I want to ask, there is any configuration in SAP to change the amount in vendor line item which it could be the same with amount of the original expense.
    If you ever have same problems, plase share with me
    Thanks,
    John

    Hi,
    Thanks for your reply. The result of posting invoice that I want is as follow:
    Dr. Expense    1000 USD
    Dr. Vat - Input    100 USD
    Cr. Account Payable   1100 USD
    When posting invoices in FB60, there is a filed "amount vendor line item" at the top. Usually the field is filled with amount vendor 1100 USD, but I want to fill it with the expense amount (1000 USD). Which can be show the account payable 1100 USD.
    Is there any configuration to change the field "amount vendor line item" ?
    Thanks,

  • How to change the Amount in LC(DMBTR) in F-02

    Usually, when we create accounting document though F-02. the Amount in LC(bseg-DMBTR) is create base on the amount(bseg-WRBTR) and the local currency .
    Now I want to change this field's value, I want to know in which program create I can change the Amount in LC(bseg-dmbtr) , or can we change it in Substitution (ZRGGBS000) ?

    Hi,
    as per SAP standard it is no possible once document has posted
    If you want to change amount LC or DC
    Please cancel/reverse document in FB08 if it is open item
    if it is Cleared item means use T code - FBRA
    and post new document correct LC amount
    Thanking you
    Regards
    mahesh

  • Hi, I want to change the package

    Hi, I want to change the package
    It has been on automatic payment and information as follows: -
    Skype Name: hooda2010.jeeran
    Product name: Package
    Total amount: EUR9.99
    Transaction date: Apr 11, 2012
    Order number: 602981338
    Order status: Delivered
    But I want to subscribe to another package
    Are as follows: -
    400 Minutes
    of calls per month to Palestinian Territory $ 62.99/month $ 72.44 incl. VAT
    Equivalent to 15.7 ¢ / minute 18.1 ¢ incl. VAT
    Please, I want to close the previous payment order
    And participate in the monthly package
    400 Minutes
    of calls per month to Palestinian Territory $ 62.99/month $ 72.44 incl. VAT
    Equivalent to 15.7 ¢ / minute 18.1 ¢ incl. VAT
    Data package to be closed are: -
    Skype Name: hooda2010.jeeran
    Product name: Package
    Total amount: EUR9.99
    Transaction date: Apr 11, 2012
    Order number: 602981338
    Order status: Delivered
    Thanks
    Note: The balance has not added to my account so far
    Solved!
    Go to Solution.

    If you want to change your subscription then please contact customer service via chat to request a refund for your previous order.
    You'll find the support form to contact us following the steps in the following FAQ:
    https://support.skype.com/en/faq/FA297/How-do-I-request-a-refund
    Once the old subscription is cancelled, please simply purchase the correct one.

  • Change the description of condition type

    Hi,
    How can i change the description of condition type??
    Regards,
    Kalpesh

    H iMichael Gerard Leo 
    Thanks.
    But it takes only 20 characters in descrption of condition type, while i want to write 30 character. What should be done?
    Kalpesh

  • MM 335 "You want to change the profit center...'

    Hi guys,
    in a material master I have the field profit center blank and I want enter a value but the message MM 335 '"You want to change the profit center but material stock still exists"...I have implemented OSS notes for release 6.03 but the message continues to go out..the stock for the Plant in which I want enter Profit center does not exist, is it correct that this message goes out?In your opinion which is the correct way to update material master?I have tried to transfer all stock present in all Plants on which that material is opned with mov type 309 but the message go out again..It is a strange thing , I don' think taht the unique way is to chenge the nature of message from E to W..
    thanks in advance for your attention
    Bye

    Stock may be there still under Plant Stock and  Storage Location stock, in previous period.
    TO make it Zero do the following things
    If previous period stocks exist, you can make a withdrawal posting as follows:
    1. Post the same amount to current period stock (for example, using movement type 561) so that previous period stock and current period stock are identical.
    2. Make a withdrawal posting in the previous period for the stock together with posting date (for example, using movement type 562).
    Hope the steps will help to resolve the problem.

  • Photoshop is using the cc Hangul version  What happens if I want to change the English version?

    Photoshop is using the cc Hangul version
    What happens if I want to change the English version?

    What happens if we decide to stay in the program after 12 months? Will we keep getting charged monthly or will we eventually not be asked to pay for it if we've, let's say, cumulatively "paid up" for the softwares?
    You never stop paying for subscription software. You will keep getting charged monthly. It's not a hire purchase agreement where you own the software after paying a set amount for an agreed time period. Neither is it a lease where you pay a residual amount to own the software at the end.
    You will keep paying the monthly fee for as long as you want to use the software. If you want to use the software forever then you keep paying forever.
    On the plus side, you get all updates and upgrades for free as part of your membership.
    When you stop paying the monthly fee, you lose the use of the software.

  • My problem, cannot update application, how i want to change the store.

    my problem, cannot update application, how i want to change the store.

    Hello there muhamadamirul,
    To change the region your Apple ID is using use these instructions.
    Change your iTunes Store country
    Sign in to the account for the iTunes Store region you'd like to use. Tap Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    Follow the onscreen process to change your region, agree to the terms and conditions for the region if necessary, and then change your billing information.
    From: iOS: Changing the signed-in iTunes Store Apple ID account
              http://support.apple.com/kb/ht1311
    Regards,
    Sterling

  • I want to change the privacy settings on my e-mail, I provided the password once and now it opens without one

    I want to change the security settings on my e-mail. I provided a password once and now it opens without one. I want to keep my messages private.
    == This happened ==
    Every time Firefox opened
    == When I updated.

    Websites remembering you and automatically log you in is stored in a cookie
    Tools > Options > Privacy > Cookies: "Show Cookies"
    See also [[Cookies]]

  • I want to change the order that my 9 email accounts are listed on the left sidebar (folderpane?).

    Mac Snow Leopard
    TB 24.5.0
    Suggestions have pointed me towards finding prefs.js file, but I can't find it (library/mozilla, libary/application support/mozilla not there nor in search function)
    Tried with showing hidden files too.
    Really a pain as I need the more active accounts on top opened but not enough room with less active accounts stuck in the middle.
    No RSS feeds, local folders on bottom OK.
    Just want to change the order but can't seem to find the solution.
    Free smile to whoever helps me out! Thanks

    Use this add-on.
    https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/

  • I want to change the security answers but have noticed the email address is a hotmail one.  I cannot remember the password and frankly it keeps telling me that the account doesn't exists.  So how can I change that to my personnal email?

    I want to change the security answers on my account but have noticed that the email address I listed is a hotmail one which I cannot get into.  How do I change this as I only see an edit button for logging into iTunes but not one where I can change in the security answers.  Thankyou

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (94157)

Maybe you are looking for