Set up of MM conditions in COPA

Dumb question.... but in Customizing (next to KE4I) there is an option to map MM conditions to Value Fields just like we can map SD conditions to Value Fields...
How is this used?
What document in logistics triggers this posting? (Just like Billing will in SD condition etc.)
Thank you in advance!

Hi Arif,
This is what SAP feels the requirement for MM to COPA
Direct Posting from FI/MM
You can transfer direct primary postings from Financial Accounting (FI) and Materials Management (MM) to profitability segments.
The following are some typical cases of when you would want to do this:
You post special direct costs from sales, such as transport insurance for a certain delivery, and would like to assign these primary costs directly to a profitability segment.
You post an invoice for promotional events and you want this invoice to appear statistically in the responsible marketing cost center, and at the same time assign it to a profitability segment in Profitability Analysis. In this case, you would assign the invoice to both a cost center and a profitability segment.
You create automatic postings in Materials Management and you want these revenues and expenses from the revaluation of material stocks to be posted automatically to Profitability Analysis. This instance also requires that you define "Automatic assignment to a profitability segment".
Requirement
1. The operating concern must be fully defined.
2. The desired form of Profitability Analysis must be active for the relevant controlling areas.
3. You have maintained number ranges for record type "B".
4. You have created a group of characteristics (under "Master Data") to define the screen for assigning postings to profitability segments, and assigned this characteristic group to business transaction "RFBU".
You need to customize in TCode KEI2 and/or OKB9.
Regards,
Suraj

