Example of API: update line, selling price

Hello

Context: EBS 11.5.10. Level price (No. Advance Pricing)

I would be grateful if someone could send an example of the API used to update customer unit sale price of command line.

Currently, we use oe_order_pub.process_line, the problem seems that no adjustment is generated by the API (as it does to manually update the price of the line).

Thanks for your help

Concerning

Antoine

You can do it through

oe_order_pub.process_order

API. The following parameters are useful when you pass the info to fit for a sales order.

l_adj_rec.list_header_id := 8988; -- Modifier id
l_adj_rec.list_line_id := 16596; -- Modifier line id
l_adj_rec.automatic_flag := 'N';
l_adj_rec.list_line_type_code := 'DIS'; -- Change this if it is a surcharge, pass 'SUR'
l_adj_rec.arithmetic_operator := 'AMT'; -- Percentage or amount
l_adj_rec.operand := 10; --How much?
l_adj_rec.operation := oe_globals.g_opr_create;
l_adj_rec.line_index := 1;
l_adj_rec.update_allowed := 'Y';
l_adj_rec.applied_flag := 'Y'; -- Rhis is required to change the price of the line
l_adj_rec.change_reason_code := 'MANUAL';
l_adj_rec.change_reason_text := 'Manually applied adjustments';

Also at the level of the line, the following parameter should be checked.
p_line_tbl (1) .calculate_price_flag: = 'P '.

Check out the following MOS notes:
How to use the OE_ORDER_PUB. PROCESS_ORDER Api for manual adjustment or application of freight? [959783.1 ID]
Can use an oe_order_pub.process_order API to create a new order line with a different price than the sale price list? [1072272.1 ID]
Pricing of the API to check if a modifier line qualifies for a sales order line id [ID 1220034.1]
Processing order API - how Scripts [ID 1265721.1]
FAQ on the command import [ID 1275116.1]
Process of PLC control in the management of orders [ID 746787.1]
Order API - errors / problems [ID 1266249.1]

For details, please see the following threads:
https://KR.forums.Oracle.com/forums/thread.jspa?threadID=684887
https://KR.forums.Oracle.com/forums/thread.jspa?threadID=1122898

See you soon,.
ND
Use the buttons "useful" or "correct" to award points to the answers / mark the thread as answered, if your question is answered.

Tags: Oracle Applications

