How to determine the time duration of each job for a particular report

Hi guys,
I am facing a very interesting problem which I want to share with all of you-hoping to get some input from you
enlightened fellas :).
I have vendor and vendor sub-range maintained in one custom table. For each vendor I have got article site combination maintained in another table. The thing is I have to execute this program in background. Now for each vendor I may have only 1 article or multiple articles. So if I schedule the job for 60 min. say then for 1 article the time alloted will be too big and for multiple articles the time alloted may prove to be too small. Another thing from a functional point of view is a vendor which has 1 article today may have more articles added to his name tomorrow (if the customer likes his product the company may buy more from him). So the point is we have to dynamically adjust the time alloted for each job.
I could not find any utility in ABAP which can do this.
Can any of you please help me?
Thanks a lot !
Hasso.
Edited by: Hasso14 on Apr 28, 2011 3:06 PM

Exaactly-only I want to find the best time needed to finish for an article or multiple articles i.e I do not know how many articles will be available for each vendor beforehand before doing a select on the 2 tables. But once I know the number (maybe 1 or more than 1) I want to allot the best time for that article/lot of articles(maybe JOB_OPEN  technique ?).Also the number of articles may vary over time so the algorithm should take care of that too.-quite a tricky prob :)-I would request the others to see this reply which I think will clarify their doubts.
Edited by: Hasso14 on Apr 28, 2011 9:03 PM

