How to run a for loop for an array value

Hello
I got an array of value(for ex 1,4,6,10),depending on the array value i need to run the porgram in the case structure(as the examaple values given earlier case1,4,6,10)the program needs to run once for all the values in the array(i mean the program needs to run 1st for case1,then case4 and so on)
Any suggestions pls.

Can you describe exactly what you want to do?  In most cases, you do not need a loop to deal with arrays.  Many functions are polymorphic and will deal with arrays directly. 
R

Similar Messages

  • How to run MRP for Bulk Material without using LTP

    Hi, how can I run MRP for BULK material without using LTP.
    Thanks in advance
    BK

    Hi,
    Use trasnsaction code OPPQ and goto BOM Explosion and selection depends on
    Field selected
    No dependent requirements are created for informational purposes for bulk material items in the plant selected. This can improve system performance.
    Field not selected
    Dependent requirements are created for bulk material items in the plant selected. These dependent requirements are displayed in the planned order for informational purposes only. They are not considered in the net requirements calculation; that is, they are not included in material requirements planning (MRP) and are not displayed in the stock/requirements list
    Reg,
    Deepak.
    Edited by: deepak k b on Nov 11, 2008 6:56 AM

  • How to run MRP for BOM as well as ROL items

    We have only one plant. I  want to run MRP for BOM items as well as ROL items.  MRP can be  run plant wise thru tcode MD01.  I want to run mrp for only ROL items.
    Please suggest
    Regards,
    ( Rajneesh Gulati )
    Edited by: Rajneesh  Gulati on Jun 20, 2008 11:33 AM

    As I understand for Quartz, I think you should create a security subject for it in your code. I guess the background tasks in Quartz work in separate threads. It is not recommended in EJB application. you can use EJB timer service instead.
    -Albert

  • How to run the cursor loop once even if it is true for many times - urgent

    Hi,
    Say
    loop
    tdate='12-JAN-2005'
    loop
    cursor.......
    if '10-JAN-2005'<=tdate then
    fetch
    end loop
    tdate=tdate+1 month
    end loop;
    in the above query i want my cursor to run the loop only once at the first true of my condition....in the second run the tdate will be = '12-FEB-2005'....but my cursor loop should not go in..it has to comeout....
    how to do this....plz help very urgent

    in the above query i want my cursor to run the loop only once at the first true of
    my condition....in the second run the tdate will be = '12-FEB-2005'....but my
    cursor loop should not go in..it has to comeout....Simply control has been the cursor processed or not.
    Something like that
    SQL> declare
      2    tdate date := to_date('12-JAN-2005','DD-MON-YYYY');
      3    cursor cr is select * from dual;
      4    rt dual%rowtype;
      5    cursor_has_been_processed boolean := false;
      6  begin
      7   loop
      8     if to_date('10-JAN-2005','DD-MON-YYYY') <=tdate then
      9             if not cursor_has_been_processed then
    10                     open cr;
    11                     loop
    12                     fetch cr into rt;
    13                     exit when cr%notfound;
    14                     end loop;
    15                     close cr;
    16                     cursor_has_been_processed := true;
    17                     dbms_output.put_line('Cursor has been processed');
    18             end if;
    19     --DO something
    20     null;
    21          end if;
    22     dbms_output.put_line(tdate);
    23     tdate := add_months(tdate,1);
    24     exit when tdate >= to_date('12-MAY-2005','DD-MON-YYYY');
    25   end loop;
    26  end;
    27  /
    Cursor has been processed
    12-JAN-05
    12-FEB-05
    12-MAR-05
    12-APR-05
    PL/SQL procedure successfully completed.Rgds.

  • How to run save for web and contact sheets at the same time

    Hi
    my question is simple and a means to save time-
    Lets suppose I have 3 camera images and I want to run either save for web applications on 2 cameras at the same time, how/can i do that to save time or lets say contact sheet action on 1 and save for web on the other to save time or photoshop files and this runs in the background?
    would really help save me time.

    Even if you could run the three process in the background at the same time I do not think the duration of the total execution time would be any shorter. You would still be executing the same number of processor instruction reading and writing the same number of files. If the whole processor was constrained by the processing power running them cuncurrenly may increase the processing time because of contention for the processor. If the processes are IO bound that will not change a overlaping the processes may cause more hard disk seaking because of contention of the hard disk arm.

  • What are the steps and how to run payroll for a person?

    Hi all,
    I have hired a person.  Hired with begda 01/01/2009.
    I have assigned the person to 0001, 0002, 0006, 0008.
    For this person how can I run payroll?
    Help me with the steps from begin of employee hiring to the employee payroll run.
    So that I can check the hired person payroll results in pc_payresult tcode.
    Thanks,
    Venkata

    Hi,
    Please check
    http://help.sap.com/saphelp_47x200/helpdata/en/69/317235acfa2b5ee10000009b38f839/frameset.htm
    Regards,
    Param

  • How to run Profiler for Mobile Application on adevice.

    I would like to see Performance issue for my mobile application. This application is using StageVideo object and StageVideo is unavailable in emulator.
    So, I would like to run Profiler in device.
    Could anyone please help me ways to run Profiler on device using FlashBuilder.
    I'm using FlashBuilder4.6.

    Hi Divya,
    I am implementing application given on
    https://www.sdn.sap.com/irj/sdn/mobile link which is
    "Model-driven Design of Mobile Applications New! "
    According to document, I have configured server and frontend, developed model and deployed successfully. But there is no option or documentation available to run the application.
    If I get simulator/emulator to run mobile application.. how can I run?
    Or should I run through browser with some link?
    Please help. Thnaks in advance.
    Mehul

  • How to run costing for materail 'X'

    Hi,
    my client is it is make to order business process, descreate manufacturing.
             1. My client is having the productionn of finished product of 'x' in two plants- 0001 & 0002.
             2. before 'X' there are 12 Processes of semi finished material process.
             3. in between semi finished material process of 4th stage materail will be sending to some service.
             4. upto stage of material 4 th stage material in Plant 0001.
             5. After coming from service the semifinished material will be receiving in plant 0002.
             6. Finished material will be from plant 0002 so i have to run costing in plant 0002 of finished material of 'x'.
             7. How i have to run the Costing run for finished product of material 'X' by the both plants?.
             8. is it possible to run finished product of 'x' in plant 0002.
             9. will it be takeing BOM&Routing or any configueration in Product costing
    Thanks
    Nagaraju

    Hi ,
    I have only one BOM .... But two different valuation types for single materail. or one valuation type only...
    I need to fetch the price in the both valuation type.....
    how to do that.. Suggest

  • How to run trigger for each affected row in delete query

    Hello every body, can anyone help me ?
    I will describe my problem. First, i have 2 table name tbStock and
    tbSalesDetail. Column in tbStock and tbSalesDetail is like this :
    CREATE TABLE tbStock (
    idStock INT PRIMARY KEY,
    nameStock VARCHAR(250) NOT NULL,
    qtyStock FLOAT NOT NULL
    GO
    INSERT INTO tbStock (idStock, nameStock, qtyStock) VALUES (0, 'Apple', 100);
    INSERT INTO tbStock (idStock, nameStock, qtyStock) VALUES (1, 'Banana', 80);
    GO
    CREATE TABLE tbSalesDetail (
    idData BIGINT IDENTITY(0,1) PRIMARY KEY,
    invoiceNumber VARCHAR(20) NOT NULL,
    idStock INT NOT NULL,
    qtySales FLOAT NOT NULL
    GO
    INSERT INTO tbSalesDetail (invoiceNumber,idStock,qtySales) VALUES ('JL001',0,10);
    INSERT INTO tbSalesDetail (invoiceNumber,idStock,qtySales) VALUES ('JL001',1,5);
    GO
    Then, i want to update qtyStock in tbStock when data insert into tbSalesDetail or delete from tbSalesDetail with trigger. (In this case, i use delete from tbSalesDetail). So, i create trigger like this :
    CREATE TRIGGER tbSalesDetail_Trigger_Delete ON tbSalesDetail
    FOR DELETE
    AS
    BEGIN
    DECLARE @idStockX INT, @qtySalesX FLOAT;
    SELECT @idStockX=idStock, @qtySalesX=qtySales FROM deleted;
    UPDATE tbStock SET qtyStock=qtyStock+@qtySalesX WHERE idStock=@idStockX;
    END
    GO
    The trigger is run. I hope if i run delete command like :
    DELETE FROM tbSalesDetail WHERE invoiceNumber='JL001';
    will make the quantity of stock become like this :
    Product Apple (idStock=0) = 100+10=110
    Product Banana (idStock=1) = 80+5=85
    But in the fact, Quantity Apple is True (110) and Quantity Banana is
    False (still 80).
    I know this problem because trigger only run for first row. So how can i update each data in affected row with trigger ? (I use Windows 7 SP1 32 bit and SQL Server 2012 SP1 Express Edition)

    Your DDL violates ISO-11179 rules and needs to be fixed. You even use camelCase (look up the research; it does not work because of eye movement to the Uppercase letters). The prefix “tb-” is a design flaw caller “tbling” in the literature (Google some
    of Phil Factor's columns at Red Gate). 
    Why did you use FLOAT for a quantity? Do you really have 3.141592653 bananas so you can make banana pie? 
    Why is the stock id a numeric? What math do you do on it? It should be an industry standard, like UPC, EAN or GTIN. 
    Why is there no reference in the weak entity (Sales_Details) to it's strong entity (Stock)? 
    Why do you think that IDENTITY is a key?? It is the count of physical insertion attempt to a table in one schema! It has no place in DBMS. Why don't you use the current ANSI Standard INSERT statements? 
    Let's fix this mess:
    CREATE TABLE Stock 
    (gtin CHAR(15) NOT NULL PRIMARY KEY, 
     item_name VARCHAR(250) NOT NULL, 
     onhand_qty INTEGER NOT NULL);
    INSERT INTO Stock (gtin, item_name, onhand_qty)
     VALUES ('000000000000000', 'Apple', 100), 
            ('111111111111111', 'Banana', 80);
    If there is a Sales detail table, there has to be a Sales table in a valid design. This is the strong-weak entity rule. 
    While IDENTITY is fundamentally wrong, using BIGINT is an error made worse. Then looking at the data, this is a table of purchase invoices, not sales details. 
    CREATE TABLE Purchase_Orders 
    (po_nbr CHAR(20) NOT NULL PRIMARY KEY, 
     gtin CHAR(15) NOT NULL
        REFERENCES Stock(gtin)
        ON UPDATE CASCADE, 
     purchase_qty INTEGER NOT NULL);
    INSERT INTO Purchase_Orders (po_nbr, gtin, sale_qty)
     VALUES ('JL001', '000000000000000', 10),
            ('JL001', '111111111111111', 5);
    >> I want to update onhand_qty in Stock when data is insert into Invoices or delete from Invoices with trigger. (In this case, I use delete from Invoices). So, I created trigger like this : <<
    Why? A trigger is procedural code and SQL is a declarative language. An SQL Programmer might use a stored procedure to update stock levels instead.
    The simple one item purchase would be:
    CREATE PROCEDURE Apply_Purchase_Orders
    (@in_gtin CHAR(15),
     @in_purchase_qty INTEGER) 
    AS
    UPDATE Stock 
       SET onhand_qty = onhand_qty + @in_purchase_qty
     WHERE gtin = @in_gtin;
    But if you want to apply a table of purchase orders:
    CREATE PROCEDURE Apply_Purchase_Orders ()
    AS
    MERGE INTO Stock AS S
    USING Purchase_Orders AS P
    ON S.gtin = P.gtin
    WHEN MATCHED 
    THEN UPDATE 
         SET onhand_qty = onhand_qty + @in_purchase_qty;
    Your problem is that you have not gotten education or training, so instead of writing RDBMS and good SQL, you are mimicking your old procedural language and a file system. This is more than we can do in a Forum. What you will get is advice to “help” you kludge
    a cripple system. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to run setup for new datasources without breaking old datasources?

    Hi,
    I am wondering how to install some more data sources (2LIS_05_Q0NOTIF, 2LIS_17_10NOTIF and 2LIS_18_10NOTIF) without breaking the delta mechanism for other data sources when I start to use the new datasources.
    I have installed some QM cubes (0QM_C04, -05, -08 and -11) and delta loads run every night.  Now I want to add two more cubes (0QM_C02 and -03). The new cubes use datasources that are not yet available.
    If I now activate the needed datasources, delete the content of the setup tables again and run 'Application-Specific Setup of Statistical Data' for 'Quality Management', 'Plant Maintenance' and 'Service Management', I am afraid that I will re-initialize the delta queue for the datasources that are already in use... In other words: I am afraid of breaking all datasources in application 05, 17 and 18...
    I cannot find documentation addressing this problem. Any input, anyone?
    Best regards,
    Christian Frier

    Hi all,
    if I understand you all correctly, I can use the following plan:
    0) Wait until no documents are posted on the R/3 side.
    1) Run the delta loads and check that the queues are empty (RSA7 and LBWQ).
    2) Delete the setup tables.
    3) Run the 'Application-Specific Setup of Statistical Data'
    4) Create and execute infopackages for initial dataload (for the new datasources).
    5) Create and execute infopackages for delta loads      (for the new datasources).
    6) Run the infopackages for delta load from the 'old' datasources without running a new initial dataload.
    So basically 6) is the step I worry about.
    That is that I can start to use 2LIS_05_ITEM, 2LIS_17_ITEM and 2LIS_18_ITEM without breaking the delta sequence for 2LIS_05_TASK, 2LIS_17_TASK and 2LIS_18_TASK.
    regards,
    Christian

  • How to Run Diagnostics for iTunes

    I am having trouble downloading latest iOS for iPhone, and one suggestion is to select Run Diagnostics from iTunes help menu. I cannot find that choice in the help menu. Can anyone explain why? I have latest version of iTunes.

    iTunes diagnostics run on iTunes for Windows, not iTunes for OS X.
    iTunes for Windows: Gathering and using iTunes Diagnostics - Apple Support

  • How to run depreation for month of  jan and feb

    Hi deprecton is not calculating for january and feb
    'can i run right nw?  but while trying unplanned depreciation it is not running
    could you tell me reason.
    its urgent......
    regards
    ss.

    Hi,
    What is your fiscal year ? Jan to Dec / Apr-Mar?
    Depreciation has to be posted month by month and unless postings are made for Jan and Feb, you cannot post to susbsequent months Mar etc.
    If Depreciation is already posted for Jan / Feb - check whether any unplanned Depreciation ncan be posted.
    Thanks
    Murali.

  • Hashtable- how to retrieve key for a particular value?

    I fetched few values from the database and stored all them using hashtable. Then i check for the value entered by the user in a textbox using contains() method of hashtable. Now i want to fetch the key associated to this particular value so that i can pass it to my rest of the program?
    Pls help me....

    The obvious question is what are you using as your key when you store the value into your hashtable?? The idea behind the key/value system is that you use the key to get the value you want, not the other way around. In your current situation, the contains() method might return true, but that could you mean you have 1, or 1000 instances of that value in your hashtable. Which key do you want? You could, I suppose, parse through the output of Hashtable.toString()... but that still wouldn't resolve the possibility of duplicate values in the hash.
    Another possible solution to your problem, depending on how your application works, is to wait until you get that user input before running your database query. Simply append the added info onto your SQL SELECT statement to accurate retrieve only those entries from the database that you will need.

  • How to use OFFSET for CHAR type value in Bex query

    infoobject A value = 1102007
    Type = CHAR
    I want to have an offset for this infoobject created in query say 1 to 12 months
    in month of 10/2007 value = 1102007
    remember above 1 is always CONSTANT
    then
    in month of 11/2007 value = 1112007
    in month of 12/2007 value = 1122007
    how to do this since the infoobject is of TYPE- CHAR ,its gives we cannot do the OFFFSET in the query ,for doing OFFSET the infoobject must be of type numeric or NUMC.
    is it possible achieve this in to update rules?? since i cannot change the type of this infoobject now in the middle of production support
    please help
    thanks

    Hi,
    You will have to add a characteristic to your cube.
    The format should be NUMC
    In the update-routine you will have to convert the char value to numc
    Success
    udo

  • How to find average for non blank values

    I need to calculate avarage for each restricted key figures. There are some blank values in this restricted key figures. Now I need to sumup and divide by non blank count. Do you know how to do it? How to count non blnak values and find avereage.
    Thanks,
    Phani

    In the properties of Key figure used in column/row, Calculations section, you can maintain calculation type for result as well as single value. There is "Average of all values not equal 0" option is available.
    Rgds,
    Vikram.
    Edited by: Vikram Kate on May 22, 2008 11:23 AM

