How to read pricing conditions on sales order

Hi
i need to retrive pricing conditions of sales order but before posting sales order
any user exit avialable ...?
also i hv found one user exit in that there is FM EXIT_SAPMV45A_003
But i am not able to read pricing conditions values
also no data is there in konv table coz sales order has yet not been post
so before sales order can i read the pricing conditions values ...
pls guide
if possiple pls provide example also
thanks
Taran

Hi
The problem is you can't use the KNUMV, because u make sure to get the princing active in the document at run time.
If you want to know the old data you can read the table KONV using field KNUMV, but here you can't know if some modification is done.
U can try to know the field-symbols:
DATA: XKOMV LIKE KOMV.
DATA: FIELDNAME(30) VALUE '(SAPMV45A)XKOMV[]'.
FIELD-SYMBOLS: <TKOMV> TYPE TABLE.
ASSIGN (FIELDNAME) TO <TKOMV>.
LOOP <TKOMV> INTO XKOMV.
ENDLOOP.
Max

Similar Messages

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • How to update pricing condition in sales in batch in the evening

    Gurus,
    I have a situation where I am supposed to update the freight charge condition type ("ZFR9" in my organization) on a scaled basis, depending on how much the customer (ship-to) has ordered on the same date. Since this changes from time to time, I need to write a program that does the following in the background in the evenings.
    1) Accumulate the wt of the material ordered by the same ship-to customer on the same delivery date.
    2) Find the scaled freight rate from a central universal freight charge table.
    3) Update the ZFR9 by this new frieght rate in all such sales order/line items that have the delivery date in question.
    The problem with using BDC is that the condition type ZFR9 appears on different lines depending on presence or absence of other condition types.
    Also I could not find any BAPI that does the update on a line item pricing condition.
    I am on 4.6C.
    Thanks for any help you can offer me.
    Regards
    Raju

    Guys,
    I am trying to make this work. I am able to add extra pricing conditions to sales order but I can not understand
    - how to change the value of an existing condition type OR
    - how to delete the condition type from the sales order line item
    Here is the sample code that I am using to test this out (most of the information is hard coded so that I can focus on a particular record)
    REFRESH RETURN.
        CLEAR   RETURN.
        REFRESH ORDER_ITEM_IN.
        CLEAR   ORDER_ITEM_IN.
        REFRESH ORDER_ITEM_INX.
        CLEAR   ORDER_ITEM_INX.
        REFRESH PARTNERCHANGES.
        CLEAR   PARTNERCHANGES.
        REFRESH CONDITIONS_IN.
        CLEAR   CONDITIONS_IN.
        REFRESH CONDITIONS_INX.
        CLEAR   CONDITIONS_INX.
        CLEAR SALESDOCUMENT.
        CLEAR ORDER_HEADER_INX.
    Move screen accepted docnumber TO SALESDOCUMENT.
        MOVE P_VBELN       TO SALESDOCUMENT.
        ORDER_HEADER_INX-UPDATEFLAG = 'U'.
        APPEND ORDER_HEADER_INX.
    Move screen accepted line item
        ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
        APPEND ORDER_ITEM_IN.
    Move screen accepted line item
        ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
        ORDER_ITEM_INX-UPDATEFLAG = 'U'.
        APPEND ORDER_ITEM_INX.
    Set the condition value
        CONDITIONS_IN-ITM_NUMBER      = P_POSNR.
        CONDITIONS_IN-COND_ST_NO      = '230'.
        CONDITIONS_IN-COND_COUNT      = '01'.
        CONDITIONS_IN-COND_TYPE       = 'ZSR3'.
        CONDITIONS_IN-COND_VALUE      = '333.00'.
        CONDITIONS_IN-CURRENCY        = 'USD'.
        CONDITIONS_IN-COND_UNIT       = 'LB'.
        CONDITIONS_IN-COND_P_UNT      = '100'.
        APPEND CONDITIONS_IN.
        CONDITIONS_INX-ITM_NUMBER     = P_POSNR.
        CONDITIONS_INX-COND_ST_NO     = '230'.
        CONDITIONS_INX-COND_COUNT     = '01'.
        CONDITIONS_INX-COND_TYPE      = 'ZSR3'.
        CONDITIONS_INX-UPDATEFLAG     = 'X'.  " update
        CONDITIONS_INX-COND_VALUE     = 'X'.  " update
        CONDITIONS_INX-CURRENCY       = ''.   " no update
        CONDITIONS_INX-COND_UNIT      = ''.   " no update
        CONDITIONS_INX-COND_P_UNT     = ''.   " no update
        APPEND CONDITIONS_INX.
        WRITE: / 'BAPI Called for', P_VBELN, P_POSNR .     
        CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
          EXPORTING
            SALESDOCUMENT               = SALESDOCUMENT
      ORDER_HEADER_IN             =
            ORDER_HEADER_INX            = ORDER_HEADER_INX
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
          TABLES
        RETURN                      = RETURN
       ORDER_ITEM_IN               = ORDER_ITEM_IN
       ORDER_ITEM_INX              = ORDER_ITEM_INX
      PARTNERS                    =
      PARTNERCHANGES              = PARTNERCHANGES
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
         CONDITIONS_IN               = CONDITIONS_IN
         CONDITIONS_INX              = CONDITIONS_INX
      EXTENSIONIN                 =    .
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
               EXPORTING
                    WAIT = 'X'.
    IMPORTING
      RETURN        =
        ELSE.                                           
         WRITE: ' BAPI RETURN CODE = ', SY-SUBRC.              
        ENDIF.

  • Change header pricing condition in sales order

    Hi,
    I have an requirement in VA01 and VA02 to automatically edit one header pricing condition. The user can able to change the value of that condition type in header not in items . Does anyone know what user exit I can use for this requirement.
    Thanks

    Hi Sunil,
    Plealse find below 2 methods to change header pricing conditions in sales order.
    1.Goto SE38, give prog name as MV45AFZZ and in that write logic under USEREXIT_PRICING_PREPARE_TKOMK . (OR)
    2) The same can be done by creating a Alt Calculation type routine through VOFM and writng the logic in the routine, which will then be assigned to the pricing procedure in the condition type which will automatically calculate the condition.
    Try with the options mentioned above..
    Regards,
    KK

  • Manual Pricing Condition for sales order!!

    Hi,
    I have an issue, My requirement is I have to add a manual pricing condition in sales order header level. I have define the pricing condition for Freight Charges and that I have added to the pricing procedure that we have used for the transaction.
    The problem is when Iam creating the order in the condition tab manully want to choose the condition type, but what I created condition type (Freight Charges) is not appearing in the view. Only exesting condition types only appearing in tha selection view. I am on CRM Stand alone
    Pls anyone can advise where I miss the setting, I am new in CRM PRICING
    Regards
    VJ

    Hello VJ,
    You must consider that there is a setting "manual" in the pricing procedure customizing, indicating that the condition must be manually entered, and also a setting in condition type  customizing regarding changes that can be made. In condition type customizing you should NOT have option D "Not possible to process manually". Have you checked condition type customizing?
    Additionally please execute function module from note 867428 ( IPC_DET_CLEAR_CUST_BUFFER ).                
    This will ensure that all the customizing changes are immediately available  ( otherwise you would need to wait until the automatic buffer refresh occurs, by default once per day 
    Best Regards
    Luis Rivera

  • How to update  pricing in open sale order

    Hi all
    in open sale order suppose my basic price has been changed .how Can i update all open sales order basic price in one shot.

    Dear Sachin,
    Please follow the point as given below;
    1. In VTFL for your item category maintain pricing type as B if it is delivery related billing and if it is order related billing VTFA maintain pricing type as B and one more thing maintained Billing Quantity as C if you using VTFA and Billing Quantity as D if you using VTFL.
    2. Create the new condition records in VK11 for your new price ( Do not change the existing  condition record in VK12) with proper validity dates
    3. Use update button in billing the system will pick the new record by accessing VK11 in billing.
    Try this, it will work.
    Regards,
    Bharat B

  • How to configured pricing procedure to sales order type

    Dear Sir,
    Please tale me how to configure / change pricing procedure to sales order type. we have required to change pricing procedure from a to b for particular sales document type.
    Regards
    BK GAIKWAD

    HI
    Create a new document pricing pricedure
    SPRO>sales & distribution>basic functions>Pricing>Pricing Control-->Define And Assign Pricing Procedures
    and in the same path assign to your document
    and assign it to your document and also then to your Pricing procedure determination in OVKK
    regards
    Prashanth
    Edited by: Prashanth@SD on Jan 29, 2011 11:00 AM

  • Inserting Pricing condition in Sales order when saving the sales order

    Dear ABAPers,
           My customers requirement is when saving the sales order new pricing condition has to be updated in the line item.for this i am using the User Exit 'USEREXIT_SAVE_DOCUMENT_PREPARE' ( MV45AFZZ).While saving the Sales order i am calculating the Price and updating in the Pricing conditions.
    In XKOMV internal table i am appending the pricing condition.But the problem is ,it is not calculating the taxes and it is Updating in VBAK and VBAP.
    How to do this.
    Thanks & Regards,
    Ashok.

    Dear ABAPers,
    I have Solved this Problem.
    Thanks & Regards,
    Ashok.

  • Delete Pricing Condition IN Sales Order

    Hello Forum,
    Does anyone know how to delete a specific pricing condition in a Sales Order.
    In a sales order for each line item there are multiple pricing conditions. I need to delete a specific price condition 'ZZZZ' for instance then how do I go about it?
    This is what I have been able to find out so far.
    1. Does NOT seem to be possible by BDC because there is no way to position the cursor on the particular condition record I require.
    2. Although there is BAPI_SALESORDER_CHANGE, SAP via an OSS note specifies that this BAPI CANNOT be used to delete  condition records.
    3. None of the PRICING function modules seems to work for deletion. I did find out a function module PRICING_DELETE_LINE but this seems to rely on being called via SAP Standard function.
    I have tried searching for some means to do this and I hope that someone on this forum can give me some help on the same.
    Regards,

    Hi Peter,
    Your reference to OSS Note 593246 saved me from hitting my head to the wall, I had almost given up. Thanks a lot.
    Here is the code, in case any one needs to add or change a condition type on the sales order.
    REPORT ytest.
    DATA:lt_conditions_in TYPE STANDARD TABLE OF bapicond,
         lt_conditions_inx TYPE STANDARD TABLE OF bapicondx,
         lt_return TYPE STANDARD TABLE OF bapiret2,
         ls_logic_switch TYPE bapisdls,
         ls_order_header_inx TYPE bapisdh1x,
         ls_conditions_in TYPE bapicond,
         ls_conditions_inx TYPE bapicondx.
    ls_order_header_inx-updateflag = 'U'.
    ls_logic_switch-cond_handl = 'X'.
    ls_conditions_in-itm_number = '000010'.
    ls_conditions_in-cond_type = 'PR00'.
    ls_conditions_in-cond_value = '21.11'.
    ls_conditions_in-currency = 'USD'.
    APPEND ls_conditions_in TO lt_conditions_in.
    ls_conditions_inx-itm_number = '000010'.
    ls_conditions_inx-cond_type = 'PR00'.
    ls_conditions_inx-updateflag = ' '.
    ls_conditions_inx-cond_value = 'X'.
    ls_conditions_inx-currency = 'X'.
    APPEND ls_conditions_inx TO lt_conditions_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
       salesdocument               = '0000053232'
      ORDER_HEADER_IN             =
       order_header_inx            = ls_order_header_inx
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
       logic_switch                = ls_logic_switch
    TABLES
       return                      = lt_return
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
      PARTNERS                    =
      PARTNERCHANGES              =
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      conditions_in               =  lt_conditions_in
      conditions_inx              =  lt_conditions_inx
      EXTENSIONIN                 =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait          = 'X'
          IMPORTING
           return         =
    Regards
    Amit Maole

  • Pricing conditions in sales order.

    Hi,
    In my sales order pricing conditions, the Condition values are coming in change mode. so that the users can change the condition values.
    I want to make it as disply mode. how can i do?
    Regards,
    jyothi.

    Hi,
    U can control the manual entry of pricing by following method:
    Go to Condition type - In Changes which can be made screen, Select "D" ( Not possible to process manually).
    However, please note u have to maintain condtion price for condition type through VK11.
    Hope it solves ur issue.
    Thanks
    M G Shankar

  • Copy Pricing Conditions from Sales Order to Billing

    Hi,
    Is there anyway to copy pricing conditions for item level from Sales Order to Billing Document at the time of creation of Billing Document.
    Thanks

    This question is not on topic for the Web Dynpro ABAP forum and has been locked.

  • Dectivate pricing condition for sales order not service order.

    Hi,
    We are on ECC6.0 and CRM5.0
    I need to add new condition type to the existing pricing procedure.It should be activtaed only for service orders and not for sales order.I can achive this by adding new requirement in pricing procedure to limit this condition type based on order type.
    Example:  if KOMK-AUART eq ORDER_TYPE.
                    sy-subrc = 0.
    But I don't want to do this,because I would need to change this requirement everytime I add new service order type.
    Is there any field in Pricing structure KOMK bu using which we can achieve this. ?
    Please suggest any other idea by which I can achieve this
    Thanks
    Dona

    Currently ,we have one pricing procedures for both the scenarios...
    We control if the perticular condition type to be active or not by writing a requirement which checks the order types.
    This has been done this way because we  built the pricing procedure in ECC and tranfer it to CRM.Also we donot have service orders in ECC.
    any further alternatives guys..

  • Copy the pricing conditions from Sales Order to Delivery

    Hi all,
    I have to send the princing conditions from the delivery trough Idoc.
    That's the reason why I need the princing conditions in the delivery. But I can't redetermine the pricing procedure in the delivery creation. I need to copy the pricing conditions from order to delivery.
    Because if there is any manual modification of a condition in the sales order, If I redeterminate the pricing procedure in the delivery, I would lost the changes.
    Anybody knows any User Exit or anyway to copy the pricing conditions from SO to Delivery?
    Thanks in advance

    I think pricing will not determine in delivery, if any shipmentchanges will copy to delivery, not standard pricing.
    Logically, when you create delivery by that time your pricing need to finsh, no changes, so send pricing infor from order to customer, as its standard process in any client.

  • Users autorizations for pricing condition in sales order

    HI all,
    Can anyone tell me if there is any posibilities to control users autorization for certain pricing condition in a sales order? For example: User A can add/edit/display K007 but user B can only display K007 for a new sales order.
    Thanks in advance
    GeorgeR

    Hi
    Please check this link on WIKi
    http://wiki.sdn.sap.com/wiki/display/ERPLO/UserexitforRestrictingUserModifyingConditiontypeinSales+Order
    regards
    Prashanth

  • Pricing condition in sales order-issue

    Experts,
    i am facing a very strange issue, functional consultant
    did some configuration ,such that when header of
    sales order have condition type ,let say some 'ZXX',
    this pricing conditon should be applicable to all
    the schedule line with pricing condition as 'ZXX' where material in schedule line is let say 'ZPP',that mean
    these should only be applicable for material type
    'ZPP',we are facing strange issue , when scheule line no
    10 is having material 'ZPP' ,then pricing conditon is
    working fine('ZXX'),but if scheule line no 10 is having
    material other than 'ZPP' and if scheule line no 20
    is having material 'ZPP' ,then for scheule line no 20
    pricing condition is not getting copied from header

    goto  tcode - <b>vk13</b>
    note that [A]--sequence for plant /material
    note that <b>--sequence for plant /material/cafgroup
    enter ur pricing condition type and
    for the <b>plant/material</b> combination etc.. [A]-
    may be in the access sequence ur consultant ave given it to a new sequence say <b>plant/material/caf group</b> .. --<b>
    like this 
    suppose say item 10 is for option [A] so access sequence is for this only ..cause material is now in plant/material
    now say item 20 is for option <b> so
    material at line item 2 will fall under this sequence ..
    cumulatively u need to get the total ..
    now if the material is same in line 10 20 , u will have to fetch the values from both the tables in sequence and not one table will store the values ..
    cause sequence pass for the material is now [A] and <b>
    rememebr that per classification the values are stored in diff table like a906 ,, a90*..
    in order to fetch that  u need to get it from the tables of classification
    and then cumulate it ..
    this is important ..
    regards,
    VIjay.
    Message was edited by: Vijay

Maybe you are looking for

  • Error in the following prog

    hi...plz tell me the reason of compilation error in the following prog class Sup1{ public Sup1(){ System.out.println("Hai"); private Sup1(String str){ System.out.println(str); public class Test5 extends Sup1{ private Test5(String str){ System.out.pri

  • Any way to rename files when importing from camera with iPhoto?

    I have a naming scheme that I've used when importing photos from my camera (e.g. 2008-09-12-Event ). I can't create a custom folder (in Pictures but outside iPhoto Library) or rename things when importing with iPhoto - is that right? I can't find any

  • Issue in 10.6.7

    hello, I have macpro updated to 10.6.7 recently I bought AIPTEK slimline 600u premium II. I installed the cd that came with it having penpad 1.75. the pen worked for a few seconds then stopped.since then it hasn't worked. I searched for latest versio

  • How to get Messageid in Inbound ABAP Proxy ?

    Hi, Please advise how to get messageid in Inbound ABAP Proxy, so far i could not find anythings most of the forum discuss about "How to get messageid for Outbound Proxy). Thank You and Best Regards FL

  • Where is the outline feature in Pages?

    Surely Apple realized that it made a mistake and put the outline feature back into Pages during a recent update, but I can't find it. Any news?