BAPI_PO_CHANGE not updating existing condition type value.

Hi,
I am using 'BAPI_PO_CHANGE' to update the existing condition records.
          MOVE-CORRESPONDING wa_pocond_40 TO gt_pocond_40.
          gt_pocond_40-change_id = 'U'.
          gt_pocond_40-cond_value = '20'.
          gt_pocondx_40-itm_number = <fs_pocond_41_new>-itm_number.
          gt_pocondx_40-cond_st_no  = <fs_pocond_41_new>-cond_st_no.
          gt_pocondx_40-itm_numberx = 'X'.
          gt_pocondx_40-cond_st_nox = 'X'.
          gt_pocondx_40-cond_type = 'X'.
          gt_pocondx_40-cond_value = 'X'.
          gt_pocondx_40-currency = 'X'.
          gt_pocondx_40-change_id = 'X'.
          MODIFY gt_pocond_40 INDEX sy-tabix.
          APPEND gt_pocondx_40.
I am using 'BAPI_TRANSACTION_COMMIT' also.
Still, the condition value is not changing.
what and where do u think is the problem?
Kindly assist.
Thanks.

check the following link
http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

Similar Messages

  • Can't not update existing record filter value in java sdk.

    Hi,
    If there is existing record filter, such as " {table.a_field} = {?paramA}"
    Then can't update it to other value. e.g " {table.a_field} = value_A"
    The flow is
    1. Update paramA value
    2. Update record filter value
    Java code
    public void setRecordFilter(ReportClientDocument clientDoc, String filter)
         try
           IFilter iFilter = clientDoc.getDataDefController().getDataDefinition().getRecordFilter();
           iFilter.setFreeEditingText(filter);
           clientDoc.getDataDefController().getRecordFilterController().modify(iFilter);
         catch (ReportSDKException e)
             throw new Error("Couldn't set RecordFilter " + e.getMessage());
    if exsiting filter is empty then "setRecordFilter" works.
    Do you know why? and any idea to update reocord filter if the existing one like "{table.a_field} = {?paramA}"
    Thanks
    Forest

    Hi,
    In uploading of flat file , If you are able to capture the changes to the previously loaded records, Then you can follow the additve delta. So it decreases the time of uploading .Only changed or new records will be uploaded every time.
    If you are not able capture the changes in flat file ,Every time you have to do full upload ,Before this delete the contents of Infocube. (Assuming there is no ODS B/W Infocube and Flat file).
    With rgds,
    Anil Kumar Sharma. P

  • Condition type value not update in sales order

    Hello Guru's
    As per the  sales order in VA01 the condition type value i.e surcharge value is not updating in sales order.
    But I have maintain the condition record(Surcharge)also and in Condition technique I have checked every thing is correct .
    please find below I have attached the Screen short .
    Please give me solution Asap.

    Hi Sukdev,
    Have you checked the respective pricing procedure for From and To reference step maintained against the condition type ZSUR?
    Regards,
    T.R.S.Praveen

  • MM Pricing Condition Type values in Condition Tab updation while CHANGE PO.

    Hi,
    The process of PO creation and PO change is through inbound IDOC posting.
    I created a PO with configured MM pricing procedure.
    While creating PO, the PO is created as required with different Condition Type value break-ups [PBXX, Discount, Surcharge etc] in the PO as required via Inbound IDOC processing.
    While CHANGING the same PO, the Condition Type break-ups [i.e. pricing related values] in the PO are NOT changing in the PO via Inbound IDOC processing.
    What needs to be done to update the Condition Type break-ups in the PO while changing PO through IDOC processing process?
    This problem is not occured while manual / on-line changing of PO valueS and saving the PO & exists through IDOC processing method ONLY.
    Thanks in Adv,
    RK

    Hi
    Try this function module
    FM RV_CHECK_CONDITION_VALUE
    Regards
    Hareesh Menon

  • How to stop non statistical condition type value from updating total amount

    Gurus,
    Can any body explain me how to do following setting,
    How to Stop non statistical condition type value from updating Total Amount
    Regards,
    Sai

    Dear Sai,
    You need to make that condition type as Statistical one
    Go to SPRO - Sales and Distr. - Basic Functions - Pricing - Define and Assign Pricing Proc - Maintain Pricing Proc - Control Date
    Select the proc. - select the condition type and activate the  check box Statistical
    This will show the amount of the condition but will not consider for the net value calculation
    Hope this will help you
    regards,
    Sagar

  • BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition

    Dear All,
    BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition in PO pricing. Please give me a right solution on this query.
    Below I have given my code.
    Thanks and Regards
    Makarabd
    poitem-po_item = '00010'.
    poitem-net_price = '1060.00'.
    poitem-period_ind_expiration_date = 'D'.
    APPEND poitem.
    poitemx-po_item = '00010'.
    poitemx-po_itemx = 'X'.
    poitemx-net_price = 'X'.
    APPEND poitemx.
    select single * from ekko where ebeln = po_no.
    pocond-itm_number = '00010'.
    pocond-cond_type = 'ZVCU'.
    pocond-cond_value = 10.
    pocond-currency = '%'.
    pocond-STAT_CON = 'X'.
    pocond-accruals = 'X'.
    pocond-change_id = 'I'.   " I - Add , U - Update , D - Delete
    APPEND pocond.
    pocondx-itm_number = '00010'.
    pocondx-itm_numberx = 'X'.
    pocondx-cond_type = 'X'.
    pocondx-cond_value = 'X'.
    pocondx-currency = 'X'.
    pocondx-change_id = 'X'.
    pocondx-STAT_CON = 'X'.
    pocondx-accruals = 'X'.
    APPEND pocondx.
       CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder          = po_no
            TABLES
              return                 = return
              poitem                 = poitem
              poitemx                = poitemx
              pocond                 = pocond
              pocondx                = pocondx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.

    Hi ,
    Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
    Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
    Thanks,
    Anjaneya .

  • Automatic determination of Condition type value

    Hi Friends,
    I have one requirement here as described below.
    In pricing procdure, I have defined 3 condition types for 3 types of taxes i.e. GST, HST and PST as per client requirement. The value of each condition type is fixed i.e. GST=5% of Gross, HST=7% of Gross, and PST=11% gross. These condition types are not applicable always in the PO. My requirement is when user selects any condition type, then system should calculate the condition type amount and value automatically.
    Ex. Suppose the purchase price of a material is 100 USD. In the PO, if user selects GST condition type, then 5% should be determined automaticall in the condition type amount and condition type should be calculated accordingly i.e. 5 USD. One important thing is  to note that these condition types will be selected by user as per their requirement and the corresponding % of the condition type should be determined automatically.
    Please advice.
    Thanks & regards
    Satya

    Hi Satya,
    You can achieve this using access sequence.
    1. Create one Access Seq or use Existing seq in your system
    transaction code OLME
    Purchasing --> condition --> Define Price determination proces --> Define Access Seq
    2. Transaction M/06 (Condition Type)
    Select your condition code (say ZGST) and click onthe detail view.
    Assign the Access Seq to this Condtion
    In the Manual Entries Field Assign 'C' for manual entry priority.
    save the entries.
    3. MEK1 - Create Condition Records
    Depending upon your access sequence priorties, define the condtion 'ZGST' with its rate applicable.
    similarly maintain the other condition code.
    After that create Purchase order. In condtion tab, whenever you enter either of these condition system will take the rate from condition records.
    Hope it solve ur issue.
    Regards,
    S Anand

  • MM Condition Types values flow COPA

    Dear Gurus,
           My client requirement is MM Condition Types Values Should flow to COPA like SD to COPA. I had seen a screen that KE4IM is there we can map our COPA Value Field and MM Condition Types. But I am not sure that values flow to COPA, Because No document will be generated in FI or other while doing PO.
    Pl suggest me how can I fullfill this requirement.
    Regards,
    Balaji Bhonsle.

    Hi,
    If you read config doco for KE4IM you will find a statement:
    "It is also possible to transfer conditions from MM to update billing data in pooled payment in the IS Retail system. These are transferred according to the same rules as SD conditions."
    So KE4IM is only used in IS Retail. Are you IS Retail?
    If not you probably want to bring conditions from purchase orders to CO-PA.
    I agree with Ajay except for point 1.
    You can actualy trigger CO-PA posting during goods receipt (and invoice receipt) for PO.
    In order to achive it you need to activate "Purchase Accounting" in MM.
    SPRO -> Marterials Management -> Valuation and Account Assignment -> Account Determination -> Account Determination without Wizard -> Purchase Account Management
    Please read doco for Purchasing Account. In a nutshell when you activate it system will post addtional line item for GR and IR:
    Purchasing account and Purchasing Offseting account for value of purchased nmaterial and also for delivery costs.
    In table T030: Purchase account(EIN), purchase offsetting account (EKG), freight purchase account (FRE).
    Define EIN and FRE as cost elements and map to profitability segment in OKB9. Leave EKG as P&L account (no cost element).
    Then map cost elements to value fields in COPA.
    Done.
    Cheers,
    Szymon

  • Updation of condition type in conditions tab while creation of sales order

    Hi folks
    I have added one field called  price key in Sales B screen of VA01 in item level.
    When user will input price key here and then put enter. Then the Price should be updated in Conditions tab i.e the condition type will be updated in conditions tab.
    I need to maintain this price key in VK11. So As per the Price key i need to update condition types in conditions tab.
      here i am using a user exit  SAPMV45A. i can get condition type for the specified price key from A905 table.Then how to update this condition type in conditions tab through user exit.
    Plz suggest.
    Thanks
    pmr

    Dear friend,
        if the sales order is saved and you want to change the pricing click on update which will be on the lower level of your condition tab in va02.
    and if you are trying to create a new sales order  and if the value is greyed our - check whether in pricing procedure - control data - you would have maintained statistics against that condtion tab.
    check this out and get back
    regard,
    Sudhir

  • Contract value not updated in open order value of credit management

    My requirement is i have created the contract and activated the credit management by assigning credit  group to contract document type, In item category the credit is active and in pricing subtotal is also assigned .
    But when i create the contract , the open order value is not updated .
    i do not want the credit to be active at order level.
    Dear guru's
    please let me know where i am going wrong
    thanks in advance

    hi,
    open sales orders value not updating currectly in sales value of CM
    http://wiki.sdn.sap.com/wiki/display/ERPLO/CreditmangementIn+SD-FI
    i think you have to run a report which is under the link number 1.
    regards,
    balajia

  • Pricing : Condition type value need tog get from the lowest of 4 other cond

    Hi,
    I have one requirement in one pricing procedure.
    I need to calculate condition value of one condition type from the lowest value of other 4 condition tyeps. These condition types values are not defined as a subtotal.
    So if I decide to write a formula on condition values, is there
    any way to select these values and choose the lowest of them?
    Please also advice if there is any other way such as condition exclusion
    or so?
    Thanks and regards,
    Anand

    Anand,
    As you have mentioned you can use condition exclusion for such a requirement.
    here is a detailed description of how you can achieve this: use the menu path IMG> Sales & Distribution> Basic Functions> Pricing> Condition Exclusion> Condition exclusion for group of conditions.
    When you execute this IMG acitivity you get a window with three options
    1.Define Condition Exclusion Groups
    2.Assign condition types to the exclusion groups
    3.Maintain condition exclusion for pricing procedures
    We will use these three options one by one, we start with the first
    1. Define an exclusion group, lets say EX01 and give a description
    2 Assign the four condition types that you want to compare to this exclusion group under this option
       lets say EX01 ZK01
                   EX01 ZK02
                   EX01 ZK03
                   EX01 Zk04
    3. under this third step, select the pricing procedure that you are working on and from the left margin click on 'Exclusion'. click on 'New Entries' and make the following entries (example)
             Sno.   Cpr         ExGr1
              10      A            EX01                leave ExGr2 blank, Save your entries
    Check if your purpose has been met or not. Do give your feedback
    Regards,
    PATHIK

  • FM for changing the condition type values in Purchase order

    Hi All,
    Is there any FM which will update the condition types in Purchase Order other than BAPI_PO_CHANGE.
    Please suggest.
    Thanks in Advance
    Regards
    Hari

    Hi
    Try this function module
    FM RV_CHECK_CONDITION_VALUE
    Regards
    Hareesh Menon

  • JMOD condition type value should be always rounded up instead of commercial

    Hi Helpers,
    I need one clarification from you all based on your expertise,
    1. JMOD condition type value should be always rounded up instead of commercial.
    2. i have been already made rounding up in the condition type JMOD in the transaction V/06. but unfortunatly not working.
    3. after that we found that there is configuration change in spro (company code setting in the indai taxation-CIN) in the Logistic general> tax on goods movement>india> basic setting> company code setting for the commercialrounding, but the same is  already ennabled with SD rounding IND.
    Need your expertise on this.How shall we make it round up always for JMOD condition value. below is an example for your further analysis.
    Example: if values UTXJ is : 8,913.40 and JMOD will be calculated based on UTXJ as 10% thats is 891.34.
    Actually this should be 892 as per the requiremen.t

    I just recently rolled off a project in Europe that had an issue similar to this.  We were having rounding issues as a result of %  discounts. 
    However, we did come up with a solution that is provided by SAP. 
    Please review OSS note 80183 on SAP rounding and the solutions provided within the note.
    I hope this helps.
    Kind Regards,
    Jason

  • How to change the manual condition type value in change sales order BAPI

    Hi All,
    My scenario here is, i want to either add/change the manual condition type value during change of SO.
    When i'm trying to pass the  order_conditions_in and  order_conditions_inx tables in  'BAPI_SALESORDER_CHANGE'.
    Condition type is coming at item level but the value is setting to zero. Pls. help if anyone has any idea how to handle this.

    Siva,
       I guess you posted in Wrong Thread. You need to post in WAS section.
       check for any BAPI's available in CRM.
    Nagesh Ganisetti.

  • Requirements not fullfilled for Condition type - Pricing Procedure

    When I am doing the pricing procedure, the error thrown is "Requirements not fullfilled for Condition type". Can any one suggest how to fix this problem ?

    Hi Sunil,
         Please first of all check the condition type in Pricing Procedure. In condition type column check the requirement. Here conditon is,  once requirement is fulfilled which you have mentioned in the condition type then only it will be executed. Take a help of  ABAP'er regarding this requirement if it is customized requirement.
    We should know the purpose of requirement in condition type.
    Venkat.

Maybe you are looking for