Maybe you are looking for

  • Factoring based on 26 days

    Hi friends The client requirement is to calculate payroll based on 26 days flat.  I am sure we will face issues in the month of February where we have only 24 working days and month like March(27 days), April(25 days), May(27 days) and August(27 days

  • Set default tab for Document Properties windows

    Greetings!   Once I open a PDF document and go to File > Properties I always get the Security tab open by default:   Can you suggest me a way to change tab displayed by default to the other one, for example Description please?   Thank you!

  • Song not saving correctly?

    Hello all and Happy Christmas, New Year etc..... I have a problem where as whenever I load a song (usually from recent list) it never loads up as I saved it. i.e. it loads up with small windows, solo buttons missing, transport buttons missing etc. Mo

  • How to find Extract for the bank key/ bank account changed in vendor maste

    Hello Gurus, I need help in finding the extract for the bank details of vendors changed for a period of time. I tried using FK04 under multiple selection and ran the report for the selected vendors. It only shows  the "bank details created" or "bank

  • Javascript future in Webdynpro (JAVA and ABAP)

    Hi WebDyn Pro's, I see many sophisticated capabilities enabled inside Webdynpro for JAVA from use of Javascript.  Further, in many cases, Javascript provides the only solution for the requirements! From this forum, I think I hear that Javascript capa