Get pricing conditions on transaction basis

Hello All
I want to design a soluttion in XI where , a quotation is created in SAP using the BAPI_QUOTAITON_CREATEFROM_DATA2 , it gives back VBELN as a response . Now i want to get the pricing conditions used for that quotation.Is there a way to achieve this ?
Is there any BAPI which can retrieve this info based on VBELN ? Any other solutions using XI ?
Thanks in advance.

HI,
To get the pricing conditions either you need to look for relevant BAPI or have to develop own RFC which will return the pricing condtions based on VBELN.
But anyhow you need two seperate Sender channels one for sending the data to BAPI to create quataion and get back the VBELN, after getting the vbeln you have to make another call to call the BAPI or Coustomized RFC that will return Pricing Information.
Probably you could look for BAPI_SALES_ORDER_SIMULATE & then analize the output table ORDER_CONDITION_EX for pricing information.
Thanks
Swarup
Edited by: Swarup Sawant on Feb 18, 2008 6:51 PM

Similar Messages

  • Error while debugging a FM to get pricing condition details

    Hi,
    when debugging the FM PRC_PD_HEAD_SHOW ( SPC_GET_PRICING_CONDITIONS ) to get the pricing condition details i am getting an error java debugging back end on sapdevsystem is waiting for port 8003.
    Is this bcoz java not properly installed in my system. Can anybody pls tell me how to solve this issue.
    Thanks,
    Leena

    Did not get any answer.. so found all the dates by particular tables a*** from pricing.

  • How to get pricing conditions while creating Sales Order

    Hi Guys,
                When we create sales order using VA01, price is automatically determined using pricing condition configured.
    My requirement is, I need to know what would be the price of a particular item.Say i put one item A with quantity x,can I get which price conditions will be applied and what value will come for them.I need this because I need to validate this price with some other price put in a file .

    I would suggest to use the Exit because that will be less efforts and you can implment and debug it easily. Moreover, you can restrict it by any condition e.g. order type, order reason because all the internal tables are available at that point.
    Whereas, accessing the access sequence is cumbersome process. You need to go to all the combinations (tables) in the access sequcen and try to find out the suitable match .
    Regards,
    Naimesh Patel

  • Function module to get Pricing conditions of billing document

    Hi All,
    Please help me getting the pricing condition values for a billing document.  I got values from KONV table against perticular Condition type. but i need to get the values against step number maintained in Conditions for my billing item. is there any function module to get all condition data maintained in document with totals and discounts aswell.
    Please help me.  if required i will give tou full details what i required.
    Kumar.

    Hi Kumar,
    Please check below mentioned Function Module for details:
    RV_PRICE_PRINT_GET_BUFFER
    RV_PRICE_PRINT_GET_MODE
    RV_PRICE_PRINT_HEAD    (Header)
    RV_PRICE_PRINT_HEAD_BUFFER
    RV_PRICE_PRINT_ITEM       (Item)
    RV_PRICE_PRINT_ITEM_BUFFER
    RV_PRICE_PRINT_REFRESH
    Regards,
    Tutun

  • FM to get Pricing Conditions

    Hi Friends,
    I have a requirement to <b>compare the Quotations</b> in which I have to check the prices against the pricing conditions.
    Is there any FM from which we can get the <b>pricing conditions</b> with the <b>condition types</b>.
    Regards,
    Vaithy.

    Hi Vaitheeswaran,
    see the below code snippet.
    Note that you should call RV_PRICE_PRINT_REFRESH a l w a y s before 'RV_PRICE_PRINT_ITEM'. The comm_head_i parameter needs an order number and a condition record number (KNUMV).
    In result table tkomv are all conditions, tkomvd only conditions relevant for printing.
    call function 'RV_PRICE_PRINT_REFRESH'                    "RESET
         tables tkomv                         = pt_komv.
      move-corresponding:
        ps_nast    to ls_komk,
        ps_jhak to ls_komk.
      call function 'RV_PRICE_PRINT_ITEM'
        exporting
          comm_head_i                         = ls_komk
          comm_item_i                         = ls_komp
    *   LANGUAGE                              = ' '
    *  IMPORTING
    *    COMM_HEAD_E                          = COMM_HEAD_E
    *    COMM_ITEM_E                          = COMM_ITEM_E
        tables
          tkomv                               = pt_komv
          tkomvd                              = pt_komvd.
    Regards,
    Clemens

  • Get Pricing Condition Result: BAPI_QUOTATION_CREATEFROMDATA2

    Hi Experts,
    I need to get the pricing condition data in BAPI_QUOTATION_CREATEFROMDATA2, under the table QUOTATION_CONDITIONS_IN when in TESTRUN mode, is it possible?
    I have tried in several time but it cannot work. It prompt me info message 'For the currency code MYR ALE communication is not allowed'. The reason I use test-run is because I don't want the quotation being created.
    Or any other way for me to get all pricing condition based on material and ship-to party ??? Thanks.
    Cheers,
    Isaac

    Hi Isaac,
    Please create Bapi using your repective Progamme and try to give the Resepective conditions related to pricing from XML file.as you are saying you are doing this for testing.hope aware that while creation of BAPI if the certain condition are not matching or if the data is incomlepte you will get this kind of errors.
    Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Get pricing condition from item quotation before create PO

    HI
    i m seeking for a way to group  items for my sale document ( quotation )  IF  its have  the same pricing condition  , before creating my purchase order .
    do you know any MF or BAPi  or  query code  that help me to give me the pricing condition for the item of my document  ?
    trhanks

    Pricing as captured in a sales document (say a quotation) is stored in table KONV.
    So you can read pricing from KONV for a specific quotation item like
    KONV-KNUMV = VBAK-KNUMV (of quotation)
    KONV-KPOSN = VBAP-POSNR (of quote item)
    KONV-KSCHL = conditiontypes you wish to check

  • Pricing condition basis

    Hi Pricing experts,
    I want to use a pricing condition as a basis for other condition value calculation as below.
    Condition 1: Number of weeks (condition basis)
    Condition 2: Weekly pay (amount)
    Condition 3: Weekly pay x number of week (condition 1 x condition 2) (Value)
    How can we set this up in pricing procedure? Do we need to create three conditions? which formula to be assigned to condition 1 and 3?
    Thanks
    Umesh

    Simplest way to do this is store those condition values in different table and use a formula to multiply them. Assign this formula to third condition.
    Regards
    Umesh

  • BAPI for Pricing & Conditions

    1. what is the use of Function     Module "BAPI_PRICES_CONDITIONS"? what value we have to pass to BAPI BAPI_PRICES_CONDITIONS"?
    2. Which function Module will use to Extract the Pricing & conditions Details (from SD) ?
    3. Can anyone help me how to extract the Pricing & conditions Details (from SD) ?
    Thanks

    you can use KONV table to get pricing condition(KSCHL) and pricing value(KBETR), for this we require sales order no(VBELN) and item no(POSNR).

  • Pricing Conditions In Order confirmation-Scripts

    Hi,
    My client has two scenarios  1. CMS-complete manufacturer & supply (i.e,with taxes)
                                               2. jobwork ( i.e., without taxes).
    I have copied standard print program and script into our zprograms.
    I have to create Sales order confirmation for CMS and JOBwork.(cms is working)
    Am getting pricing conditions for CMS process but not getting in Jobwork.
    Pricing conditions means tooling cost, packing cost etc.
    I have searched for so many conditions. but failed.
    Plz let me know the proper condition or modification to retrieve the pricing conditions.
    Thanks in Advance.
    Regards,
    Murthy.
    Edited by: kan murthy on Nov 26, 2008 4:20 PM

    Hi Prasanthi,
    Thanks for ur valuable reply.
    I came very near to solution.
    I have given query like following.
    SELECT SINGLE KBETR INTO KK3  FROM KONV WHERE KNUMV = VBDKA-KNUMV AND KPOSN = VBDPA-POSNR AND KSCHL = 'ZDEV'.
           IF SY-SUBRC = 0.
               FLG3 = 1.
           ENDIF.
    And Am checking condition in script like this
    IF &FLG3& NE 0
    DEVELOPMENT COST : &KK3&
    ENDIF
    I have nearly 10 condtion types.
    Data is coming into field properly.
    Now problem is, the fields has its value equal to 0 are also displaying(even though i gave SY-SUBRC)
    If value = 0. i dont want to be displayed those condition values in output.
    Thanks & Regards,
    Murthy
    Edited by: kan murthy on Dec 1, 2008 12:59 PM

  • Uploading pricing conditions

    hi i got requirement that i need to upload pricing conditions for transaction VK15 and the BAPI to be used is BAPI_PRICES_CONDITIONS  can any one suggest what are the inputs for this BAPI  for creating pricing conditions and which tables it will  updated...

    Check This thread
    Sample code for  BAPI_PRICES_CONDITIONS
    Hope this helps..

  • Custom pricing condition not getting triggered automatically in CRM 4.0

    Hi
    The custom discount pricing condition created in R/3 is active in R/3 and is getting triggered for Sales Orders created in R/3.
    I have downloaded the same pricing conditon from R/3 to CRM 4.0 i am able to trigger it manually in CRM service transaction. But i need the condition to be triggered automatically for the pricing group.
    Your inputs are highly solicited
    Thanks
    Padma

    Hi Padma,
    did you enable the condition download from ERP to CRM already? Did you run the initial condition customizing download and the initial condition master data download successfully (check also the application log in SLG1)?
    In addition, you should be aware, that for any condition customizing change in ERP you need to rerun the initial customizing download (there is no delta download) and that you need to refresh the IPC customizing buffer, which is automatically done once a day by default.
    Best Regards,
    Michael

  • How to get xkomv-kwert (condition value) from a pricing condition ZZP1

    Hi experts,
       I have a pricing condition zcust that I need to modify in the sales order.   The calculation of ZCUST is dependent on the condition value in another price condition ZZP1.   The price for ZZP1 is a fixed amount of $6 which is split among line items in the order.    In sapmv45A, when the code hits userexit_save_document_prepare, the value of xkomv-kwert (condition value) exist.   In other user-exits in sapm45A, I was unable to find xkomv-kwert.  My question is:  How can I find the value of xkomv-kwert  as i don't  know how ZZP1 is calculated ??  There is no routine attached to ZZP1.
        THE ZCUST has a routine 993 which is similar to 3.   Here in program saplv61A, i was trying to get xkomv-kwert for ZZP1 but unable to get any data.   Can anyone suggest where i can get the data (xkomv-kwert) for ZZP1 in saplv61a ?
    I looked at userexit_xkomv_bewerten_end in saplv61a but it does not help.
    XKomv-kbetr  always has data.    If i have ZZP1 data, then i can modify ZCUST.
    Many thanks.
    Joyce

    Hi Jelena,
      In VOFM, it is Formula/Condition Base Value for routine 993.   In Pricing Procedure, it falls in column "Base Type" for 993.
    Let's see if i can simplify this: In a sales order with 2 line items:
                   prices                    Amt                      Condition Value (USD)
    Line 10     ZS1   sell price     2.30                                 1150
                     ZPP1 charge        6.36                                 3.40  (note the distribution **)
                     ZL1                      3                                      3
                    ZR1 %                  1.000%                            11.50
                    ZR2                      0.01                                   5
                    Suggested price =  2.35                             1172.90
                      ZCUST               2.34                                1170
                      total price            2.34                               1170  
    Note:  The ZCUST price is wrong.  It is missing the ZPP1 charge which is 3.40.  Zcust should be 1170 + 3.40 = 1173.40
    Line 20     ZS1   sell price     25                                 1000
                     ZPP1 charge        6.36                                 2.96  (note the distribution **)
                     ZL1                      3                                      3
                    ZR1 %                  1.000%                            10
                    ZR2                      0.01                                   0.6
                    Suggested price =  25.41                              1016.56
                      ZCUST                   25.34                           1013.60 (should be 1013.60 + 2.96)
                   Total price                25.34                            1013.60
    You can see the ZCUST is calculated incorrectly.  The routine calculate zcust as $1170 and $1013.60 for each item which did not include the distribution amount of  ZPP1 ($3.40 and $2.96).  
    When i debug the routine, the xkomv-kwert is zero.   I  am trying to get $3.40 and $2.96 so i can add to to zcust in the routine.
    Am trying to determine in saplv61A at which include that i can see #3.40 and $2.96 for both line items in xkomv-kwert.
    Then maybe i can modify the routine or saplv61A so it shows the correct zcust price  after entering the 2 line items in the sales order  create (VA01) ?     Can you pls suggest  ?
    If i make the changes in USEREXIT_SAVE_DOCUMENT_PREPARE, then user cannot see the correct zcust until the order is saved.  This would be too late to know the zcust price ahead of time.
    Pls view in the Edit mode... i see my texts have been compressed.
    Many thanks
    Joyce
    Edited by: Joyce Chan on Jul 9, 2009 10:24 PM
    Edited by: Joyce Chan on Jul 9, 2009 10:25 PM

  • How can I get SD pricing conditions list as in VA01 without creating SO?

    Hi Guys,
    I have searched a lot of posts for this answer but only found that it's not possible to do through function 'PRICING' without creating SO document.
    My initial input is: sales organization, distribution channel, customer, material number, pricing date. Can I find relevant pricing conditions based on this info? I need to make a report, which would display all pricing conditions with values based on the selection parameters mentioned earlier. Thanks for any help.

    Use function module 'PRICING'
    This is a pretty big task interms of collecting all the required data.
    Check where used list for pricing. This is used in 2 places. Put a break point on them and run your sales order transaction. See what are the fields passing through.
    You can also determine from KOMK and KOMP . One for customer and the other for material. Make sure you pass all the data that is required.
    You will get results of conditions in importing table. (may be konv)
    Using simulate will actually creates a document number (i believe). Even though this will not be available in VBAK, VBAP... the number will be taken off from the sales order number range.
    I have used PRICING function module in of my work.

  • 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

