Update Price Condition Function Module

I'm trying to identify the function or bapi that is used to update the pricing conditions for a line item in a purchase order. This is done manually by clicking the UPDATE button on the screen when in the PO item conditions view.
Specifically this FM will be used in visual composer to update pricing prior to goods receipt.
any help in identifing the code would be great.
Thanks

Hi simon,
Please check the following
RV_CONDITION_SAVE
RV_CONDITION_COPY
SD_SALES_CONDITION_MAINTAIN
Do you want to add one more pricing condition type to the existing sales order??
Use BAPI_SALESORDER_CHANGE.
Hope this help

Similar Messages

  • Update price condition in scheduling agreement (ME32L)

    Hi,
    I have to update scheduling agrrement (ME32L).
    The input data that i would like to update are price amount, validity start date and valdity end date.
    Is there any function or bapi which can be used to update.
    Any help in this would be highly appreciated.
    Thanks,
    Mandeep

    hi
    did you update the conditions and validity period of scheduling agreement?  If yes then plz send me the details of parameters
      ITEM_COND_VALIDITY           =
      ITEM_COND_VALIDITYX         =
      ITEM_CONDITION                  =
      ITEM_CONDITIONX                =
    I am also facing the same issue.
    waiting for your reply.

  • How to identify update mode in function module for generic extractor

    Hi All,
    I have created generic extractor using function module which supports delta load.
    Delta logic is handeled in coding...by using ROOSGENDLM table.
    Now problem is we need to identify the update mode, requested from infopackage in our function module in order to apply logic for Repair full.
    I would like to know table or parameter in source system, which contain the update mode (Init , Delta , Full).
    Thanks,
    Niraj

    Hi Niraj
    You can use the FM import parameter "i_updmode" (This is of type "SBIWA_S_INTERFACE-UPDMODE") to determine if infopackage triggerred in full or delta mode.
    I_REQUNR     TYPE     SBIWA_S_INTERFACE-REQUNR                                                                               
    I_ISOURCE     TYPE     SBIWA_S_INTERFACE-ISOURCE                               InfoSource Name
    I_MAXSIZE     TYPE     SBIWA_S_INTERFACE-MAXSIZE                               Data Packet size
    I_INITFLAG     TYPE     SBIWA_S_INTERFACE-INITFLAG                               Initial Flag
    I_UPDMODE     TYPE     SBIWA_S_INTERFACE-UPDMODE                               Update Mode
    I_DATAPAKID     TYPE     SBIWA_S_INTERFACE-DATAPAKID                               Datapacket Id
    I_PRIVATE_MODE                                                                               
    I_CALLMODE     TYPE     ROARCHD200-CALLMODE                               Single-Character Flag
    I_REMOTE_CALL     TYPE     SBIWA_FLAG                                                                               
    Cheers
    Vasu Sattenapalli

  • Material group updation by using function modules

    Hello All,
    I would like to add , update and delete material group From  database tables T023 and T023T  according to the given Excel input file.Could you please suggest me any function modules are there apart form MATL_GROUP_UPDATE .
    if i am using this function module i am getting the follwing error
    'Class does not exist or is not valid on this date'.
    Could you please send me any sample code.
    Thanks in advance,
    Arvind.

    Hello Narendran,
    Thanks for your quick reply.
    i need to do the following fucntions to the tables t023 and t023t.
    1) adding material group
    2) Updating the material group
    3) Deleting the material group
    according to the status field in the excel input file as shown below
    Status     ungültig     Referenzen     MGS     Beschreibung deutsch     Beschreibung englisch     中文     Beschreibung russisch
    N               H4***     Kohlen     Carbon     炭     Уголь
    N               H4100     Kohlebürsten                                                               Carbon brushes     炭刷     Угольные щетки
    N               H4900     Sonstige Teile aus Kohle, techn. Kohle                                     Other parts made from carbon, techn. carbon     由炭,工程用炭制成的其他零件     Прочие виды изделий из угля, технический уголь                     
    U               J2100     Polyphenylenether (PPESIB)                                                    Polyphenylene oxide (PPO)     聚苯氧化物(聚苯撑氧,聚苯撑氧化物)(PPO)     Полифенилэфир (PPESIB)                                              
    D     x          J2400     Sonstige styrolhaltige Polymere                                 Other Polymers Containing Styrene     其他含苯乙烯聚合物     Прочие виды полимеров, содержащие стирол                  
    Note:Status :N means add the corresponding material group H4***
                               U means update the material group Description in t023t
                               D means delete the material group form  the table t023t
                                in all languages
    Could you please tell me any other fucntion modules are there.
    As per your suggession we can add the material groups then what about Updation and deletion of material groups.
    Also suggest me shall i go for normal modify , delete and update  statements in my program to aceive the above functionality
    2) The excel file format is also not constant they can change the columns
    as per their wish i mean for exp in the above excel  at col1 Status field is there and  at col4 (MGS ) material group and remaining columns are description of the material group in different languages(sorry the excel alignment is not clear above)  .
    They can change this and they can place status at col5 and MGS at col6 .
    Could you please advice me how to handle this situation in my program
    Thanks in advance,
    Arvind.

  • Condition Function Module

    Hello All,
    Is there a function module that will get information regarding a Sales Order's or an Invoice's condition tab,(one that gets the individual conditions and any subtotals)?  Thanks.
    John

    Hi John,
    Set break-point at function 'PRICING_BUILD_XKOMV', goto VA02 item condition. That function module will return condition value and subtotals.
    You need to pass internal table TKOMV which you can get using function module 'RV_PRICE_PRINT_ITEM' pass COMM_HEAD_I-BELNR (vbak-vbeln) and COMM_HEAD_I-KNUMV (vbak-knumv).
    Kindly Reward if helpful.
    Regards,
    Jack

  • BOM Update using a function module - 'CSAP_MAT_BOM_MAINTAIN'

    Hi,
    I have problem in updating the item status for a BOM using a function module - 'CSAP_MAT_BOM_MAINTAIN'.
    My goal is reset the Checkbox for 'Indicator: item relevant to production'. When i pass the value ' '[Space] to the structure field 'T_STPO-REL_PROD' it doen't work.
    Do let me know if you come across such problem & what needs to passed as input to reste the checkbox in the BOM.
    Thanks & Regards,
    Bhargava

    PLM wants to manipulate the Indicators u2013 u201CBulk Materialu201D & u201CCost Relevancyu201D in BOM.
    Note: The 2 indicators [u201CBulk Materialu201D & u201CCost Relevancyu201D] are interlinked with each other for a business functionlity given by SAP. So, if we try to set both indicators we get the below SAP standard error.
    E 29127 Bulk material not allowed for items relevant to costing
    SAP Field Name                             RFC Tag       SAP values    PLM values  Meaning for SAP field
    Indicator: bulk material                   BULK_MAT   Space             !                   No
    Indicator: bulk material                   BULK_MAT    X                   X                  Yes
    Indicator: item relevant to costing  REL_COST    Space            !                    Not relevant to costing
    Indicator: item relevant to costing  REL_COST     1                   1                   Not relevant to costing
    Indicator: item relevant to costing  REL_COST     2                   2                   Packaging operation
    Indicator: item relevant to costing  REL_COST     3                   3                   Packaging material
    Indicator: item relevant to costing  REL_COST     X                   X                  Relevant to costing
    To achieve the clear/reset/set value for 2 indicators [u201CBulk Materialu201D & u201CCost Relevancyu201D] from PLM, only eitheir of indicators status needs to sent [i.e 1 indicator status @ a time].

  • Update Mode of Function Module

    Hi all,
         The detailed knowledge of SAP techniques is so much ........
    Nowadays I encountered one,which is the 'Update Mode' attribute of a function module.when we create
    a function ,we will find the attribute is set as 'Start Immed' by default. But actualy I don't know the meaning
    of this attribute. According to some material info.,I learnt that it can be classified into two:v1 & v2.
         Would you tell me the true meaning of 'Update MOde' and the distinction between V1 and V2.
        Thanks a lot.

    Hi
    V1 modules describe critical or primary changes; these affect objects that have a controlling function in the SAP System, for example order creation or changes to material stock.
    V2 modules describe less critical secondary changes. These are pure statistical updates, for example, such as result calculations.
    The V1 modules are processed consecutively in a single update work process on the same application server. This means that they belong to the same database LUW and can be reversed. Furthermore, V1 updates are carried out under the SAP locks of the transaction that creates the update (see  The SAP Lock Concept). This ensures that the data remains consistent; simultaneous changes to the objects to be updated are not possible.
    All V2 updates are carried out in a separate LUW and not under the locks of the transaction that creates them. If your SAP System contains a work process for V2 updates, these are only carried out in this work process. If this is not the case, the V2 components are processed by a V1 update process.
    All V1 modules of an update must be processed before the V2 modules.
    U can also refer these links:
    http://www.erpgenie.com/abaptips/content/view/498/62/
    http://www.allinterview.com/showanswers/5513.html
    Regarding  v1 and v2 update and some other concepts.....
    Thanks
    Vasudha

  • TAX CONDITION FUNCTIONAL MODULE

    CALL FUNCTION 'FI_TAX_GET_CONDITION'
    HOW CAN I USE THIS?

    Hi Kannan,
      execute SE37 and enter that function module name. Select where used list then select programs check box in the coming popup window. It will display all the programs list where that FM was used. Then u will get clear idea abt the usage of that FM.
    Hope this helps you.
    Regards,
    Kumar.

  • Updating price conditions using CRM_ORDER_MAINTAIN

    Hello everyone!
    Could anyone help me out with respect to price updation using "CRM_ORDER_MAINTAIN"?
    I am supposed to do the following:
    I obtain the current unit price for a sales order item using "CRM_ORDER_READ". The feild et_pridoc-pric_cond-kbetr gives me this value. Then i get new price for the product from a condition table. I compare this new price with the kbetr value for a particular condition type. If the new price is less than the kbetr value then i should update the kbetr value of the item  using "CRM_ORDER_MAINTAIN". I am sending all the parameters necessary to the FM.
    I have gone through the previous posts with the same query but with  no luck i am running out of ideas! Any sample code will be greatly appeciated.
    Thanks and Regards,
    Smitha

    hi,
       please pass all the parameters & check updating parameters.like when u create a new entry u need to enter X & modify Y so pass all the parameters ...
    thanks,
    chaitanya

  • Update price conditions in massive way

    Hi Gurus,
    I defined a Rappel agreement with transaction VK11. Now i am needing to update this agreement for all customers so i would like to know if its possible to update at massive way instead of one per one.
    The field "Customer" is a mandatory field and its only lets you put one customer instead of a range of customers.
    Thanks in advance!
    Best Regards
    Juan Bretón.

    Dear Juan,
    I suppose, the easiest way is to use LSMW.
    If requires, I'll provide one of my post - LSMW Record, for reference.
    If, you would like to go for BDC-Program, following Thread would be helpful:
    [BDC - Condition Record|Requirement type and Requirement class]
    Best Regards,
    Amit
    Note: Meanwhile, you refer:
    [Pricing Condition Upload|LSMW Pricing Condition changes]

  • UPDATE Table through Function Module

    Update delivery document LIKP wit new route LIKP-ROUTE. suggest the correct function Module

    Hi,
    Use BAPI
    BAPI_OUTB_DELIVERY_CHANGE  Change Outbound delivery
    In this BAPI a Parameter called HEADER_DATA of type BAPIOBDLVHDRCHG.
    There is field called Route, pass value in it.
    Also Set field ROUTE_FLG in Parameter HEADER_CONTROL   to X or U for Change.
    Thanks &regards,
    ShreeMohan

  • How to catch Delta Initialization and Delta Update in a Function Module

    Hi Experts:
    I'm developing a FM to extract data from R3. I wonder if anybody knows how to catch when i'm making a delta initialization and a delta update in my FM, because i have different parameters and routines from each one.
    Thanks in advanced.
    Points for helpfull answers.

    Hi,
    Keep one dummy date field in the structure. Make this dummy date field as delta enabled field. When you do Init load this date field value will be blank and next time when you do load it will have the last upload (in this case init load) date. You have to write a code before open cursor as below:
          LOOP AT s_s_if-t_select INTO l_s_select.
                                  WHERE fieldnm = '(dummy date field name)'.
             l_date = l_s_select-low.
          ENDLOOP.
    l_date will have the last upload date. This you can use to select the delta records from the table or for the further processing.
    If you want to check the value during Init or delta load, go to RSA3 and debug it(Don't use F - Full load. Use I or D in the update field).
    Hope this helps.
    PB

  • Updating Infotype using function module HR_INFOTYPE_OPERATION

    Hi There ,
    lets understand my problem related to updation of infotype .
    I have a record maintained in my table within date range 01/04/2010 to 31/12/9999.
    now i update my new tax rate from 1st June 2010 .
    The requirement is i shall two records now :
    First record from 01/04/2010 to 31st may 2010 shall be maintained .
    hence we need to modify the existing record only changing the end date .
    Second record will be a new record starting from 1st june , ending 31/12/9999.
    Approach followed by me :
    using HR_READ_INFOTYPE to read the data .
    Then using HR_INFOTYPE_OPERATION  
    ---> ACTION : "MOD"  to update existing record by passing end date as 31st may 2010 .
    Then using action : INS to create a new record .
    but this approach is failing since i am itself not able to modify the existing record .
    Please let me know the correct way of updating the record .
    Regards,
    Abhishek.

    It depends on infotype. Every infotype has a time link.
    Sometimes you can have a record for a  day or more than one. You can have continuous records or not.
    I think your infotype has class 1 and it's continuous in time to the end (99991231)

  • Enhancing Price Conditions to PO

    Hi Experts,
    I am working on a requirement on PO Price Conditions. It is required to update the price condition of PO according to certain customer fields on the PO line items. I have tried several BAdi with no luck.
    BBP_DOC_CHECK_BADI - cannot actually change the document
    BBP_DOC_CHANGE_BADI - does not offer the price condition information
    BPP_DOC_SAVE_BADI - worse, just provide the document GUI
    tried to use some other function modules (condadd*), but no luck as well.
    those are internal function modules and are coupled with some global variants/checkings
    Anyone has experience on this ?
    Any advice ? Many Thanks.
    Yours,
    Chun Fai

    Thanks Jay,
    I have done a debugging with the function module "BBP_PD_PO_UPDATE".
    However, i found that the function module does not process the price condition at all.
    Internal tables for price documents are always empty.
    Even when a condition is added using the screen control, the price document is not available as well.
    Values manually updated during debug does not take any effect.
    The document information is not full available. (e.g. the header GUID, etc)
    Certainly we can call other function modules to obtain such document informations (BBP_PD_PO_GETDETAIL, BBP_PD_PO_ITEM_GETDETAIL)
    However, I am doubtful as to
    1. whether the function module can handle the information as proposed
    2. whether price document creation, etc, "backend" operations are required if no condition pre-exists
    3. whether there are other side effects
    At the meantime, I am still looking forward to solutions around BAdi, in order to keep the complexity and side effects to a minimum. Enhancement framework has more or less side effects on the existing system functions.
    PS: the price condition function modules i mentioned in the first message are "PRC_PD_ITEM_ADD_COND",  "PRC_PD_ITEM_CHANGE_COND" and  "PRC_PD_ITEM_DELETE_COND".
    Any other experience or recommendations?
    Many thanks.
    Yours,
    Chun Fai

  • Create/Update of Price conditions - PR00

    Hi folks
    I hope U know the right Function Module. Normally we use
    transaction MM02 to insert/update price conditions via view
    "Sales: Sales Org. Data 1". Here we push the button "Conditions
    and have the posability to enter/change the PR00 price condition.
    So far so good.
    But which Function Module do I have to use if want to do the same from within a background ABAP program??
    Maybe BAPI_MATERIAL_SAVEDATA?? And how to?
    Best regards
    and have a nice weekend
    Carsten :o)

    Hi there,
    check thist thread.
    BAPI_PRICES_CONDITIONS
    Kind regards,
    J.

Maybe you are looking for

  • Sample Bapi code for creating orders

    HI all, ive been working on creating an order using idoc_input_orders and couldnt do it because of 2 fields. now changed my decission and thinking of writing a bapi to do the same. has anybody got the sample code for mapping and filling in the bapis

  • Systemd migration issue

    I'm having some serious issues migrating a machine to systemd.  The first error I had was with dbus refusing to start, apparently when I did my upgrade this morning it did not add the dbus user/group. I created the user and then dbus.service starts b

  • SCSM 2012 R2 AD connector sync issue

    Hi Guys, I have a very strange  issue with the AD connector and have been struggling with it for a couple of days now. Frankly I’m out of options and hope some here can help me out. Let me start by telling you briefly how our environment is setup. Do

  • Is MaxMenus working on Snow Leopard?

    I've been referring to http://snowleopard.wikidot.com/ and developer sites to see if my apps are compatible before I upgrade, but there are still a whole bunch of applications I don't know the status. Most important on that list is an app called MaxM

  • Photosmart 7960 having color issues

    I have been running my 7960 with no complaints under Windows xp for many years now.  About 3 months ago when I try and print in color it will have to much green tint.  I have tried color management on/off.  Switch between RGB and Adobe.  Even when I