Similar Messages

  • How to deactivate the "left top corner SAP menu" for a particular screen

    Hello Friends..
    We have a requirement to implement a "Non Disclosure Agreement(NDA)" for one of our SAP systems. NDA screen will have 2 buttons, "I agree" and "I disagree" which pops up when you log in to the system(after filling up our user id and password and hit enter). If we click on "I agree", it will allow you to continue with the log in and takes you to sap easy access screen. If we click on "I disagree", then session will be terminated.
    But, the NDA window which is being popped up is also a SAP screen which has SAP menu on top left corner. Without clicking on "I agree" or "I disagree" and if we try to select "Create session" option in SAP menu on top left corner, then it is taking us inside SAP(sap easy access screen) by bypassing the buttons.
    Request your help on how to deactivate the "left top corner SAP menu" for this particular NDA screen. (SAP menu to be available with other screens and it should not be available just for the window which is being popped up after log in and before SAP easy access)
    Many Thanks in advance..
    Vinay

    Hi Vinay,
    Try this if it works -
    in your first screen for the NDA screen, on the memnu bar select - EXTRAS - SETTINGS - Select the check box 'Do not display menu, only display favourites'.
    on calling the next screen , disable this option in the PBO of the screen.
    Try and let me know if it works.
    Thanks & Regards, Swapnil Mishra

  • How to calculate the time duration on a datetime column?

    Hi guys,
    I've done some search on this forum and everywhere else but I can't seem to get this right, at the beggining it sounded like something very simple to accomplish, for the instance with Excel but I'm struggling to get it to work with Crystal Reports on Microsoft Visual Studio 2008.
    I have a datetime column (SQL Server 2000) that I wanted to calculate the the time duration on the report group footer, unfortunatelly the built-in SUM function cannot be applied and I've tried several formulas that I've found on the internet without any luck. I'm using a datetime column to store only the time because I'm stuck with SQL Server 2000 which doesn't have a time data type.
    Would you guys know how to do it by any chance?
    Some sample code I've tried: http://www.minisolve.com/TipsAddUpTime.htm
    Thanks a lot,
    Paul
    Edited by: Paul Doe on Dec 12, 2009 5:41 PM
    Some sample data:
    EMPLOYEE     WORK HOURS
    =========     =================
    JOHN DOE      1900-01-01 01:00:05
    JOHN DOE      1900-01-01 00:20:00
    JOHN DOE      1900-01-01 01:30:15
    =========     =================
    HOURS WORKED: 02:50:20
    Edited by: Paul Doe on Dec 12, 2009 5:42 PM
    Edited by: Paul Doe on Dec 12, 2009 5:45 PM

    Guess what, by further testing the code on the website mentioned above I got it working.
    Pus, I needed to change the grouping on the code, so I had to come up with a way to update the formulas based on the groupping field.
    Considering "call_date" is the field that you are groupping by on the designer use the following code to update the formula:
    CrystalReportObj = new ReportDocument();
    CrystalReportObj.Load("C:\\reportfile.rpt");
    FieldDefinition FieldDef;
    //Get formula
    FormulaFieldDefinition FormulaDef1;
    FormulaDef1 = CrystalReportObj.DataDefinition.FormulaFields["SubHours"];
    //Get formula
    FormulaFieldDefinition FormulaDef2;
    FormulaDef2 = CrystalReportObj.DataDefinition.FormulaFields["subMinSec"];
    //Update the formula to work with the new grouping field,
    //this must be called first else will throw an exception
    FormulaDef1.Text = FormulaDef1.Text.Replace("call_date", "call_extension");
    FormulaDef2.Text = FormulaDef2.Text.Replace("call_date", "call_extension");
    //Get the new field we are grouping by
    FieldDef = CrystalReportObj.Database.Tables[0].Fields["call_extension"];
    //Replace current grouping field with the new one,
    //considering there only one group in the report, index 0
    CrystalReportObj.DataDefinition.Groups[0].ConditionField = FieldDef;
    Have fun.
    Edited by: Paul Doe on Dec 12, 2009 8:43 PM
    Edited by: Paul Doe on Dec 12, 2009 8:53 PM

  • How to set the time difference between each data when sweeping voltage using keithley 2400

    Hello friends,
    I am using the sweep vi from Keithley in the SWEEP and Acquire measurement vi.I want to measure the voltage for every step and insert a delay in between every two data, so I need some delay between each I step.
    I am a starter to use Labview, thanks so much for your answers.
    Perry
    Solved!
    Go to Solution.
    Attachments:
    Keithley 24XX Sweep and Acquire Measurements.vi ‏26 KB

    As Dennis said, if you're using the built-in sweep function, you'll have to check the manual. See Section 10-16 (That's section 10 page 16, not sections 10 though 16) of the Keithley 2400 User Manual.
    The Keithley 24xx series has a measurement speed in units called PLC (Power Line Cycles). The default speed is 1PLC, meaning a measurement is taken every 1 power line cycle, or 1/60th of a second (16.67ms). 24XX's can go from 0.01 PLC (every 0.16ms) to 10 PLC (every 166.6ms). The faster you measure, the lower precision you get.
    To set this value programmatically, the command is
    ENSe:CURRent:NPLCycles <n>
    ENSe:VOLTage:NPLCycles <n>
    depending on what you're sensing and where <n> is the number of PLCs from 0.01 to 10.
    Another factor that will determine the time between data points is the SDM cycle. These are more complicated, look at your Keithley user manual for more information. Look at Section 6 and Section 11 for more info.
    Note:
    PLC times are based on a US cycle of 60Hz.

  • How to determine the time of a RONA call

       What table do i need to lookup to determin the time that a RONA call came in for a particular agent  ?
    Hemal

    bornfree,
    The free Patharea/Pathlength Filters from Telegraphics is your friend (the former gives you both area and length, both in different units):
    Telegraphics - Free plugins for Photoshop & Illustrator...and other software

  • How to determine the time building block type in hxc_time_building_blocks

    Is there a way for me to determine what the time building block type is in hxc_time_building_blocks? I need to query the table and only select entries that are absence related (Vacation, Holiday, Sick Leave). I have the person's absence data from the table per_absence_attendances, I need a way to use the data from that table to get the time building block from hxc_time_building_blocks.

    I could ask "supported by what?" but I assume you will
    be the one supporting them. Here's a link to the
    latest list of registered MIME types.HERE's the link...
    ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types

  • How to measure the time a pulse is high for?

    I am using Pulse measure.vi to measure the output of a comparator. My comparator output feeds to an LED. The duty cycle is 50% so the LED just flashes on and off. I want to measure the time the output is high ('ON time') and I have been getting this by just multiplying the pulse width measure by the no. of pulses but I want to modify it to measure the 'ON time' of random signals with different duty cycles...
    The aim is that I am taking in a signal and need the LED to turn on when the signal 'ON time' reaches a certain specified time.
    But before I continue with the LED I am wondering how to add up the time the signal is high for?

    Hi PinkLady4218,
    You should be able to use one of the shipping examples to do what you need, please open LabVIEW and go to Help >> Find Examples.
    From the Example Finder please go to Hardware Input and Output >> DAQmx >> Counter Measurements >> Period or Pulse Width >> Meas Buffered Semi-Period-Continuous.vi
    You will then need to deinterleave the output array as it will show high time then low time then high time then ...
    You will need to confirm the order these values appear and then you can use a function from the arrays palette and use the function "Decimate 1D Array"
    Regards
    JamesC
    NIUK and Ireland
    It only takes a second to rate an answer

  • How to determine the number of rows to be displayed in a report

    hello experts,
    Has anyone ever come across this requirement before? Before a report finishes being executed and before it displays the results, is there a way to determine the number of rows to be displayed as the result?
    Many thanks in advance.
    Regards,
    Inma

    Hello Arun,
    Thanks for your reply but do you know which method I should use for this purpose if I use the table interface?
    Thanks,
    Inma

  • How to fetch the Reqd. Quan & Result Quan for a Z-report w.r.t. tcode CS15

    Hi Group,
    I have a requirement to develop a Z-report depending on the o/p of the tcode CS15.
    The result should be same as that of the CS15 with the a few additions:
    (1)Providing option to accept multiple Materilal Numbers
    (2)Filtering out the selection criteria on the fileds MRP Controller, Profit Center and etc.,
    my queries are:
    (1)In the Standard report, I was getting the fields Required Quantity and Result Quantity in the output. Whereas for me
        I was using a fm 'CS_WHERE_USED_MAT' to fetch the BOM items but whereas in the return parameter (STPOV) does not
       contain these fields(Result Quan and Reqd. Quan). 
    (2)I have to show the Material Type in the output. But when I fetch the records from the above FM, I was getting the Component
        details but not the Materials.  - the user wants the Material Type to be shown for each record.
    Kindly provide me inputs on the above queries.
    Regards,
    Vishnu.

    Hi,
    You can refer my wiki which i posted long back.
    link:[Inverse BOM Explosion|http://wiki.sdn.sap.com/wiki/display/Snippets/InverseBOMExplosion-ABAP] . Please note that the coding is not so good. If its today i could have wriiten it better
    In case of quantities you will not get it directly . filrtering the material type is really  easy comparing the result with MARA-MTART.

  • How to determine the system color and set them for my app?

    Hi,
    I'd like to set the colors of my application to the system's colors. Especially the backgrounds of my JPanels, JButtons and so on should look like in the operating system. If you change the systems color scheme, my application looks really wierd with it's grey canvas an components and the border and menu of the window is displayed in the system's colors.
    any idea??
    koem

    The UIManager only seems to have control over
    awt-controls. All swing controls are not listed, when
    you try this:
            UIDefaults defaults =
    UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator();
    ator(); i.hasNext();)
    String name = (String)i.next();
    System.out.println(name);
    }It would be nice to have it set globally somewhere in
    the program.
    koemActually, the truth is quite the opposite, the UIManager only has control over swing components.
    There are many ways you can set these globally. You can sublcass your own look and feel, use the system look and feel, call UIDefaults.put() etc.
    Graeme

  • How to push the Planning preferences to all users for a particular app

    I am trying to do
    FIle -> Preferences ->Display options to be populated to all users. So that each users don't have to go and do those changes.
    I am using version 11.1.2.1

    Administrators can set application defaults. When the users settings are set to Use Application Default, the setting will be what the administrator has specified.
    Regards,
    Robb Salzmann

  • How can determine the duration of an audio file

    Hi,
    i'm making speech recognition project using java. i can capture sound by michrophone and playback it. the type of the sound is .wav.
    my question is how to determine the recording duration (for example: determine the duration for 0.25 second) because i must recorded syllable,the assumtion is needed less than 0.5 second to say a word. and then.. can this wav file be changed into... binary or integer ?
    thanks for your help

    FYI I'm newbie in Java,
    Yes, I want to limit the audio file lengths to a certain value. What should I do?
    I have read wav file using an AudioInputStream, for audio format I'm using sampleRate = 8000.0F and sampleSizeInBits = 8. My friend said if I used 8 bit for sampleSizeInBit (resolution in amplitude) the binary file should be -128 till 127 in range according to the bit. I try this code and the result is binary file which is zero, positive, and negative.
    the code
    try{
    audioInputStream.read(audioBytes);
    for (int i=0; i<audioBytes.length;i++){
    System.out.println(audioBytes);
    catch(IOException ioe){
    System.out.println("Error"+ioe);
    I'm not sure that the code is right, but it works. Should I change the audioBytes into integer before? I try this code but it doesn't work.
    int a = new int[audioBytes.length];
    for (int i=0;i<audioBytes.length;i++){
    a[i] = new Byte(audioBytes[i]).intValue();
    this binary file has been printed in console (I’m using texpad). So, how I can write that to file.txt? I'm using FileoutputStream but it doesn't work correctly. Here is the code
    FileOutputStream fos = new FileOutputStream(strFilePath);
    {audioInputStream.read(audioBytes);
    fos.write(audioBytes);
    catch (IOException ioe){
    System.out.println("Error"+ioe);
    When I open file .txt is read as character like this üüüüüüüüüüüüûüüüûüûûû ||||||| ||||||| ||||||||||||||||||||||||||||| &#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746; (like using alt plus number)
    Edited by: anasfr on Mar 19, 2009 9:02 AM

  • How to get the time interveral for each status of worklow (wating,Inprocess

    Hi Friends,
    I have requreiemnt to get the time interval for each status of workflow.
    ex.
                                                                     status
    workflow id  | startd date | enddate       | waiting | Inprocessing|Error|......
    1026            10.10.2008  25.10.2008        1hr      1hr 30 min    2 hr
    Please do give me idea how to get the time stam of each status of workflow.
    Thanks,
    D.prabhu

    Hi,
    I think the following tables would be helpful to you:-
    SWW_CONT     Container Contents for Work Item Data Container
    SWW_CONTOB     "Container Cont. for Work Item Data Container (Only Objects)"     
    SWWLOGHIST     History of a work item     
    SWWORGTASK     Assignment of WIs to Org.Units and Tasks     
    SWWUSERWI      Current Work Items Assigned to a User     
    SWWWIHEAD     Header Table for all Work Item Types
    Hope it Helps!
    Regards,
    Kanika

  • Time/duration of each diapo

    Can I manually change the time/duration of each diapo ?
    Thanks

    Yes, each slide's duration it tied to the audio or silence that is associated with it. Open the audio editor and you can either remove audio/silence or add silence to it. Audio can also be recorded here, but it is better done through the record audio dialog as it will provide the ability to have a script for it, from the notes section of PPT for that slide.
    I believe that with Presenter 8+, the slides have a minimum display time of 1 second.

  • How to determine the connection time?

    Hello!
    We have big troubles with our ConnectionPool. We have adapted most parts from the Book "Professional Java Server Programming" (Wrox Press).
    However, the connections are invalid (I/O Exceptions like "End of TNS Data Channel" or "Broken Pipe") after a while.
    The average up-time of our pool is approximately 24 hours.
    Now we want to drop renew the connections after a certain amount of time (let�s say 1 hour). To do this, we would need to determine the time when the connection has been established. How can this be done?
    I have looked into the DatabaseMetaData class, but did not find anything (at the first glance).
    PLEASE help me / us, the problem is really severe!
    Thanks in advance,
    Gregor Graf

    PLEASE help me / us, the problem is really severe!Where did you get the pool from? Is it your code? If so then are you sending a keep alive query - which would keep the connection active?
    If it isn't your code then are you explicitly returning the connections to the pool?
    Commercial pools don't typically drop connections. Some do which can be discovered by examining the configuration options for the pool that you have.
    If it is your code and you just want to add this, then you add a time value to each connection node. Each time a node is returned you set the time. You have a thread that runs and checks the time value, dropping any that are older than the value you want.

Maybe you are looking for

  • How can I 'login' as a different user via ARD?

    It has been too many years and I cannot remember much of anything anymore... My main computer is running the ARD admin app. I have a 'server' that has the client software installed and setup to auto login to my admin account on the 'server'. I can ea

  • Code 9 while trying to sync

    the i pod touch 4th gen show the screen to sync to the computer. After the sync starts it is saying code 9 problem with syncing. I have tried a new port on the computer, New connection cord, and have even tried a friends computer. drawing a blank on

  • 46L5200U picture has no backlight but sound is present

    Hello I have a 46L5200U whose picture stoped working, the problem started with a once and a while picture would vanish (volume is functional) but come back at some point; finially the picture stoped returning. if i get close to the tv (almost nose to

  • PowerBI regional/localisation settings (date time format/timezone) - PowerPivot dax NOW() returning UTC date

    Can the regional settings be changed for PowerBI or are we stuck with UTC? Tried googling but the only hits for 'regional powerbi' relate to the portal being available in that region, not any kind of localisation configuration I have a workbook that

  • External SWF rate

    I am using loadMovieNum to place an external swf on the stage. it is unloaded via an on (release). another button loads the external swf again. when it is reloaded a second time the external swf seems to play faster. the external swf has the followin