How do I update the result table ?

I am having problem to design and update the competition results in WPC_RESULTS table.
I have 3 tables
1. WPC_COMPETITION - It has details of the competition to be conducted.
2. WPC_MEMBERS - Member details.
3. WPC_RESULTS - Competition results which will have Member_ID, Competition_ID and Status.
In Region 1. I have a drop down list from which I can select the Competition.
Problem is with region 2.
==================
In Region 2. I plan to have All the Member's Name from WPC_MEMBERS, a Status column (W=Win or L=Lost or X=NotPlayed) from WPC_RESULT which can be updated. But the table WPC_RESULTS dosenot have a primary key but has 2 foreign key one from WPC_COMPETITION and one from WPC_MEMBERS.
I am just not able to plan & create this region 2.
Can someone login to my wokspace and give me a helping hand.
Please mail me at [email protected] and I would give you the password for my workspace.
Regards,
Nikhil Karnik

My problem is since the WPC_RESULT table has two master tables. I cannot use a Master Detail form.
What I am trying is,
On a form which displays all the member in WPC_MEMBERS, Drop down list of competition name from WPC_COMPETITION table and a there should be checkbox for status column of WPC_RESULT. So my challenge is to update the WPC_RESULT table with the respective member id and competition id and status in WPC_RESULT table.
As you said I can use a PL/SQL, but I could not understand how do create my PLSQL block to identify each member on the form and update the competition status associated with that member.
in short the table definition is like
CREATE TABLE "WPC_COMPETITION"
(     "COMPETITION_NAME" VARCHAR2(100),
     "COMPETITION_CODE" NUMBER,
     "DATE_CONDUCTED" DATE,
     CONSTRAINT "WPC_PK1" PRIMARY KEY ("COMPETITION_CODE") ENABLE
CREATE TABLE "WPC_COMPETITION"
(     "COMPETITION_NAME" VARCHAR2(100),
     "COMPETITION_CODE" NUMBER,
     "DATE_CONDUCTED" DATE,
     CONSTRAINT "WPC_PK1" PRIMARY KEY ("COMPETITION_CODE") ENABLE
CREATE TABLE "WPC_RESULTS"
(     "COMPETITION_CODE" NUMBER,
     "STATUS" VARCHAR2(1),
     "MEMBER_ID" NUMBER
ALTER TABLE "WPC_RESULTS" ADD CONSTRAINT "WPKD_FK1" FOREIGN KEY ("COMPETITION_CODE")
     REFERENCES "WPC_COMPETITION" ("COMPETITION_CODE") ENABLE
ALTER TABLE "WPC_RESULTS" ADD CONSTRAINT "WPKD_FK2" FOREIGN KEY ("MEMBER_ID")
     REFERENCES "WPC_MEMBERS" ("MEMBER_ID") ENABLE
/

Similar Messages

  • How can I update the trigger table?

    I need a insert trigger on a table and also wants to insert the result value in one of its field.
    it gives mutating error........
    so wots the way of updating it? how can i update the same table.

    For example like this (inside the BEGIN/END section of the trigger):
    :NEW.Col2 := :NEW.Col1;
    C.

  • How can i update the ADRT table REMARK field

    How can i update the ADRT table REMARK field
    by using only function modules or BAPI's not by direct update's
    please help me
    i need it urgently

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • If record is in application server how do u update the single table

    hi
    could anybody tel me
    if record is in application server how do u update the single table
    by using direct input method

    If your Flash player/plugin is older, the only way is to go to Adobe's site (use Limnos' link) and download the full installer. A .DMG file, which you doubleclick to have it mount on the desktop. Inside is the Flash installer app you doubleclick to run and have it upgrade all. Will need an Admin user account.
    After you've upgraded to the latest & greatest, currently 11.5.502.110, a Flash perfpane will show up in System Preferences, where you can set it to auto-update itself, warn you of new updates or manually check for same.

  • How  and where does SAP standard programs update the master tables...

    Hello there,
    How  and where does SAP standard programs update the master tables...
    to be precise.. if a (any) transaction occurs  the programs behind it holds the data in temporary structures.
    where and when does it get updated in the master table.
    can anyone tell me how it happens?
    I Know that from the where used list one can find the corresponding table but most of the time it wont suffice
    I am expecting a proper answer.
    Santosh B

    Hello Santosh,
    you need to do some self-reading on the following topic
    Updates in the SAP System (BC-CST-UP)
    http://help.sap.com/saphelp_47x200/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/frameset.htm
    Regards,
    Siddhesh

  • How can i update the REMARK field in ADRT database table

    Hi all,
    How can i update the REMARK field in ADRT database table
    By using Function modules or BAPI’s
    Please reply me fast

    Hi,
    you can try this code:
        SELECT SINGLE * FROM KNA1 WHERE KUNNR = wa_kunnr.
        IF sy-subrc = 0.
          CLEAR adrct.
          SELECT SINGLE * FROM adrct WHERE addrnumber = kna1-adrnr.
          IF sy-subrc = 0.
            adrct-remark = wa_remark.
            MODIFY adrct.
          ENDIF.
        ENDIF
    best regards,
    Thangesh

  • How to update the VBFA table without entries in VBRK and VBRP tables

    Hello,
    I have a requirement , where the sales order , delivery happens in one SAP system say X system and billing document wil happens in other sap system say Y.
    Now in this particular case , if the user want to know the billing document number in X system. what would be the solution.
    Is there any possibility to update the VBFA table with invoice number of Y system (without updating the VBRK and VBRP tables).
    User want to see the billing doc number from sales order in the form of document flow in X system
    Thanks in advance
    Pradeep

    Hii
    Without updating VBRK/VBRP table and updating VBFA is not possible, So you have to play with work arround to create one Z TABLE, so whenever system Y will create billing document with the reference of System X data you have to update Ztable with Invoice number created in System Y, The primary key will be in Z TABLE is Delivery document number to track one to one with billing doc.
    Thanks and Regards
    Shambhu Sarkar

  • How can I export the results of a query?

    After executing a select statement I can see the results in a grid but how can I export the results (the data)?
    How can I export the results of a join of two or more tables?

    Right click in the results grid and select the Export menu option

  • To get checkboxes in the results table of SEARCH page?

    Hi,
    I am trying to create a search form using 'Execute With Params', while doing this I am getting radiobuttons when I go for Enable Selections , but I want Checkboxes to be present there instead of Radio Buttons.
    And also when the page is displayed I want only the search parameter to be prsent and not the results table by default.How can I do that?
    Kindly tell me how can I acheive that?
    Thanks,
    ivaR

    Hi,
    a) create a table with no selection enabled. Then drag and drop the tableSelectMany component into the "Selection" facet of the table
    b) make the default vaue of the bind variable so that no value is returned by the query. Then on the render property of the table, set #{bindings.tableIterator.estimatedRowCount>0}. This hides the table if not query is issued

  • How do I update a Nested Table of inherited Object Types?

    Does anyone know why the following line (commented out) doesn't work and what I can do? Is there some way to cast the column I am trying to update? I think I am going crazy....
    create or replace type person_ot as object (name varchar2(10)) not final;
    create or replace type student_ot under person_ot (s_num number) not final;
    create type person_tt as table of person_ot;
    declare
    lv_person_list person_tt;
    lv_sql varchar2(1000);
    ref_cur sys_refcursor;
    begin
    lv_sql:= 'select new student_ot(''fred'', 100) from dual
    union all
    select new student_ot(''sally'', 200) from dual';
    open ref_cur for lv_sql;
    fetch ref_cur bulk collect into lv_person_list;
    close ref_cur;
    dbms_output.put_line(lv_person_list.count);
    for i in lv_person_list.first..lv_person_list.last loop
    lv_person_list(i).name := initcap(lv_person_list(i).name ); -- This works!
    lv_person_list(i).s_num := 9999;  Why doesn't this line work and how can I update the column s_num ??? :-(
    end loop;
    end;
    /

    Hi Tubby - You are right...It would make sense to create the Type as type of student_ot. Only problem is I am trying to keep it generic. I will include full listing to show what I am doing...
    create or replace type person_ot as object (name varchar2(10)) not final;
    create or replace type student_ot under person_ot (s_num number) not final;
    create type person_tt as table of person_ot;
    create table persons of person_ot;
    declare
    lv_person_list person_tt;
    lv_sql varchar2(1000);
    ref_cur sys_refcursor;
    begin
    lv_sql:= 'select new student_ot(''fred'', 100) from dual
    union all
    select new student_ot(''sally'', 200) from dual';
    open ref_cur for lv_sql;
    fetch ref_cur bulk collect into lv_person_list;
    close ref_cur;
    for i in lv_person_list.first..lv_person_list.last loop
    lv_person_list(i).name := initcap(lv_person_list(i).name );
    lv_person_list(i).s_num := 9999;*                             Why doesn't this line work?? :-(
    end loop;
    forall i in lv_person_list.first..lv_person_list.last
    insert into persons values lv_person_list(i);
    end;
    /

  • How to query from the xml table a single, specified element.

    I'm quite new in Xml Db. Pleas, can anybody tell me how to query from the xml table below a single element (i.e. the element 'rapportoparentela = NIPOTE' related to the element 'codicefiscale = CRRVNC76R52G337R', or the element 'rapportoparentela = FIGLIO' related to the element 'codicefiscale = CRRRNT51L23G337Q')?
    - <dati xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <codiceinterno />
    <codicefiscaleassistito>CRRMNL81R31G337H</codicefiscaleassistito>
    - <famigliare>
    <codicefiscale>CRRVNC76R52G337R</codicefiscale>
    <rapportoparentela>NIPOTE</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CRRRNT51L23G337Q</codicefiscale>
    <rapportoparentela>FIGLIO</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CBRPRN15S65E080W</codicefiscale>
    <rapportoparentela>I.S.</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CRRMNL81R31G337H</codicefiscale>
    <rapportoparentela>NIPOTE</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>BCCCML54C50I845G</codicefiscale>
    <rapportoparentela>NUORA</rapportoparentela>
    </famigliare>
    </dati>
    Using SELECT extractValue(value(t),'/rapportoparentela') into result FROM NF_XMLT X,
    TABLE ( xmlsequence (extract(value(X),'/dati/famigliare/rapportoparentela'))) t
    I get all the elements 'rapportoparentela' and I want to get only one specified.
    Regards.
    Piero

    Piero,
    you can add the condition "CRRVNC76R52G337R" to your xpath-expression like:
    SELECT extractValue(value(t),'/rapportoparentela')
    FROM NF_XMLT x
    ,TABLE ( xmlsequence (extract(value(X),'/dati/famigliare[rapportoparentela="CRRVNC76R52G337R"]'))) tto select only those famigliare-elements that have a child-element rapportoparentela with value "CRRVNC76R52G337R".
    When you stored your XML in an XMLType column in the table, i think the following queries are better:
    SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
    FROM NF_XMLT x
    WHERE extractValue(x.your_XMLType_column,'/dati/famigliare/codicefiscale')
    = 'CRRVNC76R52G337R'or
    SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
    FROM NF_XMLT x
    WHERE existsNode(x.your_XMLType_column,'/dati/famigliare[codicefiscale="CRRVNC76R52G337R"]')
    != 0

  • Update the Z table taking Max time.

    Dear Friends,
    I am updating a Z table for a sigle field value, I am doing it in loop and giving all the primary key fields in where condition, Its updating the records properly.
    But The time is taking more if there are more records ( say 3000 + reacords ) , Now I am planning to update it in a single statement but the Sy-subrc is giving me 4 and the records were not updated in Z table.
    pls let me know how to update the Z table in a single statement??
    pls find the below code:
    corent code:
        UPDATE zXX CLIENT SPECIFIED
                        SET zyy = it_finaldata-zyy
                     WHERE mandt = sy-mandt AND
                           matnr = it_finaldata-matnr AND
                           matkl = it_finaldata-matkl .
    this is within a loop and working fine but taking max time more than 30 mins.
    now I have moved all the data into anothere internal table ( the internal table is same like Z table )
    I am using the below statement but its not working:
    update zXX FROM table it_savedata.
    Pls help me.
    Thanks,
    Sridhar

    Hi
    If u use update that line should exist in DB table otherwise the sy-subrc will be 4. You can use MODIFY statement . The advantage is that if a line exist it will modify that particular line otherwise it will create a new line in DB table.
    MODIFY dtab FROM TABLE itab.
    Regards
    Sathar

  • Viewing the Result Table Data?

    Hello,
    Please let me know the steps how to see the result table data after running the Remuneration Statement or before running the Remuneration Statement.

    Hi,
    Payroll result will be available after running the payroll in live mode.
    then go to pc_payresult, or PC00_m40_clstr, eneter the personnel number for whom you want to see the result and then select the period.
    Regards
    Devi

  • URL in the result table

    Hi
    I need to add a URL to the result table. My SQL is getting the complete URL.
    I'm getting the URL as workFlowUrl in the underlying query.
    I tried two ways
    i) If I add a link item then the whole link is being shown instead of propt text. Prompt text is shown only as the column header.
    ii) If I added Image item and if I make destination URI attribute to {@workFlowUrl} then the
    the select image is being shown but the link is being added as http://servername:port/<<workFlowUrl -- with encoded characters>>
    because of which the link is broken.
    Can some body help me how can we achiev the above.
    All I'm trying to do is I'm trying to take the user to the OA Framwork based work status monitor page with the help of URL generated by the procedure WF_MONITOR.GetEnvelopeURL('DUMMY','WFSPLPRC', p_item_key,'NO').
    So, the final URL is being presented as:
    http://server:8989/OA_HTML/http%3A%2F%2Fserver%3A8015%2Fpls%2Foapdev%2Fwf_monitor.buildMonitorUrl%3FakRegionCode%3DWF_G_MONITOR_RESPONSES_PAGE%26wa%3D%257B%2129CD6E4ACB2D5102F2A24C771BB8473A%26wm%3D%257B%21DBF7F8390B39B6B5%26itemType%3D%257B%215559198122C72D5AA4DC6050FED4AC45%26itemKey%3D%257B%218AB087B80198EEA3
    I don't need leading http://server:8989/OA_HTML
    Thanks
    prasad

    Hi
    I fixed the issue on my own. I made the item as formatted text and getting the workflow link with VO query as below:
    select b.batch_id,
         b.modifier_list_name,
         b.currency, b.price_list,
         b.price_list_name,
         b.request_date_from,
         b.request_date_to,      
         u.user_name requestor_user_name,
         p.person_id,
         nvl(p.full_name, u.user_name) full_name,
         p.email_address,
         b.spa_status,
          decode(item_key, null, 'Workflow not started', 'Workflow Status' workflow_url
    from ldmf.ldmf_sp_batches b, fnd_user u, PER_PEOPLE_V7 p,
         (select distinct item_key from wf_item_activity_statuses where item_type = 'WFSPLPRC') w
    where
    b.REQUESTOR_ID = u.USER_ID (+)
    and u.EMPLOYEE_ID = p.person_id (+)
    and w.item_key (+) = b.batch_id
    order by b.batch_id desc

  • Updating the VETVG table while creating the purchase order

    hi all,
       I have one requirement to calculated the delivery creation date while creating the Purchase Order. It is calculated based on the delivery date of PO. I have calculated that one but how to update it after calculation. Can any body give a user exit or BADI with implementation which will update the VETVG table while creating the PO.
    Thanks
    rajkumar

    hi sanjay,
    thanks for reply, I am using same BADI(ME_PROCESS_PO_CUST) and implementation(FIELDSELECTION_ITEM_REFKEYS). In this implementation i am setting the shipping data with SET_SHIPPINGDATA method . but after that the values are not updating the EKPV and VETVG tables but it is only showing in the screen. Can you give a idea where to pass these values so it will update the tables.
    thanks
    rajkumar

Maybe you are looking for

  • Access sequence for stock transfer order

    Hi, My client is a paper industry. client is procuring raw materials from forest center. We are considering forest center as plant 1800 and paper mill as plant 1100. several depots has been created under forest center and considering them as storage

  • How can I change the default quality of youtbe ?

    I am sorry maybe I ve got stupid question but I cant solve my problem all day ... Suddenly from yesterday my quality of yotube videos gone from 480p(also a bigger player size) to 360p (smaller player size - the same like on the picture) . So all the

  • Texting with several devices on same apple id

    I have an iphone and an Ipad and my kids both have Ipods.  They are all under my apple id.  Now that they have texting available all their text messages show they are from my name. Is there a way to fix that?

  • ITunes download extremely slow on a 300Mbps uVerse connection

    Gigapower installed yesterday (W00t!!!) ... everything is flying except ... iTunes downloads I've tried the following with no improvement Different DNS servers from the local machine (4.4.4.4, 8.8.8.8, OpenDNS, att standard DNS) Turning off the firew

  • Sync to google chrome

    how to sync to google chrome, how does this work