Pricing item 20 based on material of item 10 - can this work?

I want to determine a price for line item 20 based on the material# of line item 10.
If item 10 material = 123 and
   item 20 material = abc,
      item 20 price = $100 and because item 10 material = 123, discount = 10%.
How can I do this?  I'm willing to create a field for the communication structure, but I don't know how it would work.
Thanks for any help!

Hi - In order to solve this require 2 steps need to be carried out:
1 - We need to create  a routine for Alternative Base Value in the pricing procedure assign it to the condition type that you have created.
2 - You need to also use the higher level item feature in your contract/order to specify which item you will be using as the basis for your discount calculation.
**Alt Calculation type may not help you. Alt Basetype for Calculation is the key to solving this
Regards
Siddharth
<< Moderator message - Point begging removed >>
Edited by: Rob Burbank on Nov 26, 2010 3:05 PM

Similar Messages

  • Separate tax line item based on material line item in MIRO

    Hi Guru,
    PO qty is 100 unit with RM1/each. Condition maintained as sales tax 10%. I did 2 GR separately (MIGO) for said PO with 10qty & 20 qty each.  That means sales tax total is (30qty x RM1 x 10% tax) = RM3.
    Now I wanted to do IV (MIRO). I noticed 3 line item altogether as show below;
    1. 10qty & RM10 (material)
    2. 20qty & RM20 (material)
    3. 30qty & RM3 (tax)
    All line item qty & amount are correct but then the tax line is accumulate altogether. User wanted this separate like how the 1st & 2nd line item is. The reason is the user only wanted to post 1st line item with tax that belongs to 1st line item this month & the 2nd line item may post next month. Please take note that according to our business process, user are NOT allowed to make any changes in qty or amount in MIRO.
    May I know how we can separate all condition type amount & qty based on GR qty so that user can select each pair accordingly & able to post it.
    Thanking in advance.
    rgds,
    nema

    Dear Experts,
    Can anyone assist me?
    rgds,
    nema

  • Display list items based on another list item

    Hi All
                I want to display the list item based on another list item, but its not working.
    This is my code:
    /*WHEN-NEW-FORM-INSTANCE*/---Its working.
    DECLARE
       rg_district   recordgroup;
       rg_name       VARCHAR2 (40) := 'district';
       vtemp         NUMBER;
    BEGIN
       rg_district := FIND_GROUP (rg_name);
       IF ID_NULL (rg_district)
       THEN
          rg_district :=
             CREATE_GROUP_FROM_QUERY (rg_name,
                                      'select dist,dist from district_mas'
          vtemp := POPULATE_GROUP (rg_district);
          POPULATE_LIST ('BLOCK3.DISTRICT', rg_name);
       END IF;
       END;
    */WHEN-LIST-CHANGED*/---Not working. Cannot populate the list based on the List
       DECLARE
       rg_branch   recordgroup;
       rg_name1     VARCHAR2 (1000) := 'branch';
       vtemp       NUMBER;
    BEGIN
       rg_branch := FIND_GROUP (rg_name1);
       IF NOT ID_NULL (rg_branch)
       THEN
          DELETE_GROUP (rg_name1);
          rg_branch :=
             CREATE_GROUP_FROM_QUERY
                ('rg_branch',
                    'SELECT branch FROM dist_branch WHERE district IN (SELECT DIST FROM DISTRICT_MAS WHERE DISTRICT ='
                 || :BLOCK3.DISTRICT
          vtemp := POPULATE_GROUP (rg_branch);
          POPULATE_LIST ('BLOCK3.BRANCH', rg_branch);
       END IF;
       END;
    Table:
    CREATE TABLE DISTRICT_MAS
      DIST  VARCHAR2(100 CHAR)
    CREATE TABLE DIST_BRANCH
      DISTRICT  VARCHAR2(100 CHAR),
      BRANCH    VARCHAR2(100 CHAR)
    Values:
    insert into district_mas values('chennai');
    insert into district_mas values('coimbatore');
    insert into dist_branch values('chennai','chennai_north');
    insert into dist_branch values('coimbatore','Podanur');
    Regards
    Shagar M

    Hmm, not tested.
    try this..
    --*/WHEN-LIST-CHANGED*/
       DECLARE
       rg_branch       recordgroup;
       rg_name1     VARCHAR2 (1000) := 'branch';
       vtemp        NUMBER;
       QT            VARCHAR2(10) :='''';
    BEGIN
       rg_branch := FIND_GROUP (rg_name1);
       IF NOT ID_NULL (rg_branch)
       THEN
          DELETE_GROUP (rg_name1);
          rg_branch :=
             CREATE_GROUP_FROM_QUERY
                ('rg_branch',
                    'SELECT branch FROM dist_branch WHERE district IN (SELECT DIST FROM DISTRICT_MAS WHERE DISTRICT ='
                 || QT||:BLOCK3.DISTRICT||QT||')'
          vtemp := POPULATE_GROUP (rg_branch);
          POPULATE_LIST ('BLOCK3.BRANCH', rg_branch);
       END IF;
    END;
    Hope this works..
    Hamid

  • Error while editing PO - deleting service line item and creating material line item.

    In SAP SRM Extended classic scenario, PO is in 'ordered' status and contains a service line item. While editing this PO, I delete the service line item and create a new material line item. This gives me the following error.
    Back end error: Enter G/L account
    Back end error: LIne item still contains faulty items.
    This happens only with service- material comibination and no other combination(material-service, service-service, material-material).
    I need to know the reason for this issue and how it can be solved?

    PO Values (Inc Tax):
    Item 1: INR 228 L
    Item 2: INR 27.83 L   (Payment also done in 2008)
    GR for Item 1: INR 207.46 L
    Remaining Comm = INR 21.01 L
    Item 1 having 73 sub line items.... fo some of the sub-line items GR for some qty already done in last fiscals.
    User changing for remaining qty.
    Budget Report values:
    Previous Years:  Budget, Actual & Assigned = 304.85 L
                                Available = 0      (Carry Forward done for Budget & Commitments)
    2011:                   Budget = 75.15 L
                                Actual = 53.86 L
                                Comm = 21.01 L   (Same as Remaining Commitment)
                                Avai = 0.28 L
    Hope this will help.

  • Find_report_object('rp2rro') how can this work?

    Hi
    I've spent a long time looking thru metalink (now Support) at the various posts and documents on calling reports from forms using the run_report_object that the translator replaces run_product with, and here and I'm frankly still looking for direction .
    This code is in rp2rro.pll and of course dies, as there is no rp2rro report
    rp2rroNodeId                Report_Object     :=find_report_object('rp2rro');
    I have a menu that calls something called execute_report with just a report name (e.g. end_month_report). execute_report is in a user library and contains a call to rp2rrro. It looks like this
    PROCEDURE execute_report(i_report IN VARCHAR2) IS
    -- Code modified by the Forms Migration Assistant
    -- 11-Jan-2011 01:58 PM
    BEGIN
    SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'BUSY');
    RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS, i_report, SYNCHRONOUS, RUNTIME, FILESYSTEM);
    SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    END;
    Can anyone suggest a way to make this work without modifying the forms?
    Looking at Rp2rro, it uses rp2rroNodeId throughout..
    Thanks for any suggestions

    Well almost a year later, the dummy form solution has been working well with 11GR1, but I have some issues understanding how to make the dummy form call reports using parameters passed in the rp2rro call using this approach
    If a form calls the dummy form with a parameter list containing e.g. start_date, end_date etc then the problem is that the dummy form doesn't have those parameters defined because it can be called from many different forms each with its own set of parameters.
    As I read in the 6i doc "+When passing the default parameter list as well as any other parameter list, make sure that every parameter exists with the same name in the called form"+ which doesn't work as the dummy form doesn't have those parameters defined.
    I'm trying to centralize all the rp2rro report invocations so that developers don't have to add the web.show_document and the hidden values and the rest of that logic to bring a PDF form back into the web browser
    I'm trying out a number of things but would be interested if anyone has any comments..

  • TV sideways (portrait), iPad portrait, HDMI out - can this work?

    I'm using either VGA adapter or HDMI adapter ... with iPad 3.
    I'd like to get my TV (which I rotate 90 degrees so that it's effectively a 'portrait' display) to display iPad as shown below (iPad held portrait, TV effectively portrait):
    (attached is a photo of a 'mock-up' of what I hope to do)
    Can this be done? 
    I usually get this instead (which I *don't* want):
    I want to get the FIRST image (top of this note), not the 2nd.  I want to maximize the size
    of the iPad display, by rotating my TV to be in the same orientation as my iPad is held (portrait).
    Any help/ideas?
    Thanks!
    Jim

    .:B:. wrote:If you really want to pimp your setup, you share the database (use a separate MySQL database) and optionally fanart and have each client access them over the LAN. It's pretty cool stuff. I have my desktop (HD6950 GPU, so also XvBA) and AD10 set up like that. It's pure luxury (and it will make a lot of people's jaws drop ). I stop a movie or an ep on my TV, i go to my bedroom and pick up where I left on my desktop.
    Yeah, I've read about this . But I'm (actually, will be when I move ) living in a small apartment (30m^2) so it's really not needed - I plan on watching movies on my TV, not the computer that will be a few meters away .
    I do, however, have all my fanart/cover art/etc. saved locally on the disk with the media, makes scraping so much faster and easier

  • Minimum date in calendar item based on another number item

    Hello,
    I have a calendar item that I use in a form. I have another item called effort_days(number) which is calculated using a dynamic action based on other item entries.
    How can I set a minimum pick date in my calendar item that should be sum between sysdate + effort_days?
    Thanks

    i'm not sure if you wanted the second colum's lov values to change per row as your users update the first column or if you simply want the second col's available values to be determined by the originally selected first column values in each row. the latter scenario can be handled easily enough in a manually created tabular form using a call to htmldb_item.select_list_from_query like so...
    select empno, htmldb_item.select_list_from_query(1,mgr,'select ename, empno from emp where empno !='||empno) mgr_select_list from emp
    ...and if you want your available second column values to change as your user updates values in the first column, you'd probably have to use javascript. anyhow, you're hopefully after my second setup. if you're new to manually created tabular forms, there's a great howto doc on them at...
    http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.html
    ...hope this helps,
    raj

  • Dynamically changing the list item based on another list item

    Hi all,
    I have two fields that are list items.
    First list item contain two list values: Regular and One-time
    In second list item if user select the Regular then below values should appear:
    Daily wages
    Activity Linked
    Fixed Contracts.
    Contract Staff
    Outsourced
    if user select the one-time then below values should appear:
    Projects
    Repairs & Maint.
    Please do the needful.

    First list item contain two list values: Regular and One-timeYou simply need to add a conditional check to the When-List-Changed (WLC) trigger to see which value was selected. Then, as Manu suggests, you will populate the Poplist based on the selected value.
    For an example of how to dynamically populate a Poplist item, take a look at: Forms: How to Dynamically Populate a Poplist.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Can this work?

    Will this piece of code create a new object accordingly? I was wondering how to set the methods and the variables properly.
         AirplaneList plane = new AirplaneList();
         plane.add(); //Add planes to list
         plane.remove(); //Remove planes from list
         plane.empty();
         plane.full();
         plane.item();
         plane.total();
         //creating a new list
    //if(!plane.isFull());
    //plane.add("Boing 747");
    //plane.add("Chesna");
    //plane.add("StealthBomber");
         class Airplanelist
         //Attributes of the class
         private boolean isEmpty = true; //change list state
         private boolean isFull = false;
         private int getTotal;
         //Methods of the class
         public void add(String flight);
         //add the plane to a list or array or something
         System.out.println("INSANITY LEVEL APPROACHING CRITICAL HOW TO ADD A PLANE FROM LIST?");
         public void remove(String plane);
         //remove the plane to a list or array or something
         System.out.println("INSANITY LEVEL APPROACHING CRITICAL HOW TO REMOVE A PLANE FROM LIST?");
         //evaulate if list is empty
         public void empty() //List is empty
         isEmpty = true; //list state
         isFull = false;
         System.out.println("Is empty");
         }// empty()
         //evaulate if list is full
         public void full() //List is full
         isEmpty = false; //change list state
         isFull = true;
         System.out.println("Is empty");
         }// full()
         public void item(String int);
         //returns the airplane flight number
         System.out.println("return item number");
         public void total(String int);
         //returns the total number of airplanes on the list
         }//Airplane list class

    javac -d D:\Java -g "D:\Virtual worlds\1st Year\Semstair 1\JAVA - Structured Programming\Assignment 2\AirplaneListTester.java"
    D:\Virtual worlds\1st Year\Semstair 1\JAVA - Structured Programming\Assignment 2\AirplaneListTester.java:12: cannot resolve symbol
    symbol : variable EasyIn
    location: class AirplaneListTester
              size = EasyIn.getInt();
    ^
    D:\Virtual worlds\1st Year\Semstair 1\JAVA - Structured Programming\Assignment 2\AirplaneListTester.java:16: cannot resolve symbol
    symbol : class AirplaneList
    location: class AirplaneListTester
         AirplaneList plane = new AirplaneList();
    ^
    D:\Virtual worlds\1st Year\Semstair 1\JAVA - Structured Programming\Assignment 2\AirplaneListTester.java:16: cannot resolve symbol
    symbol : class AirplaneList
    location: class AirplaneListTester
         AirplaneList plane = new AirplaneList();
    ^
    3 errors
    These are the errors i get when javac compile occurs for the code
    import javax.swing.JOptionPane;
    class AirplaneListTester
         public static void main (String[] args)
    throws java.io.IOException
              char choice;
              int size;
              size = EasyIn.getInt();
         AirplaneList plane = new AirplaneList();
         plane.add(); //Add planes to list
         plane.remove(); //Remove planes from list
         plane.empty();
         plane.full();
         plane.item();
         plane.total();
         //creating a new list
    //if(!plane.isFull());
    //plane.add("Boing 747");
    //plane.add("Chesna");
    //plane.add("StealthBomber");
         class AirplaneList
         //Attributes of the class
         private boolean isEmpty = true; //change list state
         private boolean isFull = false;
         private int getTotal;
         private int number;
         //Methods of the class
         public void add(String flight)
         //add the plane to a list or array or something
         System.out.println("INSANITY LEVEL APPROACHING CRITICAL HOW TO ADD A PLANE FROM LIST?");
         public void remove(String plane)
         //remove the plane to a list or array or something
         System.out.println("INSANITY LEVEL APPROACHING CRITICAL HOW TO REMOVE A PLANE FROM LIST?");
         //evaulate if list is empty
         public void empty() //List is empty
         isEmpty = true; //list state
         isFull = false;
         System.out.println("Is empty");
         }// empty()
         //evaulate if list is full
         public void full() //List is full
         isEmpty = false; //change list state
         isFull = true;
         System.out.println("Is empty");
         }// full()
         public void item(int number)
         //returns the airplane flight number
         System.out.println("return item number");
         public void total()
         JOptionPane.showMessageDialog(null, "Returning the total number of planes on the list is " + getTotal);
         //returns the total number of airplanes on the list
         }//Airplane list class
    // The code below creates a dialog box for the user to input a choice
         String inputcode;
         inputcode = JOptionPane.showInputDialog("A: add an airplane from the list\n" +
                                  "B: remove an airplane from the list\n" +
                                  "C: check if the list is empty\n" +
                                  "D: check if the list is full\n" +
                                  "E: display the list\n" +
                                  "F: quit\n" );
         JOptionPane.showMessageDialog(null, "You have chosen choice " + inputcode);
    do
              // get choice from user
         choice = inputcode.toUpperCase().charAt(0);
              //choice = (char)System.in.read ();
              System.out.println();
              //process menu options
              switch(choice)
                   case 'A':
                   case 'a':
                        JOptionPane.showMessageDialog(null, "Case " + inputcode);
                        break;     //done processing case
                   case 'B':
                   case 'b':
                        System.out.println("Case B") ;
                        break;     //done processing case
                   case 'C':
                   case 'c':
                        System.out.println("Case C") ;
                        break;     //done processing case
                   case 'D':
                   case 'd':
                        System.out.println("Case D") ;
                        break;     //done processing case
                   case 'E':
                   case 'e':
                        System.out.println("Case E") ;
                        break;     //done processing case
                   case 'F':
                   case 'f':
                        System.out.println("Case F") ;
                        break;     //done processing case
                   default:
                        System.out.println("Invalid entry");
         }while (choice!= 'F' ||
         choice!= 'f' );
         System.exit(0);
    I am aware Java is case-sensitive i have corrected the error. From what I have read a constructor initiates an object with a certain set of values for its variables/attributes. However it will not return a value? If there is no constructor present then java automatically assigns "false" values to the variables?
    Learning is such a painful process. The coursework that has been set to me is to develop a "AirplaneListTester" class that has been partially created. I have already changed the case values from numbers to letters, so that the user will see a menu. It accepts both case-types and any other letter not listed will create an invalid response. This project appears very similar to the java cyberpet.
    This is harder though because I have never dealt with more than two boolean conditions, i.e sleeping or eating. The user is to enter a flight number into the "add" plane menu, however I am not sure how to add planes let alone remove them yet, as well as print out all of the planes on the list and check to see how many there are already there.
    EasyIn.getint method = size and size is an integer variable.

  • Airport Express, WPS, 802.11n and 7.5.2 firmware - can this work?!

    Can't believe this hasn't happened to anyone else, but I can't find a relevant thread.
    I have a Time Capsule and an Airport Express base station. The Time Capsule was configured as a WDS base station, and the Express as a WDS Relay. The Express is less than a year old, ie 802.11n.
    Everything worked beautifully until firmware upgrade 7.5.2 which self-installed on the Time Capsule just as you would expect - except the relay stopped working.
    I've tried everything I can imagine, but I can't get the two devices to communicate with each other any more (even with the new firmware on the Express). I have read somewhere on the Apple site that WDS "doesn't work" with 802.11n, but this doesn't fully explain how it did work with 802.11n up until the time of the firmware upgrade to put it mildly. And releasing a firmware "upgrade" that stops existing configurations working, without warning, is not really an Apple thing to do.
    One thing I haven't tried is to revert to older firmware; do I really have to do that? Or is there something wrong here please, Apple? Or did I just imagine, for those 9 months, that the relay was working sweetly?!
    Don't know if this is related, but Airport Utility almost consistently fails to see both devices if they are both switched on, but can only see one or the other. Is it possible that the Express has developed a fault?
    Please help; I have an old house and I can't penetrate most of it without my WDS!!

    Might this apply?
    AirPort Firmware Update 7.5.2 does not install on an extended Wi-Fi base station
    http://support.apple.com/kb/TS3433

  • Two Ipods for one computer:  Can this work?

    Question:
    My wife has an Ipod nano and my daughter wants one for Christmas. If my daughter hooks hers up to the computer, will it automatically load all the songs in my wifes itunes? Can they keep their songs separate from each others Ipods?
    Thanks in advance for any info.

    Apple has a great iPod website that explains all kinds of things about the iPod. Be sure to take a look there.
    But to answer your question, yes, your daughter and wife can certainly use one computer and two iPods. My wife and I did for about a year. The first question is this - do they share any of the same musical tastes?
    If not, then the easiest solution would be to create an account on your computer for your daughter. She can put her music in that account, keep her own iTunes library, and fill her iPod to her own delight.
    If they do share any musical interests then it will be more economical to use just the one account. Your wife and daughter can create their own individual playlists and set their iPod preferences to sync only the playlists they choose.

  • Timestamp query in partitioned table - can this work?

    Hi,
    I have a table RANGE partitioned by a column named: CREATE_DATE (DATE). Its purpose is to manage the daily create/drop partitions of this table, I do not want to include this column in queries. I do not have an index on this column. We chose DATE for this column because we want to maintain a specific number of days in this table. And when we originally tried to use the STOP_TMSTMP column, TIMESTAMP proved to be unusable for RANGE partitioning.
    There are two other Timestamp columns that ARE used for precise transaction time calculation (STOP_TMSTMP - START_TMSTMP), and included within queries.
    I have an index on the STOP/START_TMSTMP but it is not getting used. And a table scan is occurring. So, finally my main question: How can I make the STOP_TIMESTAMP column index be used in queries against this table? And Is the CREATE_DATE required in a query, or can I safely ignore this column?
    Thanks,
    Mike

    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    "CORE     10.2.0.3.0     Production"
    TNS for Solaris: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Example query:
    select count(*)
    from flow_completion_record
    where stop_timestamp > '03-MAY-10 12.00.01.000000 AM'
    Takes 370 seconds and returns 2.7 million rows.
    Are you smarter than Oracle's optimizer?I will answer this rhetorical question with another question: does anyone really know what the optimizer will do? Or are you just best-guessing?
    Back to the original question: If I use the CREATE_DATE column to RANGE PARTITION this table, can I ignore it for queries in this table when it comes to TIMESTAMP?
    I really want to treat CREATE_DATE like I would an ID primary key column. Its value is set but I do not use it for queries.
    Thanks

  • Can this work as a Switch?

    Can the Air Port Extreame be used as a switch?

    Yes, if it is configured in Bridge Mode.

  • Can this work to backup iPhone...

    I am 3 computers past my last backup in iTunes because my original one kept getting errors. I want to push everything to my computer via my phone. I have all my music saved externally, But I don't want to lose my notes, and preferably data within my apps. I could manually transfer everything, but this could result in a disaster. I was wondering if I backed my entire iPhone to the cloud, could I then pull that to my iTunes account and sync the two devices that way? I really miss having my iPhone synced to my Computer. Btw, it is 32GB iPhone 4, and includes every little bit of that 32GB. So I understand I would have to pay for that data to cloud back up.
    As in, I dont care about my music. I have it all, Its everything else I dont want to lose. Does iCloud do this??
    Thanks!!

    Ahh, I dont use iTunes because it wants to erase my phone's data and sync to my computer. But I dont want to lose the data associated with notes/contacts/apps.
    But your saying that I could use iCloud to back up that data, then use iTunes to wipe my iPhone and by authorizing my computer, it will get all of my app and music purchases back. Then add any CD music from my backups. Then I can use iCloud to reput the notes/contacts/apps data back into my iPhone and this result in the same iPhone but synced to my computer?
    (I have iCloud, but never backed up because I had too much data. But i realized it was mostly pictures. And i can manually back those up, so now I am actually under the 5GB limit I think)

  • Can this work for a chart?

    i want to create a static group
    like
    such that i can see group in report
    1 In Picking
    2 In Packing
    3 In Engraving
    4 In SHipping
    5 etc.
    6
    that group then i can use in chart and create another formula
    to show ship of date

    Hi Paul,
    You can't really create 'static' groups *without evaluating them against a database field value*.
    E.g:
    If {database_field} = <some_value> then 'In Picking'
    else if {database_field} = <some_value> then 'In Packing'
    else 'In Shipping'
    You can then create a group on this formula and even use this in a Chart/Crosstab.
    -Abhilash

Maybe you are looking for