Need to Create Search Help Based on Condtions from one table to another tab

Hi All,
I have a table like ZGROUP Which contains the data below
Filed name Filed Name Filed Name
ZGROUP ZTYPE ZTEXT
Entries
ABC P TEXT FOR
C P SDFNSDFKLN
DDDD PSG TEPRTPERERTWERT
DEF P TEST
FFFFF PSG
SEF PS SDFSDFLASLDFNASDLFN
XYZ PS TESTING
Whree P is Product , PS- Point of Sales, PSG-Sales Group
Now i am going to crate another ZPROUDCT TABLE
FIELDNAME FIELDDESCRITPON
PRODUCT PROD_DESC
Entry
abc pRELATED ENTRY
My Questions
1) ZGROUPS table has 3 kinds of data P, PSG, PS type records,
1) In Table ZPROUDCT , I want to create search help only P records for Table Zproduct of the field Product FROM zGROUPS table
2) In Table Zsales , I want to create search help only PS records from ZGROUPS table
3) In Table ZPSG, I want to create search help only PSG records from table ZGROUPS
is it possible to create search help from One Master Table(ZGROUPS) table to other tables based on conditions.
Please help me.
very urgent
Regards,
Raju

if  <condition>
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
SELECT <field>
         FROM <table>
         INTO TABLE i_tab
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'                  "function module to provide f4 help to sold-to-party
    EXPORTING
      retfield        = "XXXX"
      dynpprog        = sy-repid
      dynpnr          = sy-dynnr
      dynprofield     = '<field name>'
      value_org       = 'S'
    TABLES
      value_tab       = i_tab
endif.
lkike this u can check the condition and selec the data from table and assign it into one internal table and then call the FM it will give the f4 help to particular field
reward if helpful
regards,
Khan.

