Create a reciprocal relationship on customers from order import

We are working on importing customers from an order. When we import two accounts it is able to create the relationship but it doesn't make it reciprocal. We tried setting the checkbox "Allow Reciprocal Relationship" in AR to see if that would do anything but it didn't work. I'm hoping it's not too much work just to get a little box checked...

Hi,
Following is the way Reciprocal relationship can be established.
lets say we want to form a relationship with C1 & C2 and both are not existing in System.
Step 1: First Import C1 customer using Customer Interface
Step 2. Import C2 Customer using Customer Interface. While importing Customer C2 populate ORIG_SYSTEM_PARENT_REF column with ORIG_SYTEM_REF of Customer C1.
If Create Reciprocal Customer is checked (yes) the system will create reciprocal relation between above customer.
HTH

Similar Messages

  • Installed Base Instance Creation from Order Import

    Is it possible for the Order Import to create the product instances when it imports an Sales Order?
    If it is; what should be done to achieve it?
    Thanks.

    I am sorry this issue did not resolved. Once I get answer for this will certainly post and share with all.

  • Help Needed with creting down payment request without tax from order

    Hello,
    We are trigerring a down payment request from sales order. There is no tax to be collected on down payment. When the billing document is created SAP copied over tax elements from order and posts a relevant tax code on the down payment billing document. How can we force a zero tax code on the DPR billing document?

    Hello Pankaj,
    I think you don´t want to determine any tax condition?
    Try to assign requirement 84 to your tax condition(-s) in the pricing procedure. This requirement helped me not to determine
    other condition types in the down payment billing document.
    If you just want to determine a different tax code the solution could be to define a new table (key kombination) in the access sequence assigned to your tax conditions. That new table could include the billing type in additional to other criteria and can help you to determine a different tax code with otherwise identical parameters.
    Hope this helps.
    Regards
    TDI

  • Create/ run MDX script on Essbase from FDM

    Hi there,
    Can anybody help me by creating and executing an MDX query from an import script in FDM?
    I've managed to create and run a report script on Essbase but the larger the cube the slower the report script.
    Therefore i was thinking about MDX.
    But before trying for days myself i was hoping someone might have experience in this and is willing to share.
    Thanks in advance,
    Marc

    Hmm, why does the word "Platypus" keep running through my head?
    Bob, I'm trying to do the same thing (create a .app to launch a unix application) and I also ran into the aesthetic issue of the spinning gear in the menu bar for the entire time the app was running. Since the unix app I'm running is a Usenet news reader, that spinning gear would be a long-term distraction. I'll check out Platypus, but I and probably the others in this thread are trying to learn how to do this stuff ourselves to further our OS X knowledge, not merely to solve this one problem.
    So with that being said, does anyone know if there's a way to create an Automator "Run Shell Script" action with that spinning gear in the menu bar suppressed? You know, besides using Platypus.

  • Blocking Customers From Placing Orders

    Hi,
    ould like to block certain customers from placing orders. How can I do this?
    Thanks,
    Mounika.

    Hi,
    You can apply the block based on sales areas using VD05, but you would have to block the customer in the all areas that the order could be created against. If you want to block the customer globally, use XD02 - Extras - Blocking Dtat. There you will see:
    Sales order block
    -All sales areas
    -Selected sales area
    Delivery block
    -All sales areas
    -Selected sales area
    Billing block
    -All sales areas
    -Selected sales area
    Block sales support
    You can also block deliveries and billing at this level.
    You can also try blocks in credit management and accounting using FD05 and FD32.
    You can block orders from being created and shipped in Credit Management with a whole host of settings here including blocked or various risk categories
    Reward points if found helpfull...
    Cheers,
    Siva.

  • Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in oracle and yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Hi All, We are in to Release 11.5.10.2.There is a specific requirement to Prevent users from creating Manual Sales Orders in Oracle and  yet users should be able to book the Sales Orders Imported from CRM system into Orcale.Please advise.

    Thanks for your advise.
    However, I missed to mention that we have two set of users  One is for Finished Goods and another for Spares.
    Only Spares users need to be prevented from creating Direct/Manual Sales Orders in Oracle.
    As you suggested, if this will be done at Form level, that may Disallow FG users also to create Manula Sales Orders which should not be the case.
    Further, I tried to test one scenario through Processing Constraints but it did not work.
    Application
    OM
    Validation Type
    Entity
    Temp
    Short Name
    TBL
    Validation Semantics
    Created By
    Equal To
    User(Myself)
    Processing Cosntraint
    Application
    OM
    Entity
    Order Header
    Constraint
    Operation
    User Action
    Create
    Not Allowed
    Conditions
    Group
    Scope
    Validation Entity
    Record Set
    Validation Template
    101
    Any
    Order Header
    Order
    Above Created
    Please advise.

  • Creating new DMS info record directly from purchase order transactions

    Hello Everybody,
    does anyone knows of a way to make it possible for users to Create New DMS info record directly from the purchase order transactions ?
    e.g:
    in ME22N there is a button of "Documents" for an item level in the order, but that button only allows to link an existing info record.
    Link To a screenshot:
    http://img263.imageshack.us/i/me22n1.jpg/
    Regards,
    Yossi Fridman.

    hi
    This query has already been addressed in the following Forum by Christoph Hopf..
    pls chk link below.
    Create DIR through P.O and Sales order screen
    Thanks
    john
    Edited by: johnpp on Feb 15, 2011 11:54 AM
    Edited by: johnpp on Feb 15, 2011 11:57 AM

  • Can't create iTunes acc! - Anyone else from Puerto Rico?- Cust Serv $uck$!

    I've been trying to create an account for iTunes, mostly to download the album artwork to my library. But I haven't been able because iTunes billing system will not recognize my credit card, giving me different error messages such as "information does not match with bank's records", "please give use a US issued credit card", "fields were omitted", etc. I've been trying to get some assistance from the customer service representatives but all they do is give me some canned messages and basically say that Puerto Rico is not a "state" of the USA and that we, Puerto Ricans, cannot download music from iTunes, even though I know a lot of people in Puerto Rico that can, with credit cards issued locally.
    If you are having the same problems, please post here to show them that it's not an isolated situation, even if you are not from Puerto Rico.
    This is my first post, so if I'm breaking any rules or anything similar, I would appreciate that you contact me so I get the chance to amend things.
    Here's a copy of all e-mail conversations so far with the customer service representatives, which proves that they aren't paying attention to the customer.
    On 1/8/07, [email protected] wrote:
    Thank you for taking some time to review this situation and trying to work with this. Still, the following is happening:
    1) I have been trying to register my credit card for about one week by now, therefore, I doubt that every time I've tried to register the bank servers were busy.
    2) I contacted my bank regarding this situation with my credit card and they said that the card is fine.
    3) I contacted my bank regarding this other situation with my credit card and iTunes to confirm that the information I have and they have is the same, and it is.
    Can't it be Apple's billing system?
    Why is it up to us, the customer, to go through all this problems without any assistance from some customer representative, verifying why the system says the information is not accurate, contacting my bank to verify if everything is okay, verifying if Apple's servers have been busy, etc.
    Come on, man, there's got to be a supervisor, manager or someone able to help me with this.
    So far I'm really sorry of deciding for an iPod instead of a Zune or some other music player.
    PLEASE READ ALL OF THIS THROUGHLY, you'll see that most of the answers you have given me have already been given or I had just given information regarding it.
    David
    On 1/8/07, [email protected] <[email protected] wrote:
    Dear David,
    I'm sorry that you haven't been able to make an account on the iTunes Store. After reviewing with our technicians I can confirm that residents of Puerto Rico are able to use the US iTunes store.
    If you are still unable to create an account, it is possible that the iTunes Store has been unable to verify an authorization from your financial institution. There are several possible reasons for this:
    1) Your financial institution's servers have been busy. Consider trying again at another time.
    2) There is an issue with your card. Consider using a different card or contacting your financial institution to advise them of the problem.
    3) Your billing name or address does not match the address listed on your credit card statement. Any discrepancy in punctuation, abbreviation, or capitalization can cause errors, which might prevent you from purchasing from the iTunes Store. If you moved, or if your zip code changed recently, ask your financial institution to make sure their records are up to date and match exactly what you are entering as your billing information.
    Please follow these steps to confirm or update your account information:
    1) Go to Apple's My Info page: <a class="jive-link-external-small" href="http://">http://myinfo.apple.com
    2) Choose your country and preferred language from the pop-up menus.
    3) Enter your iTunes Store account name and password and then click Log In (or Continue).
    4) At the My Info Welcome page, click Address Book on the left. Confirm or edit your information.
    5) Click Phone Numbers on the left. Make sure the area codes and phone numbers are entered correctly in their respective fields.
    6) Click Save Changes.
    Try placing an order on the iTunes Store. If the iTunes Store still cannot obtain an authorization for your card, you won't be able to make purchases at the iTunes Store with that particular card. You can use a different card or one of the following payment methods:
    - PayPal
    - iTunes Gift Certificates
    - iTunes Gift Cards
    You can purchase iTunes Gift Certificates here:
    Apple Store locations
    http://www.apple.com/retail
    Apple Store online
    http://store.apple.com
    iTunes Gift Cards are available in $15, $25, and $50 denominations at retailers across the United States, including these:
    - 7-11
    - Amazon.com
    - Apple Store locations (http://www.apple.com/retail)
    - Apple Store online at http://store.apple.com
    - Best Buy
    - Circuit City
    - CompUSA
    - Kroger Stores
    - Radio Shack
    - Walgreens
    Thank you for your interest in the iTunes Store. I hope this information has been helpful.
    Sincerely,
    Robert
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    What's up with you people? Stop using the same canned messages and read the whole conversation, PLEASE!
    That's almost the same answer Vanessa gave to my initial e-mail. Then, Andres apologized because Apple does consider Puerto Rico part of the United States and even includes Puerto Rico as a "state" in the fields of registration for MyInfo and iTunes.
    Puerto Rico is a territory of the USA and we, Puertorricans, are considered citizens and residents of the USA, so far that the same rates apply to the USPS Post Office, that we don't need to get through customs in domestic flights, that we don't needed a passport to get in and out of the USA until the new Patriot Act provision that started now on January 1st, 2007.
    Will someone really get to this and answer all my questions in their rightful way?
    So far the service seemed to be good because you were answering in a timely manner, but I just figured out that all you are doing is using canned messages and/or doing some "copy/paste" to your "concerned and dear customers".
    PLEASE get through with this and get me a complete answer.
    No thanks in advance, until I get what I need, especially after spending so much money on an iPod and so much time through your forums, etc.
    Please see highlighted fields for important details and contradictions regarding the information previously provided.
    David
    On 1/8/07, iTunes Store <[email protected] wrote:
    Dear David,
    Thank you for your interest in the iTunes Store. You may browse any country's iTunes Store, preview audio and video clips, and even download podcasts. However, residents of Puerto Rico may not purchase from the ITunes Store at this time.
    Items in any particular country's iTunes Store are available only for distribution to customers who reside in that country and who use a credit card, debit card, iTunes Gift Certificate, or iTunes Gift Card issued in that country.
    For example, the U.S. iTunes Store can only sell to U.S. residents using credit cards or debit cards that were issued in the U.S., or iTunes Gift Certificates or Gift Cards purchased in the U.S.
    Although I cannot comment on future expansion plans of the iTunes Store, please rest assured that Apple is committed to bringing the iTunes Store to people around the world.
    For a list of countries in which the iTunes Store is available, please select dropdown "My Store" menu at the bottom of the iTunes Store homepage.
    Sincerely,
    John
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww
    Thank you very much for going further in your review and reply to my initial concern.
    I was able to create an account through the MyInfo page. I was able to log in to iTunes, but it then asks me for my billing information. I'm trying to register two credit cards I have from a local bank. I was not able to register any of these. The system keeps telling me that the bank information is not the same as the one I entered. I tried several variations and none was accepted. I'm trying this with my bank statement on hand to match the information perfectly and I even called the bank to confirm if I have all the correct information, as in their systems, which they confirmed.
    It appears that iTunes will not accept my credit cards in any way, even with my bank assisting me with the different variation that iTunes may be asking for.
    Is there any way you may help me to register my credit card to my account? Because, after all, having an account created through the MyInfo page did little since I still can't download album artwork nor purchase music.
    On the other side, I tried using my Paypal account which is Verified and with a Confirmed address, but iTunes says that it cannot verify the account.
    It appears that iTunes has some kind of problem with accounts from Puerto Rico.
    Again, thanks in advance for your help and attention!
    David
    On 1/6/07, iTunes Store <[email protected] wrote:
    Dear David,
    Please accept my apologies for the miscommunication in our previous response. As you have confirmed, residents of Puerto Rico may create an account by choosing "PR" from the State menu on the US iTunes Store.
    If receive an error when creating an iTunes Store account, you can create an Apple ID first by visiting Apple's My Info page:
    http://myinfo.apple.com
    After creating your Apple ID, connect to the iTunes Store and sign in using your new account name and password. You may then provide billing information and begin downloading album artwork for your iTunes library.
    Please note that your billing name and address must match the address listed on your credit card statement exactly. Any discrepancy in punctuation, abbreviation, or capitalization can cause errors, which might prevent you from creating an account.
    Alternatively, you may create an account with an iTunes Gift Card purchased from a local retailer. For help creating an account in this manner, please refer to the following article:
    iTunes Store: How to redeem an iTunes Gift Card
    http://www.info.apple.com/kbnum/n301958
    I hope you find this information helpful and are able to enjoy purchasing music and videos on the iTunes Store. Apple appreciates your business.
    Sincerely,
    Andres
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    Hi!
    Thank you very much for your reply to this concern, but this answer does not convince me since the iTunes registering page adds Puerto Rico as a "state" of the USA in the drop-in box / field, plus I know a lot of people here in Puerto Rico that have an account registered in iTunes with a credit card issued by a local bank that are able to make purchases.
    My main interest in having an iTunes account is being able to download the CD’s artwork, which, apparently, can only be done if I have an account registered in iTunes. As an option, is there any way to create an account without having "purchasing" privileges for this matter?
    I am really disappointed with the service and options restricted by Apple for this matter, specially when they have so many authorized dealers and resellers in Puerto Rico, which is not a "Channel Island" but a USA territory or property, with USA citizenship, with USA residency, USA currency, with USA post office, with USA customs, with USA courts, etc. Another question, since it was not offered as an option, if I buy iTunes gift cards, which I can buy almost anywhere here on the island, can I use it for purchasing purposes or would I not have this privilege because I live here?
    I would really appreciate further evaluation of this concern because I believe that I may indeed register at iTunes and make purchases being in Puerto Rico with a credit card from a local bank since, like I explained before, I know, personally (my brother, my brothers-in-law, etc.), a lot of people here in Puerto Rico that have an account registered in iTunes with a credit card issued by a local bank that are able to make purchases.
    Thank your for your time and attention.
    David
    On 1/6/07, iTunes Store <[email protected] wrote:
    Dear David,
    I would like to apologize for the delay, and thank you for your interest in the iTunes Store.
    I understand that you are currently residing in PR, and are having difficulties creating an iTunes account. Customers in the Channel Islands may browse any country's iTunes Store, preview audio and video clips, and even download podcasts. However, they may not purchase from the iTunes Store at this time.
    Although I cannot comment on future expansion plans of the iTunes Store, you can rest assured that Apple is committed to bringing the iTunes Store to people around the world.
    Thank you for your understanding and patience David.
    Sincerely,
    Vanessa
    iTunes Store Customer Support
    <a class="jive-link-external-small" href="http://">http://www.apple.com/support/itunes/ww
    Customer First Name : David
    Customer Last Name : Umpierre
    email : [email protected]
    Web Order # :
    Support Subject : Password
    Sub Issue : Other
    iTunes Account Name: Not provided
    Platform : Windows XPSP2
    Comments:
    I have been trying to register in iTunes for three days and keep receiving error messages. I registered my account with a VISA and with a Paypal Account and after receiving a message saying that such billing services have been registered without problems, I still receive a message saying that "There were errors or omissions in the information", but there's no indicated items or highlighted items or omitted field. What could I be doing wrong? Please help!
    TrackID: 3161994
    Dell Inspiron 700m   Windows XP  

    To the previous user, thank you for anything you may do to help with this, but I understand that I clearly stated that I was not expecting help from a customer service representative but to get a number of people going to the same or a similar situation which may be later used as an example to Apple for them to work with this.
    Here's an update on what's being going on so far...
    Man, I am still NOT satisfied.
    I talked today with my bank regarding this situation and they told me that they have had several concerns with other customers about this and that they have done everything in their power before to make sure that iTunes works, accepting their credit cards, but that it's iTunes billing system the one with restrictions to accept these cards; in other words, that their cards are okay in their systems to be accepted by iTunes, but that iTunes refuse to accept them.
    I believe that either Apple is discriminating against Puerto Rican customers, Puerto Rican banks or they are just not willing to go the extra mile to solve this billing situation.
    So far it seems that you do not understand my principal need, which is downloading album artwork, not buying music.
    I just received my iPod and am hesitating to open it because of all of this.
    Again, service has been poor and attention to details worst.
    If there's nothing else you may do to help me, I would appreciate to be forwarded to a supervisor or manager or director to present them this concern.
    Thanks.
    David
    On 1/10/07, [email protected] <[email protected] wrote:
    Dear David,
    I understand that you are still unable to create an iTunes Store account. The error that you are receiving indicates that the iTunes Store is unable to verify an authorization from your bank at this time. Since the iTunes Store team has validated your information and we know that is not the problem, it appears that you won't be able to make purchases at the iTunes Store with that particular card. You can use a different card or one of the following payment methods:
    - PayPal
    - iTunes Gift Certificates
    - iTunes Gift Cards
    You can purchase iTunes Gift Certificates here:
    Apple Store locations
    <a class="jive-link-external-small" href="http://">http://www.apple.com/retail
    Apple Store online
    http://store.apple.com
    iTunes Gift Cards are available in $15, $25, and $50 denominations at retailers across the United States, including these:
    - 7-11
    - Amazon.com
    - Apple Store locations (http://www.apple.com/retail)
    - Apple Store online at http://store.apple.com
    - Best Buy
    - Circuit City
    - CompUSA
    - Kroger Stores
    - Radio Shack
    - Walgreens
    Thank you for your interest in the iTunes Store. I hope this information has been helpful.
    Sincerely,
    Robert
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    Greetings, and thank you for the help so far.
    Still, I am being unable to register my credit card. When I enter my VISA's security code (either of the two I have), which consists of three digits from the back of the card, the system gives me a message saying "Please enter a valid Security Code".
    I tried, just in case, to use a dummy security code, such as 123 or 000 or 999 and the system gives me a message saying "Credit card processing is temporary unavailable. Please try again later".
    It's funny and/or weird to me because I never get the message "Credit card processing is temporary unavailable..." when using my VISA's security code, nor I get the message "Please enter a valid Security Code" when using a dummy security code.
    What's up with that? Any further help you may provide me with this?
    Please, anyone that reads this, READ ALL THE PREVIOUS MESSAGES to understand all that we've been going through.
    David
    On 1/9/07, [email protected] < [email protected] wrote:
    Dear David,
    Thank you for the information you provided.
    I have examined your Apple ID, editing your address to the USPS standard format that iTunes requires.
    Here's how to access the iTunes Store using your Apple ID and your reset password:
    1) Make sure you're using the latest version of iTunes. It's available free of charge from the Apple website at:
    <a class="jive-link-external-small" href="http://">http://www.apple.com/itunes/download
    2) Open iTunes.
    3) From the Store menu, choose Sign In.
    4) Click the Apple radio button, enter your Apple ID, "[email protected]" and the password "apple0107", and click Sign In.
    5) You will see a dialog saying this: "This Apple ID has not yet been used with the iTunes Store. Please review your account information." Click Review and follow the onscreen instructions to sign in with the account.
    Here are a few things to keep in mind:
    - If you forget the password for your Apple ID, you can reset it via Apple's iForgot website:
    http://iforgot.apple.com
    - If you wish to change your Apple ID, visit Apple's My Info site at http://myinfo.apple.com and sign in with the current Apple ID. Note that if your Apple ID is a .Mac member name, you won't be able to change it.
    Should you continue to experience difficulty accessing or creating an iTunes Store account, please reply to this email with a detailed description of the problem as well as the exact text (if possible) of any error messages you receive.
    Sincerely,
    Robert
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    My billing address and full name (as specified by the bank in their statements and in their system) is the following:
    XXXXX
    XXXXX
    XXXXX
    TRUJILLO ALTO, PR 00976
    You have my authorization to reset my account password and modify anything needed to have my credit card registered in your system.
    Thanks!
    David
    On 1/9/07, [email protected] < [email protected] wrote:
    Dear David,
    I understand that you would like assistance in creating your iTunes Store account. If you would like, the iTunes Store team can review the information in your Apple ID to ensure that it is in the proper format and does not contain information that may cause our system to refuse to create an iTunes Store account for you. If your account contains such information, we can then edit it for you.
    For security reasons, Apple requires that you verify the billing address associated with your account " [email protected]" before making any account modifications. Please reply with your billing address and your permission to reset the account's password.
    The iTunes Store will verify your account information, reset your password, and send you an email with your new password.
    Sincerely,
    Robert
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    Dell Inspiron 700m   Windows XP  

  • The customers and orders form modules

    Please,i am new to oracle forms.I have been reading a book on forms ,but the book uses two form modules created by Oracle for demo purposes, the Customer and Orders form modules.I need to access and open these form modules from my form builder.I have not been able to figure out how to do that.Please how can i open the customers and orders module from form builder.
    I will appreciate any help.

    Assuming you have the .FMB files stored on your hard drive, you can simply double-click on them or use File -> Open in Forms Builder.

  • Create warning message at the time of order creation

    I am looking for a  solution :- "Create warning message at the time of order creation/save if a cc is assigned in the settlement rule that crosses the company code of the order or where the company code of the plant for the order is different from the company code assigned to the cc"

    The txn code : IW32 (maintenance order) , this warning message for settlement rule creation using Cost center as a settlement receiver.  If the used cost center is belongs to some other company code, said warning message should occure.
    I tried user exit, field exit, also used std message control (KO-458).  Nothing is working.

  • Problem in calling order import concurrent program from BPEL

    Hi all,
    Iam doing a sales order creation in oracle apps using Apps Adapter.
    I have successfully inserted the order into the interface tables using an Apps adapter.
    Now I need to run Order Import program from BPEL to move the data from interface tables to the base tables for which i use another Apps Adapter.
    When I invoke the OEIMP concurrent program from BPEL ,request id is returned.But the concurrent program fails showing incomplete parameters.
    But it works when I invoke it from the front end in oracle apps.
    I think the problem lies in passing the inputs to the concurrent program from the BPEL.
    Any help to solve the issue will be appreciated.
    Thanks,
    goutam

    Previously, I was passing the values to the concurrent program variables through ASSIGN component,which resulted in some namespace issues.Then I replaced it with TRANSFORM component.
    Also,First I assigned the values to the concurrent program variables as 'Vision Operations'(operating_unit), 'Online'(order_source) ,No (validate_only), No (validate_desc_flex) which are mandatory and just left non mandatory variables without assigning values.
    I changed those values as *'204','0','N','N'*. And also set non mandatory variables value as EMPTY.
    After doing all these I found the concurrent program catches all the parameter values correctly, and the records got imported from interface tables to the base tables.Thus the sales order got created successfully.
    Thanks,
    goutam

  • Sold to Party data transfer from Order to Notification

    Hi,
    According to our process, the person who reports a malfunction or requests service for customer can also generate the appropriate order. In Order Customizing, the indicator "Maintain Notification data on order header" is set, this enables system to immediately create a notification in the background when you create the order. Due to this, reference objects, dates, work center, etc are automatically copied from Order to Notifications as expected. However, Sold-to Party / Customer is not getting copied from Order to Notification.
    Following items have been configured:
    - Both order & notification have the same partner procedure
    - No user-exit is active
    - We do not copy the partner from the reference object(e.g. equipment) to the service order. We plan to enter the customer number directly in the service order (as the equipment is not going to have a customer/partner number)
    - "Copy Partner Functions to Master and Movement Data" customizing is activated for our partner procedure
    Any suggestions, which will enable copying of customer / sold-to party data from Order to notification through configuration.
    Thanks in advance. Please let me know if you need any further details.
    Regards,
    Avinash

    [OSS Note 546738|https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=546738]
    http://www.sapfans.com/forums/viewtopic.php?f=7&t=323195&start=0&st=0&sk=t&sd=a
    Please check the above links. Also make that partner function as mandatory for that notification type & then try.

  • Price from Order Line and Price from QP_PREQ_PUB.PRICE_REQUEST is different

    Hi,
    I have trouble in using QP_PREQ_PUB.PRICE_REQUEST to derive the price of an item.
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.3
    From the Pricing Request Viewer or from Order Entry Line, The price lis coming as expected, but not from QP_PREQ_PUB.PRICE_REQUEST API.
    Here are the details -
    Primary Price List - 'Primary'
    Secondary Price List - 'Secondary1' - Item Price 40 (Precedence 150)
    Secondary Price List - 'Secondary2' - Item Price 25 (Precedence 130) , Custom Qualifier Qualifier_Attribute31 = > Attribute1('Yes/No') from Item Master.
    From the application, it is giving 25. Where as using the below code it is giving 40, Can you please advise what could be the issue/fix for it?
    DECLARE
    p_line_tbl QP_PREQ_GRP.LINE_TBL_TYPE;
    p_qual_tbl QP_PREQ_GRP.QUAL_TBL_TYPE;
    p_line_attr_tbl QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
    p_LINE_DETAIL_tbl QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
    p_LINE_DETAIL_qual_tbl QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
    p_LINE_DETAIL_attr_tbl QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
    p_related_lines_tbl QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
    p_control_rec QP_PREQ_GRP.CONTROL_RECORD_TYPE;
    x_line_tbl QP_PREQ_GRP.LINE_TBL_TYPE;
    x_line_qual QP_PREQ_GRP.QUAL_TBL_TYPE;
    x_line_attr_tbl QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
    x_line_detail_tbl QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
    x_line_detail_qual_tbl QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
    x_line_detail_attr_tbl QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
    x_related_lines_tbl QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
    x_return_status VARCHAR2(240);
    x_return_status_text VARCHAR2(240);
    qual_rec QP_PREQ_GRP.QUAL_REC_TYPE;
    line_attr_rec QP_PREQ_GRP.LINE_ATTR_REC_TYPE;
    line_rec QP_PREQ_GRP.LINE_REC_TYPE;
    detail_rec QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
    ldet_rec QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
    rltd_rec QP_PREQ_GRP.RELATED_LINES_REC_TYPE;
    x_price_contexts_result_tbl QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
    x_qual_contexts_result_tbl QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
    v_line_tbl_cnt integer;
    I BINARY_INTEGER;
    l_version VARCHAR2(240);
    l_file_val VARCHAR2(60);
    L_MODIFIER VARCHAR2(4000);
    L_ADJUSTMENT_AMOUNT VARCHAR2(300);
    L_MOD_NAME VARCHAR2(240);
    l_unit_price number;
    l_selling_price number;
    BEGIN
    MO_GLOBAL.INIT('ONT');
    MO_GLOBAL.SET_POLICY_CONTEXT('S',89);
    --FND_GLOBAL.APPS_INITIALIZE(1130,21623,660);
    DBMS_OUTPUT.PUT_LINE('1');
    v_line_tbl_cnt := 1;
    ---- Control Record
    p_control_rec.pricing_event := 'BATCH';
    p_control_rec.calculate_flag := QP_PREQ_GRP.G_SEARCH_N_CALCULATE;
    p_control_rec.simulation_flag := 'Y';
    p_control_rec.source_order_amount_flag := 'Y';
    p_control_rec.PUBLIC_API_CALL_FLAG := 'N';
    p_control_rec.rounding_flag := 'Q';
    p_control_Rec.manual_discount_flag := 'N';
    --p_control_rec.MANUAL_ADJUSTMENTS_CALL_FLAG := 'Y';
    p_control_rec.request_type_code := 'ONT';
    p_control_rec.TEMP_TABLE_INSERT_FLAG := 'Y';
    DBMS_OUTPUT.PUT_LINE('2');
    line_rec.request_type_code :='ONT';
    --line_rec.PRICE_LIST_HEADER_ID := 8007;
    line_rec.line_id :=2125125; -- Order Line Id. This can be any thing for this script
    line_rec.line_Index :=1; -- Request Line Index
    line_rec.line_type_code := 'LINE'; -- LINE or ORDER(Summary Line)
    line_rec.pricing_effective_date := TRUNC(sysdate); -- Pricing as of what date ?
    line_rec.active_date_first := TRUNC(sysdate); -- Can be Ordered Date or Ship Date
    line_rec.active_date_second := TRUNC(sysdate); -- Can be Ordered Date or Ship Date
    line_rec.active_date_first_type := 'ORD'; -- ORD/SHIP
    line_rec.active_date_second_type :='SHIP'; -- ORD/SHIP
    line_rec.line_quantity := 1; -- Ordered Quantity
    line_rec.line_uom_code := 'EA'; -- Ordered UOM Code
    line_rec.currency_code := 'USD'; -- Currency Code
    line_rec.price_flag := 'Y'; -- Price Flag can have 'Y' , 'N'(No pricing) , 'P'(Phase)
    p_line_tbl(1) := line_rec;
    DBMS_OUTPUT.PUT_LINE('3');
    ---- Line Attribute Record
    line_attr_rec.LINE_INDEX := 1;
    line_attr_rec.PRICING_CONTEXT :='ITEM'; --
    line_attr_rec.PRICING_ATTRIBUTE :='PRICING_ATTRIBUTE3';
    line_attr_rec.PRICING_ATTR_VALUE_FROM :='ALL';
    line_attr_rec.VALIDATED_FLAG :='Y';
    p_line_attr_tbl(1) := line_attr_rec;
    line_attr_rec.LINE_INDEX := 1;
    line_attr_rec.PRICING_CONTEXT :='ITEM'; --
    line_attr_rec.PRICING_ATTRIBUTE :='PRICING_ATTRIBUTE1';
    --line_attr_rec.COMPARISON_OPERATOR_CODE         := 'BETWEEN';
    line_attr_rec.PRICING_ATTR_VALUE_FROM := '4466'; -- INVENTORY ITEM ID
    line_attr_rec.VALIDATED_FLAG :='Y';
    p_line_attr_tbl(2) := line_attr_rec;
    line_attr_rec.LINE_INDEX := 1;
    line_attr_rec.PRICING_CONTEXT :='ITEM'; --
    line_attr_rec.PRICING_ATTRIBUTE :='PRICING_ATTRIBUTE1';
    --line_attr_rec.COMPARISON_OPERATOR_CODE         := 'BETWEEN';
    line_attr_rec.PRICING_ATTR_VALUE_FROM := '2395'; -- INVENTORY ITEM ID
    line_attr_rec.VALIDATED_FLAG :='Y';
    p_line_attr_tbl(3) := line_attr_rec;
    line_attr_rec.LINE_INDEX := 1;
    line_attr_rec.PRICING_CONTEXT :='ITEM'; --
    line_attr_rec.PRICING_ATTRIBUTE :='PRICING_ATTRIBUTE30';
    --line_attr_rec.COMPARISON_OPERATOR_CODE         := 'BETWEEN';
    line_attr_rec.PRICING_ATTR_VALUE_FROM := 'Yes'; -- INVENTORY ITEM ID
    line_attr_rec.VALIDATED_FLAG :='Y';
    p_line_attr_tbl(3) := line_attr_rec;
    DBMS_OUTPUT.PUT_LINE('4');
    ---- Qualifier Attribute Record
    qual_rec.LINE_INDEX := 1; -- Attributes for the above line. Attributes are attached with the line index
    qual_rec.QUALIFIER_CONTEXT :='MODLIST';
    qual_rec.QUALIFIER_ATTRIBUTE :='QUALIFIER_ATTRIBUTE4';
    qual_rec.QUALIFIER_ATTR_VALUE_FROM :='8007'; -- PRICE LIST ID
    qual_rec.COMPARISON_OPERATOR_CODE := '=';
    qual_rec.VALIDATED_FLAG :='Y';
    p_qual_tbl(1) := qual_rec;
    DBMS_OUTPUT.PUT_LINE('5');
    qual_rec.line_index := 1;
    qual_rec.qualifier_context := 'ITEM';
    qual_rec.qualifier_attribute := 'QUALIFIER_ATTRIBUTE31';
    qual_rec.qualifier_attr_value_from := 'Yes';
    qual_rec.comparison_operator_code := '=';
    qual_rec.validated_flag := 'Y';
    p_qual_tbl (2) := qual_rec;
    DBMS_OUTPUT.PUT_LINE('6');
    OE_ORDER_PUB.G_LINE.inventory_item_id := 4466;
    DBMS_OUTPUT.PUT_LINE(Fnd_Profile.VALUE('QP_CUSTOM_SOURCED') );
    --QP_Attr_Mapping_PUB.Build_Contexts
    --( p_request_type_code => 'ONT',
    -- p_line_index => 1,
    -- p_pricing_type_code => 'L'
    QP_Attr_Mapping_PUB.Build_Contexts(
    p_request_type_code => 'ONT',
    p_pricing_type => 'L',
    --p_org_id => 89,
    x_price_contexts_result_tbl => x_price_contexts_result_tbl,
    x_qual_contexts_result_tbl => x_qual_contexts_result_tbl );
    I := x_qual_contexts_result_tbl.FIRST;
    IF I IS NOT NULL THEN
    LOOP
    DBMS_OUTPUT.PUT_LINE('Context: '||x_qual_contexts_result_tbl(I).context_name);
    DBMS_OUTPUT.PUT_LINE('attribute_name: '||x_qual_contexts_result_tbl(I).attribute_name);
    DBMS_OUTPUT.PUT_LINE('attribute_value: '||x_qual_contexts_result_tbl(I).attribute_value);
    EXIT WHEN I = x_qual_contexts_result_tbl.LAST;
    I := x_qual_contexts_result_tbl.NEXT(I);
    END LOOP;
    END IF;
    I := x_price_contexts_result_tbl.FIRST;
    IF I IS NOT NULL THEN
    LOOP
    DBMS_OUTPUT.PUT_LINE('Context: '||x_price_contexts_result_tbl(I).context_name);
    DBMS_OUTPUT.PUT_LINE('attribute_name: '||x_price_contexts_result_tbl(I).attribute_name);
    DBMS_OUTPUT.PUT_LINE('attribute_value: '||x_price_contexts_result_tbl(I).attribute_value);
    EXIT WHEN I = x_price_contexts_result_tbl.LAST;
    I := x_price_contexts_result_tbl.NEXT(I);
    END LOOP;
    END IF;
    DBMS_OUTPUT.PUT_LINE(Fnd_Profile.VALUE('QP_CUSTOM_SOURCED') );
    DBMS_OUTPUT.PUT_LINE('7');
    l_version := QP_PREQ_GRP.GET_VERSION;
    dbms_output.put_line(OE_ORDER_PUB.G_LINE.price_list_id);
    dbms_output.put_line(OE_ORDER_PUB.G_LINE.inventory_item_id);
    QP_PREQ_PUB.PRICE_REQUEST
    (p_line_tbl,
    p_qual_tbl,
    p_line_attr_tbl,
    p_line_detail_tbl,
    p_line_detail_qual_tbl,
    p_line_detail_attr_tbl,
    p_related_lines_tbl,
    p_control_rec,
    x_line_tbl,
    x_line_qual,
    x_line_attr_tbl,
    x_line_detail_tbl,
    x_line_detail_qual_tbl,
    x_line_detail_attr_tbl,
    x_related_lines_tbl,
    x_return_status,
    x_return_status_text);
    -- Return Status Information ..
    DBMS_OUTPUT.PUT_LINE('8');
    DBMS_OUTPUT.PUT_LINE('Return Status text '|| x_return_status_text);
    DBMS_OUTPUT.PUT_LINE('Return Status '|| x_return_status);
    DBMS_OUTPUT.PUT_LINE('+---------Information Returned to Caller---------------------+ ');
    DBMS_OUTPUT.PUT_LINE('-------------Request Line Information-------------------');
    I := x_line_tbl.FIRST;
    IF I IS NOT NULL THEN
    LOOP
    DBMS_OUTPUT.PUT_LINE('Line Index: '||x_line_tbl(I).line_index);
    DBMS_OUTPUT.PUT_LINE('Unit_price: '||x_line_tbl(I).unit_price);
    DBMS_OUTPUT.PUT_LINE('Percent price: '||x_line_tbl(I).percent_price);
    DBMS_OUTPUT.PUT_LINE('Adjusted Unit Price: '||x_line_tbl(I).adjusted_unit_price);
    DBMS_OUTPUT.PUT_LINE('Pricing status code: '||x_line_tbl(I).status_code);
    DBMS_OUTPUT.PUT_LINE('Pricing status text: '||x_line_tbl(I).status_text);
    EXIT WHEN I = x_line_tbl.LAST;
    I := x_line_tbl.NEXT(I);
    END LOOP;
    END IF;
    DBMS_OUTPUT.PUT_LINE('-----------Pricing Attributes Information-------------');
    I := x_line_detail_attr_tbl.FIRST;
    IF I IS NOT NULL THEN
    LOOP
    DBMS_OUTPUT.PUT_LINE('Line detail Index '||x_line_detail_attr_tbl(I).line_detail_index);
    DBMS_OUTPUT.PUT_LINE('Context '||x_line_detail_attr_tbl(I).pricing_context);
    DBMS_OUTPUT.PUT_LINE('Attribute '||x_line_detail_attr_tbl(I).pricing_attribute);
    DBMS_OUTPUT.PUT_LINE('Value '||x_line_detail_attr_tbl(I).pricing_attr_value_from);
    DBMS_OUTPUT.PUT_LINE('Status Code '||x_line_detail_attr_tbl(I).status_code);
    DBMS_OUTPUT.PUT_LINE('---------------------------------------------------');
    EXIT WHEN I = x_line_detail_attr_tbl.last;
    I:=x_line_detail_attr_tbl.NEXT(I);
    END LOOP;
    END IF;
    DBMS_OUTPUT.PUT_LINE('-----------Qualifier Attributes Information-------------');
    I := x_line_detail_qual_tbl.FIRST;
    IF I IS NOT NULL THEN
    LOOP
    DBMS_OUTPUT.PUT_LINE('Line Detail Index '||x_line_detail_qual_tbl(I).line_detail_index);
    DBMS_OUTPUT.PUT_LINE('Context '||x_line_detail_qual_tbl(I).qualifier_context);
    DBMS_OUTPUT.PUT_LINE('Attribute '||x_line_detail_qual_tbl(I).qualifier_attribute);
    DBMS_OUTPUT.PUT_LINE('Value '||x_line_detail_qual_tbl(I).qualifier_attr_value_from);
    DBMS_OUTPUT.PUT_LINE('Status Code '||x_line_detail_qual_tbl(I).status_code);
    DBMS_OUTPUT.PUT_LINE('---------------------------------------------------');
    EXIT WHEN I = x_line_detail_qual_tbl.last;
    I:=x_line_detail_qual_tbl.NEXT(I);
    END LOOP;
    END IF;
    I := x_line_detail_tbl.FIRST;
    DBMS_OUTPUT.PUT_LINE('------------Price List/Discount Information------------');
    IF I IS NOT NULL THEN
    LOOP
    L_MOD_NAME := '';
    DBMS_OUTPUT.PUT_LINE('Line Index: '||x_line_detail_tbl(I).line_index);
    DBMS_OUTPUT.PUT_LINE('Line Detail Index: '||x_line_detail_tbl(I).line_detail_index);
    DBMS_OUTPUT.PUT_LINE('Line Detail Type:'||x_line_detail_tbl(I).line_detail_type_code);
    DBMS_OUTPUT.PUT_LINE('List Header Id: '||x_line_detail_tbl(I).list_header_id);
    DBMS_OUTPUT.PUT_LINE('List Line Id: '||x_line_detail_tbl(I).list_line_id);
    DBMS_OUTPUT.PUT_LINE('List Line Type Code: '||x_line_detail_tbl(I).list_line_type_code);
    DBMS_OUTPUT.PUT_LINE('Adjustment Amount : '||x_line_detail_tbl(I).adjustment_amount);
    DBMS_OUTPUT.PUT_LINE('Line Quantity : '||x_line_detail_tbl(I).line_quantity);
    DBMS_OUTPUT.PUT_LINE('Operand Calculation Code: '||x_line_detail_tbl(I).Operand_calculation_code);
    DBMS_OUTPUT.PUT_LINE('Operand value: '||x_line_detail_tbl(I).operand_value);
    DBMS_OUTPUT.PUT_LINE('Automatic Flag: '||x_line_detail_tbl(I).automatic_flag);
    DBMS_OUTPUT.PUT_LINE('Override Flag: '||x_line_detail_tbl(I).override_flag);
    DBMS_OUTPUT.PUT_LINE('status_code: '||x_line_detail_tbl(I).status_code);
    DBMS_OUTPUT.PUT_LINE('status text: '||x_line_detail_tbl(I).status_text);
    DBMS_OUTPUT.PUT_LINE('-------------------------------------------');
    EXIT WHEN I = x_line_detail_tbl.LAST;
    BEGIN
    SELECT NAME INTO L_MOD_NAME
    FROM QP_LIST_HEADERS_ALL
    WHERE LIST_HEADER_ID=x_line_detail_tbl(I).list_header_id
    AND x_line_detail_tbl(I).list_line_type_code <>'PLL'
    AND x_line_detail_tbl(I).adjustment_amount IS NOT NULL;
    L_MODIFIER := L_MODIFIER||'~'||L_MOD_NAME;
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END;
    IF x_line_detail_tbl(I).list_line_type_code <>'PLL' AND x_line_detail_tbl(I).adjustment_amount IS NOT NULL THEN
    L_ADJUSTMENT_AMOUNT := L_ADJUSTMENT_AMOUNT||'~'||x_line_detail_tbl(I).adjustment_amount;
    END IF;
    I := x_line_detail_tbl.NEXT(I);
    END LOOP;
    END IF;
    SELECT line_unit_price , order_uom_selling_price
    INTO l_unit_price , l_selling_price
    FROM qp_preq_lines_tmp
    WHERE pricing_status_code = Qp_Preq_Pub.g_status_updated
    ORDER BY line_id;
    DBMS_OUTPUT.PUT_LINE('Unit Price := '||l_unit_price);--x_line_tbl(1).UNIT_PRICE );
    DBMS_OUTPUT.PUT_LINE('Selling Price := '||l_selling_price);---x_line_tbl(1).LINE_UNIT_PRICE );
    DBMS_OUTPUT.PUT_LINE('L_MODIFIER: '||L_MODIFIER);
    DBMS_OUTPUT.PUT_LINE('L_ADJUSTMENT_AMOUNT: '||L_ADJUSTMENT_AMOUNT);
    DBMS_OUTPUT.PUT_LINE('--------------Related Lines Information for Price Breaks/Service Items---------------');
    I := x_related_lines_tbl.FIRST;
    IF I IS NOT NULL THEN
    LOOP
    DBMS_OUTPUT.PUT_LINE('Line Index :'||x_related_lines_tbl(I).line_index);
    DBMS_OUTPUT.PUT_LINE('Line Detail Index: '||x_related_lines_tbl(I).LINE_DETAIL_INDEX);
    DBMS_OUTPUT.PUT_LINE('Relationship Type Code: '||x_related_lines_tbl(I).relationship_type_code);
    DBMS_OUTPUT.PUT_LINE('Related Line Index: '||x_related_lines_tbl(I).RELATED_LINE_INDEX);
    DBMS_OUTPUT.PUT_LINE('Related Line Detail Index: '||x_related_lines_tbl(I).related_line_detail_index);
    DBMS_OUTPUT.PUT_LINE('Status Code: '|| x_related_lines_tbl(I).STATUS_CODE);
    EXIT WHEN I = x_related_lines_tbl.LAST;
    I := x_related_lines_tbl.NEXT(I);
    END LOOP;
    END IF;
    END; -- procedure --;
    Edited by: user7751421 on Apr 20, 2013 8:54 AM

    I tried with bellow code but it shows both Unit Price (price after apply all adjustment) and List price same_
    What I need is get unit selling price before order book, when customer called for inquiry only._
    DECLARE
    p_line_tbl QP_PREQ_GRP.LINE_TBL_TYPE;
    p_qual_tbl QP_PREQ_GRP.QUAL_TBL_TYPE;
    p_line_attr_tbl QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
    p_LINE_DETAIL_tbl QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
    p_LINE_DETAIL_qual_tbl QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
    p_LINE_DETAIL_attr_tbl QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
    p_related_lines_tbl QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
    p_control_rec QP_PREQ_GRP.CONTROL_RECORD_TYPE;
    x_line_tbl QP_PREQ_GRP.LINE_TBL_TYPE;
    x_line_qual QP_PREQ_GRP.QUAL_TBL_TYPE;
    x_line_attr_tbl QP_PREQ_GRP.LINE_ATTR_TBL_TYPE;
    x_line_detail_tbl QP_PREQ_GRP.LINE_DETAIL_TBL_TYPE;
    x_line_detail_qual_tbl QP_PREQ_GRP.LINE_DETAIL_QUAL_TBL_TYPE;
    x_line_detail_attr_tbl QP_PREQ_GRP.LINE_DETAIL_ATTR_TBL_TYPE;
    x_related_lines_tbl QP_PREQ_GRP.RELATED_LINES_TBL_TYPE;
    x_return_status VARCHAR2 (240);
    x_return_status_text VARCHAR2 (240);
    qual_rec QP_PREQ_GRP.QUAL_REC_TYPE;
    line_attr_rec QP_PREQ_GRP.LINE_ATTR_REC_TYPE;
    line_rec QP_PREQ_GRP.LINE_REC_TYPE;
    detail_rec QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
    ldet_rec QP_PREQ_GRP.LINE_DETAIL_REC_TYPE;
    rltd_rec QP_PREQ_GRP.RELATED_LINES_REC_TYPE;
    x_price_contexts_result_tbl QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
    x_qual_contexts_result_tbl QP_Attr_Mapping_PUB.Contexts_Result_Tbl_Type;
    v_line_tbl_cnt INTEGER;
    I BINARY_INTEGER;
    l_version VARCHAR2 (240);
    l_file_val VARCHAR2 (60);
    L_MODIFIER VARCHAR2 (4000);
    L_ADJUSTMENT_AMOUNT VARCHAR2 (300);
    L_MOD_NAME VARCHAR2 (240);
    l_unit_price NUMBER;
    l_selling_price NUMBER;
    l_item_id number:=17155;
    BEGIN
    MO_GLOBAL.INIT ('ONT');
    MO_GLOBAL.SET_POLICY_CONTEXT ('S', 91);
    --FND_GLOBAL.APPS_INITIALIZE(1130,21623,660);
    DBMS_OUTPUT.PUT_LINE ('1');
    v_line_tbl_cnt := 1;
    ---- Control Record
    p_control_rec.pricing_event := 'LINE';
    p_control_rec.calculate_flag := 'Y';
    p_control_rec.simulation_flag := 'Y';
    p_control_rec.source_order_amount_flag := 'Y';
    p_control_rec.PUBLIC_API_CALL_FLAG := 'N';
    p_control_rec.rounding_flag := 'Q';
    p_control_Rec.manual_discount_flag := 'N';
    --p_control_rec.MANUAL_ADJUSTMENTS_CALL_FLAG := 'Y';
    p_control_rec.request_type_code := 'ONT';
    p_control_rec.TEMP_TABLE_INSERT_FLAG := 'Y';
    DBMS_OUTPUT.PUT_LINE ('2');
    line_rec.request_type_code := 'ONT';
    -- line_rec.PRICE_LIST_HEADER_ID := 386481;
    line_rec.line_id := 72202; -- Order Line Id. This can be any thing for this script
    line_rec.line_Index := 1; -- Request Line Index
    line_rec.line_type_code := 'LINE'; -- LINE or ORDER(Summary Line)
    line_rec.pricing_effective_date := TRUNC (SYSDATE); -- Pricing as of what date ?
    line_rec.active_date_first := TRUNC (SYSDATE); -- Can be Ordered Date or Ship Date
    line_rec.active_date_second := TRUNC (SYSDATE); -- Can be Ordered Date or Ship Date
    line_rec.active_date_first_type := 'ORD'; -- ORD/SHIP
    line_rec.active_date_second_type := 'SHIP'; -- ORD/SHIP
    line_rec.line_quantity := 10; -- Ordered Quantity
    line_rec.line_uom_code := 'Ea'; -- Ordered UOM Code
    line_rec.currency_code := 'USD'; -- Currency Code
    line_rec.price_flag := 'Y'; -- Price Flag can have 'Y' , 'N'(No pricing) , 'P'(Phase)
    p_line_tbl (1) := line_rec;
    DBMS_OUTPUT.PUT_LINE ('3');
    ---- Line Attribute Record
    line_attr_rec.LINE_INDEX := 1;
    line_attr_rec.PRICING_CONTEXT := 'ITEM'; --
    line_attr_rec.PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE3';
    line_attr_rec.PRICING_ATTR_VALUE_FROM := 'ALL';
    line_attr_rec.VALIDATED_FLAG := 'N';
    p_line_attr_tbl (1) := line_attr_rec;
    line_attr_rec.LINE_INDEX := 1;
    line_attr_rec.PRICING_CONTEXT := 'ITEM'; --
    line_attr_rec.PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE1';
    --line_attr_rec.COMPARISON_OPERATOR_CODE := 'BETWEEN';
    line_attr_rec.PRICING_ATTR_VALUE_FROM := '17155'; -- INVENTORY ITEM ID
    line_attr_rec.VALIDATED_FLAG := 'Y';
    p_line_attr_tbl (2) := line_attr_rec;
    -- line_attr_rec.LINE_INDEX := 1;
    -- line_attr_rec.PRICING_CONTEXT := 'ITEM'; --
    -- line_attr_rec.PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE1';
    -- --line_attr_rec.COMPARISON_OPERATOR_CODE := 'BETWEEN';
    -- line_attr_rec.PRICING_ATTR_VALUE_FROM := '72201'; -- INVENTORY ITEM ID
    -- line_attr_rec.VALIDATED_FLAG := 'Y';
    -- p_line_attr_tbl (3) := line_attr_rec;
    -- line_attr_rec.LINE_INDEX := 1;
    -- line_attr_rec.PRICING_CONTEXT := 'ITEM'; --
    -- line_attr_rec.PRICING_ATTRIBUTE := 'PRICING_ATTRIBUTE30';
    -- --line_attr_rec.COMPARISON_OPERATOR_CODE := 'BETWEEN';
    -- line_attr_rec.PRICING_ATTR_VALUE_FROM := 'Yes'; -- INVENTORY ITEM ID
    -- line_attr_rec.VALIDATED_FLAG := 'Y';
    -- p_line_attr_tbl (3) := line_attr_rec;
    DBMS_OUTPUT.PUT_LINE ('4');
    ---- Qualifier Attribute Record
    qual_rec.LINE_INDEX := 1; -- Attributes for the above line. Attributes are attached with the line index
    qual_rec.QUALIFIER_CONTEXT := 'MODLIST';
    qual_rec.QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE4';
    qual_rec.QUALIFIER_ATTR_VALUE_FROM := '386481'; -- PRICE LIST ID
    qual_rec.COMPARISON_OPERATOR_CODE := '=';
    qual_rec.VALIDATED_FLAG := 'Y';
    p_qual_tbl (1) := qual_rec;
    DBMS_OUTPUT.PUT_LINE ('5');
    -- qual_rec.line_index := 1;
    -- qual_rec.qualifier_context := 'ITEM';
    -- qual_rec.qualifier_attribute := 'QUALIFIER_ATTRIBUTE31';
    -- qual_rec.qualifier_attr_value_from := 'Yes';
    -- qual_rec.comparison_operator_code := '=';
    -- qual_rec.validated_flag := 'Y';
    -- p_qual_tbl (2) := qual_rec;
    qual_rec.LINE_INDEX := 1; -- Attributes for the above line. Attributes are attached with the line index
    qual_rec.QUALIFIER_CONTEXT := 'CUSTOMER';
    qual_rec.QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE5';
    qual_rec.QUALIFIER_ATTR_VALUE_FROM := 5728; -- Customer Account ID
    qual_rec.COMPARISON_OPERATOR_CODE := '=';
    qual_rec.VALIDATED_FLAG := 'Y';
    p_qual_tbl (3) := qual_rec;
    qual_rec.LINE_INDEX := 1;
    qual_rec.QUALIFIER_CONTEXT := 'ITEM_CATEGORY';
    qual_rec.QUALIFIER_ATTRIBUTE := 'QUALIFIER_ATTRIBUTE35';
    qual_rec.QUALIFIER_ATTR_VALUE_FROM := 'TOOLS.HARDWARE TOOLS (DISCOUNTABLE).'; -- item category
    qual_rec.COMPARISON_OPERATOR_CODE := '=';
    qual_rec.VALIDATED_FLAG := 'N';
    p_qual_tbl (4) := qual_rec;
    DBMS_OUTPUT.PUT_LINE ('6');
    OE_ORDER_PUB.G_LINE.inventory_item_id := l_item_id;
    DBMS_OUTPUT.PUT_LINE (Fnd_Profile.VALUE ('QP_CUSTOM_SOURCED'));
    --QP_Attr_Mapping_PUB.Build_Contexts
    --( p_request_type_code => 'ONT',
    -- p_line_index => 1,
    -- p_pricing_type_code => 'L'
    QP_Attr_Mapping_PUB.
    Build_Contexts (
    p_request_type_code => 'ONT',
    p_pricing_type => 'L',
    --p_org_id => 89,
    x_price_contexts_result_tbl => x_price_contexts_result_tbl,
    x_qual_contexts_result_tbl => x_qual_contexts_result_tbl);
    I := x_qual_contexts_result_tbl.FIRST;
    IF I IS NOT NULL
    THEN
    LOOP
    DBMS_OUTPUT.
    PUT_LINE (
    'Context: ' || x_qual_contexts_result_tbl (I).context_name);
    DBMS_OUTPUT.
    PUT_LINE (
    'attribute_name: '
    || x_qual_contexts_result_tbl (I).attribute_name);
    DBMS_OUTPUT.
    PUT_LINE (
    'attribute_value: '
    || x_qual_contexts_result_tbl (I).attribute_value);
    EXIT WHEN I = x_qual_contexts_result_tbl.LAST;
    I := x_qual_contexts_result_tbl.NEXT (I);
    END LOOP;
    END IF;
    I := x_price_contexts_result_tbl.FIRST;
    IF I IS NOT NULL
    THEN
    LOOP
    DBMS_OUTPUT.
    PUT_LINE (
    'Context: ' || x_price_contexts_result_tbl (I).context_name);
    DBMS_OUTPUT.
    PUT_LINE (
    'attribute_name: '
    || x_price_contexts_result_tbl (I).attribute_name);
    DBMS_OUTPUT.
    PUT_LINE (
    'attribute_value: '
    || x_price_contexts_result_tbl (I).attribute_value);
    EXIT WHEN I = x_price_contexts_result_tbl.LAST;
    I := x_price_contexts_result_tbl.NEXT (I);
    END LOOP;
    END IF;
    DBMS_OUTPUT.PUT_LINE (' Fnd_Profile.VALUE (QP_CUSTOM_SOURCED): ' || Fnd_Profile.VALUE ('QP_CUSTOM_SOURCED'));
    DBMS_OUTPUT.PUT_LINE ('7');
    l_version := QP_PREQ_GRP.GET_VERSION;
    DBMS_OUTPUT.put_line (OE_ORDER_PUB.G_LINE.price_list_id);
    DBMS_OUTPUT.put_line (OE_ORDER_PUB.G_LINE.inventory_item_id);
    QP_PREQ_PUB.PRICE_REQUEST (p_line_tbl,
    p_qual_tbl,
    p_line_attr_tbl,
    p_line_detail_tbl,
    p_line_detail_qual_tbl,
    p_line_detail_attr_tbl,
    p_related_lines_tbl,
    p_control_rec,
    x_line_tbl,
    x_line_qual,
    x_line_attr_tbl,
    x_line_detail_tbl,
    x_line_detail_qual_tbl,
    x_line_detail_attr_tbl,
    x_related_lines_tbl,
    x_return_status,
    x_return_status_text);
    -- Return Status Information ..
    DBMS_OUTPUT.PUT_LINE ('8');
    DBMS_OUTPUT.PUT_LINE ('Return Status text ' || x_return_status_text);
    DBMS_OUTPUT.PUT_LINE ('Return Status ' || x_return_status);
    DBMS_OUTPUT.
    PUT_LINE (
    '+---------Information Returned to Caller---------------------+ ');
    DBMS_OUTPUT.
    PUT_LINE ('-------------Request Line Information-------------------');
    I := x_line_tbl.FIRST;
    IF I IS NOT NULL
    THEN
    LOOP
    DBMS_OUTPUT.PUT_LINE ('Line Index: ' || x_line_tbl (I).line_index);
    DBMS_OUTPUT.PUT_LINE ('Unit_price: ' || x_line_tbl (I).unit_price);
    DBMS_OUTPUT.
    PUT_LINE ('Percent price: ' || x_line_tbl (I).percent_price);
    DBMS_OUTPUT.
    PUT_LINE (
    'Adjusted Unit Price: ' || x_line_tbl (I).adjusted_unit_price);
    DBMS_OUTPUT.
    PUT_LINE ('Pricing status code: ' || x_line_tbl (I).status_code);
    DBMS_OUTPUT.
    PUT_LINE ('Pricing status text: ' || x_line_tbl (I).status_text);
    EXIT WHEN I = x_line_tbl.LAST;
    I := x_line_tbl.NEXT (I);
    END LOOP;
    END IF;
    DBMS_OUTPUT.
    PUT_LINE ('-----------Pricing Attributes Information-------------');
    I := x_line_detail_attr_tbl.FIRST;
    IF I IS NOT NULL
    THEN
    LOOP
    DBMS_OUTPUT.
    PUT_LINE (
    'Line detail Index '
    || x_line_detail_attr_tbl (I).line_detail_index);
    DBMS_OUTPUT.
    PUT_LINE ('Context ' || x_line_detail_attr_tbl (I).pricing_context);
    DBMS_OUTPUT.
    PUT_LINE (
    'Attribute ' || x_line_detail_attr_tbl (I).pricing_attribute);
    DBMS_OUTPUT.
    PUT_LINE (
    'Value ' || x_line_detail_attr_tbl (I).pricing_attr_value_from);
    DBMS_OUTPUT.
    PUT_LINE ('Status Code ' || x_line_detail_attr_tbl (I).status_code);
    DBMS_OUTPUT.
    PUT_LINE ('---------------------------------------------------');
    EXIT WHEN I = x_line_detail_attr_tbl.LAST;
    I := x_line_detail_attr_tbl.NEXT (I);
    END LOOP;
    END IF;
    DBMS_OUTPUT.
    PUT_LINE ('-----------Qualifier Attributes Information-------------');
    I := x_line_detail_qual_tbl.FIRST;
    IF I IS NOT NULL
    THEN
    LOOP
    DBMS_OUTPUT.
    PUT_LINE (
    'Line Detail Index '
    || x_line_detail_qual_tbl (I).line_detail_index);
    DBMS_OUTPUT.
    PUT_LINE (
    'Context ' || x_line_detail_qual_tbl (I).qualifier_context);
    DBMS_OUTPUT.
    PUT_LINE (
    'Attribute ' || x_line_detail_qual_tbl (I).qualifier_attribute);
    DBMS_OUTPUT.
    PUT_LINE (
    'Value ' || x_line_detail_qual_tbl (I).qualifier_attr_value_from);
    DBMS_OUTPUT.
    PUT_LINE ('Status Code ' || x_line_detail_qual_tbl (I).status_code);
    DBMS_OUTPUT.
    PUT_LINE ('---------------------------------------------------');
    EXIT WHEN I = x_line_detail_qual_tbl.LAST;
    I := x_line_detail_qual_tbl.NEXT (I);
    END LOOP;
    END IF;
    I := x_line_detail_tbl.FIRST;
    DBMS_OUTPUT.
    PUT_LINE ('------------Price List/Discount Information------------');
    IF I IS NOT NULL
    THEN
    LOOP
    L_MOD_NAME := '';
    DBMS_OUTPUT.
    PUT_LINE ('Line Index: ' || x_line_detail_tbl (I).line_index);
    DBMS_OUTPUT.
    PUT_LINE (
    'Line Detail Index: ' || x_line_detail_tbl (I).line_detail_index);
    DBMS_OUTPUT.
    PUT_LINE (
    'Line Detail Type:'
    || x_line_detail_tbl (I).line_detail_type_code);
    DBMS_OUTPUT.
    PUT_LINE (
    'List Header Id: ' || x_line_detail_tbl (I).list_header_id);
    DBMS_OUTPUT.
    PUT_LINE ('List Line Id: ' || x_line_detail_tbl (I).list_line_id);
    DBMS_OUTPUT.
    PUT_LINE (
    'List Line Type Code: '
    || x_line_detail_tbl (I).list_line_type_code);
    DBMS_OUTPUT.
    PUT_LINE (
    'Adjustment Amount : ' || x_line_detail_tbl (I).adjustment_amount);
    DBMS_OUTPUT.
    PUT_LINE ('Line Quantity : ' || x_line_detail_tbl (I).line_quantity);
    DBMS_OUTPUT.
    PUT_LINE (
    'Operand Calculation Code: '
    || x_line_detail_tbl (I).Operand_calculation_code);
    DBMS_OUTPUT.
    PUT_LINE ('Operand value: ' || x_line_detail_tbl (I).operand_value);
    DBMS_OUTPUT.
    PUT_LINE (
    'Automatic Flag: ' || x_line_detail_tbl (I).automatic_flag);
    DBMS_OUTPUT.
    PUT_LINE ('Override Flag: ' || x_line_detail_tbl (I).override_flag);
    DBMS_OUTPUT.
    PUT_LINE ('status_code: ' || x_line_detail_tbl (I).status_code);
    DBMS_OUTPUT.
    PUT_LINE ('status text: ' || x_line_detail_tbl (I).status_text);
    DBMS_OUTPUT.PUT_LINE ('-------------------------------------------');
    EXIT WHEN I = x_line_detail_tbl.LAST;
    BEGIN
    SELECT NAME
    INTO L_MOD_NAME
    FROM QP_LIST_HEADERS_ALL
    WHERE LIST_HEADER_ID = x_line_detail_tbl (I).list_header_id
    AND x_line_detail_tbl (I).list_line_type_code = 'PLL'
    AND x_line_detail_tbl (I).adjustment_amount IS NOT NULL;
    L_MODIFIER := L_MODIFIER || '~' || L_MOD_NAME;
    EXCEPTION
    WHEN OTHERS
    THEN
    NULL;
    END;
    IF x_line_detail_tbl (I).list_line_type_code = 'PLL'
    AND x_line_detail_tbl (I).adjustment_amount IS NOT NULL
    THEN
    L_ADJUSTMENT_AMOUNT :=
    L_ADJUSTMENT_AMOUNT
    || '~'
    || x_line_detail_tbl (I).adjustment_amount;
    END IF;
    I := x_line_detail_tbl.NEXT (I);
    END LOOP;
    END IF;
    SELECT line_unit_price, order_uom_selling_price
    INTO l_unit_price, l_selling_price
    FROM qp_preq_lines_tmp
    WHERE pricing_status_code = Qp_Preq_Pub.g_status_updated
    ORDER BY line_id;
    DBMS_OUTPUT.PUT_LINE ('Unit Price := ' || l_unit_price); --x_line_tbl(1).UNIT_PRICE );
    DBMS_OUTPUT.PUT_LINE ('Selling Price := ' || l_selling_price); ---x_line_tbl(1).LINE_UNIT_PRICE );
    DBMS_OUTPUT.PUT_LINE ('L_MODIFIER: ' || L_MODIFIER);
    DBMS_OUTPUT.PUT_LINE ('L_ADJUSTMENT_AMOUNT: ' || L_ADJUSTMENT_AMOUNT);
    DBMS_OUTPUT.
    PUT_LINE (
    '--------------Related Lines Information for Price Breaks/Service Items---------------');
    I := x_related_lines_tbl.FIRST;
    IF I IS NOT NULL
    THEN
    LOOP
    DBMS_OUTPUT.
    PUT_LINE ('Line Index :' || x_related_lines_tbl (I).line_index);
    DBMS_OUTPUT.
    PUT_LINE (
    'Line Detail Index: '
    || x_related_lines_tbl (I).LINE_DETAIL_INDEX);
    DBMS_OUTPUT.
    PUT_LINE (
    'Relationship Type Code: '
    || x_related_lines_tbl (I).relationship_type_code);
    DBMS_OUTPUT.
    PUT_LINE (
    'Related Line Index: '
    || x_related_lines_tbl (I).RELATED_LINE_INDEX);
    DBMS_OUTPUT.
    PUT_LINE (
    'Related Line Detail Index: '
    || x_related_lines_tbl (I).related_line_detail_index);
    DBMS_OUTPUT.
    PUT_LINE ('Status Code: ' || x_related_lines_tbl (I).STATUS_CODE);
    EXIT WHEN I = x_related_lines_tbl.LAST;
    I := x_related_lines_tbl.NEXT (I);
    END LOOP;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.
    PUT_LINE ('SQLERRM' || SQLERRM);
    END;
    Kindly provide sugession if I miss any thing.
    Regards,
    Akil
    Edited by: 1004537 on May 9, 2013 7:20 AM
    Edited by: 1004537 on May 9, 2013 7:20 AM

  • Pass field from order to notif in automatic creation of notif from order

    Hi all,
    I am scheduling a maintenance plan from IP10. According to the configuration work order is automatically created. When PREV type order is created then one notification is also automatically created. I need to pass some user fields from maintenance plan/work order to notification.
    Any body has any idea of user exit or badi?
    Thank in advance.

    What User Fields you want to pass ,explain in detail , Usually all many fields automatically gets passed like Technical objects , Maintenance Plan Number .....................  , Even the Long text from Order can be made to pass in customisation , kindly mention user fields u need to pass
    regards,

  • SQL Developer Data Modeler-  Creating super/subtype relationship

    The User's Guide does not tell you how to create super/subtype relationship.
    To create super/subtype relationship in a logical model, you must already have the two candidate entities; one to be the supertype, the other subtype.
    - on the logical model diagram, right click the candidate subtype and select Properties
    - on the Entity Properties dialog box, select the candidate supertype from the Super Entity drop-down list, then OK
    Depending on whether you enable or disable the Box-in-box Presentation on your logical diagram, the subtype would be shown inside or outside its supertype entity, respectively

    Hi Peter,
    When I examine an XML file for a relation converted from version 2.0, the XML elements "nameOnSource" and "nameOnTarget" are missing in the converted 3.0 EA1 versionthey are not loaded during "open" of older design. If you define them they will go into XML file.
    Philip

