What's Rong This Procedure

create or replace PROCEDURE multi_lots (
--errbuf    OUT    VARCHAR2,
                    --retcode   OUT    NUMBER,
                   --  p_item_id IN NUMBER ,
                     p_lot_number in varchar2 ,
                     p_no_of_lots in number ) AS
                    -- p_qty in number,
                   --  p_grade in varchar2) AS
    cursor c1 is
select *
    from mtl_lot_numbers
    where
    lot_number = p_lot_number;
    --v_temp c1%rowtype;
    per_count number:=0;
  BEGIN
             for i in c1
loop
  /*insert into generate_multi_lots
  (no_of_lots  , qty, grade , item_id,lot_number)
  values
  (p_no_of_lots,p_qty/p_no_of_lots,p_grade,p_item_id,p_lot_number||' - '||i);
insert into xyz
-- (grade_code , inventory_item_id,lot_number , organization_id , last_update_date , last_updated_by , creation_date , created_by )
(INVENTORY_ITEM_ID,
ORGANIZATION_ID,
LOT_NUMBER,
LAST_UPDATE_DATE,
LAST_UPDATED_BY,
CREATION_DATE,
CREATED_BY)
values
(I.INVENTORY_ITEM_ID,i.organization_id,
p_lot_number,
i.LAST_UPDATE_DATE,
i.LAST_UPDATED_BY,
i.CREATION_DATE,
i.CREATED_BY);
-- values
  --(p_grade,p_item_id,p_lot_number||' - '||i , '500' , sysdate,2 , sysdate ,3);
  commit;
per_count := per_count + 1;
     EXIT WHEN per_count = p_no_of_lots;
END loop;
end;this is my query for insert thru procedure..
if i passed no_of_lots for example 2 then 2 lines shud be insert but the problem is only 1 line insert if i passed n e value in parameter..
what's rong??
plzZ hElp

From your code, you loop is based on the SQL
select *
from mtl_lot_numbers
where
lot_number = p_lot_number;
Check for the parameter p_lot_number, how many records exist....I guess it would be 1 for all the lot numbers. That's why the loop ends up before checking the exit condition. Also check the values of p_lot_number, p_no_of_lots...
Other wsie change the loop count from cursor to p_no oflots which you are not using anywhere else
For i in 1..p_no_lots
end loop
Edited by: SBH on Jun 29, 2010 12:10 AM

Similar Messages

  • Whats wrong with this procedure ?

    Iam just extending the command by defining a variable in begining but its not working please advise.
    if i change the first part of cmd string in code below to
    "AGENTWORKS_DIR=/opt/CA/SharedComponents/ccs/atech;/opt/CA/SharedComponents/ccs/atech/services/bin/awtrap"
    it does not work
    import java.util.*;
    import java.io.*;
    public class RunSystemCommand {
    public static void main(String args[]) {
    String s = null;
    String[] cmd = {"/opt/CA/SharedComponents/ccs/atech/services/bin/awtrap", "-f", "10.100.11.68", "-h", "10.100.10.112","-p","162","-c","fdot","1.3.6.1.4.1.791.2.9.2","6","4","1.3.6.1.4.1.791.2.9.2", "-s", args[0
    try {
    //run the command
    Process p = Runtime.getRuntime().exec(cmd,null,null);
    int i = p.waitFor();
    if (i == 0){
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
    // read the output from the command
    while ((s = stdInput.readLine()) != null) {
    System.out.println(s);
    else {
    BufferedReader stdErr = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    // read the output from the command
    while ((s = stdErr.readLine()) != null) {
    System.out.println(s);
    catch (Exception e) {
    System.out.println(e);
    }

    sahmad43 wrote:
    Iam just extending the command by defining a variable in begining but its not working please advise.
    if i change the first part of cmd string in code below to
    "AGENTWORKS_DIR=/opt/CA/SharedComponents/ccs/atech;/opt/CA/SharedComponents/ccs/atech/services/bin/awtrap"
    it does not work
    String[] cmd = {"/opt/CA/SharedComponents/ccs/atech/services/bin/awtrap", ...
    Process p = Runtime.getRuntime().exec(cmd,null,null);That tells the OS to execute an application named "awtrap" located in the /opt/CA/SharedComponents/ccs/atech/services/bin directory. If you change that to try to execute:
    "AGENTWORKS_DIR=/opt/CA..."
    why would you expect the OS to understand that?

  • Can anyone pls explain what this procedure does?

    i could only figure out that it will be performing a transpose.
    create or replace
    PROCEDURE TEST_TRANSPOSE(o_test OUT SYS_REFCURSOR) AS
    report_exists number(3);
    report_name varchar(30) := 'REPORT_TBL' ;
    query_main varchar(16000) := 'create table ' || report_name || ' as select MAGAZINE ' ;
    query_part varchar(1024) ;
    my_var varchar2(5);
    cursor cur_region is select distinct REGION from MAIN_TBL order by region;
    begin
    select count(*) into report_exists
    from tab
    where tname = report_name;
    if ( report_exists = 1 ) then
    execute immediate 'drop table ' || report_name ;
    end if;
    open cur_region ;
    loop
    fetch cur_region into my_var ;
    exit when cur_region%NOTFOUND;
    query_part := 'select nvl(sum(quantity),0) from MAIN_TBL x where x.magazine = main.magazine and x.region='''||my_var||'''' ;
    query_main := query_main || chr(10) || ',(' || query_part || ')"' || my_var || '"';
    end loop;
    close cur_region ;
    query_main := query_main || ' from (select distinct MAGAZINE from MAIN_TBL ) main' ;
    DBMS_OUTPUT.PUT_LINE(query_main);
    --execute immediate query_main ;
    open o_test for query_main;
    end;
    {code}
    i need to transpose  a table which has dynamic number of rows.This was what i tried.Could you pls bhelp me out to correct this i get "P_TRAN_YEAR" invalid identifier
    [code]
    create or replace
    PROCEDURE         PRM_R_MAT_RPT (p_EmpID     IN  Integer,
    P_TRAN_YEAR IN NUMBER,
    P_TRAN_MONTH IN NUMBER,O_rc OUT sys_refcursor) IS
    v_cnt NUMBER;
    v_sql VARCHAR2(32767);
    v_basic Number(16, 4);
    BEGIN
    select PPH_ORG_AMOUNT into v_basic from prm_p_hop
    where pph_emp_id=p_empid
    and pph_tran_year=p_tran_year
    and pph_tran_month=P_TRAN_MONTH
    and pph_hop_code=5
    and PPH_SALARY_THRU='R';
    -- SELECT  distinct count(*)
    --  INTO v_cnt
    --  FROM PRM_T_VAR_HOP
    --  where PTVH_EMP_ID=p_EMPID
    --  and PTVH_TRAN_YEAR=p_TRAN_YEAR
    --  and PTVH_TRAN_MONTH=P_TRAN_MONTH;
    v_sql := 'select  distinct PCH_SHORT_DESCRIPTION,v_basic,PTVH_AMOUNT Amount ';
    --  FOR i IN 1..v_cnt
    --  LOOP
    v_sql := v_sql || ',max(decode(rn, PCH_SHORT_DESCRIPTION)) as description ';
    --v_sql := v_sql || ',max(decode(rn, '||to_char(i)||', PDSL_INTEREST)) as interest'||to_char(i);
    -- v_sql := v_sql || ',max(decode(rn, '||to_char(i)||', PDSL_PRINCIPAL_SALARY)) as principle'||to_char(i);
    -- v_sql := v_sql || ',max(decode(rn, '||to_char(i)||', PDSL_SOCIETY_CODE)) as SOC_CODE'||to_char(i);
    --  END LOOP;
    v_sql := v_sql || ' from (select  PRM_T_VAR_HOP.*, PRM_C_HOP.*, row_number() over (partition by PTVH_EMP_ID order by PTVH_EMP_ID) as rn
    from  
    PRM_T_VAR_HOP,
    PRM_C_HOP
    WHERE PTVH_EMP_ID         =P_empid
    And   PTVH_TRAN_YEAR      =P_TRAN_YEAR
    And   PTVH_TRAN_MONTH     =P_TRAN_MONTH
    And   PTVH_HOP_CODE       =PCH_HOP_CODE
    AND   PCH_CALCULATION_BASIS=''V''
    AND   PCH_TAG              =''C''
    AND   PTVH_SALARY_THRU     =''R'')';
    OPEN O_rc FOR v_sql;
    END;
    [/code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Your first piece of code does not work, because a create table statement cannot be issued using a ref cursor like that. When executed with the "execute immediate" command, it works. Then, the refcursor is only a "select * from report_tbl".
    What it does, is dynamically dropping and creating a table report_tbl and filling it with the results of a horribly inefficient pivot query. If the report_tbl has no other purpose after running this procedure, then I'd suggest to not drop and create tables dynamically like that. In the second variant of test_transpose, you can see how you can do that.
    SQL> create table main_tbl (magazine,region,quantity)
      2  as
      3  select 'MAGAZINE1','REGION1',1 from dual union all
      4  select 'MAGAZINE1','REGION2',2 from dual union all
      5  select 'MAGAZINE1','REGION3',3 from dual union all
      6  select 'MAGAZINE2','REGION1',4 from dual union all
      7  select 'MAGAZINE2','REGION2',5 from dual union all
      8  select 'MAGAZINE2','REGION3',6 from dual
      9  /
    Tabel is aangemaakt.
    SQL> create or replace PROCEDURE TEST_TRANSPOSE(o_test OUT SYS_REFCURSOR)
      2  AS
      3    report_exists number(3);
      4    report_name varchar(30) := 'REPORT_TBL' ;
      5    query_main varchar(16000) := 'create table ' || report_name || ' as select MAGAZINE ' ;
      6    query_part varchar(1024) ;
      7    my_var varchar2(7);
      8
      9    cursor cur_region is select distinct REGION from MAIN_TBL order by region;
    10  begin
    11    select count(*) into report_exists
    12    from tab
    13    where tname = report_name;
    14    if ( report_exists = 1 ) then
    15    execute immediate 'drop table ' || report_name ;
    16    end if;
    17
    18    open cur_region ;
    19    loop
    20      fetch cur_region into my_var ;
    21      exit when cur_region%NOTFOUND;
    22      query_part := 'select nvl(sum(quantity),0) from MAIN_TBL x where x.magazine = main.magazine and x.region='''||my_var||'''' ;
    23      query_main := query_main || chr(10) || ',(' || query_part || ')"' || my_var || '"';
    24    end loop;
    25    close cur_region ;
    26
    27    query_main := query_main || ' from (select distinct MAGAZINE from MAIN_TBL ) main' ;
    28    execute immediate query_main;
    29    open o_test for 'select * from ' || report_name;
    30  end;
    31  /
    Procedure is aangemaakt.
    SQL> var rc refcursor
    SQL> exec test_transpose(:rc)
    PL/SQL-procedure is geslaagd.
    SQL> print rc
    MAGAZINE     REGION1    REGION2    REGION3
    MAGAZINE1          1          2          3
    MAGAZINE2          4          5          6
    2 rijen zijn geselecteerd.
    SQL> create or replace procedure test_transpose (o_test out sys_refcursor)
      2  as
      3    l_query varchar2(1000) := 'select magazine';
      4  begin
      5    for r in (select distinct region from main_tbl)
      6    loop
      7      l_query := l_query || ', sum(decode(region,''' || r.region || ''',quantity)) ' || r.region;
      8    end loop;
      9    l_query := l_query || ' from main_tbl group by magazine';
    10    open o_test for l_query;
    11  end;
    12  /
    Procedure is aangemaakt.
    SQL> exec test_transpose(:rc)
    PL/SQL-procedure is geslaagd.
    SQL> print rc
    MAGAZINE     REGION1    REGION2    REGION3
    MAGAZINE1          1          2          3
    MAGAZINE2          4          5          6
    2 rijen zijn geselecteerd.Regards,
    Rob.

  • Pls tell what is err in this procedure

    pls tell what is err in this procedure
    create or replace procedure before_insert
    is
    counter NUMBER;
    sql_string VARCHAR2 (4000);
    BEGIN
    FOR Outercounter IN 1 .. 2 LOOP
    FOR Innercounter IN 1 .. 10 LOOP
    sql_string :=
    'INSERT INTO emp_50' || OuterCounter
    || '(id, col_a ,col_b,col_c ,col_d ,col_e, col_f ,col_g ,col_h ,col_i ,col_j ,col_k,col_l,col_m,col_n,col_o,col_p,
    col_q,col_r,col_s,col_t,col_u,col_v,col_w,col_x,col_y,col_z,col_aa,col_bb,col_cc,col_dd,col_ee,col_ff,col_gg,
    col_hh,col_ii,col_jj,col_kk,col_ll,col_mm,col_nn,col_oo,col_pp,col_qq,col_rr,col_ss,col_tt,col_uu,col_vv,col_ww,
    col_xx) VALUES (''id.nextval'',''col_a'',
    sysdate,
    ''col_c '',''col_ddd'' ,''col_eee'',''col_ffff'' ,''col_g'' ,sysdate ,''col_iiii'' ,''col_j'' ,sysdate,''col_l'',''col_m'',''col_n'',''col_o'',
    ''col_p'',sysdate,''col_r'',''col_s'',''col_t'',''col_u'',''col_vvv'',''col_w'',sysdate,''col_y'',''col_z'',
    ''col_a'',''COL_BB'',''col_cc'',''col_dd'',sysdate,''col_ff'',''col_gg'',''col_h'',''col_ii'',''col_jj'',
    ''col_kkkkk'',sysdate,''col_mm'',''col_nnmmm'',''col_o'',''col_pp'',''col_qqqqq'',''col_rrqqq'',sysdate,''col_tt'',''
    col_uuuuuu'',''col_v'',''col_ww'',''col_xx'')';
    EXECUTE IMMEDIATE sql_string;
    END LOOP;
    END LOOP;
    END;
    ERROR at line 1:
    ORA-01722: invalid number
    ORA-06512: at "EMPLOYEE.BEFORE_INSERT", line 21
    ORA-06512: at line 1

    why you are using double quotes with a seq number, when inserting??
    ''id.nextval''

  • Logical error in this procedure

    Hi,
    I have creted this procedure when i execute it,
    procedure created successfully, but when i run the procedute then it gives this error
    *ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ORA-06512: at "POI_RELEASE.SPECIAL_YPOL", line 13
    ORA-06512: at line 1
    CREATE or REPLACE PROCEDURE SPECIAL_YPOL
    (tablename IN VARCHAR2,
         fieldname IN VARCHAR2)
    AUTHID CURRENT_USER
    IS
    BEGIN
    EXECUTE IMMEDIATE 'Update '      
                        ||tableName
                        || ' set '
                        ||fieldname
                        ||' =REPLACE('     
                        ||fieldname     
                   ||',CHR(38) || ''QUOT,'',CHR(39)) WHERE'
                        ||FIELDNAME
                        ||'LIKE ''%'' || CHR(38) || ''QUOT,''';
    OMMIT;
    END;
    /

    If this was ancient times, and you wrote this code to run on any of my databases, I would have handed your over to the SQL Inquisition for showing you the error of your ways.
    This is exactly how NOT to write code in Oracle. This is exactly how to cause performance problems in Oracle. This is exactly how to trash and fragment the Oracle Shared Pool. This is exactly how to design code and applications that are fragile and generate weirdly non-wonderful runtime errors.
    On the performance side... this is what I posted not even a week ago to show just how stupid this approach you're using is:
    SQL> create table footab( n number );
    Table created.
    SQL> set timing on
    SQL>
    SQL> -- doing a 100,000 inserts using a bind variable
    SQL> declare
    2 sqlInsert varchar2(1000);
    3 begin
    4 sqlInsert := 'insert into footab( n ) values( :0 )';
    5 for i in 1..100000
    6 loop
    7 execute immediate sqlInsert using i;
    8 end loop;
    9 end;
    10 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:04.91
    SQL>
    SQL> -- doing a 100,000 inserts without using a bind variable
    SQL> declare
    2 sqlInsert varchar2(1000);
    3 begin
    4 -- need to built a unique SQL for each insert
    5 for i in 1..100000
    6 loop
    7 sqlInsert := 'insert into footab( n ) values( '||i||' )';
    8 execute immediate sqlInsert;
    9 end loop;
    10 end;
    11 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:05:21.47
    SQL>So.. you want to turn something that should run in a few seconds, to something that takes several minutes to run.
    Great stuff!! Pardon me, but I think I will need yet another cup of coffee to see me through this morning's browsing of Oracle Forums..

  • HT1364 Can I use this procedure to consolidate my iTunes media folder along with my wife's, both in a new, common location?

    Previously we have both kept our music folders independent. I now want to use the procedure described in HT1364 to move both of our music folders into a single, common location. The idea is to use the same media folder but still keep each of our iTunes users separate so that each can maintain its own playlists, etc.
    We share the same home PC but each of us has its own user and as such, each of us have a separate iTunes.  This way we can each keep sync'ing music to each of our separate iDevices but share the same source music folders.
    FWIW, we both use the same appleID for purchases, but each of us have individual AppleIDs for iCloud syncing. We mostly have differents songs, but I estimate that we have about 10% duplicate songs/albums, both form iTunes purchases and uploads from CD's.
    The procedure above describes how to change the location of your music files. Using this procedure I will move my media files to the new, common location. I wil then switch to my wife's iTunes user and will repeat the process.  While doing my wifes procedure I'm wondering what will happen when it detects the duplicates... will it just ignore them? ask me if I want to replace the song file, or just crash and mess up either or both of our libraries?
    I assume that this is the proper way to set up a family Apple ecosystem.  This way when a new member of the family begins collecting music he/she can join the "family music library" and sync only the songs she wants and so on.
    I will welcome your comments and implications of doing procedure above. And also, your comments on the proper way to configure a family ecosystem, if this is not the proper way to do it.
    Merry Christmas to all of you.

    Previously we have both kept our music folders independent. I now want to use the procedure described in HT1364 to move both of our music folders into a single, common location. The idea is to use the same media folder but still keep each of our iTunes users separate so that each can maintain its own playlists, etc.
    We share the same home PC but each of us has its own user and as such, each of us have a separate iTunes.  This way we can each keep sync'ing music to each of our separate iDevices but share the same source music folders.
    FWIW, we both use the same appleID for purchases, but each of us have individual AppleIDs for iCloud syncing. We mostly have differents songs, but I estimate that we have about 10% duplicate songs/albums, both form iTunes purchases and uploads from CD's.
    The procedure above describes how to change the location of your music files. Using this procedure I will move my media files to the new, common location. I wil then switch to my wife's iTunes user and will repeat the process.  While doing my wifes procedure I'm wondering what will happen when it detects the duplicates... will it just ignore them? ask me if I want to replace the song file, or just crash and mess up either or both of our libraries?
    I assume that this is the proper way to set up a family Apple ecosystem.  This way when a new member of the family begins collecting music he/she can join the "family music library" and sync only the songs she wants and so on.
    I will welcome your comments and implications of doing procedure above. And also, your comments on the proper way to configure a family ecosystem, if this is not the proper way to do it.
    Merry Christmas to all of you.

  • What is the best procedure to update from Leopard (or Snow Leopard) to Mavericks?

    The pacient:
    Macbook Pro A1278
    Running 10.5.8 -- but have an Update DVD to 10.6 (Snow Leopard)
    Got slower in start-up
    Very slow in power-off (takes lot of time on shut-down!)
    What is the BEST procedure to update it from Leopard to Mavericks?
    A) update & clean
    Backup to Time Machine (in Leopard)
    Update from 10.5.8 to 10.6 (Snow Leopard)
    Update 10.6 to 10.6.8
    Donwnload and Update to Maverics
    Do any kind of clean to increase speed in start-up / shut-down - Any suggestions?
    or
    B) fresh install & update & recover Time Machine
    Backup to Time Machine
    Reinstall a fresh 10.5.8 (Leopard) - should increase speed in start-up / shut-down ??
    Update from 10.5.8 to 10.6 (Snow Leopard)
    Update 10.6 to 10.6.8
    Donwnload and Update to Maverics
    Recover users data & config from Time Machine
    I am thrilled to heard your advices!!
    PS. Aditional suggestions to make a faster boot / power-down , before or after updating are very welcome ;!)

    Go to  Menu > About this Mac > and tell us Version, Processor & Memory specs on your Mac. Also available hard disk space, by choosing your Macintosh HD and "Get Info" (cmd-i)
    If you're having issues now with slow sratup and shutdown, it's probably a third party item. If it is, then it may limited to your user account. If that's the case and you do a clean install, then migrate you will wind up migrating it right back.
    The first thing to check would be to boot into your Guest account and test, or try starting in Safe Mode and see if the problem still occurs?
    Restart holding the "shift" key.
    (Expect it to take longer to start this way because it runs a directory check first.)
    If this works look in System Preferences > Users & Groups > Login items and delete any third party login items.
    Also look in /Library/Startup Items. Nothing is put in that folder by default, so anything in there is yours. Then log out and back in or restart and test.
    If the problem is sorted, be sure to make a new backup before proceeding. Since the problem is sorted and you have a backup without the offending items, then there's no reason not to use the simple upgrade method you outlined in A. With the exception of "cleaning". The only cleaning your Mac should need is with a soft cloth. Stay away from so-called cleaning/optomizing utilities.

  • What is the correct procedure for upgrading to aperture 3.4

    I am working in South Sudan and am shortly going to be in a place where I can download all the updates. The last time I did an update was around 2 weeks ago.
    I presume that there will be updates for Mountain Lion, iPhoto and Aperture, plus a whole pile of iOS updates. From the support questions I see that there is a number of people having problems.
    I presume that the first thing to do will be to rebuild the library of aperture.
    What is the correct procedure after that?

    If I do an upgrade through AppStore, and find it does not work, do I uninstall first by removing to trash? What do you mean by revert to an earlier version, and which previous version of Aperture should I use.
    Neville,
    So you did buy Aperture from the AppStore?
    Then move the Aperture application to the Trash, but do not empty it, just in case
    Sign into the AppStore and reinstall. In this case you do not need to revert to an earlier version. If the AppStore installer does not find an Aperture in your Applications folder, it will have to make a full install, and no incompatible frameworks should remain, as is the problem with the partial upgrades right now.
    Yes, I have a bootable clone,
    And have you checked, if you really can boot from your clone? Just being very cautious.
    Do you use facebook? Some posters are having problems, even after reinstalling, if the want to publish to Facebook. Post back, if you encounter that problem.
    Good Luck
    Léonie

  • What is the proper procedure to backup to multiple external hard drives if one wishes to rotate drives such that you may store one in a fire safe?

    Description:  If I want to back up to two external hard drives using Time Machine, what is the proper procedure to follow such that I could keep one attached to Time Machine for daily backups, and one that I attach monthly such that I can back it up monthly, and then store it in a fire safe.  To do this, what are the exact steps to follow?
    Research in Progress:
    I selected the "?" icon in Time Machine which took me to "Mac Help - Time Machine Preferences" section.  I reviewed this section, including the "Select Backup Disk, Select Disk, Add or Remove Backup Disk."  It says, "If you haven’t set up Time Machine, click Select Backup Disk to set up a backup disk. Repeat the steps for each backup disk you want to set up."  I did add two backup disks.  It goes on to say "If you already set up Time Machine, your backup disks are listed, and information about each backup disk is shown. To select, add, or remove backup disks, click Select Disk or Add or Remove Backup Disk."  Well, what is lacking here is what happens when you "Remove" the backup disk.
    As I have read this section, it raises additional questions:
    What are some cautionary statements.
    What happens after you remove a backup disk?  Will Time Machine recognize it later?
    What is the proper procedure for removing and ejecting one of your external hard drive when you use it with Time Machine?  What happens if you don't "remove" a backup drive and instead just drag it to the "trash can, i.e. eject it" and later reconnect it.?

    Time Machine supports multiple backup drives including network area storage volumes (NAS) as well as physically-connected external backup drives.
    In , System Preferences, Time Machine, add the second drive by clicking Select Disk.
    All available connected drives including connected network drives are displayed.
    Select the additional drives, one at a time.
    Connected Network drives are displayed on the desktop only when actively being used by Time Machine for backup.
    When prompted, select 'use both' when adding the second drive.
    Then choose Select or Remove at the bottom of the list of available devices and network volumes to add additional drives.
    Time Machine then automatically rotates backups among the available designated devices and volumes.
    If the drive is physically not present, Time Machine skips to the next available backup drive.
    To DISMOUNT a drive to take it off-site, it is NOT necessary to remove it from the Time Machine preferences.
    When the drive is NOT in use, dismount it by Command+clicking that Drive icon on your desktop (or in Finder) and then "Eject".
    That's it.
    After 10 days with no backups to a given device, Time Machine does display a message and (as I recall) asks if you want to remove that drive from the rotation.
    You can never be too rich or have too many backups!

  • What is the correct procedure to connect and collect events from IPS through SDEE

    What is the correct procedure to connect and collect events from IPS through SDEE?
    We are a 3rd party application, that needs to collect and analyze the IPS events for a client.
    Currently the approach we are following is
    1) get a SubscriptionId using the URL below
    https://IP_Of_IPS/cgi-bin/sdee-server?action=open&events=evIdsAlert&force=yes
    This gets us a subscriptionId which is used in step 2
    2) Collect events from the url below
    https://IP_Of_IPS/cgi-bin/sdee-server?confirm=yes&action=get&subscriptionId=sub-sample&startTime=1362699903575432000
    a few more notes here are
    - starttime is current time in nanoseconds
    the peculiar problem here is that, even though we specify todays date, SDEE returns us the events from mid Feb (today is march 7)
    we did try a few combinations, but are out of ideas.
    any help or direction would be appreciated

    This is more an application issue than an IPS issue.
    Have you compared your app against other apps [IME]?

  • TS1559 Genius bar guy tells me that iOS update and this procedure fried my wifi antenae

    Have done this procedure several times after updating to 7.0.2. due to greyed out wifi.  Genius bar says wifi is dead... because the iOS update and this procedure fried/overheated the wifi antenae.  So I have to buy a new phone because I followed Apple's instructions?  Not cool, and in my opinion Apple should replace the phone.  Of course my warranty period is over, but when a manufacturer releases an update and a bug fix that you follow, which results in a fried phone... should they not take some responsibility?
    This is a well documented problem, and many others have had phones replaced. 

    they usually only charge $19 if they need to do troubleshooting on a device and if they dont fix ur issue they refund it back. and even then they give exceptions to the fee left and right. plus, if u just want to talk to customer service or a senior advisor they WILL transfer u to them no matter what.

  • Update my app. What is the correct procedure for updating an app/folio?

    I designed a folio in Indesign CS6 and created an app of the folio in adobe dps and succesfully uploaded it to the app store. Now I want to update my app. What is the correct procedure for updating an app/folio?

    no, just update your content and recreate the Single Edition App. Your certificate should still be valid so there is not need to recreate these.
    ... your App ID absolutely need to be the exact same one you used for the first version if you want to make sure this is an update.

  • This procedure name is not found in the database: wwv_flow.show

    I created an interactive report, which works fine in the APEX developer, using the Application Express Authentication scheme.
    To add it to our Self-Service web system, I change the authentication scheme to a custom scheme that has been working fine for other applications, although I don't know of any other interactive reports using this scheme in Self-Service.
    Anyway, the interactive report is displayed in our Self-Service system using the custom authentication scheme, but if I display the Action menu and click on one of the options (Filter, Sort, Compute...), a pop-up window is displayed saying:
    This procedure name is not found in the database:
    wwv_flow.show
    That error is also displayed when I try to edit the displayed filters.
    Does anyone know why I might be getting that error or have suggestions on things to try to track it down?
    Thanks,
    Laura

    Laura,
    To add it to our Self-Service web systemWhat does that mean? What did it entail?
    I'm thinking maybe you embedded some relative links into a menu system in which the base href was not appropriate, ... or something.
    Scott

  • What should be the procedure for  export parameter in CATT

    Hello Everybody,
    I am working with CATT, and the transactions are <b>ME21N</b> and <b>MIGO</b>.
    when i am executing the transaction <b>ME21N</b> i will get the <b>Pur Ord No</b>in the message, and i would like to export <b>Pur Ord No</b> to the transaction <b>MIGO</b> as thr is one field named Purch.ord no in Migo.
    what should be the Procedure for exporting a parameter?
    Thanks,
    Regards Afroz

    Hello Afroz,
    If you are using eCATT then following is the procedure of capturing messages in the two recording methods - TCD & SAPGUI.
    => TCD Recording Mode:
    In TCD recording mode, after dobleclicking on Interface name from the TCD command in the editor on left side, just before the MSG folder DYNPRO folder will appear on right side.
    -This DYNRPO folder contains the screen sequences contain the screen occurred during recording time. The last Dynpro of this folder contains the messages occurred during recording.
    -Select this last folder & click on Simulate Screen icon of the same Interface editor. It will redirect to the screen where the message values exist. There select the Purchase Order Number and click on Read Field Value icon. Give the name of Export Variable.
    The export variable will contain the value of the purchase order number, which can be passed to MIGO.
    => SAPGUI Recording Mode:
    In the SAPGUI recording mode, the screen on which the message appeared will be used to capture the variable name, which is Purchase Order Number in this case.
    If the Purchase Order Number is second variable of the message displayed(e.g. Purchase Number 2122323 Is Created)
    then use the following code -
    e.g.
    MESSAGE ( MSG_1 ).
    SAPGUI ( ME21N_4001_STEP_5 ).
    ENDMESSAGE ( E_MSG_1 ).
    Assing the value from the message to the export
    parameter
    P_EC_PurOrdNo = E_MSG_1-[1]-MSGV2.
    There are total four MSGV1-MSGV4 variables. Dobule click on MSG_1 of the MESSAGE statement above. Putting the value in the export variable from the right message variable will give the purchase order number.This can be passed as MIGO.
    Regards

  • Please explain what are the various procedures to find user-eixts

    Hi,
    Please explain what are the various procedures to find user-eixts ?
    Ramana

    Hi,
    1. By executing this Program.
    *& Report  ZFIND_EXIT
    REPORT  ZFIND_EXIT.
    *report zbadi_find .
    tables : tstc,
    tadir,
    modsapt,
    modact,
    trdir,
    tfdir,
    enlfdir,
    sxs_attrt ,
    tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode,
    p_pgmna like tstc-pgmna .
    data wa_tadir type tadir.
    start-of-selection.
    if not p_tcode is initial.
    select single * from tstc where tcode eq p_tcode.
    elseif not p_pgmna is initial.
    tstc-pgmna = p_pgmna.
    endif.
    if sy-subrc eq 0.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir
    where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir
    where pname = tstc-pgmna.
    select single * from enlfdir
    where funcname = tfdir-funcname.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object in ('SMOD', 'SXSD')
    and devclass = v_devclass.
    select single * from tstct
    where sprsl eq sy-langu
    and tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(105) sy-uline.
    format color col_heading intensified on.
    Sorting the internal Table
    sort jtab by object.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type c.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    loop at jtab into wa_tadir.
    at first.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Enhancement/ Business Add-in',
    41 sy-vline ,
    42 'Description',
    105 sy-vline.
    write:/(105) sy-uline.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    format color col_group intensified on.
    write:/1 sy-vline,
    2 wf_object2,
    105 sy-vline.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    select single modtext into wf_txt
    from modsapt
    where sprsl = sy-langu
    and name = wa_tadir-obj_name.
    format color col_normal intensified off.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single text into wf_txt
    from sxs_attrt
    where sprsl = sy-langu
    and exit_name = wa_tadir-obj_name.
    format color col_normal intensified on.
    endcase.
    write:/1 sy-vline,
    2 wa_tadir-obj_name hotspot on,
    41 sy-vline ,
    42 wf_txt,
    105 sy-vline.
    at end of object.
    write : /(105) sy-uline.
    endat.
    endloop.
    write:/(105) sy-uline.
    skip.
    format color col_total intensified on.
    write:/ 'No.of Exits:' , wf_smod.
    write:/ 'No.of BADis:' , wf_badi.
    else.
    format color col_negative intensified on.
    write:/(105) 'No userexits or BADis exist'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(105) 'Transaction does not exist'.
    endif.
    at line-selection.
    data : wf_object type tadir-object.
    clear wf_object.
    get cursor field field1.
    check field1(8) eq 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first screen.
    when 'SXSD'.
    set parameter id 'EXN' field sy-lisel+1(20).
    call transaction 'SE18' and skip first screen.
    endcase.
    2. . Go to the screen>System>Status-->Program (Double
    click this program. It will take you to the program.
    2. Now, Goto-->Object Directory Entry.
    3. Make a note the package name.
    4. Now run the transactions SMOD, press F4 and enter the
    above noted package, press enter.
    5. It will display list of Exits.
    6. Now go back to the initial screen SMOD.
    7. Specify the exit name here and select the radio button
    Components.
    8. It will display four group boxes one for FM, second
    for Fcodes, thrid for Screen areas and last for
    includes.
    9. Goto transaction CMOD, create a new project, and
    click the button "Enhancement assignments" and
    specify your enhancements that you got in SMOD.
    10. Now bouble clikc the enhancement, it will take you to editor with some includes starting with Z, double clikc the include you want to edit and proceed.
    3. 1. in se11, goto table MODSAP
    View table contents
    in Type field, enter
    'E' (for user exit / Function Exit)
    OR 'S' (for screen exit)
    4. Calling Customer- fucntion in Main Program
    Thanks,
    Anitha

Maybe you are looking for

  • Unable to debug output type for purchase order

    HI all,     In purchase order (ME21N) , i have a custom output type (ZSND) that send po to the user.  I try to debug the program when the output is called.  I put breakpoint in the custom program for the output ZSND.  However, It did not stop at the

  • Exchange rate types with referency currencies in BW currency translations

    Hello Guru's: Will BW currency translation keys utilize 'reference currency' functionality on exchange rate types?  I want to translate between two currencies (CNY to HKD) that don't have a direct rate, but both have rates for USD. I have: - exchange

  • Batch Subscribe to Podcast (add multiple Feed URLs at once)

    Is there any way to Subscribe to many podcasts at once given their feed urls? I currently have an Excel file containing the feed URLs The "Subscribe to Podcast..." only allows entering a single URL. I have tried various delimiters (<newline>, ",", ";

  • Opening gif images with AEGP_NewFootage

    Hey guys, For some reason it does not work. JPEGs work properly. Any idea? Thanks, Eran

  • CodeMeter or WIBU-KEY runtime system is not installed

    Hi, I've got a labview program named "application.exe" and when I launch it, the error "CodeMeter or WIBU-KEY runtime system is not installed" appears. I can launch Labview.exe, no problems... Labview version installed: 11.00 Program application.exe