Call pricing procedure - FM, ABAP

Hi,
I would like to call the pricing procedure in ERP. This procedure is called when the user create some sales documents (like quotation) and price is calculated based on Customer, Material, Route, Shipping data).
I would provide all needed data and the procedure (function module) should return detailed pricing calculation (basic price, rebates, final price, ...)
The next level of complexity would be calling that procedure from another system - SAP BI for using in a BPS application.
I hope some one could give me some hint how to proceed with this challenge.
Thanks ,
Tomaz

hi,
     to my understanding what u have to do is u need to maintain a condition record for that material and the customer .
go to VK11 and select the condition type which u want to use . and then select the  key ( according to ur requirement) . and then give the  sales area data and material info and customer info . and then save it .
once this is done , when ever u create sales order entering the material and the customer , the price will come up .
let me know if im wrong.. .. and do let me know if u find any other answer if im wrong
thanks
madhan

Similar Messages

  • Trying to call HANA procedure via ABAP

    Hi everyone,
       I am using ABAP in Eclipse in order to call a HANA procedure within a BPC process chain. While referring to an SCN blog written by Baris Cekic, I have put together a working ABAP Class. This works as my proxy to a functioning HANA stored procedure. My issue is with the ABAP program I am using for the process chain. I believe that I'm passing my input parameter using the wrong format. Please bear with me, as I am not an ABAP programmer! Any help would be much appreciated! Please take a look at the screenshots. Thanks!
    ABAP CLASS - ZCL_BPC_AMDP:
    HANA PROCEDURE - ZPROC_BPC_AMDP:
    ABAP PROGRAM - ZBW_BPC_AMDP:
    This is my issue!! -----> INPUT of SP Name: (I've tried with and without the schema):
    ABAP PROGRAM ERROR:

    Hi Anand,
    you should preferentially use "NVARCHAR" instead of the non-unicode derivate "VARCHAR". As ABAP supports both unicode and non-unicode systems, we only allow the mapping of Strings/character literals from ABAP to NVARCHAR variables in HANA in all ABAP on HANA systems.
    Please find an example of a _SYS_BIC procedure in an AMDP in class CL_EPM_OIA_SIMP_BP_CLSF_AMDPDT (method AMDP_GET_BP_CLASSIFICATION). Should be available in your system.
    And you can additionally try to execute the call you put into the AMDP directly in the HANA SQL console.
    Cheers,
      Jasmin

  • How to Call HANA Procedure in ABAP

    Hi Everyone,
    I am new to ABAP
    I have created a procedure in HANA that accepts two input parameters and outputs a table
    I am using HANA as a Secondary Database
    How can I call this procedure in my ABAP program?
    Regards,
    Vivek

    Hi Vivek,
    depends on how you would like to call it :-)
    1. Use native SQL to call the procedure (see report ADBC_DEMO_PROC_CALLS_HDB; available in any system with a minimum NetWeaver release 7.40 SP5).
    2. Create a DB Procedure Proxy and call the DB Procedure Proxy (Tutorial: How to consume SAP HANA Procedures in ABAP; only "directly" available if HANA is the primary DB underlying your system, for secondary DB system see discussion Execute Procedure with input parameters as table from ABAP).
    3. (Method of choice available as of NetWeaver 7.4 SP5): Create an ABAP managed DB procedure (instead of the native HANA procedure) as described in ABAP Managed Database Procedures - Introduction
    Cheers,
      Jasmin

  • Calling oracle procedure from ABAP program

    There is a requirement to call the oracle stored procedure with some input parameter from ABAP program.
    Suppose we have order number which is entered by the user in ABAP program.
    This order number needs to be passed to oracle stored procedure as an input parameter in the same ABAP program.
    We can call the oracle stored procedure without parameter using the following syntax
    exec sql
    execute procedure <procedure name>
    end exec.
    But do not know how to execute the oracle stored procedure with some input parameter?

    Apologies , following is the correct code.
    This will definetly solve your problem.
    DATA scarr_carrid TYPE scarr-carrid.
    SELECT-OPTIONS s_carrid FOR scarr_carrid NO INTERVALS.
    DATA s_carrid_wa LIKE LINE OF s_carrid.
    DATA name TYPE c LENGTH 20.
    TRY.
        EXEC SQL.
          CREATE FUNCTION selfunc( input CHAR(3) )
            RETURNING char(20);
            DEFINE output char(20);
            SELECT carrname
                   INTO output
                   FROM scarr
                   WHERE mandt  = '000' AND
                         carrid = input;
            RETURN output;
            END FUNCTION;
        ENDEXEC.
        LOOP AT s_carrid INTO s_carrid_wa
                         WHERE sign = 'I' AND option = 'EQ'.
          TRY.
             EXEC SQL.
                EXECUTE PROCEDURE selfunc( IN  :s_carrid_wa-low,
                                           OUT :name )
              ENDEXEC.
              WRITE: / s_carrid_wa-low, name.
            CATCH cx_sy_native_sql_error.
              MESSAGE `Error in procedure execution` TYPE 'I'.
          ENDTRY.
        ENDLOOP.
        EXEC SQL.
          DROP FUNCTION selfunc;
        ENDEXEC.
      CATCH cx_sy_native_sql_error.
        MESSAGE `Error in procedure handling` TYPE 'I'.
    ENDTRY.
    Reward points if usefull.
    Thanks and regards,
    Veerendranath.

  • Calling Pricing Procedure independently using report/Program in ECC

    Hi
    We are working on SRM 7.0 classic scenario and need MM expertise to configure one RFx comparison scenario. We have a requirement of pricing comparison of various RFx response received from bidder (supplier company), pricing should be same as found under condition section of MM PO. Having complete details regarding Taxation, Sales tax details, excise details (replica of pricing section of PO).
    We are working on a solution where in we can pass the basic inputs to MM interface (Tax code, vendor number, material, etc,.) and fetch the pricing details and display in SRM for comparison of price.
    To achieve this we need to know whether we can call the pricing outside separately using a standard program/report and use it for our calculation and call to SRM using RFC.
    Please suggest.
    Regards
    Prashanth

    Hi,
    We have a requirement of having the pricing and taxation in SRM similar to ECC to have comparison done on the bid response.
    Can you please provide inputs on how did you handle the taxation & pricing part?
    We are on SRM 7 EHP1
    Regards,
    Amish

  • Pricing Procedure in PIR

    Hello All,
    I have created new pricing procedure, configured schema determination and all. The right pricing procedure is being picked-up in PO/Contract. I am wondering that this is not happening in Purchase Info Record.
    Any suggestion/comments on this, do we have some additional setting for schema determination in PIR?
    Thanks,
    Manish Jindal

    Hi
    There is no such thing called Pricing procedure for Purchase info record.
    A PIR is a Purchasing master data.
    In a PIR - for a combination of material 'A'- Vendor'B' - Purchsaing organization'P'-Plant you maintain the values for certain condition type (say PB00 or RA00).
    Let's say. these conditions have been included in Pricing Procedure.
    So while you are creating a PO for this material A and Vendor B thruogh a Pur Org 'P' the value for these conditions are taken from the PIR.
    Clear!
    More info - http://help.sap.com/saphelp_47x200/helpdata/en/75/ee105655c811d189900000e8322d00/frameset.htm
    MRao

  • Pricing routine is not called even after assigning it in pricing procedure.

    Hi
    I created a pricing routine (Condition value) for one ZCondition type. I saved it in the workbench request. Functional consultant assigned this pricing routine to condition in Pricing Procedure. The routine was called while creating a PO. It works perfect in development system. But after we transported to quality server the routine is not getting called. Routine is displayed in pricing procedure in quality server. Routine program also exists in quality server. But the program include statement is not found in standard program RV64ANNN in quality. But in development the include statement appears in this program. How this program was not modified in quality server after transport? Its a SAP standard program and it was not saved in any request and was not modified manually too.
    Can anyone explain me what could be the reason that the program RV64ANNN is not updated in quality server to include the routine?
    How can we update this program without modifying it manually?
    Would deleting the pricing routine and recreating it help resolve this problem?

    Hi,
    Refer to the following Notes:
    [Note 22808 - Transferring formulas|https://service.sap.com/sap/support/notes/22808]
    [Note 388998: VOFM: Check report for entries in TFRM/TFRMT|https://service.sap.com/sap/support/notes/388998]
    [Note 28683: PERFORM_NOT_FOUND: VOFM routine is not active|https://service.sap.com/sap/support/notes/28683]
    Note 22808 - Transferring formulas is the first place you should look.  FYI, there is a lot of information on this topic available by searching for SAP Notes that have "RV80HGEN" and/or "VOFM" as keywords.
    Regards,
    Jamie
    Edited by: James Gaddis on Mar 19, 2008 10:59 AM - Added an additional SAP Note number and comment about searching for more Notes.

  • Pricing Procedure for Purchase Order

    I have to pick item level conditions for value : bed , hr edu cess, edu cess, cst,lst.
    I am trying to the pick up fields kbetr and kwert for following conditions from konv table but there are only header level conditons.
    so How can i Proceed for this?
    For Purchase order script i have used standard Program SAPFM06P.But this a subroutine Pool Program.

    hi
    Write a Sub-routine in the form, where u can call all the pricing procedures.
    write this in the form
    /:           PERFORM TAX_AMT IN PROGRAM ZMM_REP_POTAX
    /:           USING &EKPO-NETWR& .
    /:           CHANGING *xxx-xxx&
    write a sub-routine  in abap editor , calling the program name and calculating pricing procedures
    regards
    sailendra kolakaluri

  • How to update the z-condition type in pricing procedure in a quote

    Hi Gurus,
    I need your help to solve my issue.
    I have created a RFC which will trigger any time there is a CRM Quote/ CRM Order create or change occurs. IN response of the RFC i will get the rate and rate type for the line items .
    When the service  returns with rate value the SAP system will insert this value by inserting z-condition type  in to the pricing structure. The normal pricing function module will then carry the process forward.
    Todo this ,Can i code the RFC call in Order_save badi ,but where can i get the pricing sturcure  data to update the returned rate values in the pricing.
    and also one more thing ,In ecc  I am using the CUCB_GET_CONFIGURATION to get product configurations. for the same which FM can i use in CRM.
    Please reply me ASAP.

    hei,
    you can use field KOMP-KZWI1 - KZWI6 to store your condition type. then it can be used for analysis in SIS.
    if you want to put more than one condition type to field KOMP-KZWI1, go to V/08 (pricing Procedure), put "1" in condition subtotal.
    Best Regard,
    Hendry

  • How to hide a condition type in pricing procedure

    Hi all,
    Please tell me how to hide a condition type in pricing procedure.
    This is urgent.
    Thanks in advance.

    Hi ,
    If it is very Urjent,,,,,,,,,,,,Better to Contact with ABAP.
    Other wise,,send Very Clearly,,,,You wont to Display in PP.but if it is Satisfie you want to see in Sales order.
    Is it right,,,,,,,
    Regard
    ram

  • Tax calculation in CRM using R/3 pricing procedure

    Hello Experts
    We are using R/3 pricing procedure to calculate list prices in CRM.
    The condition record for Taxes are maintained for condition type UTXJ in SD which is calling for tax procedure TAXUSJ and condition type JR1. 
    The records are maintained in FTXP.  This is the SAP Standard way of maintaining taxes if external tax software is not used.
    We have downloaded the condition records and condition types in CRM.  The tables have all the required records downloaded from R/3.
    When creating an order in Webshop the tax is not getting calculated.
    The pricing analysis shows that the condition record for UTXJ condtion type is met, but it is not showing the tax maintained for condition type JR1. 
    Have we missed any settings here? 
    If we are using R/3 billling does the TTE needs to be activated for calculating taxes in the webshop?
    If TTE needed to be used for calculating taxes, what are the settings needed to be configured?
    Thanks in advance for the valuable advice.
    Sastri

    Hi Sastri,
    I am facing this problem with TAX Condition Records: Pricing error: Mandatory condition MWST is missing. I am using a R/3 pricing procedure correctly downloaded to CRM.
    You say that you have downloaded the condition records and condition types in CRM. SAP Library says 'Prerrequisites: You have downloaded the tax condition records from SAP ECC'.
    I don't know If my problem is caused because I haven't downloaded any Tax Condition Records. The fact is that I cannot determine which one is the Condition Object to download in R3AS.
    I would really appreciate if you or anyone could tell me which object you did use.
    thanks in advance,
    Pablo
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 12:30 PM
    Edited by: Pablo Rodríguez Mateos on Sep 30, 2009 8:59 PM
    Solved!

  • Mark Up Price in the Pricing Procedure

    Hi
    I want to add 45 % of my Moving avg price  automatically , when i select my pricing procedure.Say if the price is 100 $, i want to select the pricing condition and expecting the system to assign 145 % automatically.How to do in the Pricing Procedure ?
    Thanks
    Nick

    One simple way would be to create a pricing condition called surcharge (type discount and surcharge) and maintain it as 45% in the condition record.
    This will automatically add 45% to the MAP which is picked up in the STO.
    Lakshman

  • Pricing Procedure in Sales Order

    Hi everyone,
    I realize this question has been posted a couple of times before but I am posting the question really after doing all my research and trying all my options.
    Order Type: ZOR has Doc. Pricing Proc: A while Billing Type: ZF2 has Doc. Pricing Proc.: Z. Cust Pricing Proc is 1 in all cases. In Pricing Proc (PP) determinations I have
    Sales Area + A (Doc. Pricing Proc) + 1 (Cust Pricing Proc) = ZRVA01
    Sales Area + Z (Doc. Pricing Proc) + 1 (Cust Pricing Proc) = ZRVZ01
    Now when I create my order ZOR from scratch, the PP is ZRVA01 but when I create ZOR w.r.t a ZF2, the PP determined is ZRVZ01. Whereas I want it to be ZRVA01 (based on Doc. Pricing Proc of ZOR). Is this possible? I doubt if this has anything to do with copy controls.
    Any help is appreciated.

    Hi
    If i have understood your requirement correctly now
    You are creating sales order ZOR with mandatory reference of billing type ZF2
    Your billing type or billing doc has already a pricing procedure of Z RVZ 01
    But now your sales order is also picking Z RVZ 01which you dont want
    You want your sales order to have PP of ZRVA01 and you have done necessary settings in OVKK and still it is not getting picked
    If this is the issue
    I feel because of two reasons your requirement is not possible
    1.your sales order is created with mandatory reference to billing doc and hence the price of billing doc is getting copied in sales order
    2.Pricing type is mainly for sales order to billing and not in the reverse like your scenario that is billing to sales
    That is why pricing type B is not working for you
    Others elite members correct me if i am wrong
    For your requirement i think you need to develop a new routine or program thro ABAP so that when you create a sales order referring billing doc the PP is not getting copied and to be determined new
    Regards
    Raja

  • Pricing routine 901 in the pricing procedure

    Can you tell me in detail (step by step) How to write pricing routine 901 in the pricing procedure?
    I know ABAP coding. I am new to SD (pricing).
    The only thing I know is the VOFM 901 Pricing Routine development is in ABAP program RV64A901.
    Purpose : Pricing Routine for calculating the price difference due to increase or decrease in the copal contract price from the copal actual price
    Description :
    Routine 901 : Copal Difference Calculation
    The formula to be used is : Copal Adjustment = ( Copal Contract Price + Copal Actual Price ) x Amount of Copal / 1000
    Where
    Copal Contract price is the condition type Y001 from the pricing procedure Z00003.
    Copal Actual price is the condition type Y002 from the pricing procedure Z00003.
    Amount of Copal is the condition type Y005 from the pricing procedure Z00003.
    Copal Adjustment is the condition type Y003 from the pricing procedure Z00003.

    Hi,
    Go to the transaction VOFM.
    In the menu..Choose...Formulas -> Condition value
    At the of the table ..Enter 901 and give the description..
    Then select that row and press source text button or F5.
    It will ask for the access key...
    Get the access key for the corresponding object
    R3TR PROG RV64A901
    Then in the code..
    READ TABLE XKOMV INTO LWA_Y001 WITH KEY KSCHL = 'Y001'
                                                      KPOSN = KOMP-POSNR.
    READ TABLE XKOMV INTO LWA_Y002 WITH KEY KSCHL = 'Y002'
                                                      KPOSN = KOMP-POSNR.
    READ TABLE XKOMV INTO LWA_Y005 WITH KEY KSCHL = 'Y005'
                                                      KPOSN = KOMP-POSNR.
    Sum up the values in LWA_Y001, LWA_Y002 & LWA_Y005
    And then move it to XKWERT
    Thanks,
    Naren

  • Calculation schema under pricing procedure

    in pricing procedure under calculation schema what is <b>Condition formula for alternative calculation type</b> and <b>Alternative formula for condition base value</b>
    what is the use of these functions?

    in this field u can creat ur own formuls to calculat base price or condition type value
    this are called routine.
    eg if u want to calculate the cond value on some logic the u can write ur logic in this routine and change the valuer of ur base price or Condution type
    simple eq will be rounding up the values of condition type 17 is the routien u can use
    hope this helps
    Reward if useful

Maybe you are looking for

  • How can I reset the settings for my Ipod Video on the Ipod source list.

    I accidentally choose the 3rd option (do not update video) on the Ipod option button >>> video <<< and for that reason I can't download or play video. How can I reset the setting in order for me to enable to update my Ipod for the videos manualy. I o

  • Getting started with Flex Builder, BlazeDS and Eclipse

    Hi, I'm a java developer looking at RIA for the first time. I'm really excited about BlazeDS and object remoting, but I can't get a working dev environment together. I'm assuming I should use Flex Builder for the client code, Eclipse Europa for the j

  • Posting with zero balance

    Hi, Can i create a line item in F02 with foriegn currency amount as Zero and local currency amount with some values? Because last time when i tried i can do but nw cannot do since the system is deriving the foriegn amount from local amount.So i want

  • Report designer - Saving to portal

    In report designer, how to I save a view to portal? Does the save to ROLE option save to a portal role?

  • LIS - Return is not Updating

    Dear Gurus, I have configure LIS, where maintain all the combination with 1 and 2. At the time of return system cant reduce the sales value in the report, it will remain unchanged, cant show the data in report MC+I. please suggest what factor I am mi