Maybe you are looking for

  • No video play back.  Works in ALL other browsers...  Help

    Example: I can not get a video to play in FoxNews (stop with the "I hate Fox stuff"). The video will play in all other browsers. However, YouTube videos play fine in Safari 5.0.4. I have reset Safari, I have used Snow Leopard Cash Cleaner to reset EV

  • With clause join using ISO JOIN Sysntax

    Hi, One of my query looks like: SELECT t2.col1,               t3.col1,               t3.col2 FROM t2 JOIN t2 ON t2.col1 = t3.col1; Now I need to use a WITH clause to hold some values which has to be used to filter the results from the original query.

  • OIM11gR2 : Reconciliation Profile update

    Hi, I am trying to update the reconciliation profile by updating the xml file corresponding to AD by exporting it from MDS. As per the Oracle documentation i opened the Enterprise Manger and performed the following steps: Logged into Oracle Enterpris

  • Application help problem

    Hello guru's, In my sap system application help is not comming.can u anybody plz  help me out. wht parameters i need to maintain to get the application help. it shows the below error message: Please check the entries in the file sapdoccd.log in the w

  • Installation Problems with Creative ZEN an Win XP SP3 (germ

    Hi, first of all, i am german so my english isn't hte best... i bought a creative ZEN 4GB. i installed all the stuff on the installation-cd restarted my system plugged the ZEN in my USB-Port WIN XP mentioned a new device and wanted to install an MTP