Similar Questions

  • Unit selling price - rounding

    Hi all

    My requirement is to round off the unit price in the sales order form, sale

    for example

    Article AS16101 unit selling price is 12.99, entering into this point, it should be 13 and recorded in the database 13

    Article AS16103 Unit selling price is 12.40, entering into this point, it should be 12

    WHEN ENTER SAVE, I used the function rounded shaped personlization, but in its economy, the original value database.

    Any help on this.

    Kind regards

    Max

    Hello

    Hope that the following note solves your problem.

    Note to master for the rounding of unit sales price (Doc ID 466505.1)

    Rgds,
    Sri

  • Update product, JSON, price, product attribute combinations

    So I'll try to update my total price in the module works great tempate when someone chooses a new attribute of product in a drop-down list. I was on the right track, but I'm stuck now. Brand new to all this so sorry in advance if it's something really simple.

    So in my model of module of great product, I have a Javascript function as follows:

    "< script type =" text/javascript"src="Scripts/jquery-1.8.3.min.js "> < / script >

    < script >

    function updateprice (myoptionid) {}

    var originalpricedollarsign = "{tag_totalprice}";

    var originalprice = originalpricedollarsign.replace (/ \ $/ g, ");

    var jsonattributes = JSON.parse ('{tag_attributes_json}');

    var addprice = jsonattributes.options [myoptionid] .price;

    var newprice = parseFloat (originalprice) + parseFloat (addprice);

    document.getElementById('lbltotalprice').innerHTML = "price Total:"+ newprice;»

    }

    < /script >

    I also have a label, rather than use {tag_totalprice}, as follows:

    < class li = 'price' > < strong > < label id = "lbltotalprice" > Total price: $< / label > < / strong > < /li >

    The {tag_attributes} tag place much of the html on the page formatting. I want the drop-down list created by my tag_attributes tag to call my onchange function above. There is no default onChange event in {tag_attributes}. Then I dynamically change the {tag_attributes} tag to add an event onChange as follows:

    < script >

    var myattributes = "{tag_attributes}";

    var modifyattributes = myattributes.replace (/ \ < select / g,' < select onChange = "updateprice (this.value);) » ');

    document. Write (modifyattributes);

    < /script >

    More funny, everything works perfectly. I can choose the attribute and displays the updated price. Everything seems fine. However, this is where I hit a snag.  I also groupings of products, displayed using {tag_groupings}. When I select a new product in the dropdown product group, all of the page becomes white/white, and all that is shown is the attributes drop downbox. If I comment on the "document.write (modifyattributes);" above, it goes back to normal. Basically, I lose the whole page except for the attributes drop-down which is be re-written.

    I literally just don't know where to go from here. I hope it's something easy and it's just my lack of knowledge that is what actually appears so difficult.

    Any advice is greatly appreciated!

    Thank you all!

    Mark

    OK, so let me start by saying that I have never developed a Web site or used before BC when I figured this out awhile back. That being said, it's probably not 'best practices' or the most effective, but it works.

    In addition, my template code is big enough, so I took these code snippets to show you. I tried to make it fully contained, but I may have missed a bit of code here and there. I hope that this will put you on the right track. So, basically, in your individual product - model of large module, you'll want to do something like that. I contains the code, then I'll explain a little bit about it.

    First of all here some of the functions you will need are available:


    var newhtml = html.replace ("' select required ', 'select id ="selectattrib"required");
    myElement.innerHTML = newhtml;
    var myElement02 = document.getElementById ('selectattrib');
    myElement02.addEventListener ('change', function () {updateprice (baseprice)}, false);
    }
    // **************************************
    // **************************************
    The updateprice function is called from the event listener we added in the fixattributes function. This function is called each time a user
    selects a new product attribute. It determines the basic price, and then adds the additional price of the attribute at the base, giving you
    your updated prices. I then a label that I update with the new price, so it is displayed to the user. I took a lot of extra code
    by this function, which performs different things, but you can see that I have a myimage variable. If you have a separate image of your attribute, you can
    Use this variable to update the image displayed to the user. For example, if the product is a shirt and there are two attributes, red and blue.
    You can have displayed appropriate color shirt as they choose in the drop-down list.

    function updateprice (baseprice)
    {
    var myElement03 = document.getElementById ('selectattrib');
    var Id_option = myElement03.options [myElement03.selectedIndex] .value;
    var myElementlblprice = document.getElementById ('lbltotalprice');
    var jsonattributes = JSON.parse ('{tag_attributes_json}');
    var addprice = jsonattributes.options [optionid] .price;
    var newprice = parseFloat (baseprice) + parseFloat (addprice);
    myElementlblprice.value = "price: $" + newprice.toFixed (2);
    var myimage = jsonattributes.options [optionid] .image;
    }
    // **************************************
    // **************************************
    Setprice function was just a simple update the label displaying the price. The new price is passed as a parameter, and the label is updated.

    function setprice (newpriceDS)
    {
    var myElementlblprice = document.getElementById ('lbltotalprice');
    Var newpriceDS.replace = NouveauPrix (/ \ $/ g, ");
    Var newprice.replace = NouveauPrix (/ a, / g, ");
    var newprice = Number (newprice) .toFixed (2);
    myElementlblprice.value = "price: $" + NouveauPrix;
    }
    // **************************************

    Towards the end of the loading of the page, you just need basic Javascript to call the fixattributes function. Some of my products have attributes
    and some are not, so I first check if all the attributes exist before going forward.

    I hope that's enough to help you get started. If you have any questions, please let me know...

    Thank you
    Mark

  • Updated line deleted Adobe all my drawings

    The last updated line of Adobe (Version 1.0.1) deleted my work. He even deleted the work of the sample that was there when I started the application. Why is this and how do I get it back? Why my work is not registered in the cloud?

    It's ridiculous, disturbing and very disappointing.

    Hello Roscografik,

    We submitted version 1.0.2 to the App Store to resolve the bug that caused drawings should be deleted. When you use 1.0.2 you drawings must be restored.

  • Example of C API communication LIN

    Example for FLAX XNET uses no mode 'nxMode_FrameOutStream' or 'nxMode_FrameINStream' to 'nxCreateSession '.

    Does this work in the context of LIN mode? If only they used to create the session for the same Interface?

    I use ": memory:" in my database.

    Can I get an example of work to help ": memory:" as of the databases with the mode 'nxMode_FrameOutStream' or 'nxMode_FrameINStream '?

    Hi mahajan24,

    The XNET Hardware and software manual discusses the use of Frame Output Stream Mode with LINEN, so it would be interesting to look into methods that they discuss. I have included a link to the page in the manual. Values of LIN frame transmit on the network in operation when XNET write is called. It is recommended to use XNET write (LIN frame), but you can also use XNET write (Raw image) for more advanced applications.

    Frame Mode output stream: http://www.ni.com/pdf/manuals/372840k.pdf#page=93

    Examples of shipping more focused on getting started you, you can try using the Output Stream Mode setting and change until inspired to look at how other examples of output are implemented.

    In addition, regarding the error you see, this could be because your device needs an external power supply. LIN usually requires the bus power. What specific chassis PXI and LIN / other cards do you use?

    Lauren

    Technical sales engineer

    National Instruments

  • Error in the updated row using multiple PO API update

    Hi all

    I want to update several lines of the PO for this I'm using the PO_CHANGE_API1_S.UPDATE_PO API.
    But some how, whenever I update IN. several lines am getting following error

    The document is locked by another user. Please try again later.

    I tried with DBMS_LOCK. Sleep (1), but sometimes work and sometimes it isn't.
    Could someone tell me how can I avoid this, is there another way to do this. Help, please

    Thanks in advance

    Ravi Raj.

    I'm not sure of the code you are using, but you can consult the following documentation for the code examples on the use of this API.

    How Po_change_api1_s.Update_po of the API works in 11.5.10? [335083.1 ID]
    How to use PO_CHANGE_API1_S.update_po to change three lines [1077455.1 ID]
    View demo - how to use the change IN API for updating of existing purchase orders [ID 1078842.1]

    Thank you
    Hussein

  • Update line in the column-based database

    Hello

    I am trying to find a way to update a row that has a SQL database based on two columns. If the command and the match number sensor order number and sales sensor that already exists in the database, I want to update the column of reading of the sensor. If not exists then I want that it creates a new line. How would I go to do this?

    Thank you

    Chris

    You can use the tools of DB Query.vi Execute. Here is an example of a MS Access 2010 database where a column value is updated in all rows satisfying the WHERE conditions.

    Ben64

  • Update lines as a whole within a group of similar records.

    Hello gurus

    I want to update the records in my table in a set of similar batch numbers. See details as follows:

    Suppose that my table is to have according to the structure with the following lines:

    Table name: Test

    Columns: 1) Level_number number (5)

    (2) Batch_number number (5)

    The table data looks as follows

    Level_NumberBatch_number
    1
    1
    1
    2
    2
    3
    3
    3
    3
    3
    3
    3
    4
    5

    Now, I want to update the batch number column, based on the number of the level

    The level number is to start form 100 for example.

    The lot number will be the same for the same level number.

    When to change the level number, the lot number should increase by 1 and continue up to the next level.

    The condition is that if any number of level is to have as much for more than 5 lines then it should increase the number of lots after every 5 rows with the new lot number.

    The output should look as follows

    Level_NumberBatch_number
    1100
    1100
    1100
    2101
    2101
    3102
    3102
    3102
    3102
    3102
    3103
    3103
    4104
    5105

    Could you please help me to write the correct loop for this.

    Thank you.

    Hello

    My mistake; I should have used CEIL instead of TRUNC.

    DENSE_RANK always returns numbers starting with 1.  If you want numbers that begin with 100 (that is, more than 99) then add 99, like this:

    WITH got_luster AS

    (

    SELECT level_no

    CEIL (ROW_NUMBER () OVER (PARTITION BY level_no

    ORDER BY NULL

    )

    / 5

    ) LIKE the chandelier

    OF the test

    )

    SELECT level_no

    DENSE_RANK () OVER (ORDER BY level_no

    chandelier

    ) + 99 AS batch_number

    OF got_luster

    ORDER BY level_no

    batch_number

    ;

    Output:

    LEVEL_NO BATCH_NUMBER

    ---------- ------------

    1 100

    1 100

    2 101

    2 101

    2 101

    2 101

    2 101

    2 102

    2 102

    2 102

    2 102

    2 102

    2 103

    3 104

  • Update lines with the info from the other rows in the same Table.

    I'm trying to update the lines with the information of the same table. The table is loaded with information from a report that runs and there must be a new entry every month, but I would like to bring some of the info from the last month. This statement below works but updates all rows in the new load table and in my test case, I only did a few game only like 5 files need to get updates. It is an example of what I'm trying to do. If I add this (C2. COL_INVC_ID = C1. COL_INVC_ID) until the last "* where *" statement get an invalid identifier for 'C2 '. COL_INVC_ID ". So what I'm doing wrong here? How can I update only the lines where also in recent months run?

    Thanks in advance for any help!

    ------------
    Update OpenIssues OI1
    Together (OI1. NUM, OI1. Status, OI1. Code, OI1. LastModifiedDate) =
    (Select ios2. NUM, ios2. Status, ios2. Code, ios2. LastModifiedDate
    Of OpenIssues ios2
    Where OI2.num = OI1.num and ios2. TableLoadDate = TO_DATE (January 31, 2012 00:00:00 ',' ' the HH24: MI: SS DD/MM/YYYY)
    )
    Where and OI1. TableLoadDate = TO_DATE (February 29, 2012 00:00:00 ',' ' the HH24: MI: SS DD/MM/YYYY)
    ------------


    SQLMe

    As Frank suggested merger is much effective here, go...

      create table  temp
    as(
    select 1 eno, 1 amt , sysdate load_date from dual union all
    select 1 eno, 2 amt , add_months(sysdate,1) load_date from dual union all
    select 2 eno, 1 amt , sysdate load_date from dual union all
    select 2 eno, 2 amt , add_months(sysdate,1) load_date from dual
    );
    
    merge into temp t
    using (select eno, amt, load_date
             from temp
            where trunc(Load_Date) = TO_DATE('05/30/2012', 'MM/DD/YYYY')) s
    on ((s.eno = t.eno) and trunc(t.Load_Date) = TO_DATE('06/30/2012', 'MM/DD/YYYY'))
    when matched then
      update set t.amt = s.amt;
    commit;
    
    select * from temp;
    
  • Example of API Native geolocation works not

    The geolocation API native in https://bdsc.webapps.blackberry.com/native/sampleapps example does not seem to do much.  It loaded and displayed "Geolocation getting first fix", but nothing else (he invites to the GPS).  I'm running Magellan compass at the same time and it receives GPS information without diffilculty.  Is there something else that needs to be done? (I'm under BBX 2.0.0.3778 on the device).

    Through the years I've watched C code.  Any plans to get a C++ BBX architecture around that?

    I ran the code as what and had no problems. It took 10 seconds before he picked up data. Try to run by itself with no other GPS apps to see if it changes anything.

  • Problem when the API update for 10.2.0.1155

    Hi all

    I get error 'Change in API level' when I'm updating the API level.

    For more information please see the attached screenshot.

    Please suggest any solution for this its urgent.

    Thanks in advance.

    Similar thread with answers here...

    http://supportforums.BlackBerry.com/T5/native-development/new-10-2-Gold-install-API-error/TD-p/25468...

  • update line using sinlge selection

    Hello

    I have the situation where I get results for the region of the table using option of single selection for each line...

    That the results of the line I am updating records for few records of entity attributes from the form VO, but there are two primary keys for the table are not part of the form.

    In doing so, I get errors like:

    java.sql.SQLException: ORA-01400: cannot insert NULL into ("DCDHR". "" "" DCDHR_ERGR_UPD '. "" EMPLOYEE_ID')

    Table a. employe_id, case_number are mandatory columns

    Here is the code:

    Co:

    tstgupdVOImpl evo = am.gettstgupdVO1 ();

    If ("radiochk".equals (pageContext.getParameter (EVENT_PARAM)))

    {

    String rowRef = (String) pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);

    Line OARow = (OARow) am.findRowByRef (rowRef);

    tstgsearchVORowImpl lineRow = (tstgsearchVORowImpl) am.findRowByRef (rowRef);

    If (lineRow! = null)

    {

    If ((row.getAttribute("CaseNumber").toString ())! = null)

    {

    String CaseNum = row.getAttribute("CaseNumber").toString ();

    throw new OAException ("is" + perIdValue, OAException.INFORMATION PersonId selected);

    If (CaseNum! = null)

    {

    [Serializable] parameters = {CaseNum};

    am.invokeMethod ("initAttachmentDetails", parameters);

    }

    }

    }

    }

    If (pageContext.getParameter ("Update")! = null) {}

    If (evo. Last()! = null)

    {

    am.getOADBTransaction () .commit ();

    OAException message = new OAException ("saved... files", OAException.CONFIRMATION);

    pageContext.putDialogMessage (message);

    }

    }

    Am:

    {} public void initAttachmentDetails (String CaseNum)

    If (CaseNum! = null) {}

    System.out.println ("number of cases obtained and transmitted to AM is:" + CaseNum);

    tstgupdVOImpl vo = gettstgupdVO1 ();

    {if(vo!=null)}

    vo.exeattachmentQuery (CaseNum); the definition of this method will be written in VOimpl.java of VO attached to the area of the table

    }

    }

    }

    public void exeattachmentQuery (String CaseNum)

    {

    System.out.println ("-exeattachmentQuery in VoImple is called");

    If (CaseNum! = null) {}

    System.out.println ("number of cases referred is NOT NULL");

    setWhereClause("CASE_NUMBER=:1");

    setWhereClauseParams (null); Always reset

    setWhereClauseParam (0, CaseNum);

    executeQuery();

    System.out.println ("the request is:" + getQuery());

    }

    }

    Please help because I'm stuck.

    Thank you

    MK

    or you can also try

    Dim empID = this.getCurrentRow ().getAttribute("EmployeeId").toString ();

    See you soon

    AJ

  • Build API - update failed because token

    Hello

    yesterday, I tried to update my app with the API to build. For this, I take my chip as I read here

    PhoneGap Build Documentation

    My call

    CURL https://build.PhoneGap.com/API/v1/me?auth_token=token SET d x ' data = {"version": "0.0.3)."}' https://build.PhoneGap.com/API/v1/apps/AppID

    No not one I had a return of error 404 html source code and a json error with

    You must login or register before you continue.

    What is best to the Germany and thx for the help.

    What is an appeal? You shouldn't have two URLS...

    To get the token:

    curl-x PUT d ' data = {"version": "0.2.0"}' https://build.phonegap.com/api/v1/apps/1234?auth_token=abcdefg

    replace '1234' with your app id and "abcdefg" with your authentication token.

  • Update line programmatically with Composite primary keys

    Hi all

    I use JDeveloper 11.1.2.4.0,I want to update the program with two primary keys PK1_ID and PK2_ID line

    When I have a primary key I can do it by:

    /////////////////////////////////////////////////////

    Key = new key (new Object() {empid});

    Employees1ViewImpl vo = (Employees1ViewImpl) this.getEmployees1View1 ();

    Locate the line using key reference in the View object.

    Line k = vo.getRow (key);

    using this method, we can set the new FirstName

    k.setAttribute ("FirstName", "Vero");

    this.getDBTransaction () .commit ();

    ///////////////////////////////

    Is it possible to use the same code with more of primary key?




    Kind regards

    The key class contains an array of attributes that identify the line you're looking for. In your case, the key has two attributes

    Key = new key (new Object() {pkId1, pkId2});

    the rest of the method works as what.

    Timo

  • Update line by program

    Hi all

    I use JDeveloper 11.1.2.4.0,I want to update the line by program, but I know not where to write the code in managed bean or to object class or class object

    and how to write?











    Kind regards

    Write the update method of the Application Module Impl class, as shown here:

    http://Nitesh-Java.blogspot.com/2013/10/update-attribute-value-in-view-object.html

    You can:

    1 make the method in the app module which takes the parameters (IE, the values for your attributes).

    2 export this customer for the App module interface method:

    Oracle ADF - tips and Techniques: model ADF - Beginner: AMImpl expose methods like client interface

    3. Add the method to the pageDef and call support bean:

    Immerse yourself in Oracle: ADF: call the PageDefinition method programmatically