Similar Messages

  • Set background color when condition applied

    hi,
    Can anybody tell me how to set background color when condition applied.
    My initial plan was to highlight a specify row(Change color) when the third column of this JTable consists of OK word.
    int rowCount = table.getRowCount();
    for(int i=0 ;i <rowCount ; i++)
    String word = table.getValueAt(i,3).toString();
    if(word.equals("Word")) {
    table.setSelectionBackground(Color.red);
    break;
    else {
    table.setBackground(getBackground());
    Thanks.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class TableChanges
        public TableChanges()
            String[] headers = { "column 1", "column 2", "column 3", "column 4" };
            int rows = 18;
            int cols = 4;
            String[][] data = new String[rows][cols];
            for(int row = 0; row < rows; row++)
                for(int col = 0; col < cols; col++)
                    data[row][col] = "item " + (row * cols + col + 1);
            JTable table = new JTable(data, headers);
            // add custom cell renderer to each column
            TableColumnModel columnModel = table.getColumnModel();
            for(int j = 0; j < columnModel.getColumnCount(); j++)
                TableColumn col = columnModel.getColumn(j);
                col.setCellRenderer(new CellRenderer());
            // add table model listener to listen for cell edits
            // so we can detect our special selection edit value
            // which is "word"
            TableModel tableModel = table.getModel();
            tableModel.addTableModelListener(new ModelListener(table));
            JScrollPane scrollPane = new JScrollPane(table);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(scrollPane);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
            Dimension d = scrollPane.getViewport().getSize();
            table.setRowHeight(d.height/rows);
        public static void main(String[] args)
            new TableChanges();
    class ModelListener implements TableModelListener
        JTable table;
        public ModelListener(JTable table)
            this.table = table;
        public void tableChanged(TableModelEvent e)
            int firstRow = e.getFirstRow();
            int lastRow  = e.getLastRow();
            int colIndex = e.getColumn();
            if(e.getType() == TableModelEvent.UPDATE &&
                  firstRow != TableModelEvent.HEADER_ROW &&
                  colIndex != TableModelEvent.ALL_COLUMNS &&
                  colIndex == 2)                            // column 3 only
                String value = (String)table.getValueAt(firstRow, colIndex);
                // check for our special selection criteria
                if(value.equals("word"))
                    for(int j = 0; j < table.getColumnCount(); j++)
                        CellRenderer renderer =
                            (CellRenderer)table.getCellRenderer(firstRow, j);
                        renderer.setSpecialSelection(firstRow, j);
    class CellRenderer extends DefaultTableCellRenderer
        int specRow, specCol;
        public CellRenderer()
            specRow = -1;
            specCol = -1;
        public Component getTableCellRendererComponent(JTable table,
                                                       Object value,
                                                       boolean isSelected,
                                                       boolean hasFocus,
                                                       int row, int col)
            setHorizontalAlignment(JLabel.CENTER);
            Color color = Color.black;
            if(hasFocus)
                color = Color.blue;
            else if(isSelected)
                color = Color.green.darker();
            else if(row == specRow && col == specCol)
                color = color.red;
            setForeground(color);
            setText((String)value);
            return this;
        public void setSpecialSelection(int row, int col)
            specRow = row;
            specCol = col;
    }

  • Posting manual SD conditions to COPA

    Hi,
    I have customized KE4I transaction with all the SD condition types, but when the billing document has the conditions filled manually it doesn't appear in the PA document.
    Is it possible to post this conditions to COPA?
    Thank you very much!!!

    You could try KE26 for reposting, if it were subsequently added. May be the condition type has to do something with statistical or non statistical? Refer also to the note 20254 .

  • Trading goods MM Conditions into COPA ( Condition wise)

    Dear Experts,
    Any possibility is there to get the MM Pricing conditions into COPA like SD Conditions with out activating IS Retail Module.
    Any alternative method or MM condition Types into COPA.
    Regards,
    Goda

    Hi,
    Yes, it is possible to post values into Value fields of PA by assigning the MM Conditions in KE4IM like what we do for SD conditions in KE4I.
    Trust this helps much!
    Cheers!

  • Set background color for conditional text fields by click of button.

    Hi,
    I am new to apex, the scenario is when i click on a button i.e. Save, it shoulld compare 2 fields P1 and P2 which are text fields.
    If the value of P1 is greaterthan P2 then the whole P1 text field background color should change to "Red" otherwise in any other condition the P1 field should be "Green" color.
    In which section the color function should be called on the Save button?
    On the page in the HTML Header section i have added the below code but the background color is not getting set.
    <script type="text/javascript">
    function fncChangeColor()
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
    document.getElementById("P1").style.background = "RED";
    else {
    document.getElementById("P1").style.background = "GREEN";
    </script>
    Can any one help me in moving ahead with this scenario with a detailed information.
    Thanks,
    Priyanka.

    Hi,
    Call function on button URL target
    javascript:fncChangeColor()If button should submit page, then I think you do not need color field to green.
    Just change to run submit function.
    <script type="text/javascript">
    function fncChangeColor(){
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
      $x("P1").style.background = "RED";
      return false;
    apex.submit({request:"YOUR_REQUEST"});
    </script>Regards,
    Jari

  • Setting validation based on condition on custom list

    Hi,
    I have a custom Image library. I have two custom columns created as part of metadata.
    One is a dropdown choice column, which contains 2 values - "Free", "Paid".
    I also have a datepicker column (date only). 
    I would like to set a validation based on below condition:
    If dropdown selected is "Paid", then date should be mandatory field.
    Can this be achieved OOB or a JSLink is required.
    How to achieve this?
    Thanks 

    Hi Vankatzeus,
    You can achieve this using Javascript. In New and edit forms of your list, add a content editor webpart with the script explained below -
    There is a PreSaveAction() function that you can use to do a custom validation. Before submitting any item, sharepoint first do the validation in PreSaveAction().
    function PreSaveAction() {
      //Step 1 - Read the choice and date fields. 
    // Step 2 - If choice is 'PAID' and 'date' field is blank { alert('Date can't be blank'); return false;} else {return true;}
    In Step 1, write a script that read values from choice and date fields. You can take the script from
    here and modify it just to read choice and date fields.
    Cheers,
    Manvir

  • How to set colors on some condition in barchart

    Hi,
    I want to design a crystal report with a barchart. I should specify the color of the bar based on some conditions, this colornames are maintained in the database. I tried using chart expert -> color highlights,
    is there any other way to set the color of the bar?
    Regards,
    Deepa V

    Hi Deepa,
    In charts Color Highlight is the only way to conditionally change the color of the riser bars.
    You can use multiple conditions at a time in color highlight.
    To change the color directly you can right click the bar and select the Format Series Riser and change the color (but not conditionally)
    Regards,
    Aditya Joshi

  • How to set a BEx Query Condition in Design Studio (e.g. Net value GT 0)

    Hi experts,
    I have set a simple condition in my BEx Query...
    e.g. key figure "Net value" GT 0 to become only positive values in the query result.
    In the Query runtime the condition works successful, but in the Design Sudio view the defined Query condition doesn´t work.
    In my Design Studio crosstab I have tried to switch between the display setting "Conditional formating Visible" true/false, but without success.
    By the way, before I have posted this thread, I had a look at this two blogs...
    Design Studio 1.0: Create a Scorecard Using SAP BW BEx Query Exceptions
    Design Studio 1.2  - a Second Look
    Any ideas or experiences?
    Thanks and regards,
    Michael

    Hi Michael,
    I think you are mixing up two different BEx terms. Conditions are filters on key figures (show me only the results with a value bigger than 50). Exceptions do not filter the result set, but provide a formatting based on the values in the result set (if value is bigger than 50, make its cell red).
    The Conditional formatting setting in Design Studio refers to the BEx exceptions. For the BEx conditions there isn't such a setting available. You just have to activate the condition in your BEx Query and use that for your data source in Design Studio.
    If you want a workaround to enable/disable conditions from Design Studio, check this blog I wrote: HackingSAP.com - SAP Design Studio and Conditions It shows how you can use variables to adjust the conditions (and also activate) from within Design Studio.
    Cheers,
    Xavier

  • Set cell background color conditionally?

    I want to set a cells' background colors conditionally, e.g., if the computer value is between 5 to 9, make the background red. Is there any way to do that?

    That is a good question. It would appear it does not work. A way around it is to put 1:00 (1 hour duration, not 1 o'clock) in a cell and a 1:30 in another then reference those cells as your two conditions.
    This is not the only place where the duration format is not fully implemented.

  • Oracle Business Intelligence How to choose data set based on a condition

    Hi,
    I am using Oracle Business Intelligence for creating reports, i am facing a situation where i have two quries (data sets in BI), one to display a Failure message and other to fetch data from the table to be displayed in the report.
    The problem is i am unable to choose which data set to run based on a condition. How to use a condition based on which the dataset will be run
    For example : i will read a table column value if it is 'S' means success, then i have to run the dataset to fetch the data from the table.
    If the column value has 'F' then i have to run the dataset which will display failure message
    Please let me know if any of you have any idea on this
    Thanks in advance
    Muthukumaran

    Hi Chinna,
    You have to use some scripting as well as coding to perform the tasks listed by you. First of all make your form Dynamic, In your Adobe lifecycle Designer, open your form,
    Goto, File --> Form Properties,
    Goto the Defaults tab,
    Select "Dynamic PDF" for the XDP Preview Format:
    Click OK.
    This setting will now allow dynamicity in your Form, when you view it in PDF Preview tab.
    For Hiding/Unhiding the fields/SF, you can use the presence property and set it based on the conditions. like:
    if (this.rawValue == null)
    TextField1.presence = "hidden";
    For your second task, you may map a method corresponding to onSubmit event of the IF and write the code to create the workflow and make RFC call here.
    For third one, you need to convert the PDFObject from Binary context into a byte array and save it at appropriate location.
    Hope I have answered all your queries.
    Cheers,
    Arafat

  • Inactive SD Conditions to COPA

    We are having an issues with an SD condition value (specifically VPRS) not being sent to COPA.  It is statistical , which should be not a problem, but it's also inactive.  Do inactive condition values get sent to COPA?  Thanks.

    What is the meaning of inactive/ Where is it inactive.
    Normally, if it has been assigned in SD pricing procedure. And addigned to COPA vlaue field, it gets updated in COPA.

  • Plot different data set depending of some conditions using labview and veristand

    Hi Community,
    i have a couple of points saved as XY data points on my desktop.  The files are save as csv.  the idea is to read the file utilizing the Read From Spreadsheet File vi when some conditions are met and then plot the XY data wiht XY Graph Addon of the veristand workspace.
    for instance:
    if case 1 is true read the corresponding file and then plot the first set of data
    if case 2 is true read the corresponding file and then plot the second set of data
    if case n is true read the corresponding file and then plot the n set of data.
    Could you give some advices how to implement it (Labview and Veristand)?
    I'm using LV and NIVS 2012
    Thx
    Mich
    Attachments:
    vide.vi ‏35 KB

    Hi Michel,
    I believe the easiest method will be to use the VeriStand .NET API to call into VeriStand and utilize LabVIEW for creating the decision making cases that you have.  I have attached some examples of using the VeriStand API in LabVIEW.
    Using the NI VeriStand .NET API in LabVIEW to Control a VeriStand System
    https://decibel.ni.com/content/docs/DOC-32268
    Where Can I Find LabVIEW Examples Using the NI VeriStand API?
    http://digital.ni.com/public.nsf/allkb/E1066949FA67B6CE862578A7005988D5?OpenDocument
    Please let me know if this helps.
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • Statistical Conditions in COPA

    I find that there are few conditions types in SD which are "statistical".  I am not clear about how this statistical conditions will flow to COPA.  Will they flow to COPA ?  Since these have no FI postings, the COPA figures will not be in tally with FI, right ?

    Hi NIki
    SAP HELP outlines this concept.. However, my collection of points on this subject reads the following
    Costing based vs. Account based copa (ABC)
    a.     Account based copa uses transaction tables and hence affects performance of CO transactions
    b.     Estimated values not possible in ABC (Stat Values)
    c.     Reports based on line items not possible in ABC
    d.     Actual Top Down distribution not available in ABC
    e.     Revaluation of actual data to plan data is not available in ABC
    f.     No key figure schemes are available in ABC
    g.     COGS breakup cant be achieved in ABC
    Explanation on (b) - Using stat values, you can take tax values also to COPA.. i.e. you create a Stat cond type with 100% condition record on Sale Tax Cond Type... Hence, you can take tax values to COPA
    If you use ABC, you cant use Stat Values.. And tax account being a balance sheet account cant be taken to COPA
    Regards
    Ajay M

  • Minimum Set to satisfies the condition & formulae - Algorithm

    I need a solution for this problem. Please help..
    Problem:</
    Input:_
    Let N = 100
    {x y}
    {1 2} - A
    {2 3} - B
    {1 2} - C
    {1 5} - D
    Condition:_
    I can pick any set from the above, like {A, B} or {A, A, A, A....} or {A, B, D} or {A, A, B, B, C, C, C, ...} etc...
    Formulae:_
    example:
    for {A, B}, the formulae is --> (Ax + Bx)^2 + (Ay + By)^2 = N^2
    for {A, B, D}, the formulae is --> (Ax + Bx + Dx)^2 + (Ay + By + Dy)^2 = N^2
    i.e) (sum of all selected element's x value) ^ 2 + (sum of all selected element's y value) ^ 2 = N ^ 2
    Output: _
    The minimal number of elements that can be used to achieve the condition.
    example, if both {A, B} & {A, C, D} satisfies the formulae then my solution is {A, B} which has minimal elements in the set. so the output will be 2. if no solution, then return -1.
    Hope I have explained it clearly. Please help...

    First find the Pythagorean triples corresponding to a*a + b*b = N*N. This will give integer values of a and b which your x and y values should total to. This simplifies the next stage, as finding a set of values k1*x1+k2*x2+... + kn*xn = a reduces the search space somewhat - your last term will always be ( a - (k1*x1..kn-1*xn-1) ) / xn.
    Order your values so xi > xi+1. This means you can stop easily when xi == 0, and it's typically bit faster to try removing the biggest values first.
    You can also use dynamic programming to avoid some repeated calculations, but even without it's fairly fast, even for 20 or so different vectors in the basis.
        static class FindMinimimSet implements TripleProcessor {
            int bestTotal = Integer.MAX_VALUE;
            final int[][] basis;
            final int[] counts;
            final HashMap<Long,Integer> memo = new HashMap<Long,Integer>();
            // basis should be sorted by x then y with maximum values first,
            // eg { {4,3}, {4,2}, {0,4}, {0,2} }
            FindMinimimSet ( int[][] basis ) {
                this.basis = basis;
                this.counts = new int[basis.length];
            public void triple ( int a, int b, int c ) {
                bestTotal = findMinimumSet( a, b, bestTotal );
                if ( a != b )
                    bestTotal = findMinimumSet( b, a, bestTotal );
            int findMinimumSet ( int a, int b, int bestTotal ) {
                return findMinimumSet ( a, b, 0, new int[basis.length], 0, bestTotal );
            int findMinimumSet ( int a, int b, int i, int[] counts, int total, int bestTotal ) {
                long key = (a * 104729L + b) * 104729L + i;
                Integer val = memo.get(key);
                if (val == null) {
                    // TODO: record actual counts too
                    val = reallyFindMinimumSet(a,b,i,counts,total,bestTotal);
                    memo.put(key,val);
                return val;
            int reallyFindMinimumSet ( int a, int b, int i, int[] counts, int total, int bestTotal ) {
                if ( ( a == 0 ) && ( b == 0 ) ) {
                    // todo - save the counts somewhere rather than just outputting them
                    System.out.println( total + " -> " + Arrays.toString( counts ) );
                    return total;
                if ( i >= basis.length )
                    return Integer.MAX_VALUE / 2;
                int[] vector = basis;
    if ( i < basis.length - 1 ) {
    final int maxCount = Math.min ( bestTotal - total, Math.min ( ( vector[0] > 0 ) ? a / vector[0] : b, ( vector[1] > 0 ) ? ( b / vector[1] ) : a ) );
    // if the next value of x is zero, and this value isn't, count must be exact
    if ( ( vector[0] != 0 ) && ( basis[i+1][0] == 0 ) ) {
    if ( vector[0] * maxCount != a )
    return bestTotal;
    } else {               
    for ( int count = maxCount; count >= 0; --count ) {
    counts[i] = count;
    bestTotal = findMinimumSet( a - vector[0] * count, b - vector[1] * count, i+1, counts, total + count, bestTotal );
    return bestTotal;
    // only check the max count for last in vector/last with non-zero x
    final int count = Math.min( ( vector[0] > 0 ) ? a / vector[0] : b, ( vector[1] > 0 ) ? ( b / vector[1] ) : a );
    if ( total + count < bestTotal ) {
    counts[i] = count;
    bestTotal = findMinimumSet( a - vector[0] * count, b - vector[1] * count, i+1, counts, total + count, bestTotal );
    return bestTotal;
    The code to find Pythagorean triples, given the longest side:public interface TripleProcessor {
    void triple ( int a, int b, int c ) ;
    public static void findTriples ( int c, TripleProcessor out ) {
    final int c2 = c * c;
    final HashMap<Integer,Integer> squares = new HashMap<Integer,Integer>(c2);
    for ( int i = 1; i < c; ++i )
    squares.put(i*i, i);
    for ( int a = 1; a < c; ++a ) {
    final Integer b = squares.get(c2 - a*a);
    if ( b != null )
    if ( a <= b )
    out.triple(a,b,c);
    else
    break;

  • STO Conditions to COPA

    Hi,
    we have a scenarion where the sales order is placed in the trading company and a STO would raised to another manufacturing company to do the production. my question is Some of the SD conditions are drwn to the STO. can i map the conditions in STO so that it would populate into COPA during the time of billing, since some of those conditions are not in the intercompany billing document.
    Thanks in advance
    Roville

    Hi Roville
    The biling of an STO in an inter company scenario will behave exactly the same way as normal billing
    If you add those conditions to pricing procedure, and map them to value field in KE4I - It will flow to COPA (Provided the GL is created as 11 or 12 category cost ele)
    Regards
    Ajay M

Maybe you are looking for

  • PO creation with respect to PR in SRM

    Hi All, Greetings!!! I am new to SRM. My requirement is to create a PO with reference to PR that is crteated in SRM. Some custom fields are added in shopping cart and same are updated in PR. Now, I need to update the same custom fields in PO creation

  • Download cd to itunes

    I just bought a dell with an i5 with windows 8.1 I have an external CD drive. I want to download a audio CD to iTunes, I have found no options to open the CD with the iTunes player. How can I get the info from the CD to my iTunes library?

  • How to clear the music from iPhone?

    How to clear the music from iPhone? Im tyring to update my music on my iPhone, although my old music is remaining on the device. I have tried unselecting the sync music and syncing my iPhone, to remove all the songs - didnt work. I have tried uncheck

  • Recording Live TV in DV Quality

    Is there a way to watch and record live televsion in .dv quality video on my Mac? I was looking for a hardware, software combo? I looked at the El Gato stuff, but it doesn't seem to be of the highest quality video. 1 to 2 GB's would record one hour o

  • Getting starting with EJB

    Hi all I have recently started learning jpa, ejb but still can't get the all pieces organized, so I decided to start developing a ejb project on eclipse but cannot find any tutorial or book to have an overview on how things work, if there is any sugg