Comparison of batches based on their characteristics

Hello
I have say 5 characteristics for material batch setup. I wanted to list of out all the batches (say materials) based on characteristics. Is there any standard transaction available for this. Right now I am using BMBC but not meeting my requirement.
Ex: I have color as one of the characteristics for my batch. I want to list of all materials with batch numbers whose color is red.
Thanks

Hi,
Please check these tables
MCHA Batches
MCH1 Batches
MCHB Stock: batches
CABN Characteristics ( o.a. batch/vendor)
CABNT Characteristics description
CAWN Characteristics ( o.a. material)
CAWNT Characteristics description
AUSP Characteristic Values
Class types and objects :
TCLAO Several class types for object
TCLA Class types ( vb. lfa1 => v10 en 010)
TCLAT Class type text
TCLT Classifiable objects
TCLC Classification status
Links:
INOB Link between Internal Number and Object
KLAH Class header data
KSSK Allocation Table: Object (vb.matnr) to Class
KSML Characteristics for a class (internal number)
Regards,
Raj.

Similar Messages

  • How do I assign images to grid cells based on their random number value?

    Hello everyone!
         I need a good point (or shove) in the correct direction.
    Background
         I've created (with previous help from this forum) a 12 x 9 random number grid which cycles through the numbers 1 to 9 a total of twelve times each. I've then created a button which shuffles the current grid's cells each time it is clicked. I now want to use 9 images that I have imported as individual symbols into the library (I have given them each their own class titled "skin1," "skin2," ... "skin9") as cell labels or the equivalent. I have also set the images up as individual movie clips (using the .Sprite class as the extended base class but keeping the actual image class names in line with their object name, i.e. the "skin1" image is the "skin1.as" class).
    Question
         How do I assign these images to the grid cells based on their respective values (ranging from 1 to 9) and have them populate the grid each time I click the "shuffle" button? So for example, in my grid the numbers 1 through 9 randomly appear 12 times each. Every time the number 4 appears in a cell, I want it to be assigned to the image "skin4" (which is just a graphic that looks like a button and has a fancy number "4" printed on it). Below is a chunk of the code I am using to draw the grid cells with:
    // Creates a grid cell when called by generateGrid().
    private funciton drawCell(_numeral:int):Sprite
              This is the code I am currently implementing to populate the grids with (although I
              don't want to use text labels as I want to fill each grid with an image according
              to its numerical value (1 to 9).
         var _label:TextField = new TextField();
         _label.multiline = _label.wordWrap = false;
         _label.autoSize = "center";
         _label.text = String(_numeral);
         // Add numerical label to cell array.
         cellLabels.push(_label);
         var _s:Sprite = new Sprite();
         _s.graphics.lineStyle(2, 0x019000);
         _s.graphics.drawRect(30, 0, cellW, CellH);
         _s.addChild(_label);
         return _s;
         While the following isn't working code, it will hopefully demonstrate what I want to achieve inside this function so I don't have to use the above snippet for text labels:
         //This will "hopefully" create an array of all 9 images by calling their classes.      var _imageArray:Array = [skin1, skin2, skin3, skin4, skin5 , skin6, skin7, skin8, skin9];      // This is what I want to happen for each cell using the above image array:      for (i = 0; i < cells; i++)      {           if (_numeral == 1)           {                // Insert skin1 image for each instance of #1 in the grid.           }           if (_numeral == 2)           {                // Insert skin2 image for each instance of #2 in the grid.           }           ...           if (_numeral == 9)           {                // Insert skin9 image for each instance of #9 in the grid.           }      } 
         Again, I don't want to use text labels. I have a custom skin graphic that I want to go over each number on the grid based on its numerical value (1 to 9). Any help with this is much appreciated!

    kglad,
         Thank you for your help with this one. Using the code below, I have successfully populated my grid cells with the desired corresponding graphics. I noticed one thing though regarding my use of the shuffle button with this particular implementation: even though the numerical values residing in each cell get shuffled, the original images remain in the grid rather than being replaced by new ones. The first code snippet below is the revised cell drawing function including your help; the second snippet shows you my simple shuffle button function (where the problem lies, I think).
    Snippet #1:
         // Creates a grid cell when called by generateGrid().
         private function drawCell(_numeral:int):Sprite
              var _label:TextField = new TextField();
              _label.multiline = _label.wordWrap = false;
              _label.autoSize = "center";
              // Creates a label that represents the numerical value of the cell.
              cellLabels.push(_label);
              var _s:Sprite = new Sprite();
              _s.graphics.lineStyle(2, 0x019000);
              _s.graphics.drawRect(30, 0, cellW, cellH);
              // Physically adds the labels to the grid.
              _s.addChild(_label);
              // Assigns a graphic class to a cell based on its numerical value.
              var _classRef:Class = Class(getDefinitionByName("skin" + _numeral));
              // Undefined variable for holding graphic classes.
              var _image:* = new _classRef();
              // Lines the images up with the grid cells.
              _image.x = 30;
              // Physically adds a graphic on top of a cell label.
              _s.addChild(_image);
              return _s;
         So far so good (although I question needing text labels at all if they are just going to remain invisible underneath the images, but enough about that for now). This next part is the reason that the images won't shuffle with the cell values, I think.
    Snippet #2:
         // When shuffleButton is clicked, this event shuffles
         // the number array and fills the cellLabels with the new values.
         private function onButtonShuffleClick(e:MouseEvent):void
              // Shuffles the number array.
              shuffle(numbers);
              // Verifies the array has been shuffled.
              trace("After shuffle:", numbers);
              // Loop replaces old cellLabels with new number array values.
              for (var i:int = 0; i < cells; i++)
                   cellLabels[i].text = String(numbers[i]);
         As you can see, it never replaces the original images that populate the grid. I tried using the _s.removeChild(image) function but that didn't work, nor would copying/pasting some of the code from snippet #1 directly into this function as it would cause another instance of the images to be placed over top of the existing ones rather than actually swapping them out. Any continued help here is greatly appreciated!
         PS Is there a quicker method for posting code into these forums without having to type it all out by hand again (i.e. copy/paste or drag/drop from my .fla or Notepad file directly into this thread)?

  • Analysis Report for generic articles based on different characteristics

    Dear all ,
    We are running SAP Retail solution ,and we use generic articles for the management of cloth and shoes articles.
    So far ,we didn't find any standard t-code in sap GUI for the slaes analysis of generic articles base on their characteristics ,for example ,we use color and size to form the characteristic profile and assign it to some generic articles ,after a period of sales ,we want to analysis which size is more  favarable as to the same color or to the contrary.
    Except for BW , Is there some info-structure or t-code in GUI for this analysis ?

    Hai deyi chen,
    If you know the table were data stored.
    Create your own report formats using SQVI
    T CODE SQVI
    Table Join
    Add Tables and system will show the join automatic in case if u know u can also change.
    Now You select which fields to be in the selection screen and select fields to be listed inside the report.
    Regards,
    Mani

  • How to sort a collection based on their date?

    how do i sort a collection based on their respective dates which are in Calendar format?

    this is my codes
    /** This class is use to sort the call list base on their date
    import java.util.*;
    public class a implements Comparator
         /** compare the objects base on their types
         *     @obj1 the first object to be compared
         *     @obj2 the second object to compare with the first object
         public int compare(Object obj1, Object obj2)
         if (obj1 == obj2)
              return 0;
         if (obj1 == null || obj2 == null)
              return 0;
         if (!(obj1 instanceof Call) || !(obj2 instanceof Call))
              return 0;
         Call lhs = (Call) obj1;
         Call rhs = (Call) obj2;
         int s = lhs.getDate().compareTo(rhs.getDate());
         if (s != 0)     
              return s;
         return 1;
    this is the error
    a.java:21: cannot resolve symbol
    symbol : method compareTo (java.util.Calendar)
    location: class java.util.Calendar
         int s = lhs.getDate().compareTo(rhs.getDate());

  • Classyfying the customers based on their sales

    Hi,
    I have report showing the cutomers and the sales units to them
    for example:
    customer     sales
    A     200
    B     300
    C     50
    D     100
    how can i grade the customers based on their sales, for example
    Grading                customer     sales
    Gold >=300            B              300
    Sub total                   300
    silver >100 & <300    A              200
    sub total                   200
    Bronze <=100          C               50
                       D              100
    sub total                   150
    Could anyone please help me
    Message was edited by:
            rapo
    Message was edited by:
            rapo

    Thanks ganesh and ramesh,
    Thanks for your inputs.
    By exceptions, i can get classigy them and even color them and sort them but i cannot get the sub totals for each classification.
    Ramesh, can you please clarify in detail how this can be done by using the formula.
    thanks and regards

  • Create hierarchy based on multiple characteristics

    Hello,
    I am working on a very non-standard income statement report in BI and am trying to come up with a good way to maintain it.  Each line item in the income statement is based on different characteristics.  For instance, the first line item might be a range of account numbers using 0GL_ACCOUNT and a single order using 0COORDER.  The second line item may be a particular Cost Center using 0COSTCENTER and a particular GL Account.  Right now, I am using a structure within the BEx query that defines each of the 1000+ lines.  The big problem is that this structure is used in multiple reports with slight variations.  Any time there is a change to the structure, I have to go to 8 different places to change it because the same structure is on multiple info providers.
    For other reports, we have set up hierarchies on certain characteristics (0GL_ACCOUNT, 0COSTCENTER, 0COORDER).  Would it be somehow possible to create an entirely custom hierarchy that would use mixed characteristics to come up with each value?  If this is not possible, can someone think of a way to have only one structure/hierarchy instead of 8?
    Thanks.
    Derrick

    Hi Samunder,
           There is a concept called Linking of universes which allow you to link two universes and the final universe acts as if it was a single universe.
           You can get more details on linking universes in the Designer guide. But, this method is not suggested as there are many limitations and performance issues.
           But if the user wants a single universe rather than two universes you can go for this.
    Regards,
    Sanjay

  • Wants delete user based on their last login details...

    Hi All,
    I have one question regarding oracle database user management. I have approx 300 users in my each Database and I know many of them are not actively used. I want to generate users report based on their last login information. I want to fetch list of users who is not logged in database since last 4 months and are eligible for delete operation.  Please guide me how to find this details.
    Thanks in advance...

    user12115, but really even if the logon time was not present and you only had the logoff time you know when the customer last used the system and relistically you could work with that.  Rather than audit user session connection due to the large number of connections/disconnects we have per day we created a database logon event trigger that updates an IOT for the username, logon_date of the OS user connecting.  If no row is updated we insert the username.
    Also keep in mind that many web based applications connect to the Oracle rdbms using an application username as not as the real end user.  In such a case auditing will not catch the real end user nor will the logon trigger unless the application uses dbms_application_info to post the real end username to Oracle.  If this is not true in your shop today it might be tomorrow so keep this potential issue in mind.
    HTH -- Mark D Powell -- 

  • Find records based on their insertion order

    Hi to all,
    Is there any way I can find records based on their insertion order.
    Like i inserted 5 records, can I find fifth record based on that insertion order?
    Advance thanks for your inputs
    Regards
    Karthik

    Not without adding some kind of sequencing mechanism to your inserts.
    You could use sequence numbers, or for more robustness, insert timestamps alongside your inserts.
    Triggers will help you to acheive this.

  • Numbering images based on their position in a document

    Hello,
    Is it possible to give images an automatic number based on their position in a document.
    For example: I have 3 images A, B and C. I place them in order A = 1, B = 2 and C = 3.
    Then I change my mind and I move image B to the front.
    I want the numbers to change so that B=1, A=2 and C=3, but this doesn't happen.
    I have the same problem if I insert an image D between A and B. I want the numbers to change to A=1, D=2,B=3 and C=4, but the number of the new image just becomes 4.
    I can't find a solution for this problem. Can anyone help me out?
    Thanks,
    BB

    A paragraph style with the Numbering option turned on and this applied to the Figure text would be as close as you can get to a solution. It is not quite as thorough as FrameMaker in this regard, but it isn't bad for general document construction. Once you get into the hundreds and thousands of pages of illustrated figures, this becomes a lot of time and human management.

  • Script to move computers from one ou to another based on their operating system

    I am looking for a script to move computers from one ou to another based on their operating system
    I tried the followings
    1- dsquery * CN=Computers,ou=test1,DC=mypc,DC=com -filter "(&(ObjectClass=computer)(objectCategory=Computer)(operatingSystemVersion=5.1))" | dsmove -newparent OU=test2,DC=mypc,DC=com
    I got the following error
    dsquery failed:Directory object not found.
    type dsquery /? for help.dsmove failed:'Target object for this command' is missing.
    type dsmove /? for help.
    2-dsquery * ou=test1,DC=mypc,DC=com -filter "(&(ObjectClass=computer)(objectCategory=Computer)(operatingSystemVersion=5.1))" | dsmove -newparent OU=test2,DC=mypc,DC=com
    I got the following error
    dsmove failed:'Target object for this command' is missing.
    type dsmove /? for help.
    anybody can help me on this please

    This is what a good query will look like.  Note the extra bits in the version. (7601)
    dsquery * "dc=kahlnet,dc=local" -filter "&((objectclass=computer)(operatingSystemVersion=6.1 (7601)))"
    ¯\_(ツ)_/¯

  • Allow users to create reports based on their own selection of fields

    Is there a way to allow users to create reports based on their own selection of fields?
    And if there is a way, then how?
    In access we retrieve all demographic info on one screen and on another screen user can be able to choose specific fields from a list box to import data into file.

    Hi,
    This can be handled in various ways - but the principles are the same.
    You need to apply conditional displays to all of the columns that your user can select and base the display of a column on the value of a field on the page.
    You can have a series of Yes/No options - one for each field and base the display on the corresponding field being Yes. Or you can use checkboxes.
    However, if you wish to use a multiselect list (which is probably easier as you can dynamically generate the list of field names), you will need to have hidden fields that will store either Y/N or 1/0 (I use ones/zeros) and have the conditional displays watch these fields instead. Populating these hidden fields is a bit more tricky than just having fields on the page that the user can control, but is doable:
    1 - Create one hidden field for each field in the report that you want to show/hide. Put these fields in the same region as the select list in a region above the report
    2 - Set conditional display values to "Value of Item in Expression 1 = Expression 2" and use the appropriate hidden field for Expression 1 and in Expression 2 enter in 1
    3 - Create a page process that runs on submit, and create PL/SQL code something like:
    DECLARE
    lFields HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    vField VARCHAR2(1000);
    BEGIN
    :P31_SHOW_EMPNO := 0;
    :P31_SHOW_ENAME := 0;
    :P31_SHOW_JOB := 0;
    :P31_SHOW_MGR := 0;
    :P31_SHOW_HIREDATE := 0;
    :P31_SHOW_SAL := 0;
    :P31_SHOW_COMM := 0;
    :P31_SHOW_DEPTNO := 0;
    lFields := HTMLDB_UTIL.STRING_TO_TABLE(:P31_FIELDS);
    FOR i IN lFields.FIRST..lFields.LAST LOOP
    vField := lFields(i);
    IF vField = 'EMPNO' THEN
    :P31_SHOW_EMPNO := 1;
    ELSIF vField = 'ENAME' THEN
    :P31_SHOW_ENAME := 1;
    ELSIF vField = 'JOB' THEN
    :P31_SHOW_JOB := 1;
    ELSIF vField = 'MGR' THEN
    :P31_SHOW_MGR := 1;
    ELSIF vField = 'HIREDATE' THEN
    :P31_SHOW_HIREDATE := 1;
    ELSIF vField = 'SAL' THEN
    :P31_SHOW_SAL := 1;
    ELSIF vField = 'COMM' THEN
    :P31_SHOW_COMM := 1;
    ELSIF vField = 'DEPTNO' THEN
    :P31_SHOW_DEPTNO := 1;
    END IF;
    END LOOP;
    END;
    4 - Finally, add a button that generates the report - this just needs to submit the page and branch back to the same page
    I've used the standard EMP table for this example and my hidden fields are P31_SHOW_fieldname. The code resets the hidden fields to 0, checks if the user has selected the field from the list (P31_FIELDS) and changes the hidden fields value to 1 for all those selected. When the page is re-rendered, the report hides the columns where the hidden field value is 0 and displays those where it is 1. The export option will then only export those fields that are displayed.
    You can see an example of this here:
    http://htmldb.oracle.com/pls/otn/f?p=33642:31
    Regards
    Andy

  • [Exchange-Online][EWS][C#][Windows 7] Move email based on their categories

    Hello,
    I'd like to move emails in the Inbox to a separate folder based on their category.
    I'm using Microsoft.Exchange.WebServices (15.0.0.0) to connect to an ExchangeVersion.Exchange2013_SP1 instance. I'm using C# in VS2013 and the .NET 4 framework but can take examples from other versions if they exist.
    I've tried using SearchFilter without much success through ExchangeService.FindItems, but the 'Categories' property seems to be tricky to configure.
    Does anyone have an example of how I can select/move emails from a folder based on their category membership?
    Thanks,
    Mike

    It should work okay what matters is what's stored in the Keywords property eg
    The only other thing that would be important would be that Indexing is working okay in Exchange as this query relies on the Indexes (eg check your event logs on the server to make sure you not getting any indexing errors).
    One thing you can do to test this is use the EWSEditor
    http://ewseditor.codeplex.com/once you have connected right click the folder when the Items are located and select Search from the menu. Then using the AQS option try running some queries against the folder try the Conical version(which is what I gave
    you) and the non conical Category:Clare . If it works okay in the EWSEditor but not in your code then you have an issue somewhere else in your code. I would also do the simple thingss like try then with a new message you send yourself as it maybe something
    to do with Items not being indexed in the past etc.
    Cheers
    Glen

  • Extremely slow performance in comparison to RDC-based report

    Today our application uses the Crystal Reports RDC. In the last
    ten years we have made good experience with Crystal Reports.
    In the next few months we want to migrate our application to
    JAVA.
    Because the reports offer a great reuse-potential, we would like
    to implement them via CR4E.
    But during the first benchmark tests we made a very bad experience.
    Running (Printing) in CR4E the reports needed from 20 up to 480 percent
    more time in comparison to the RDC-based reports.
    When using POJOs need from 25 up to 570 percent more time.
    When printing the reports from within the CR2008 designer there is
    no performance difference.
    The reports have from 4 to 82 pages.
    We didn´t expect such a huge performance difference.
    Is CR4E in general slower than the RDC-based Crystal Reports?
    Or are there any parameters in CR4E in addition to the RDC-based
    solution for tuning the reports?
    Edited by: Rainer Graedtke on Nov 9, 2009 2:44 PM

    Hi Ted,
    thanks for the fast response.
    Is there another "datasource option" with better performance than POJO?
    In the upcoming JAVA-version of our application we would like to "feed"
    our reports from memory, not from the underlying database.
    One more statement concerning our performance problem:
    In our reports we make extensive use of subreports.
    Each report has the minimum of two subreports, one for the pageheader,
    one for the pagefooter.
    This is necessary because we have changing headers and footers
    depending on the contents of the details.
    The report with the largest performance loss contains 29 subreports!
    RDC-based it prints in 10 seconds, Java-based we need over 50 seconds.
    Is there any suggestion how to improve the performance of our reports in
    JAVA/CR4E other than reducing the number of subreports?
    Another question concerning the keycode-problem:
    We have designed the reports in the CR2008 Designer and we want to run
    them under CR4E. Is this a valid approach?
    Sincerely Rainer
    Edited by: Rainer Graedtke on Nov 10, 2009 10:51 AM

  • How to find the list of material variant based on the characteristics value

    Hi
    We are creating materials variants for FERT Material Type in material master in MRP-3 view .There we configure the variant by attaching characteristics value 
    Now we want to have a report , which can give the list of material variants , if char value is given in selection
    Can somebody guide me if there is standard report for this OR what is the linkage in Table , so that we can develop a report
    rgds
    Sandeep

    I couldn't find a standard report to get the material variants based on characteristic values (the nearest I could find was CT12) but I wrote a report some time back here's the table join logic for the main select statement.
    select a~matnr
            e~atwrt
            h~atwtb
    into table i_tab
          from MARC as a
          inner join IBIN as b
          on b~instance eq a~cuobj
          inner join IBIB as c
          on c~ibase eq b~ibase
          inner join IBINVALUES as d
          on d~in_recno eq b~in_recno
          inner join IBSYMBOL as e
          on e~symbol_id eq d~symbol_id
          inner join CABN as f
          on f~atinn eq e~atinn
          inner join CAWN as g
          on g~atinn eq e~atinn
          and g~atwrt eq e~atwrt
          inner join CAWNT as h
          on h~atinn eq g~atinn
          and h~atzhl eq g~atzhl
         where     a~matnr in s_matnr
                and e~atinn in s_atinn
                and e~atwrt in s_atwrt
               and b~valto eq '99991231235959'. "This is important condition
    I included bare minimum fields to suite your requirement needs you can add whatever other field you want . Though I tested the table join, I suggest you to test it again before writing your own ABAP program using SE16N.

  • Batch  Determination With out characteristics ..?

    Dear Experts
    I have finished the batch determination for the SLED but i had to create characteristics for it refrence to VFDAT field in MCHA table
    but I need to knowhow to refer direct to the field with out refering to the characteristics
    for example I need to create a batch determination for the creation date of the batch so I want to refer direct to the field ERSDA in table MCHA .. I don't want the user to enter while doing a GR to enter the creation date of the batch in the classification of the batch
    If its not possible to do such a thing .. so how can I make the characteristics which will hold the creation date of the batch to get the date in field ERSDA automatic
    Best Regards
    Edited by: Sap Sap on Jul 19, 2009 10:42 AM

    Are you using a separate batch selection class versus the batch class?
    There are characteristics that must be in the selection class, but cannot be in the batch class.
    See OSS note 33396.
    1.  If you want to search for batches on the basis of a remaining shelf
             life in batch determination, the system has to calculate a requested
             shelf life expiration date dynamically from the information you
             give.
         2.  Add characteristic LOBM_VFDAT to the batch classes.
             For the revaluation of reference characteristics, refer to Note
             78235.
             Characteristics LOBM_RLZ and LOBM_LFDAT must not be included in the
             batch classes!
         3.  Add characteristics LOBM_VFDAT, LOBM_LFDAT, and LOBM_RLZ to the
             selection classes.
             Maintain a remaining shelf life in the strategy records for batch
             determination. Relational operators (> , < , <= , >=) are considered
             in the dynamic calculation of the shelf life expiration date in
             batch determination.
    From your note you have placed LOBM_RLZ  and LOBM_LFDAT in your batch class.  You cannot do that.
    FF

Maybe you are looking for

  • Displaying Dollar sign in ALV

    How to add the dollar sign infront of field with data type currency (CURR) ? Need to display the amount field in the ALV report. Please suggest any solution. Thanks, Khush Edited by: khush123 on Sep 22, 2011 11:49 AM

  • Upgrade oc4j container from 10.1.2 to 10.1.3

    Hi to all, We use oc4j container 10.1.2 for old applications, but now we have developed ajax applications using oracle maps, but if i'm riight 10.1.2 doesn't support oracle maps. I've tried to install oracle application server oc4j container 10.1.3 i

  • Convert virtually any CAD file into a PDF document .

    Can Acrobat X Pro Convert virtually any CAD file into a PDF document using templates? Earlier Acrobat 9 Pro Extended used to be ?

  • T410 2516CTO random freezes without anything in Windows Event Viewer! :(

    I used Update Retriever + Thin Installer (virtually System Update 4.0 but a server + client version of it) to download drivers and install Windows 7 Ultimate x64 with SP1 on this machine. A hard power off is required by pressing on the power button f

  • Touchpad problem on Tecra S5 with Windows 7

    Hi all, I have a Toshiba laptop Tecra S5 model. When Windows Vista was installed on it, the touchpad went fine. When installed the Window 7 32 bit (clean install), the touchpad is no more recognized. The keys fn+f9 does not change anything. What shou