Need API for getting List price and unit price before Order entry

Hello,
I have requirement of provide unit & list price before order entry (Oracle Pricing and availability form provide the same).
Please suggest any API for the same.
Thanks
Akil.

Hi,
Thanks luko,
I got API QP_PREQ_PUB.PRICE_REQUEST, and its return output as expected,
Just have confusion that how many qualifiers we have to send
Here is my sample code
OR REPLACE PROCEDURE xx_web_get_price (
IN     NUMBER,
IN     NUMBER,
IN     NUMBER,
IN     NUMBER,
IN     VARCHAR2,
IN     VARCHAR2,
IN     VARCHAR2,
IN     NUMBER,
OUT NUMBER,
OUT NUMBER,
OUT VARCHAR2,
OUT VARCHAR2)
QP_PREQ_GRP.LINE_TBL_TYPE;
QP_PREQ_GRP.QUAL_TBL_TYPE;
QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
QP_PREQ_GRP.CONTROL_RECORD_TYPE;
QP_PREQ_GRP.LINE_TBL_TYPE;
QP_PREQ_GRP.QUAL_TBL_TYPE;
QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
VARCHAR2 (240);
VARCHAR2 (240);
QP_PREQ_GRP.QUAL_REC_TYPE;
QP_PREQ_GRP.LINE_ATTR_REC_TYPE;
QP_PREQ_GRP.LINE_REC_TYPE;
QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
QP_PREQ_GRP.RELATED_LINES_REC_TYPE;
QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
INTEGER;
BINARY_INTEGER;
VARCHAR2 (240);
VARCHAR2 (60);
oe_debug_pub.debug_on;
oe_debug_pub.initialize;
:= OE_DEBUG_PUB.Set_Debug_Mode ('FILE');
oe_Debug_pub.setdebuglevel (5);
('File : ' || l_file_val);
QP_Attr_Mapping_PUB.
(p_request_type_code           => 'ONT',
=> 'L',
=> l_pricing_contexts_Tbl,
=> l_qualifier_Contexts_Tbl);
:= 1;
---- Control Record
.pricing_event := 'LINE';                           -- 'LINE';
.calculate_flag := 'Y';    --QP_PREQ_GRP.G_SEARCH_N_CALCULATE;
.simulation_flag := 'N';
.source_order_amount_flag := 'Y';
.rounding_flag := 'Q';
.manual_discount_flag := 'Y';
.request_type_code := 'ONT';
.TEMP_TABLE_INSERT_FLAG := 'Y';
---- Line Records ---------
.request_type_code := 'ONT';
.line_id := 2125125; -- Order Line Id. This can be any thing for this script
.line_Index := '1';                           -- Request Line Index
.line_type_code := 'LINE';           -- LINE or ORDER(Summary Line)
.pricing_effective_date := SYSDATE;    -- Pricing as of what date ?
.active_date_first := SYSDATE;  -- Can be Ordered Date or Ship Date
.active_date_second := SYSDATE; -- Can be Ordered Date or Ship Date
.active_date_first_type := 'NO TYPE';                   -- ORD/SHIP
.active_date_second_type := 'NO TYPE';                  -- ORD/SHIP
.line_quantity := 1;                            -- Ordered Quantity
.line_uom_code := p_uom; --'Ea';                         -- Ordered UOM Code
.currency_code := p_currency_code; -- 'USD';                           -- Currency Code
.price_flag := 'Y'; -- Price Flag can have 'Y' , 'N'(No pricing) , 'P'(Phase)
(1) := line_rec;
------ Line Attribute Record
.LINE_INDEX := 1;
.PRICING_CONTEXT := 'ITEM';                               
.PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE3';
.PRICING_ATTR_VALUE_FROM := 'ALL';
.VALIDATED_FLAG := 'N';
(1) := line_attr_rec;
.LINE_INDEX := 1;
.PRICING_CONTEXT := 'ITEM';                                 --
.PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE1';
.PRICING_ATTR_VALUE_FROM := p_item_id;
.VALIDATED_FLAG := 'N';
(2) := line_attr_rec;
.LINE_INDEX := 1;
.PRICING_CONTEXT := 'ITEM';                              
.PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE2';
.PRICING_ATTR_VALUE_FROM := p_category_id;
.VALIDATED_FLAG := 'N';
(3) := line_attr_rec;
------ Qualifier Attribute Record
.LINE_INDEX := 1; -- Attributes for the above line. Attributes are attached with the line index
.QUALIFIER_CONTEXT := 'MODLIST';
.QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE4';
.QUALIFIER_ATTR_VALUE_FROM := p_price_list_id;
.COMPARISON_OPERATOR_CODE := '=';
.VALIDATED_FLAG := 'Y';
(1) := qual_rec;
.LINE_INDEX := 1;
.QUALIFIER_CONTEXT := 'CUSTOMER';
.QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE2';
.QUALIFIER_ATTR_VALUE_FROM := p_customer_account_id;
.COMPARISON_OPERATOR_CODE := '=';
.VALIDATED_FLAG := 'Y';
(2) := qual_rec;
.LINE_INDEX := 1;
.QUALIFIER_CONTEXT := 'CUSTOMER';
.QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE40';
.QUALIFIER_ATTR_VALUE_FROM := p_customer_category; --'INDUSTRIAL';  
.COMPARISON_OPERATOR_CODE := '=';
.VALIDATED_FLAG := 'Y';
(3) := qual_rec;
QP_PREQ_PUB.PRICE_REQUEST (p_line_tbl,
-- Return Status Information ..
:= x_return_status_text;
:= x_return_status;
:= x_line_tbl.FIRST;
IF I IS NOT NULL
THEN
:= x_line_tbl (I).unit_price;
:= x_line_tbl (I).adjusted_unit_price;
END IF;
xx_web_get_price;                                     
Regards,
akil.

Similar Messages

  • Find out the Selling Price and Unit Price.

    Hi All,
    Am trying to get the Selling and Unit Price Before an Order Creation and Quote , from the API of " QP_PREQ_PUB.PRICE_REQUEST " ,. based on Item ID , Quantity and two Modifiesrs(Price List ID and Order Type ID).
    i can get Selling Price and Unit from Temp table " qp_preq_lines_tmp ". after execution of Above API .
    but I am getting Unit Price correctly and about Selling Price, its dispaly the Priec as same as Unit Price only .
    I Dont' know what step i missed .
    Have anyone developed similar API for getting the Selling Price and Unit Price for an Item ?.
    Any suggestions are appreciated.
    Regards,
    Shan

    Hi Shan,
    I saw your posting on Oracle forum that is why I am sending this email to you.
    I have been using QP_PREQ_PUB.PRICE_REQUEST to pass item to get item list price thru Oracle Price Engine. I get Item list price without any issues the only thing I am stuck is when that item has multiple modifiers then item price I get is without applying modifiers.
    My case: When Item KD653 3/3MAT has 'X' price list and price of that item is set to 600.00. I have a modifier defined and that includes/qualifies above item for 10% discount. So when I pass my pameters like inv_item_id, list_header_id etc I get 600.00 not 540.00. So I am passing two lines one for regular item list price (600.00) and second for modifier that I have created for this item.
    Result: I get 600.00 Item Price but I don't get modified (10%) price applied to unit price. Also it doesn't recognize my list_header_id that I am passing for my modifier.
    I may be missing something to trigger the modifier part. If you got case details then that will be great.
    Your help will be highly appreciated in this case.
    Regards,
    Prakash

  • How to get the amout(menge),unit price(netpr) and sum of  consignment PO

    hi expert:
          Because there are no  netpr and netwr of consignment PO in EKPO table, i want to know that how i can get the amout(menge),unit price(netpr) and sum(netwr)  of the material in this consignment PO between a definite time.
          would you like to give me some code?thanks a lot.

    Hi
    Net price for the consignment process is saved in info-records. So you can get the netpr for the material in EINA & EINE tables Or other tables related to infor-records.
    Thanks & Regards
    Kapil Nanda

  • Need API for EAM Active Association - Asset number and Asset Group

    Hi
    I am working in R12 and need api for EAM Active Association - Asset number and Asset Group to insert the new records.
    If any one is aware please let me know API with sample script.
    Regards
    Suresh P

    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • Query for Difference in LPP of SO and Unit Price of PO

    Dear Experts,
    I  have the following query which gives me the link between SO and PO.
    I have the Last purchase price from SO also. Below is the query
    SELECT T0.[DocEntry],T0.[DocNum] as 'SONumber',T1.[GrossBuyPr] as 'Last Purchase Price',T1.[PoTrgNum] as 'PO Number',
    T2.[firstName] FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OHEM T2 ON T0.OwnerCode =
    T2.empID WHERE T0.[DocDate] >=[%0] AND T0.[DocDate] <=[%1]
    What I want is the Unit price of the PO to appear and also difference in  value of LPP of SO and Unit Price of PO should come in separate column.
    Is it possible to get Please let me know about it
    Thanks&Regards
    Darshan Desai

    Hi,
    Try this:
    SELECT T0.[DocEntry], T0.[DocNum], T1.[GrossBuyPr], T2.[DocNum], T3.[Price],T1.[GrossBuyPr] - T3.[Price] FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry left join OPOR T2 on  T2.[DocNum]  =  T1.[PoTrgNum] INNER JOIN POR1 T3 ON T2.DocEntry = T3.DocEntry WHERE T1.[ItemCode]  =  T3.[ItemCode] and  T0.[DocDate] between [%0] and [%1]
    Thanks & Regards,
    Nagarajan

  • API for getting diagnotic server info

    Is there an API for getting diagnostic information about the server (memory usage, etc.). We'd like to write a program to monitor the server.

    I am trying to do something similar my call to Session.getSession generates
    the following exception:
    com.iplanet.portalserver.session.SessionException: Can't find resource for
    base name iwtNaming, locale en_US
    Can you help?
    Thanks?
    "Marshall Levin" <[email protected]> wrote in message
    news:9ljs3s$[email protected]..
    Hi,
    I have a JSP running on the same web server as the portal server but not
    running within the portal desktop (it is a stand-alone JSP).
    I have successfully gotten the user's Profile object via the Sessionobject
    and I can get the Hashmap of attributes.
    What I'm trying to get now is the user's domain and role -- is there anyway
    I can get this? I don't see these in the list of attributes. Is there an
    API to find this out? Any suggestions on how I can obtain this info
    programmatically?
    Thanks

  • How to get total numbers and total price in query reports

    Hi,
    how to get total numbers and total price in query reports.for example:
    particular item is issued 3 times a week...I need total quantity of item issued
    my query...
    SELECT T0.[DocNum], T1.[ItemCode], T1.[Quantity], T1.[Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'

    Hi,
    Try this:
    SELECT T1.[ItemCode], SUM (T1.[Quantity]) as [Total Quantity], SUM (T1.[Quantity] * T1.[Price]) as [Total Price] FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode]  Like '%%[%1]%%'  and  T1.[U_WOType]='[%0]'
    Group By T1.[ItemCode]
    Beni.

  • R12: Disable Field Quantity and Unit Price in Line Item (AR)

    Hello,
    Is there a setup in Oracle Receivables - Transactions where I can disable the field "Quantity" and "Unit Price" on the form for line item?
    I don't have Order Management nor Inventory setup in this environment.
    Note: In AP invoices, these field are disabled.
    vik

    Hello.
    I don't think that is possible because the system uses those fields to calculate the Amount field, which cannot be filled in directly.
    Octavio

  • Need advice for setup of AD and file server for small business with 2 locations

    Hi,Let me begin by saying I'm not sure if this was right place to post this. I could have just as easily posted this in 4 other categories but I think we need virtualization to get the DR and HA that I'm looking for. Allow me to provide some background... Our company has two locations. For simplicity sake I'll refer to them as our Main site and Branch site.Main Site Facts:Considered corporate HQ.Has primary and secondary AD controller (two physical servers - Server 2003), as well as our ERP system (green screen), which is on a separate host. Primary AD server is also our network file server.Backups are written to tape and taken off-site. (I'd love to ditch tape if possible.)Has 22 PC's (includes 5 laptops) and about 7 networked printers.Has a 3 Mb T1 and a 50 Mb cable connection.Branch Site Facts:Has 6 PC's (includes 1 laptop) and 2...
    This topic first appeared in the Spiceworks Community

    Hi,Let me begin by saying I'm not sure if this was right place to post this. I could have just as easily posted this in 4 other categories but I think we need virtualization to get the DR and HA that I'm looking for. Allow me to provide some background... Our company has two locations. For simplicity sake I'll refer to them as our Main site and Branch site.Main Site Facts:Considered corporate HQ.Has primary and secondary AD controller (two physical servers - Server 2003), as well as our ERP system (green screen), which is on a separate host. Primary AD server is also our network file server.Backups are written to tape and taken off-site. (I'd love to ditch tape if possible.)Has 22 PC's (includes 5 laptops) and about 7 networked printers.Has a 3 Mb T1 and a 50 Mb cable connection.Branch Site Facts:Has 6 PC's (includes 1 laptop) and 2...
    This topic first appeared in the Spiceworks Community

  • CS11 &CS12- Moving Price and standard price not appering for items

    Dear Gurus,
    CS11 &CS12- Moving Price and standard price not appering for items.
    is it a bug for my system alone\.
    or a bug overall in SAP itself.
    Pls advise.
    Siva

    Dear Siva,
    Its the standard functionality of SAP.
    You will not get any cost related data in the reports like CS11,CS12,CS13.
    You can try CK13N(which shows the components of the BOM along with the cost) or else CK86_99.
    At Functional module level execute this one CS_BOM_EXPL_MAT_V2 and ensure X is included for the
    input field MBWLS.
    And also check these SAP notes 177006 and 686509.
    Check and revert back.
    Regards
    Mangalraj.S

  • Report for MM for seeing the material old price and new price

    Hello friends,
    For the ROH material we are maintained the Moving average price. So that material is calculated the average price of that material,
    Know My clint wants old price of that  material i.e. one year before And
    he wants comparison report for old price and new price of the all raw materials
    is there any reports are there  such kind.
    Regards
    Pramod

    Hi Pramod,
    If you want to view the old and new prices on a frequent basis, u can go for an
    ABAP query (SQVI) with the base table as MBEW.
    Cheers
    Arun.

  • How to create a special view for sharepoint list A and deploy this view to specific user personal view?

    How to create a public view for sharepoint list A and deploy this view to specific user personal view? Is that possible OOTB?

    Views cannot be exported or moved. Can you elaborate your requirement?
    --Cheers

  • Query for getting all function and procedure inside the packages

    hi All
    Please provide me Query for getting all function and procedure inside the packages
    thanks

    As Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
    If you are looking for the packaged procedures and functions source then use user_source data dictionary
    select a.object_name,a.procedure_name from user_procedures a,
                  user_objects b
    where a.object_name is not null
    and a.procedure_name is not null
    and b.object_type='PACKAGE'        
    and a.object_name=b.object_name

  • Is there any Vi for getting the CPU and Memory usage of the Local as well as Remote System

    Is there any Vi for getting the CPU and Memory usage of the Local as well as Remote System

    Find the attachment(LV8.5) for local machines. 
    You can use shared variables to monitor the remote machine's usage.
    Attachments:
    Task Monitor 85.vi ‏25 KB

  • API for Task list create/change

    Hi,
    Is there any API for task list create/change (Transaction IA05/06)?
    Thanks
    Sanket Sethi

    That would be very useful to know for me too. So has anybody an idea?
    Greetings Philip