Similar Messages

  • Needed help to add columns from one table to another table

    Hi,
    I have emp and dept tables. I think most of all might know what columns it's contain. Now I want to create table emp_dept with all emp and dept table columns.
    I have wrote the below query it's worked too. But I think there should be some more other queries to get accomplish the same task. Plz let me know.
    create table emp_dept as select a.*, b.dname, b.loc from emp a full outer join dept b on a.deptno = b.deptno where 1=2
    Thanks for your time..

    Hi,
    1004909 wrote:
    Hi,
    I have emp and dept tables. I think most of all might know what columns it's contain. Now I want to create table emp_dept with all emp and dept table columns.
    I have wrote the below query it's worked too. But I think there should be some more other queries to get accomplish the same task. Why do you think that?
    Plz let me know.
    create table emp_dept as select a.*, b.dname, b.loc from emp a full outer join dept b on a.deptno = b.deptno where 1=2"WHERE 1 = 2" means you want to create the table, but not put any rows in it. In that case, theere's no need for a full outer join; a simple inner join would do just as well.
    There is no single "right" or "best" table. (Most of us would have differerent jobs if there were.)
    It does, however, make sense to talk about the "right" or "best" table for some specific purpose .
    The emp and dept tables in the scott schema are great for transaction processing, where rows are frequenctly INSERTed, UPDATEd and/or DELETEd. For example, if department 10 moves from New York to Pune, you only have to find and UPDATE 1 row, and that one UPDATE will affect all employees in departemnt 10, regardess of how many there are.
    What purpose will the emp_dept table have? Why is the table design used in the scott schema not best for you?
    One possibility is that you need a tale that is very fast to query, even though it may be very inefficient for transactions. For example, you might want a data warehouse that is only refreshed once a day, and were you can run several common queries quickly, without joining the emp and dept tales.
    Another possibility is that your data model (that is, what are the entities and the attributes) is different. For example, you may have a model where employees King and Miller both work in department 10, but King's location is New York, but Miller's is Pune.
    In either of these situations, the table you posted migt be the best design. Why are you asking the question? What is the problem with the emp_dept table you posted?

  • Create Trigger to insert records from one table to another

    I created the below trigger to move data from one table to another after records have been inserted from another table to that table. What I need done is that each time records have been inserted into TEST_TBL, one of these actions codes should be implimented: U-update, N-insert, D-delete and inserted into TEST_TBL1. But each time I run the script, I get bunch of errors. Please see the script below: - Your help will be appreciated.
    create or replace
    trigger POWER_tr
    after update or insert or delete ON test_tbl
    for each row
    begin
    if updating then
    insert into test_tbl1
    (idx, mke, ctl, ori, nam, sex, rac, pob, dob, hgt, action_code, date_added
    VALUES
    (idx, mke, ctl, ori, nam, sex, rac, pob, dob, hgt, 'U', sysdate);
    ELSif INSERTING then
    insert insert into test_tbl1
    (idx, mke, ctl, ori, nam, sex, rac, pob, dob, hgt, action_code, date_added
    VALUES
    (idx, mke, ctl, ori, nam, sex, rac, pob, dob, hgt, 'N', sysdate);
    ELSIF deleting then
    insert into test_tbl1
    (idx, mke, ctl, ori, nam, sex, rac, pob, dob, hgt, action_code, date_added
    VALUES
    (idx, mke, ctl, ori, nam, sex, rac, pob, dob, hgt, 'D', sysdate);
    END IF;
    END POWER_tr;
    Thank you,
    Albert Zaza
    Edited by: azaza on Mar 1, 2009 4:14 PM

    Hello
    At the end of trigger show errors / and post what errors are you getting exactly?
    Here is a simple example for your reference, this will save old values in history table; you can replace it with new values if that's what do you want.
    CREATE OR REPLACE TRIGGER TRG_DU
       AFTER DELETE OR UPDATE
       ON EMPLOYEE    REFERENCING NEW AS New OLD AS Old
       FOR EACH ROW
    DECLARE
    BEGIN
       IF UPDATING
       THEN
          INSERT INTO employee_hist
            VALUES   ('UPDATE',
                      :OLD.empid,
                      :OLD.name,
                      :OLD.deptid);
       ELSIF DELETING
       THEN
          INSERT INTO employee_hist
            VALUES   ('UPDATE',
                      :OLD.empid,
                      :OLD.name,
                      :OLD.deptid);
       END IF;
    EXCEPTION
       WHEN OTHERS
       THEN
          -- Consider logging the error and then re-raise
          RAISE;
    END TRG_DU;
    /Regards
    Edited by: OrionNet on Mar 1, 2009 7:27 PM

  • I have over 200 hours of HD video on 5 different TB Thunderbolt GRaid hard drives. I need to reorganize my projects, moving large files from one drive to another. Advice?

    I have over 200 hours of HD video on 5 different TB Thunderbolt GRaid hard drives. I need to reorganize my projects, moving large files from one drive to another. Advice?

    Do some testing to get your method working right with some less than important footage.
    Copy/paste files where you want then.
    Use the FCE Reconnect feature to tell FCE where the newly copied files reside.
    Make sure the new location and files are working as expected with your Projects.
    Delete the original files if no longer required.
    Al

  • I need a shell script to move latest archivelogs from one server to another server..

    Hi,
         I need a shell script to move latest archivelogs from one server to another server..
    Thanks&Regards,
    Vel

    ea816fb9-f9ea-45ac-906f-36a8315970d0 wrote:
    Thanks it's really helpfull..
    Now i have pasted a shell script which generates archivelog and shows latest archivelog time..
    just check let me know the answer, that how i need to execute it..
    # Force a logswitch to get the last archivelog to the standby host
    ORACLE_SID=ORCL
    ORAENV_ASK=NO
    . oraenv >/dev/null 2>&1
    SwitchLogfile()
      # Do logswitch 
      RESULT=`echo "Alter system switch logfile;" | sqlplus -S / as sysdba | grep 'System altered'`
      if [ "$RESULT" = "System altered." ]
      then
      export RETURN=1
      else
      export RETURN=0
      fi
      # Do we need to do something with this return value?
      export RETURN
    GetArchiveTime()
      CURYEAR=`date +%Y`
      echo "set heading off;" > temp.sql
      echo "set termout off;" >> temp.sql
      echo "select to_char(first_time,'YYYY-MM-DD HH24:MI:SS') from v\$archived_log where sequence#=(select sequence# - 1 from v\$log where status='CURRENT');" >> temp.sql
      sqlplus -S / as sysdba <
    spool tempres.txt
    @temp.sql
    quit
    EOF
    cat tempres.txt | grep ${CURYEAR} | grep -v grep | awk '{print $1" "$2}'
    #rm -f temp.sql  tempres.sql
    SwitchLogfile
    GetArchiveTime
    You seem to have ignored Dude's VERY good advice and continue to press down this ill-advised path.  If you continue this approach, you WILL have problems at the very time you do not need any additional problems.  Trying to recover your production database at 2:00 in the morning is not the time to be getting errors from rman because it can't find what it needs - because you decided to move them around yourself.
    Please reconsider.

  • Need help in passing parameters from one page to another!

    Hi,
    I need to pass values that are retrieved from database from one page to another.
    But even when I use pageContext.putParameter(), I am not able to view the value in the 2nd page.
    Any pointers on how to pass parameters would be helpful..
    Thanks in advance!

    The requirement is on the main page there are 6 fields out of which 4 are read-only and are taken from the database and 1 is taken from database, but can be edited, and the 6th one is completly editable for the user. I am trying to pass these parameters using setForwardURL, and on the second page (Preview page, where all these fields are read-only), I am able to retrieve these parameters using pageContext.getParameters() and am able to display it as an exception but I am not able to set these into the fields using pageContext.putParameters().

  • How to create partition from one table to another?

    Hi,
    Can any one help me in this :
    I have copied table from one schema to another by using the following command. The table is around 300 GB in size and the partitions are not copied. Now i got a request to create partitions in the destination table similar to the source table.
    CREATE TABLE user2.table_name AS SELECT * FROM  user1.table_name;
    I am using Oracle 9i database. This is very urgent, could any one please suggest me how can i create the partitions in  user2 table as user1 table.

    If you have the TOAD/ SQL DEVELOPER  , get the partition DDL from the source table and execute it in the newly created table.
    or you can use DBMS_METADATA:
    SET LONG 10000
    SELECT dbms_metadata.get_ddl('TABLE', 'TEST')
    FROM DUAL;
    Thanks,
    <Moderator Edit - deleted link signature - pl see FAQ link on top right>

  • Need to Copy a subform along with content from one page to another page

    Hi All,
    I am new to Adobe Live Cycle .
    I am facing a particular problem in one scenario.
    I have a growing list of item i.e the number of Items are uncertain. I have put all these item in a sub form.
    Now I need a copy of this sub form from the First page to the 2nd Page.
    Basically , I want to copy a Subform along with the content from one page to another.
    Can anybody please help me.

    In source project open Tempo List (the one that is a list editor). Select all tempo changes and "copy them (command+c)
    close project
    Open destination project, open Tempo List delete all information and paste (command+V). Remember that Logic should be stopped at the exact position where the first tempo event happens. This is ussually 1.1.1.1, but check it in the source before closing it.
    hope this helps.
    regards

  • Need to create search help for parameter 2 based on values in parameter1

    hi Specialists,
    I need to create a search help for parameters field 2 ( Country ) based on the values the user inputs in parameters field 1 ( Currency ). The values of field  Currency & Country will come from T001 table.
    The logic is : Based on a unique currency value ( fetched from T001 table ) user needs to get/see all Countries on his selection -screen.
    Can you guys let me know which FM can I use for above & how to pass various values i.e. parameters into that FM. EXplanation with an example/code is highly appreciable.
    Thanks
    Abhinav.

    Hi Abhinav,
    Use this demo code, its working:-
    This code selects sale document item based on the user entry for sales document on the screen field.
    REPORT  ztg_f1f4.
    CALL SCREEN 1010.
    *&      Module  GET_F4_HELP  INPUT
    *       text
    MODULE get_f4_help INPUT.
      TYPES : BEGIN OF it,
                posnr TYPE zvbap-posnr,
              END OF it.
      DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
             tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
             vbeln TYPE zvbap-vbeln.
      CLEAR:   tb_dynpfields.
      REFRESH: tb_dynpfields.
      MOVE 'ZVBAP-VBELN' TO tb_dynpfields-fieldname. "screen field name
      APPEND tb_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                               = 'ZTG_F1F4'
          dynumb                               = '1010'
    *   TRANSLATE_TO_UPPER                   = ' '
    *   REQUEST                              = ' '
    *   PERFORM_CONVERSION_EXITS             = ' '
    *   PERFORM_INPUT_CONVERSION             = ' '
    *   DETERMINE_LOOP_INDEX                 = ' '
    *   START_SEARCH_IN_CURRENT_SCREEN       = ' '
    *   START_SEARCH_IN_MAIN_SCREEN          = ' '
    *   START_SEARCH_IN_STACKED_SCREEN       = ' '
    *   START_SEARCH_ON_SCR_STACKPOS         = ' '
    *   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
    *   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
        TABLES
          dynpfields                           = tb_dynpfields
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA                 = 1
    *   INVALID_DYNPROFIELD                  = 2
    *   INVALID_DYNPRONAME                   = 3
    *   INVALID_DYNPRONUMMER                 = 4
    *   INVALID_REQUEST                      = 5
    *   NO_FIELDDESCRIPTION                  = 6
    *   INVALID_PARAMETER                    = 7
    *   UNDEFIND_ERROR                       = 8
    *   DOUBLE_CONVERSION                    = 9
    *   STEPL_NOT_FOUND                      = 10
    *   OTHERS                               = 11
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE tb_dynpfields INDEX 1.
      IF sy-subrc EQ 0.
        vbeln = tb_dynpfields-fieldvalue.
      ENDIF.
      SELECT posnr FROM zvbap
        INTO TABLE itab
      WHERE
        vbeln = vbeln.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
    *   DDIC_STRUCTURE         = ' '
          retfield               = 'POSNR'
    *   PVALKEY                = ' '
         dynpprog               = 'ZTG_F1F4'
         dynpnr                 = '1010'
         dynprofield            = 'POSNR'
    *   STEPL                  = 0
    *   WINDOW_TITLE           =
    *   VALUE                  = ' '
       value_org              = 'S'
    *   MULTIPLE_CHOICE        = ' '
    *   DISPLAY                = ' '
    *   CALLBACK_PROGRAM       = ' '
    *   CALLBACK_FORM          = ' '
    *   MARK_TAB               =
    * IMPORTING
    *   USER_RESET             =
        TABLES
          value_tab              = itab
    *   FIELD_TAB              =
    *   RETURN_TAB             =
    *   DYNPFLD_MAPPING        =
    * EXCEPTIONS
    *   PARAMETER_ERROR        = 1
    *   NO_VALUES_FOUND        = 2
    *   OTHERS                 = 3
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " GET_F4_HELP  INPUT
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Data Loading from one table to another in the Same Database based on conditions .

    Hi ALL ,
    I have 2 tables Products and Product_info .
    Product_info table Product_id is Primary key but not an identity column so auto increment of number needs to be performed from the Package only .
    Requirement is :
    IF the Product_ID is = 20 and Date lies in the previous month not the current month in the Products table then 
    insert into the Product_info table based on below mentioned information .
    1.If the Name  has tap then ignore it completely don't perform any insert for it.
    2.If the Name has Zork in it then perform 2 inserts in the Product_info table having Product_info_id's 1 and 2 .
    3.If the Name doesn't contains Zork or tap insert it in the Product_info table having Product_info_id 4.
    Very new to SSIS package development it will be helpful if you can provide detailed information .
    Source Table (Products table )
    ID
    NAME
    Product_ID
    Date 
    Area_ID
    1
    P_tap_rus
    20
    13-01-2014
    3
    2
    Enc_sap_top
    10
    15-01-2014
    4
    3
    Yorl
    20
    05-02-2014
    5
    4
    zork
    20
    20-01-2014
    6
    5
    fadbt
    10
    22-01-2014
    6
    6
    xyzzz_oprt
    20
    28-01-2014
    5
    7
    def_type_ru
    20
    06-02-2014
    2
    8
    acd_inc_tup
    10
    07-02-2014
    3
    9
    bnf_dlk_fbg
    20
    03-02-2014
    4
    10
    rtyui_vnmghj_sfdl
    10
    12-01-2014
    5
    11
    wlwf_10103_123
    10
    04-02-2014
    9
    Destination table  (Product_info)
    Porduct_ID
    ID
    Area_ID 
    Product_info_ID
    Column1
    1
    3
    5
    4
    As NameString doesn’t contain Zork or Tap 
    2
    4
    3
    1
    As Id is 4 so 2 inserts one for 1 and other for 2 in the Product_info_id column
    3
    4
    3
    2
    4
    6
    5
    4
    5
    10
    5
    4
    6
    11
    9
    4
    Please let me know if any other information is required .
    Thanks
    Priya

    Hi Priya,
    You mentioned this was coming from two tables right? I believe I would try to perform the transformations with T-SQL in my source (If this is a possibility for you). Below is an example of something you could do.
    WITH CTE
    AS
    SELECT ID, Product_ID, [Date], Area_ID,
    CASE
    WHEN Name like '%Zork%' THEN 1
    ELSE 4
    END AS Product_Info_ID
    FROM [YourTable]
    WHERE Product_ID = 20 and MONTH([DATE]) = MONTH(DATEADD(MM, -1, GETDATE())) AND NAME NOT LIKE '%tap%'
    SELECT *
    FROM CTE
    UNION
    SELECT ID, Product_ID, [Date], Area_ID, '2' AS Product_Info_ID
    FROM CTE WHERE Product_Info_ID = 1
    I hope this helps, Regards.

  • I need to make a spreadsheet based on info from specific table columns and headlines above those tab

    Hi all,
    A client of mine is requesting that I create a spreadsheet from a huge catalog that I am doing for him (this will also be done for all similar huge catalogs). The spreadsheet needs to pull information from some of the table columns, as well as the headline for each table. (This spreadsheet will then go out to some other people who will be putting this information into an online database/website for the client.) Let me be more specific and show you an example below.
    Information from InDesign Catalog:
    Tea Set
    Part #
    MFG #
    Description
    123-456
    654321
    Tea Cup
    789-010
    010987
    Saucer
    Here is how the Excel Spreadsheet needs to look:
    Part #
    MFG #
    Product Name
    Description
    Page #
    123-456
    654321
    Tea Set
    Tea Cup
    2
    789-010
    010987
    Tea Set
    Saucer
    2
    You have no idea how I have been pulling my hair out over this. Doing this manually will be a nightmare each time. My first thought was that I could assign specific cell styles to the columns (cells) and then create a TOC and then finangle with that - well, that didn't quite work, especially because of the headline I needed to pull into the spreadsheet as well. Is there ANY way I can get this information onto a spreadsheet? Knowing how wonderful InDesign is and all the tremendous capability it has, I am sure there IS a way and I just dont know how. Please PLEASE can someone point me in the right direction?
    Thank you very much in advance for your assistance:) Any help would be greatly appreciated.
    Christine

    Sorry for the delay.
    I am sure that this can somehow be done by making use of the styles. For example, when creating the TOC InDesign does a GREAT job of pulling in the styles (that are of course associated with the headlines and whatever needs to be included in the TOC) and associating them with the correct page numbers. I had experimented a little with creating specific paragraph styles and working these into the table and cell styles...then applying the Table Style to the table. I was halfway getting to where I wanted to be by creating a TOC that pulled in all of these styles and applied the corresponding page numbers (that I could somehow work into converting back into a table to then flow onto an Excel spreadsheet) but the wrench in the works was of course the Product Name. That said, I am VERY confident that this CAN be done somehow, by making use of the styles, using the same (or similar) methodology that is used to create the TOC. If only I were a pro at scripting...
    Well, it's great that you're certain and confident, but I think your confidence is misplaced.
    I had sort of hoped that running headers could be convinced to support this, but that doesn't seem to be true.
    I think you need to postprocess the data somehow. If I was doing this for real I'd probably export the document to IDML and have a seperate program read the IDML XML, find the product names and page numbers, and insert them in tables. Though...that might mess up the page numbers. And it'd be a lot of work.
    An much-faster-to-rapid-prototype solution is to have an indesign script go through the document and add in page numbers and the product names. Here's a rough prototype:
    var d,s,story,table,product,page,c2,c3,c5,i,j.k;
    d=app.activeDocument;
    s=d.stories;
    for (i=0; i<s.length; i++) {
        story = s[i];
        for (j=0; j<story.tables.length; j++) {
            table = story.tables[j];
            product = story.chara
    cters[table.storyOffset.index-2].paragraphs[0].contents;
            page = table.parent.parentPage.name;
            // $.writeln("This is table "+j+". Product name: "+product+" page "+page);
            c2=table.columns[1];
            c3=table.rows[0].columns.add(LocationOptions.AFTER, c2);
            c3.contents=product;
            c5=table.rows[0].columns.add();
            c5.contents=page;
    This doesn't handle the header rows in tables, but hopefully that's ok.
    It may get page numbers wrong on multipage tables. Probably it would be better to just use
    SpecialCharacters.AUTO_PAGE_NUMBER on the last full line (c5.contents=).
    It should also probably not just look back 2 characters from the start of the table to find the paragraph, but it's probably good enough.

  • Need Urgent help in passing items from one page to another

    Hi
    I have a page with item "X" holding a value. The page displays a report in which one of the fields "Devide name" is a link to Interface page. By clicking the link on "Device name" Im passing the value device name to another page and displayes all the interfaces under the device.
    But I need to access the variable "X" also in the second page i:e Interface page.
    Can somebody help me on this?
    ~rose

    The problem is is P29_IV_SERVERS is defined in page 29 and Im using
    UPDATE PROVISION_IV
                   SET PROVISION_STATE_ID = 2,SERVER_ID = :P29_IV_SERVERSin page 50. That was my initial issue. As suugested I used the '&' and its throwinf error..
    Here is my complete code.
    DECLARE
    LATEST_TASK_ID Number;
    TASK_NAME_IV varchar2(50);
    --TASK_NAME_ISM varchar2(50);
    SELECT_FLAG_IV Number:=1;
    --SELECT_FLAG_ISM Number:=1;
    DS_COUNT_IV Number;
    --DS_COUNT_ISM Number;
    DS_ID_IV Number;
    --SELECT_FLAG_IV:=1;
    --SELECT_FLAG_ISM:=1;
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F10.count
    LOOP
        UPDATE PROVISION_IV
                   SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = :P29_IV_SERVERS
                   --SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = 2
                    WHERE
                    TERMINATION_ID=APEX_APPLICATION.G_F10(i);
    SELECT DELIVERED_SERVICE_ID INTO DS_ID_IV FROM DELIVERED_SERVICE
    WHERE DELIVERED_SERVICE_NAME=APEX_APPLICATION.G_F11(i);
    SELECT COUNT(*) INTO DS_COUNT_IV FROM DELIVERED_SERVICE_MAPPING 
        WHERE TERMINATION_ID=APEX_APPLICATION.G_F10(i);
    IF DS_COUNT_IV=0 THEN
        INSERT INTO DELIVERED_SERVICE_MAPPING
        (ID,
        CUSTOMER_ID,
        EQUIPMENT_ID,
        TERMINATION_ID,
        DELIVERED_SERVICE_ID,
        LAST_MODIFIED_BY,
        LAST_MODIFIED_ON)
        VALUES
        (DELIVERED_SERVICE_SEQ.nextval,
        NULL,
        NULL,
        APEX_APPLICATION.G_F10(i),
        DS_ID_IV,
        :APP_USER,
        sysdate);
        SELECT_FLAG_IV:=0;
    ELSE
        UPDATE DELIVERED_SERVICE_MAPPING SET DELIVERED_SERVICE_ID = DS_ID_IV,
        LAST_MODIFIED_BY = :APP_USER,
        LAST_MODIFIED_ON = sysdate
        WHERE TERMINATION_ID = APEX_APPLICATION.G_F11(i);
        SELECT_FLAG_IV:=0;
    END IF;
    END LOOP;
    IF SELECT_FLAG_IV=0 THEN
        IF :P29_CHECK_TASK_NAME_IV=1 THEN
            IF :P29_TASK_NAME_IV is NULL THEN
                TASK_NAME_IV:=:APP_USER||'_INTERFACE PROVISIONING_'||SYSDATE;
                INSERT INTO TASKS
                (TASK_ID,
                TASK_NAME,
                CREATED_BY,
                CREATED_ON,
                TASK_ACTION,
                TASK_STATE_ID,
                SERVER_ID)
                VALUES
                (TASK_ID_SEQ.nextval,
                TASK_NAME_IV,
                :APP_USER,
                sysdate,
                5,
                1,
                2);
            ELSE
                INSERT INTO TASKS
                (TASK_ID,
                TASK_NAME,
                CREATED_BY,
                CREATED_ON,
                TASK_ACTION,
                TASK_STATE_ID,
                SERVER_ID)
                VALUES
                (TASK_ID_SEQ.nextval,
                :P29_P50_TASKNAME,
                :APP_USER,
                sysdate,
                5,
                1,
                2);
            END IF;
        SELECT max(TASK_ID) INTO  LATEST_TASK_ID from TASKS where CREATED_BY=:APP_USER;
        FOR i in 1..APEX_APPLICATION.G_F01.count
        LOOP
            INSERT INTO TASK_DETAILS
            (TASK_DETAILS_ID,
            EQUIPMENT_ID,
            TERMINATION_ID,
            TASK_ID)
            VALUES
            (task_detail_seq.nextval,
            :P29_TO_INTERFACEPAGE,
            APEX_APPLICATION.G_F10(i),
            LATEST_TASK_ID);
        END LOOP;
        END IF;
    END IF;
    END;I have the variables P29_CHECK_TASK_NAME_IV, P29_TASK_NAME_IV and P29_IV_SERVERS defined in page 29.
    But the above query is written in page 50, so I want to access the value of these variables as set in pahe 29.. :-(

  • Insert record from one table to another with help of cursor

    Plz help!!!
    tables are - 1. country( country_id pk, country_name, region_id)
    2. a( country_id , country_name, region_id)
    table a data are
    1 a 1
    2 b 2
    3 c 3
    null d 4
    5 e 5
    6 f 6
    7 g 7
    insert record from table a to country table with help of cursor, insert all not null records.
    this procedure does not give correct result
    create or replace
    procedure amit as
    cursor c1 is select * from a;
    rw a%rowtype;
    begin
    open c1;
    fetch c1 into rw;
    while(c1%found)
    loop
    insert into countries values(rw.country_id,rw.country_name,rw.region_id);
    commit;
    fetch c1 into rw;
    if rw.country_id is null then
    fetch c1 into rw;
    end if;
    end loop;
    close c1;
    exception
    when others then
    dbms_output.put_line('exception name= '||rw.country_name);
    end;

    bluefrog wrote:
    You don't need cursor at all;
    create or replace procedure amit as
    begin
    insert into countries (Country_ID, Country_Name, Region_ID)
    (select a.Country_ID
    ,a.Country_Name
    ,a.Region_ID
    from a
    dbms_output.put_line('Rows inserted : ' || sql%rowcount);
    commit;
    end;
    Bluefrog you missed where clause. :)
       insert into countries (Country_ID, Country_Name, Region_ID)
       (select a.Country_ID
              ,a.Country_Name
              ,a.Region_ID
        from a
        where country_id is not null
    );

  • HELP! Moved website from one mac to another but lost some files...

    I recently purchase an iMac (my wife already owns a MacBook)... I had created a website using iWeb and transferred the DOMAIN files to my new computer... I worked on the website for several hours last night, published it to a folder and everything looks fine.. HOWEVER< this morning I tried to open iWeb and some problems are occuring...
    iWeb opens and starts to pull up my website to work on but ALL of the necessary files are reportedly missing... the interesting thing is that all of the files are actually on the desktop in the Site folder.. hmmm... I copied the domain file to Aplpication Support/iWeb/ - was this not correct?
    I am hoping that this is an easy fix.. maybe I just need to have the domain file in the same folder as the files it is looking for...
    any thoughts?
    thanks in advance for your help...

    You can keep the domain file anywhere you like as long as it is in its own folder.
    If its not in the default location -Home Folder/Library/Application Support/iWeb- all you do is double click the domain file to launch it in iWeb.
    Try quitting iWeb, delete the preference file - Home Folder/Library/Preferences/com.apple.iWeb.plist, restart your Mac and run Disk Utility to repair permissions.

  • StarSuite will not start up - help! Changed paths from one drive to another

    Hi all,
    I am using: StarSuite 8
    On an: ASUS eePC 900
    OS: Windows XP
    This is my partner's computer. StarSuite 8 came with it the machine, but as yet she has not even gotten a chance to use it.
    It has two hard drives:
    C: drive is 4GB (with 500MG free), D: drive is 7.5GB (with 6.3GB free)
    Windows, StarSuite 8, and everything else that came with the machine are all on the C: drive (the smaller one), which is why only 500MG are free (she has deleted everything else that wasn't an expensive program or the operating system; most of the 4GB is Windows XP as far as we can tell).
    Previously, when she opened StarSuite 8 (swriter), when a new file would be opened, an error message appeared that said something along the lines of "Not enough disk space free" - i don't recall the exact wording.
    As there where over 6 gigabytes free, we assumed the problem was that StarSuite 8 was somehow being dependant on the mostly used-up C: drive.
    So i went into, i think,
    Tools -> Options
    ...and found a section to change the paths for the folders that StarSuite 8 seemed to be saving to, drawing templates from, etc.
    I found those folders on the C: drive, under "Documents and Settings", copied them (without making any changes at all), saved the copies to the D: drive, replicated the whole file path.
    Then i went back to Tools -> Options and whatever that section is to change the paths. I edited them to point to the D drive rather than the C drive, to my newly created and copied-over files, the paths now looked something like this:
    D:Documents and Setting/Kathryne/Application Data/StarSuite 8/User/ <all the various folders, copied exactly from it's equivalent on the C drive.
    I thought if StarSuite 8 looked at the D drive instead of the C drive, it would stop bringing up the error message that kept claiming there was "insufficient disk space". The only thing i changed about any path was that the letter "C" became "D", and the default folder to which files are saved became "D:Documents and Setting/Kathryne" rather than "My Documents" (because My Documents is on the C: drive).
    I then created and saved an swriter file, as a test to make sure everything was working, and it saved fine. I can still see the file sitting there under "D:Documents and Setting/Kathryne".
    Anyway, my partner (Kathryne, as you can guess), just fired up her eePC, tried to open StarSuite 8 - and nothing happened. It will not open.
    So she right-clicked on a .doc file, selected "Open With swriter", and it worked - the file was opened up.
    But you can't do anything on it. When you hover the cursor over any of the menu buttons, it just turns into a little hourglass and does nothing. Task Manager says that it is "Not Responding", and it will stay like that for ages. It doesn't work at all. I cannot get back into the "Tools" menu to change all the file paths back to their default settings - it just won't let me.
    My normal response would be to uninstall and reinstall, and just erase all the changes i've made that way. But this is an eePC - there is no optical drive on this machine, it was all pre-installed, and uninstalling StarSuite 8 would leave us with no way to get it back.
    Can anybody help me, please? I had no idea changing the paths might make the program non-functional, especially as i copied all of the path folders over without making any changes to them. I thought at the worst i would be able to go back into it and change the paths back to default; and like i said, i saved a test file with it after making the changes, and it seemed to work fine. But apparently I'm an idiot.
    Can anyone rescue me from this guilt?

    1) - it isn't.
    2) I haven't been. Tried it just then to see if anything different happened, but no.
    3) It does. I justdid that, and it seems to have solved the problem.
    It opened up, ultra-fast (faster than MS Office ever has...), and it generated multiple error messages (presumably to let me know that it couldn't find the files it keeps in those folders?):
    "Error loading BASIC of document file:///C:/Documents%20and%20Settings/Kathryne/Application%Data/StarSuite8/user/basic/script.xlc/:
    General Error.
    General input/output error."
    "Error loading BASIC of document file:///C:/Documents%20and%20Settings/Kathryne/Application%Data/StarSuite8/user/basic/dialog.xlc/:
    General Error.
    General input/output error."
    "Error loading BASIC of document file:///C:/Documents%20and%20Settings/Kathryne/Application%Data/StarSuite8/user/basic/dialogs.xli/:
    General Error.
    General input/output error."
    After clicking "Okay" to each error message, i typed a short sentence in the file, and successfully saved it (to the C: drive, even), without seeing any trace of the "not enough space" type messages that used to come up. And after closing the program and opening it again, i haven't seen these messages reappear.
    4) I will tell let her know that it is recommended!
    5) She did this last night, and has been using it in the meantime. I think she still wants StarSuite 8, but she is aware of OpenOffice.
    (6) - I haven't done this, as your suggestion (3) seems to have fixed it.)
    Thank-you very much for the advice and the time you spent in replying, i really appreciate this. Your suggestion seems to have fixed the problem. I am hoping that the error messages listed above won't reappear - i assume that was just the program telling me that the user folders were missing, and that it re-created them soon after? I guess similar messages will appear (and disappear) upon opening Calc and the others, as well.
    The original problem - the error messages relating to disk space - has not re-appeared, i have nooo idea why, but all seems fine for now.Thank-you again for your advice! :)

Maybe you are looking for

  • When i click on projects in brower in browser mode i only get a dotted square

    when i click on projects in aperture i receive a dotted square in browser mode i am wondering where the many images in the projects have gone

  • Score board

    Hello gurus, what is score board and how do we create it? Priya

  • I cant get itune to load

    I can open itunes only the music i have, but i havent able to load the new version of itunes and not able to open store. So i cant even update my ipod and ipad. any way of fixing it?

  • SD card reader not working

    I have a SC card reader for my 4th generation iPad, it works fine for most of my cards but I have a new 64gb card and it won't connect to the iPad! Anyone know why this is?

  • Missing image after publishing

    I published almost 50 courses in the earlier version if the presenter and never had this issue before. Now when I try in the latest version (6.2), something strange happens. The logo in the published files goes missing, while it still exists in the p