Maybe you are looking for

  • Reschedule strategy plan based on last actual order completion date

    Dear all, Hope you can help me with this one. We use strategybased maintenance plans. We want to achieve that the next scheduled call date is calculated taking into account the actual completion date of the last (previous) call. For example : strateg

  • Eclipse as a development environment with Jakarta Tomcat - Need help!!

    Hello: Subject: Eclipse as a development environment with Jakarta Tomcat I am setting up the new development environment for my application (project). Below are the components involved:: �     Eclipse 3.1 �     myEclipse - EnterpriseWorkbenchInstalle

  • How to convert the date in mm/dd/yyyy.

    hi, I am working with tcurr tables when i go in se16 and see the table i see the field gdatu in '79929474'. if i double click on the that particular row the format of gdatu changes to '25.05.2007'. I am working on an extract and the date is coming in

  • How to save data in oracle9i in binary form and how to retrieve it

    Hello, Kindly tell me how can i save my data in binary form(UTF8) in oracle9i through developer6i Forms and how to retrieve it. Kindly tell me step by step procedure. Regards, Shahzaib

  • Copy data between planning area with function module

    Hi gurus! I'm involved in a consumer products project In my multiplaning area i copy "catalog code" from act to fct after a preliminary selection in a authorization layout.. Due to increase performance I'm in need to convert the FOX which copies data