A function modul update price

hi all
i search a bapi that can update materialprice in ta vk12.
Thx

Hi,
Can you check BAPI_PRICES_CONDITIONS. Coding might be little complex. May be you can search the forum for sample code.
Thanks,
Vinod.

Similar Messages

  • Function module updating the data base table

    Hi,
      This post is regarding the function module not updating the data base table.
    I am calling the FM SD_SHIPMENT_HEADER_CHANGE inside the ZFM. It's returning success an changing the  table c_xvttk_new with the new TDLNR value. But it's not updating the Shipment table VTTK-TDLBR or VT02N Forwarding agent.
    When I directly updating Forwarding agent in VT02N it's updating fine.
    Please let me know what the extra step need to be included to update or COMMIT the FM for updating
    Forwarding Agent(VTTK-TDLNR).
    Best Regards,
    Mahesh

    hi friend,
    This link wont five u the complete help but if u ananyse it  then it might provide u some idea......
    BAPI change shipment doc
    regards
    kanishak

  • Function module for Price master

    Hi All,
    I want to create a price master using function module.
    Does anyone know of any known function module which can do this?
    Thanks in advance.

    Hi,
    Can you try this one OIRC_SD_A360_SELECT or RV_PRICE_PRINT_ITEM to get the pricing information
    regards
    San
    Edited by: SAN_SD on Nov 13, 2008 1:31 PM

  • FUNCTION MODULE UPDATE

    What is the use of update mode of an function module . how to use it .

    [http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4daa79e11d1950f0000e82de14a/frameset.htm]

  • BAPI or Function Module - Update VBBE Table

    Hi All,
    I am looking for any function module or BAPI which Updates VBBE Table.
    Regards,
    Debi

    Hi,
    Use FM  RV_SALES_DOCUMENT_UPDATE in update task mode and pass all the required fields and tables.
    Pass empty table values for remaining tables except VBBE and pass export parameters.
    BR,
    Lokeswari.

  • Is there a BAPI or function module for price condition?

    Hi experts,
      I just want to create price condition info record to purchase order.
      we create price condition through tcode MEK1/MEK2/MEK3.
      it is more different from tcode ME11. it doesn't need to input purchase group, tax code etc.
      but I can't find the BAPI or function module for this tcode.
      does anyone know it?
      thanks in advance.
      looking for your reply.
    jack

    Please check this answered link:
    Re: Bapi_prices_conditions does not delete old condition properly
    Re: bapi for condition recaords
    Edited by: Afshad Irani on Jun 13, 2010 3:38 PM

  • Issue with function module updated values

    Hi Experts,
    We have an issue with customized program. In this program function module 'BBP_PD_SC_GETDETAIL' not picking
    the updated values when the UI was opened. But when we were executing the same function module directly by providing the values manually it is picking up the correct data.
    We thought it was a problem with session killing or buffer refresh ? We dont know how to handle this issue.
    If you have any suggestions that would be great help full for me . Please reply asap.
    Regards,
    Chandu

    Hi,
    Thanks for your quick reply.
    I have passed the values to the function module in the program and also used the same values for manually testing of the function module. Getting the correct values when I was testing manually.
    We thought it was a session killing problem as we developed the customized code. So any idea how to refresh the session even
    though the UI(User Interface) was opened.
    This issue was solved when the UI was closed and opened again.
    Any other ideas on this issue ?
    Regards,
    Chandu

  • Function Module where-used list does not find update rule programs

    We have function modules called in update rules. The where-used list in the function builder does not find the update rule programs.
    For example, function DATE_GET_WEEK is called in an update rule to InfoCube YCUBE001. The activated program name for this update rule is GP3PWI6PKM5Y3K75A370DIS8I77. When I goto SE37, enter the function DATE_GET_WEEK, click the where-used button, check the programs option and search. The system does not find the program GP3PWI6PKM5Y3K75A370DIS8I77.
    Without this search capability it is difficult to do an impact analysis of changing function modules. Does anyone know of a solution?

    hi,
    i think the reason is the code of update rules' generated program are stored line by line in table(rsaabap), update rules program itself stored in table rsupdrout, link with field codeid, another useful table is rsupdinfo which store infocube, infosource related.  other info may stored in some other rs* and rsa* tables.
    try to create following program in your system, and run, type in the function module name, and will display out the update rules program id, with additional useful info : which infoprovider, infosource, and detail info of the routine and infoobject in the update rule that using that function module. you may modify the program to have better display out list.
    hope this helps.
    REPORT  Z_FM_UPDRUL_WHEREUSED.
    data : lv_sfm,
           lv_line type string,
           lv_where type string.
    tables : rsaabap,RSUPDROUT,rsupdinfo.
    select-options:
    s_fm for rsaabap-LINE.
    start-of-selection.
      loop at s_fm.
        concatenate s_fm-low ' ' into lv_sfm.
        concatenate '%' s_fm-low into lv_line.
        concatenate lv_line '%' into lv_line.
        write : / 'function module', 'update rule id', 'routine id', 'infoobject', 'infocube', 'infosource'.
        select * from rsaabap
        where line like lv_line and objvers = 'A'.
           select * from rsupdrout
           where codeid = rsaabap-codeid and objvers = 'A'.
             select single * from rsupdinfo
             where updid = rsupdrout-updid and objvers = 'A'.
               write: / lv_sfm, rsupdrout-updid, rsaabap-codeid,
                        rsupdrout-iciobjnm, rsupdinfo-infocube,
                        rsupdinfo-isource.
        endselect.
        endselect.
      endloop.

  • How to update other infotype from source infotype via function module?

    Want in source infotype to call a func.module, which shall update other infotype(s) in background.
    Have tried out with HR_INFOTYPE_OPERATION, but without success - gives mitchmatch of source it and target it in the internal it buffer tables.
    How to do?
    Requirements also are to secure rollback, if update of the last of ex. 3 target its fails.
    Anyone has experience on this issue?
    Regards Søren

    Know this functionality - also by means of own coding in the PAI by filling the int. tables dynmeas + initial_values. However the issue remains, i.e. the update has to be done by a function module called from PAI of own infotype, and from a function module you can't trigger the T588Z-functionality.
    The update of it0003 from own it9300 is only an example, have general requirements that:
    - from own infotype PAI a function module shall be called
    - from the function module update of other infotypes 
      shall take place (modify as well as insert and delete)
    - if more infotypes shall be updated from source infotype,
      rollback shall take place if ex. update of last target
      infotype fails (all to be updated or none!).
    Regards Søren

  • Function Module Not Getting Activated

    Hi,
    We are using a customised function module which we are calling in a user exit. We would like to call this function module in update task in the user exit to populate data in a custom table.
    We have given the following parameters to the function module
    Import Parameters
    ITAB     LIKE     ZPRUNDAT
    Export Parameters
    l_subrc     TYPE     sy-subrc
    On the attributes tab of the function module, Update Module has been selected under processing type.
    When we try to activate this function module we get the following message
    EXPORTING parameters are not allowed in the update task.
    and the function module does not get activated. What should we change to get the function module activated?
    Mick

    Hi,
    Please try this....
    In function module
    In tables Section add this...
    RETURN TYPE BAPIRET2 and then activate.
    if its useful reward points

  • Executing function module gives error "Portal request failed: Connection fa

    Dear Experts,
    I have a Function module  Z_SAT_CREDITLIMIT_CHANGE which in itself accesses the SAP Update Function module
    UPDATE/INSERT  of the credit limit(CREDITLIMIT_CHANGE)
    and writes the changed data to the Table KNKK(Customer Master Credit Management : Control Area Data).
    While executing this fn module Z_SAT_CREDITLIMIT_CHANGE
    from VC storyboard i received error "Portal request failed:
    Connection failed: Nested Exception: Native Connection to backend system is broken" . Z_SAT_CREDITLIMIT_CHANGE executes fine and updates data in ECC system.
    Than i noticed further that while commenting the part of code in Z_SAT_CREDITLIMIT_CHANGEwhere call to fn module CREDITLIMIT_CHANGE is made there's no error recieved and Z_SAT_CREDITLIMIT_CHANGE executes without error but obviously no data is updated.
    Appreciate if any one can please explain how can i use CREDITLIMIT_CHANGE  in Z_SAT_CREDITLIMIT_CHANGE
    without any errors.
    Kind Regards,
    Robin.

    Hi Robin,
    Also, check that the user with the one you're accessing to the backend have permissions to execute the Dataservice at the backend system.
    You should check the usermapping to know which is the user at backend.
    Best Regards,
    Luis

  • Update price on sales order

    Hi All,
    we have this requirement as below:
    Update price master data every half year, once the price is updated, all price on the sales order should be refreshed. Does SAP have standard function to update price on sales order?  We don't want to refresh sales order one by one, after the price master is updated.
    Thank you!

    Hi,
    You can try with t-code MASS but you'll not have an option of Pricing Update over there, but I can suggest you one wayout in this situation as below:
    - Go to MASS
    - Select object type BUS2032
    - Select Sales Order Header data
    - Click on fields
    - You will see Pricing Date field
    - Select and execute
    Logic behind this option is as below
    - your old sales orders would have old pricing date on which old pricing records were existing.
    - once you prices are updated half yearly and if you change the pricing date system will again look for the condition records and then it will update the prices as per new pricing date
    I have not done this actually, but this may work because logic seems to be right.
    Hrishi

  • Function module to update net price in purchase information record ???

    hi all,
    Is there any function module to update net price (PREIS) for each material in the purchase info record?
    points will be rewarded for helpful answers

    Hi,
        Use below FM :
    Clear : i_prot.
    refresh : i_prot.
    Delivery Update
    CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
    EXPORTING
    do_commit = 'X'
    TABLES
    t_delivery_items = i_lips
    prot = i_prot
    EXCEPTIONS
    conversion_overflow = 1
    essential_data_missing = 2
    error = 3
    nothing_to_update = 4
    lock_after_update_failed = 5
    error_in_delivery_update = 6
    OTHERS = 7.
    COMMIT WORK.
    Pass lips-lgort..
    Refer
    https://forums.sdn.sap.com/click.jspa?searchID=4212688&messageID=3855382
    Regards

  • Price Condition Update Function Module

    I'm trying to identify the function module that updates the price conditions in a sales document. I know one exists as I used it years ago but can't seem to locate it. It replicates the manual process of clicking the update button on the screen.
    this will be used in visual composer to update pricing prior to further processing of bapi's
    Any help appreciated

    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

  • Function module to update Moving Average price for Material?

    Hi guys,
    is there a function module or BAPI to update the moving average price in a material master?
    i have tried UPDATE_MATERIAL_PRICE but guess it does not work. I have also tried MB_UPDATE_MATERIAL_PRICE and it seems to not work. Any pointers?

    We have a need to update the moving average price using movement type 531 for a custom solution we have built for other business requirements.  We have not found a way to update the moving average price yet using any of the information provided here.  Can any offer any other suggestions.  Looking for a BAPI, user exit, or function module that we could tap into in order to updat the moving average price.  Here is what we found...
    We believe that the following suggestions doNOT apply...
    BAPI_MATERIAL_SAVEREPLICA is basically for updating material master records in general.  It does not address the offset to the alternate accounts.
    BAPI_COSTESTIMATE_UPDATE_PRICE does not adjust the moving average price.
    CIML_UPDATE_MATERIAL_PRICE updates Project Stock.
    Any help would be greatly appreciated.

Maybe you are looking for