Maybe you are looking for

  • Downloaded copy e-mail on USB?

    I need to copy my emails downloaded on a USB because my laptop will be worked by the manufacturer and the hard disk will be wiped. How can I do this (if possible)? Thank you!

  • water rescue damaged phone before the appointment of engineering

    I dropped my iPhone 6s in accidentallly water and I have a genius bar appointments to come, most probably need a replacement phone. To back up my phone before going I'm because my phone is dead, I can't sync the phone with iTunes because it asks me t

  • Compaq presario notebook CQ71: mother of computer laptop compaq presario CQ71

    mother of laptop Compaq presario CQ71 I have a question an abot in Selangor, this motherboard. the graphics chip is separate or integrated. My cq71 crashed and stopped working continuous overheating by weak graphics. so ive decided to spend the whole

  • Alerts and actions of the device

    Hello Where can I find an example on how to implement the actions of the device as the activation of the light of the notification or the machine vibrates? I would also like to know how to create a warning with C + c++ / QT? Thanks for any help!

  • Pack and unpack to a folder

    Hello Pack and unpack a file using zip, tar, whatever, 3-party libs like zipme, junzip does not work. Can all give a demo code simple and executable that you use now, thanks in advance. http://supportforums.BlackBerry.com/T5/Java-development/how-to-c