No of hours for each problem

Hello,
We create service orders for equipment and capture labor hours using CATS. We also create a notification to the same service order to capture Problem,Cause and Solution. We now have a equirement to capture no of hours associated with each problem....Any suggestions on how this can be achieved?
Thanks

Hi,
On notification after mentioning Task select the line and in the bottom you have 1st Icon as Details, if you select system will give you pop-up where you can maintain the Date and Time.
As you said you can bring the follow-up action also.
But can you please check at order confirmation level also IW41 screen, on the menu
Environment->Attend/Absences system will call PA61 Screen. So, please check with your HR guy is that fine with him or not.
Most importantly on confirmation screen Personal number hould be assigned.
N.Nagaraju

Similar Messages

  • Return average of time interval in each hour for each day

    I am reading from a database and the data is stored like this
    Date................ Hour........Hour Interval..........Price
    2010/07/01.........1...................1.....................x
    2010/07/01.........1...................2.....................x
    2010/07/01.........1...................3.....................x
    2010/07/01.........1...................4.....................x
    2010/07/01.........1...................5.....................x
    2010/07/01.........1...................6.....................x
    2010/07/01.........1...................7.....................x
    2010/07/01.........1...................8.....................x
    2010/07/01.........1...................9.....................x
    2010/07/01.........1...................10...................x
    2010/07/01.........1...................11...................x
    2010/07/01.........1...................12...................x
    2010/07/01.........2...................1.....................x
    2010/07/01.........2...................2.....................x
    2010/07/01.........2...................3.....................x
    2010/07/01.........2...................4.....................x
    How would I write an sql statement to get the average for the price for each hour. The average should take the average of all the prices in the interval from 1 to 12
    Any suggestions
    Edited by: user13353366 on Jul 1, 2010 11:55 AM

    Hi,
    Welcome to the forum!
    Whenever you have a question, it helps if you post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data. No doubt you have a perfectly clear idea of what your data is, and what results you want, but other people are likely to make bad assumptions from just looking at a description of the problem. For example, are date and hour one colum or two? What role does hour_interval play in this problem?
    So, in addition to a description of the data and the probelm, post a specific example, like this for the data:
    CREATE TABLE     table_x
    (     dt          DATE
    ,     hour_interval     NUMBER (2)
    ,     price          NUMBER
    INSERT INTO table_x (dt, hour_interval, price) VALUES (TO_DATE ('2010/07/01 01', 'YYYY/MM/DD HH24'),   1,   1);
    INSERT INTO table_x (dt, hour_interval, price) VALUES (TO_DATE ('2010/07/01 01', 'YYYY/MM/DD HH24'),   2,   1.1);
    INSERT INTO table_x (dt, hour_interval, price) VALUES (TO_DATE ('2010/07/01 02', 'YYYY/MM/DD HH24'),   4,   9);
    INSERT INTO table_x (dt, hour_interval, price) VALUES (TO_DATE ('2010/07/01 02', 'YYYY/MM/DD HH24'),  13,   9.9);and like this for the results you want from that same data:
    HR             AVG_PRICE
    2010/07/01 01       1.05
    2010/07/01 02          9If those happens to be the results you would want from that data, then, as Lkbrwn said, AVG and GROUP BY can get them for you, like this:
    SELECT       TRUNC (dt, 'HH')     AS hr
    ,       AVG (price)          AS avg_price
    FROM       table_x
    WHERE       hour_interval     BETWEEN      1
                   AND     12
    GROUP BY  TRUNC (dt, 'HH')
    ORDER BY  hr
    ;

  • Creating an ISP Bill for Customer Problem, What did i do wrong?

    Ok so the point of this program is to create a bill for customers selecting different packages for this ISP. Now i have done all the code, made the methods and what now, but there is a problem, in my main method which tests the methods in my class, the object does not get passed through the method and my toString method does not return the output. i will post the code below, did i do anything wrong?
    this is the code for the class:
    public class Customer extends appProg
        //these are the base set of hours for each package
        public final double BASE_HOURS_A= 10.00;
        public final double BASE_HOURS_B= 20.00;
        public final double BASE_HOURS_C= 9999999999999999999999999999999999999999.00;
        //these are the base costs for each package
        public final double BASE_COST_A= 9.95;
        public final double BASE_COST_B= 14.95;
        public final double BASE_COST_C= 19.95;
        //these are the additional costs per hour for the packages
        public final double PER_HOUR_COST_A= 2.00;
        public final double PER_HOUR_COST_B= 1.00;
        public final double PER_HOUR_COST_C= 0.00;
        private double totalCharges;
        private char packageType;
        private double hoursUsed;
        private String customerName;
        // Below are the Constructors for this class
        // The constructors will help instantiate the object
        public Customer()
        {   totalCharges=0;
            packageType='b';
            hoursUsed=0.0;
            customerName="";
        public Customer(char packageType, double hoursUsed, String customerName)
            this.packageType=packageType;
            this.hoursUsed=hoursUsed;
            this.customerName=customerName;
        // The following are the accessor methods
        // the getPackage method returns the package type
        public char getPackage()
            return packageType;
        // the getHoursUsed() returns the hours used of the customer
        public double getHoursUsed()
            return hoursUsed;
        // the getCustomerName() returns the name of the customer
        public String getCustomerName()
            return customerName;
        //the totalCharges methods calculates the total charges
        public double totalCharges()
            if(packageType=='A' && hoursUsed>10.00)
                    totalCharges=((hoursUsed-10)*PER_HOUR_COST_A)+(hoursUsed*BASE_COST_A);
            if(packageType=='A' && hoursUsed<=10.00)
                totalCharges=(hoursUsed*BASE_COST_A);
            if(packageType=='B' && hoursUsed>20.00)
                    totalCharges=((hoursUsed-20)*PER_HOUR_COST_B)+(hoursUsed*BASE_COST_B);
            if(packageType=='B' && hoursUsed<=20.00)
                totalCharges=(hoursUsed*BASE_COST_B);
            if(packageType=='C')
                totalCharges=(BASE_COST_A);
            return totalCharges;
        //The following are the mutator methods
        //the setPackage method will set the package type for the customer
        public void setPackage(char packageType)
            this.packageType=packageType;
        //the setHours method will set the amount of hours used for that customer
        public void setHours(double hoursUsed)
            this.hoursUsed=hoursUsed;
        //the setCustomerName method will set the name for the customer
        public void setCustomerName(String customerName)
            this.customerName=customerName;
       //the following are input and output methods
       public String toString()
           return "You have used a total of "+hoursUsed+" hours and your total cost is "+totalCharges+"";
    } // end class Customerand this is the code for the appProgram that goes with it:
    public class appProg
        //************* MAIN METHOD ******************************************
        public static void main(String[] args)
              String packageT;
              char packagetype;
              double hoursUsed;
              String name;
              Scanner keyboard = new Scanner(System.in);
              System.out.println("This program was written by Ashkan Gholami for CSC15 with JONES.");
              System.out.println("");
              System.out.print("Please enter the Customers name: ");
              name=keyboard.nextLine();
              System.out.print("Please enter the package type: ");
              packageT=keyboard.nextLine();
              packagetype=packageT.charAt(0);
              System.out.print("Please enter the hours used: ");
              hoursUsed=keyboard.nextDouble();
              keyboard.nextLine();
              switch(packagetype)
                 case 'A':
                    System.out.println(""+name+" has chosen package A.");
                    break;
                 case 'B':
                    System.out.println(""+name+" has chosen package B.");
                    break;
                 case 'C':
                    System.out.println(""+name+" has chosen package C.");
                    break;
                 case 'a':
                    System.out.println(""+name+" has chosen package A.");
                    break;
                 case 'b':
                    System.out.println(""+name+" has chosen package B.");
                    break;
                 case 'c':
                    System.out.println(""+name+" has chosen package C.");
                    break;
                 default:
                    System.out.println("That is an invalid package type!");
                    break;
              Customer customer1= new Customer(packagetype,hoursUsed,name);
              customer1.totalCharges();
              customer1.toString();
        }      

    in my main method which tests the methods in my class,
    the object does not get passed through the method That statement makes no sense. You can pass objects to methods. However, you do not pass objects "through methods". In any case, neither your totalCharges() method nor your toString() method is defined to accept any parameters--much less an object as a parameter.
    and my toString method does not return the outputHow do you know that? Your toString() method is defined to return a String. Where in your program do you attempt to display the String that is returned?
    did i do anything wrong?If you call a method on an object, and the method returns something, you need to assign the returned value to a variable--otherwise the returned value will disappear into the ether. Subsequently, if you want to display the returned value, you have to take steps to do that as well.
    It sounds like you need to revisit a simple "Hello World" program and play around with it a little bit.

  • Need total worked hours of each employee

    Hi all
    I need the total work hour for each employee
    create table pde(empno number(10),act_hour varchar(10 byte));
    Table created
    insert into pde values(211,'12:20');
    insert into pde values(211,'06:00');
    insert into pde values(213,'07:00');
    insert into pde values(213,'07:20');
    WITH  got_total_hours     AS
         SELECT SUM (   TO_NUMBER (SUBSTR (act_hour, 1, 2))
                    + ( TO_NUMBER (SUBSTR (act_hour, 4, 2))
                      / 60
                    ) AS total_hours 
         from      pde
    SELECT        TO_CHAR (FLOOR (total_hours))
           || ':'
           || TO_CHAR ( MOD (total_hours, 1) * 60
                  , 'fm00'
                   )     AS hh_mm,empno,act_hour
    FROM     got_total_hours ,pde
    this is the output i am getting 
    HH_MM  EMPNO  ACT_HOUR
    32:40     211     12:20
    32:40     211     06:00
    32:40     213     07:00
    32:40     213     07:20
    i require    HH:MM EMPNO ACT_HOUR
                   18:20  211      12:20
                   18:20  211      06:00
                   14:20  213      07:00
                   14:20  213      07:20
    kindly help meThanking in advance
    regards,
    oracleuser

    Hi Ravi,
    Your solution works perfectly fine but there is a prob when i incorporate ur solution in the main query
    WITH temp AS
      (SELECT employee_number,
        act_hour   ,
        SUM(to_number(regexp_substr(act_hour,'[^:]+',1,1))*60+to_number(regexp_substr(act_hour,'[^:]+',1,2))) over (partition BY employee_number) tot
         FROM nap_PUNCH_DATA_EMP_LIST trn where DATE_ENTRAY between '23-Aug-2009' and  '24-Aug-2009'
    SELECT employee_number,act_hour,ROUND(tot/60)||':'||mod(tot,60) tothours FROM temp
    o/p i am getting is
    EMPLOYEE_NUMBER     ACT_HOUR             TOTHOURS
    408                            06:31                         07:31
    408                            00:00                         07:31
    410                            18:12                          30:59 ------SUM of 18:12 and 11:47 should be 29:59
    410                             11:47                          30:59
    this is working correctly for majority of employee_numbers with exception of some employee_numberskindly help
    regards,
    oracle user
    Edited by: makdutakdu on Jan 4, 2010 12:45 PM

  • I have several recuring alarms set up on my calendar for each day of the week. In the past few weeks, an alarm will occasionaly notify me roughly 15 minutes to an hour and a half late. These daily alarms are identical and repeat every day.

    I have several recuring alarms set up on iCal for each day of the week. In the past few weeks, an alarm will occasionaly notify me roughly 15 minutes to an hour and a half late. These daily alarms are identical and repeat every day and there seems to be no apparent pattern to why or when an alarm happens after the event is past.

    I assume you meant iCal rather than iTunes? Yes, iCal the time zone is correct. The delayed alarms only happen sporadically. Since I posted this message, the problem stopped happening every day at the same time, but it still happens occasionally with no rhyme or reason as to when. It's gotten so that I can't depend on my iCal alarms anymore.

  • Generate every hour event 2331 for each DP after Software update Deployment Package deletion

    We have an organization build on SCCM 2012 R2 with 270 DPs configured with DP Pulls function. The centralized point contains DP sources available for all DP Pull.
    We have some problems with Windows Update deployment package, and we decide to delete them. We first remove them from all DPs. After more than a month we delete the deployment package. From this day, we see that the SMS_Distribution_Manager service generate
    every hour logs for contacting each of the 270 DPs to ask them for deleting the package.
    Remark: At the time we run the delete, some of the DPs were not connected. After 3 weeks all of them were connected. A month later, the SMS_Distribution_Manager
    generate always these events every hour.
    Each DP responds with a 2331 event that seems OK. Every hour the system begin with two events (2301 and then 2300 for this package, after a 2331 for each
    DP). All these events are also present in the application log of the Event Viewer. After the last DP connection that respond with 2331 event, there are no event that generalize a task for the package to definitively remove it from the database.
    Could anyone help me to correct the system?

    There are no error messages. There are only messages generated in Distribution_manager logs and Event Viewer, showing us server processing and network activity on package that was deleted over 40 days, and that happened every hours. The Microsoft support
    give us directives to delete orphan records in 4 tables
    pkgServers_L,pkgServers_G,PkgStatus_L,PkgStatus_G)
    At this time the correction has positive effect.
    A sample of event generated
    Log Name:      Application
    Source:        SMS Server
    Date:          26.02.2014 09:56:19
    Event ID:      2331
    Task Category: SMS_DISTRIBUTION_MANAGER
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      wwww.xxxx.yyyy.zzz
    Description:
    On 26.02.2014 09:56:19, component SMS_DISTRIBUTION_MANAGER on computer wwww.xxxx.yyyy.zzz reported:  Distribution Manager successfully removed package "PS100066" from distribution point "["Display=\\aaa.bbb.ccc.dddd\"]MSWNET:["SMS_SITE=xxx"]\\aaa.bbb.ccc.dddd\".
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="SMS Server" />
        <EventID Qualifiers="16384">2331</EventID>
        <Level>4</Level>
        <Task>12</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-02-26T08:56:19.000000000Z" />
        <EventRecordID>825362</EventRecordID>
        <Channel>Application</Channel>
        <Computer>wwww.xxxx.yyyy.zzz</Computer>
        <Security />
      </System>
      <EventData>
        <Data>PS100066</Data>
        <Data>["Display=\\aaa.bbb.ccc.dddd\"]MSWNET:["SMS_SITE=PS1"]\\aaa.bbb.ccc.dddd\</Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>On 26.02.2014 09:56:19, component SMS_DISTRIBUTION_MANAGER on computer wwww.xxxx.yyyy.zzz reported:  </Data>
        <Data>
        </Data>
      </EventData>
    </Event>
    Regards

  • 1 computer, 3 Mac OS user accounts, iTunes account for each Mac OS user, authorization problems

    We have 4 computers for 3 people in our household: 1 iMac (recently purchased), 1 MacBook Pro, and 2 MacBooks. We were previously running off of just the MacBooks (1 for each person), but we decided to buy the iMac and use it as a hub for all of our pictures, music, movies, etc. We were sold on this idea after learning about the "Automatic Downloads" feature, where all content would 'just sync'. We each have a separate Mac OS user account on the iMac, with our own separate content libraries. We each have a separate iTunes/AppStore account. It seems like a good idea until...
    When I tried to turn on Automatic Downloads in iTunes on my iMac, I got this message: "You can auto-download purchases on this computer with just one Apple ID every 90 days. You cannot associate this computer with a different Apple ID for 87 days". I tried to turn on Automatic Downloads on my MacBook Pro, when I got this message: "You can auto-download purchases on this computer with just one Apple ID every 90 days. You cannot associate this computer with a different Apple ID for 90 days". I did not necessarily want to download the apps/music/books to this computer anyways, as the reason we bought the iMac was to serve as a hub for all of this content, but it was still frustrating to see that message.
    I have tried everything suggested on the authorization troubleshooting pages and forums (e.g., authorizing, de-authorizing and de-athourizing all, and reauthorizing), but I have not had any success. I have contacted Apple several times, but I get tips on how to ensure that I have the most up-to-date version of iTunes on my computer, or how to manually download pre-purchased content. I will not begin to explain how frustrating these low-level responses are when the issue is much larger.
    I have a few theories of why this is happening, one of which is that we will only be able to authorize one of the users iTunes accounts to this iMac (despite the fact that we are using separate Mac OS user accounts). This may be the case if iTunes authorization identifies or registers the computer based on its serial number (or some other unique identifier), rather than the Mac OS user account. If that is the case, then I suspect that purchasing this iMac as an automatic download hub for 3 separate Mac OS users was pointless, and I will gleefully warn anyone away from trying to do that.
    So my question(s) read(s): How does iTunes account authorization identify/register with the computer? Is it authorized to the computer serial number, or could it be authorized to a Mac OS user account?
    However, if my above theory is true, then my question is: Do I have any other options?
    Thanks!

    I just had this problem because I logged into a friend's account on the computer I'm on now, and used the Previous Purchases feature. Well, that in turn deactived my use of the iCloud and iTunes Match on this computer when I signed back into my personal iTunes account. iTunes Support was no help, they just gave me a scripted response I would find online myself. Tried many different things, but what actually worked, was changing the Computer Name on this computer, and rebooting. Now, iTunes recoginzes this computer as a new device, yet, still is one of the 2 authorized computers on my iTunes account. Try changing the Computer Name on your troubled machine, then try associating it once again, see how that works out for you.

  • Problem For/Each statement (or the problem is the MouseListener...)

    Hi guys,
    I'm making a program in java for school.
    Now I have this:
              for(Stap2TrampolineModel trampoline : lijstTrampolines)
                   trampoline = new Stap2TrampolineModel(0,215,100,"Poing",lijstKinderen); //model
                   trampolineView = new Stap2TrampolineView(trampoline); //view
                   trampolineController = new Stap2TrampolineController(trampoline, trampolineView); //controller
                   trampolineView.setBounds(trampoline.getXInvoer(),trampoline.getYInvoer(),trampoline.getFormaat()+1,20);
                   add(trampolineView);
                   repaint();
    and in the mouselistener this:
    public void mouseClicked( MouseEvent e )
              System.out.println(lijstTrampolines.size());
              // Onderzoek of met de rechterknop is geklikt
    if( e.isMetaDown() )
         // x = e.getX(); (for later needs)
    //y = e.getY(); (for later needs)
    lijstTrampolines.add(trampoline);
    repaint();
    The program should display a "trampoline" when I click...but it doesnt. It is added to the list, because I can see that in the console because of the System.out.println
    But it doesn't show the display I want. When I delete the for each statement, it does show the "trampoline". So the mouselistener works (it gets added when I click) and the arraylist works (it shows that in the console), but the for each statement doesnt work...
    Anyone knows how to solve this problem?

    Where is this foreach loop located? In inialisation presumably. But that's over and done with when your mouseListener is called. I'd guess your list is empty when the loop is called, and it does nothing.
    Your mouse listener, when it adds a trampoline must also add a trampoline view object. And the repaints don't do you any good, use revalidate() after adding a trampoline view to recalculate the layout.

  • How to validate each entered hours for a day.

    Hi
    I have a requirement to allow staff members to enter on full hours of half hours (i.e use should be able to enter on 7.5 or 8 and not 7.25).
    How can I implement this? Is there a seeded formula to validate each individual hours entry?

    If you want to validate what the user enters in a particular cell (row/column intersection) then you may have to write your own time entry rule.
    The seeded rules are to be seen as templates for any rules you need to create.
    OTL calls a Fast Formula as the first stage of the TER. But, because you are validating the timecard BEFORE it has been submitted to the database, the data to be validated is only held in PL/SQL tables in memory. Therefore, it is always necessary for the FF to call an external function to read and process the data still in memory. The seeded rules all call these functions.
    In your case, I would suggest that your function would need to search for each cell where an entry has been made and validate it. To do this efficiently, you would need to understand the TIMESTORE STRUCTURE.
    Regards
    Tim

  • Problem to calculate the coherence (using NetworkFunction-VI) with only 1 row of data for each, the stimulus and response input

    Hello,
    I am trying to calculate the coherence of a stimulus and response
    signal using the Network Functions (avg) VI's. The problem is that I
    always get a coherence of "1" at all frequencies. This problem is
    already known (see KnowledgeBase document: Why is the Network Functions (avg) VI's Coherence Function Output "1"?).
    My trouble is that the described solution (-> the stimulus and response input matrices need to have at least two rows to get non-unity coherence values) doesn't help me much, because I only have one array of stimulus data and one array of response values.
    Thus, how can I fullfil the 'coherence-criteria' to input at least two rows of data each when I just have one row of data each?
    Any hint or idea is very much appreciated. Thanks!
    Horst

    With this weird board layout, I'm not sure whether you were asking me, but, on the assumption that you were, here goes:
    I found no need to use the cross-power spectrum and power spectrum blocks
    1... I was looking for speed.
    2... I already had the component spectral data there, for other purposes. From that, it's nothing but addition and multiplication.
    3... The "easy" VIs, assume a time wave input, as I recall. Which means they would take the same spectrum of the same timewave several times, where I only do it once.
    I have attached PNGs of my code.
    The PROCESS CHANNEL vi accepts the time wave and:
    1... Removes DC value.
    2... Integrates (optional, used for certain sensors).
    3... Windows (Hanning, etc. - optional)
    4... Finds spectrum.
    5... Removes spectral mirrors.
    6... Scales into Eng. units.
    7... From there, you COULD use COMPLEX-TO-POLAR, but I don't care about the phase data, and I need the MAG^2 data anyway, so I rolled my own COMPLEX-TO-MAG code.
    The above is done on each channel. The PROCESS DATA vi calls the above with data for each channel. The 1st channel in the list is required to be the reference (stimulus) channel.
    After looping over each channel, we have the Sxx, Syy, and Sxy terms. This code contains some averaging and peak-picking stuff that's not relevant.
    From there, it's straightforward to ger XFER = Sxy/Sxx and COHERENCE = |Sxy|^2 / (Sxx * Syy)
    Note that it uses the MAGNITUDE SQUARED of Sxy. Again, if you use the "easy" stuff, it will do a square-root operation that you just have to reverse - it is obtained faster by the sum of the squares of the real and imag parts.
    Hope this helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks
    Attachments:
    ProcessChannel.png ‏25 KB

  • Problem in getting Norms for each BOM

    Hi Experts,
    I am doing a report for stock with subcontractors and I am facing a problem in getting the accurate
    Norms (STPO~MENGE) against the BOM (STPO~STLNR)  for each EBELN.
    My requirement is :
    1. Finished Goods - ( MSEG~MATNR)  or (EKPO~MATNR) but mseg-matnr is more prefered as  my output  is  based on the  mkpf-budat , WHERE BWART IN ('101','102')  then
    MSEG~EBELN.
    IF EKPO-PSTYP  ne  ' 3 '   delete Finished goods.
    Then I take raw materials for finished goods and BOM for each rawmaterials.
    2. Raw materials -  select (RESBMATNR, RESBSTLNR, RESBSTLKN, RESBSTPOZ)  where resb-baugr = mseg-matnr and ebeln = mseg-ebeln.
    Now I am facing problem in getting NORMS against each BOM.
    3. Norms - * select STPOMENGE where STLNR = RESBSTLNR , IDNRK = RESB~MATNR,
                        STPOZ = RESB~STPOZ.
    But I am not getting the correct Norms for each EBELN, please advice if my logic is wrong or if my
    tables are wrong.
    Thanks
    Karthik.
    Edited by: Karthik R on Mar 13, 2009 10:32 AM
    Edited by: Karthik R on Mar 13, 2009 10:32 AM
    Edited by: Karthik R on Mar 13, 2009 10:33 AM

    Hi Karthik,
    You try this one, which I already tried and working fine for me when i developed a custom's enquiry report,
    here is a peice of code,
      SELECT  ABUDAT AXBLNR BMBLNR BZEILE
              BBWART BEBELN BMENGE BDMBTR B~KUNNR
              INTO CORRESPONDING FIELDS OF TABLE IT_FINAL
              FROM MKPF AS A INNER JOIN MSEG AS B ON AMBLNR = BMBLNR AND
                                                     AMJAHR = BMJAHR
              WHERE A~BUDAT IN S_BUDAT AND
                    B~MATNR = WA_IMAT-MATNR AND
                    B~WERKS IN S_WERKS .
      IF NOT IT_FINAL IS INITIAL.
        SELECT MATNR WERKS STLAN STLNR STLAL
               FROM MAST INTO TABLE IT_MAST
               WHERE MATNR = WA_IMAT-MATNR AND
                     WERKS IN S_WERKS AND
                     STLAN = '1'.
      ENDIF.
      IF NOT IT_MAST IS INITIAL.
        SELECT STLTY STLNR STLAL DATUV BMEIN BMENG
               FROM STKO INTO TABLE IT_STKO
               FOR ALL ENTRIES IN IT_MAST
               WHERE STLNR = IT_MAST-STLNR AND
                     STLAL = IT_MAST-STLAL AND ( STLTY = 'D' OR STLTY = 'E' OR STLTY = 'K' OR
                                                 STLTY = 'M' OR STLTY = 'S' OR STLTY = 'T' OR STLTY = 'P' ).
      ENDIF.
      IF NOT IT_STKO IS INITIAL.
        SELECT STLNR DATUV IDNRK POSNR MEINS MENGE
               FROM STPO INTO TABLE IT_STPO
               FOR ALL ENTRIES IN IT_STKO
               WHERE STLNR = IT_STKO-STLNR AND STLTY = IT_STKO-STLTY.
      ENDIF.
      IF NOT IT_STPO IS INITIAL.
        SELECT MATNR MAKTX
               FROM MAKT INTO TABLE IT_MAKT
               FOR ALL ENTRIES IN IT_STPO
               WHERE MATNR = IT_STPO-IDNRK AND
                     SPRAS = 'EN'.
      ENDIF.
      LOOP AT IT_STKO INTO WA_STKO.
        " Own Custom Logic, If Item Quantity is 500 KG, how to calculate per KG, Simple divide by the same Qty.
        IF WA_STKO-BMEIN = 'KG'.
          LOOP AT IT_STPO INTO WA_STPO.
            WA_STPO-RATIO = WA_STPO-MENGE / WA_STKO-BMENG.
            MODIFY IT_STPO FROM WA_STPO.
            CLEAR : WA_STPO.
          ENDLOOP.
        ENDIF.
        CLEAR : WA_STKO.
      ENDLOOP.
      LOOP AT IT_STPO INTO WA_STPO.
        LOOP AT IT_MAKT INTO WA_MAKT.
          MOVE-CORRESPONDING WA_MAKT TO WA_STPO.
          DELETE TABLE IT_MAKT FROM WA_MAKT.
          CLEAR : WA_MAKT.
          EXIT.
        ENDLOOP.
        MODIFY IT_STPO FROM WA_STPO.
        CLEAR : WA_STPO.
      ENDLOOP.
      LOOP AT IT_FINAL1 INTO WA_FINAL1 WHERE BWART = '101' OR BWART = '102'.
        MOVE WA_FINAL1-BUDAT TO WA_FINAL2-BUDAT.
        MOVE WA_FINAL1-EBELN TO WA_FINAL2-EBELN.
        MOVE WA_FINAL1-MENGE TO WA_FINAL2-MENGE.
        MOVE WA_FINAL1-DMBTR TO WA_FINAL2-DMBTR.
        APPEND WA_FINAL2 TO IT_FINAL2.
        CLEAR : WA_FINAL1.
      ENDLOOP.
    Thanks & Regards,
    Dileep .C

  • I have to enter the remember password login at least twice each time I open a new instance of Firefox. Is there a fix for this problem?

    I have to enter the remember password login at least twice each time I open a new instance of Firefox. Is there a fix for this problem?
    == This happened ==
    Every time Firefox opened
    == installed 3.5

    @the-edmeister
    Thanks for the advice. In my case, it is sufficient to '''uncheck''' " Saved passwords".
    ('''''Preferences -> Privacy -> Clear History when Firefox closes -> Settings -> Saved Passwords''''').
    Great to have Sync. :)

  • I just set up my Site 5 email account on my iPhone, but there is a delay of over 2 hours for the iPhone to receive the emails.  Can anyone provide a solution to this problem?

    I just set up my Site 5 email account on my iPhone, but there is a delay of over 2 hours for the iPhone to receive the emails.  Can anyone provide a solution to this problem?

    Hey Garlicdaisy,
    Thank you for the follow up.
    With iCloud, you can have iTunes automatically download new music purchases to all your devices the moment you tap Buy. You can also access past music, movie, and TV show purchases from any of your devices — wirelessly and without syncing.
    For more information, see the following:
    Apple - iCloud - All your music on all your devices.
    http://www.apple.com/icloud/features/itunes-in-the-cloud/
    To download past purchases on your devices, follow these steps:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    If you want the benefits of iTunes in the Cloud for music you haven’t purchased from iTunes, iTunes Match is the perfect solution:
    Apple - iTunes - Match
    http://www.apple.com/itunes/itunes-match/
    Thanks,
    Matt M.

  • My i pad turned black and have the sign shuting down lasting for 10 hours, have a problem even in connecting to computer

    my i pad turned black and have the interface of  shuting down lasting for 10 hours, have a problem even in connecting to computer

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds, after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How to find out exact labour hour and expenses for each labour attached to

    Team,
    How to find out exact labour hour and expenses for each labour attached to machine
    We are planning to go with CATS.
    But in Cats how Production Planning department get the exact labour coust
    (which includes labour accomodation building , EB etc. paying by comp)
    How to do this in CATS
    REX

    hai
    generally  the schemas are named X000  which stands for common schema  nomination
    x replaced by respective country like for india it is IN00  for US  U000etc
    it is not given according to the group of emplyees but according to the country grouping for your org units
    time schemas are country independent they work for all the countries
    regards
    nalla

Maybe you are looking for