Maybe you are looking for

  • Major crashing and performance problems, apparently since 10.6.1

    Hi there Since I updated to 10.6.1, I've had significant problems with my black MacBook, Core 2 Duo 2.16Ghz. I get the spinning beach ball holding me up all the time (twice since I've started typing this message), the fan goes crazy, applications jus

  • Apple remote no longer works under 10.6.2 on Mac Mini

    Have just updated my Mac Mini to 10.6.2, only to find that it no longer recognises the white Apple remote at all. I have tried both a paired remote and an unpaired remote. I have even tried pairing the unpaired remote. Nothing works. The Mini simply

  • No. ranges for Internal order budget

    When i am changing the budget amount in Ko22 It is asking maintain interval 04 no. ranges for budgeting and planning pls suggest what is the logic behind why it is asking 04 and where i have to configure Regards Eswar

  • JNLP Security Question

    Hi, I am trying to implement some JNLP security in my application. I want my application to have read,write permissions to a specific directory under user home.The tag that I used in the JNLP file is as below, <security>               <j2ee-applicati

  • Do we have function for automatic post GI when post GR

    Dear Guru, Do we have standard function for automatic post GI when we post GR or Automatic post GR when we post GI? We have this requirement but now we don't have a solution except create a new customize program. Please kindly advice. Thank you very