Updating the rows using a group by statement

i have the following sql:
select a.lastname, count(*) from ga_to_sali_leads_wrk a
group by a.lastname, a.address1, a.address2, a.city, a.state
order by a.lastname, a.address1, a.address2, a.city, a.state
table ga_to_sali_leads_wrk has many more fields, two of which are ssn and relation_ssn; what i want to do is...for every record in the same group, update field relation_ssn to what's in the ssn field from the first record in the group;
for example; i have 3 records in the go_to_sali_leads_wrk table
ssn....relation_ssn.....lastname....address1....address2..city...state
123.....000.................wills...........12 main....................rose...ga
333.....000.................wills...........12 main....................rose...ga
465.....000.................wills...........12 main....................rose...ga
because the lastname, address1, address2, city and state are all the same, they are grouped together (i'm assuming they are the same family); i want the relation_ssn updated to contain "123" for all 3 records
Can i do that with an update statement? So far, the update statement hasn't worked.

SQL> update rt xx
  2  set relation_ssn =
  3  (select ssn from
  4          (select a.*, row_number() over(partition by
  5          a.lastname,a.address1,a.city,a.state order by
  6          a.lastname) rn from rt a)
  7  where rn = 1 and a.lastname = xx.lastname
  8  and a.address1=xx.address1 and a.city=xx.city
  9  and a.state=xx.state);
and a.state=xx.state)
ERROR at line 9:
ORA-00904: "A"."STATE": invalid identifier
SQL> desc rt
Name                                      Null?    Type
SSN                                                CHAR(3)
RELATION_SSN                                       CHAR(3)
LASTNAME                                           CHAR(5)
ADDRESS1                                           CHAR(2)
ADDRESS2                                           CHAR(4)
CITY                                               CHAR(4)
STATE                                              CHAR(2)Devmiral's sql don't use correlated inline view.
Best regards
Maxim

Similar Messages

  • Inserting multiple rows using a single Insert statement without using dual

    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;

    NiranjanSe wrote:
    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;
    SQL> create table ps_hd_samp (num1 number,num2 number);
    Table created.
    SQL> insert all
      2  into ps_hd_samp (num1,num2) values (1,1)
      3  into ps_hd_samp (num1,num2) values (2,2)
      4  into ps_hd_samp (num1,num2) values (3,3)
      5  select count(*)
      6  from ps_hd_samp;
    3 rows created.
    SQL> select * from ps_hd_samp;
          NUM1       NUM2
             1          1
             2          2
             3          3

  • Update Multiple Rows using Row Selector

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

  • How to Update a Row using ADF

    Hi every one
    Can any one help me out, How to Update a Row using ADF.
    Thanks in advance

    In addition to Clear to my question
    By Using ADF BC How can I update a record in a database.
    I have VO and EO associated with a table.
    How can I update a record using ADF BC
    Message was edited by:
    user616296

  • How to update multiple rows using cursor.

    hi all,
    i want to update rows fetched by a cursor. it don't update the rows.
    and gives error:
    ORA-01002     fetch out of sequence
    here is the trigger.
    Declare
         alert_id ALERT := Find_Alert('on');
         alert_button NUMBER;
         var number :=10;
         v_al char(3);
         v_al_da date;
         s_date date;
         al_on number;
         to_time number;
         cursor rem is
              select re_about, alarm, alert_date
              from remind
              where alarm='ON' AND alert_date = :control.showdate
              for update;
    begin
         for rem_record IN rem LOOP
              Set_Alert_Property(alert_id, ALERT_MESSAGE_TEXT, rem_record.re_about);
              al_on := show_alert('ON');
              IF alert_button = ALERT_BUTTON1 THEN
              update remind
              set alarm = 'OFF'
              --where re_about = rem_record.re_about
              where current of rem;
              ELSE
              NULL;
              END IF;
              COMMIT;
         END LOOP;
    end;
    thanks
    Muhammad Nadeem
    Mardan

    thanks dear,
    i tried the following code outside the loop
    but the same problem.
    here is the code:
    Declare
         alert_id ALERT := Find_Alert('on');
         alert_button NUMBER;
         var number :=10;
         v_al char(3);
         v_al_da date;
         s_date date;
         al_on number;
         to_time number;
         cursor rem is
              select re_about, alarm, alert_date
              from remind
              where alarm='ON' AND alert_date = :control.showdate
              for update;
    begin
         for rem_record IN rem LOOP
         Set_Alert_Property(alert_id, ALERT_MESSAGE_TEXT, rem_record.re_about);
              al_on := show_alert('ON');
              IF alert_button = ALERT_BUTTON1 THEN
              update remind
              set alarm = 'OFF'
         where current of rem;
              ELSE
              NULL;
              END IF;
         END LOOP;
    if :SYSTEM.FORM_STATUS = 'changed' then
         COMMIT;
    end if;
    end;
    thanks
    Muhammad Nadeem

  • I have iPhone 3gs. I was trying to update the software using itunes but it is showing Error "-3259" saying  connection timeout. Please help.

    I have just bought iPhone 3gs in Sept.11. I was trying to update the software using itunes but it is showing Error "-3259" saying  connection timeout. Please help.

    Did you already check your securit software settings? iTunes has to contact Apple during the update process.
    See this article: iTunes for Windows: Troubleshooting security software issues

  • 'Stale data error' is encountered while trying to update the data using EO.

    Hi,
    I am getting the following error when I am trying to update the data using EO:
    '' Unable to perform transaction on the record. \nCause: The record contains stale data. The record has been modified by another user. \nAction: Cancel the transaction and re-query the record to get the new data."
    I have tried clearing the corresponding VO cache and have also used the "getTransaction().setClearCacheOnCommit(true)" method in the AM, but the error persists.
    Kindly suggest some work around for this problem.

    Chirag,
    this error is usually.... thrown by framework, if some other user has updated the same record you are trying to update by your EO, just check db, and try for a different record!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to update the ztable using screen.

    hi experts,
    i have one ztable with 8 fields
    and i created one screen with 8 fields
    how to update the ztable using this screen menas when i press the some push button in my screen the table should update.
    Devi

    hi
    check the link shown below
    Coding & screen shots of how to update a database table from screen(Module poool)
    http://www.scribd.com/doc/15628693/moduleprog090311165111phpapp011
    in the attachment u will find
    data  : begin of i_ysrtmm occurs 0,
            sno type ysrtmm-sno,
            sname type ysrtmm-sname,
            scity type ysrtmm-scity,
            sedu type ysrtmm-sedu,
            spercent type ysrtmm-spercent,
            select(1),
            end of i_ysrtmm.
    in the SE51 click on layout & in that menu goto - secwindow- enter the internal table i_ysrtmm
    and click on get from program.u will get all the fields of the internal table select all of them except
    SELECT  field  and then drag and drop on table control . double click on the table control u see the attributes screen there in the w/colselect enter i_ysrtmm-select for tab selection of table control.
    Regards

  • How to update the Ztable using modulepool Tablecontrol...

    Hi All,
    could anyone help me how to update the Ztable using modulepool Tablecontrol...
    if it is possible give me a example with code..
    Many thanks in advance...!!
    Rajesh

    Hi,
    For that pls refer to the link:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac3735c111d1829f0000e829fbfe/frameset.htm
    Also refer the sample program:
    RSDEMO02
    Then for updating:
    modify the internal table(which u used to populate the tabcntrl) from the table control.
    Then update database table like:
    update dbtab from table itab.
    Regards,
    Renjith Michael.

  • I just got my new Naite phone. Can I update the software using Mac OS X?

    I just got my new Naite phone. Can I update the software using Mac OS X?

    NO!!! i don't have to buy a PC or windows if I allready have a Mac!! I have had a Mac when I bought you phone!!! nobodey asked me what computer i have and nobody warned me about your resctrictions!!!!! so not i have to buy anything but you have to make me possible to update the phone without windows but using my Mac computer!!!!!! so do it!!!!! &&&&&&!!!!

  • Update multiple rows using CASE WHEN

    I have the table ACCOUNT of structure as follow: 
    ACCOUNT_ID
    ACCOUNT_STATUS
    004460721
    2
    042056291
    5
    601272065
    3
    I need to update the three rows at once using one SELECT statement such that, the second column will be 5, 3, 2 respectively.
    I used the following query but seems there is something missing
    UPDATE ACCOUNT
    SET ACCOUNT_STATUS = CASE  
    WHEN ACCOUNT_STATUS = '004460721' THEN 5 
    WHEN ACCOUNT_STATUS = '042056291' THEN 3 
    WHEN ACCOUNT_STATUS = '601272065' THEN 2 
    WHERE ACCOUNT_ID IN ('004460721','042056291','601272065') 
    My question, is this way correct? if no, can I use CASE WHEN statement and how or I only have choice of using SUB-SELECT to acheive that in one statement?

    Hi,
    Hawk333 wrote:
    I have the table ACCOUNT of structure as follow:
    ACCOUNT_ID
    ACCOUNT_STATUS
    004460721
    2
    042056291
    5
    601272065
    3
    I need to update the three rows at once using one SELECT statement such that, the second column will be 5, 3, 2 respectively.
    I used the following query but seems there is something missing
    UPDATE ACCOUNT
    SET ACCOUNT_STATUS = CASE  
    WHEN ACCOUNT_STATUS = '004460721' THEN 5 
    WHEN ACCOUNT_STATUS = '042056291' THEN 3 
    WHEN ACCOUNT_STATUS = '601272065' THEN 2 
    WHERE ACCOUNT_ID IN ('004460721','042056291','601272065') 
    My question, is this way correct? if no, can I use CASE WHEN statement and how or I only have choice of using SUB-SELECT to acheive that in one statement?
    What happens when you try it?
    Did you mean "WHEN ACCOUNT_ID = ..."?
    A CASE expressions always needs an END keyword.
    Depending on your requirements (that is, why are those rows being changed, and how do you determine the new values) a CASE expression in an UPDATE statement, similar to what you posted, could be a good way to do it.  MERGE (instead of UPDATE) would also be an option, especially if you want to avoid updating rows that already happen to have the correct values.

  • How to update multiple row using procedure in table

    Hi,
    create or replace procedure TESTLEDGER1(var_date varchar2)
    as
    var_date1 date;
    CURSOR C1 IS
    select DISTINCT ta.accountid,day PROCESSDATE,
    (NVL(payment,0))PAYMENT,NVL(TOTALDUE,0)TOTALDUE,NVL(currentbillamount,0)CURBILL,NVL(srf,0)SRF,NVL(sbpnt,0)sbpnt,
    NVL(srv,0)SRV,NVL(sbf,0)SBF,NVL(SBV,0)SBV,NVL(EF,0)EF,NVL(EV,0)EV,NVL(TSRV,0)TSRV,
    NVL(tsub,0)TSUB,NVL(teqe,0)TEQE,NVL(DT,0)DT,
    NVL(A.dep,0)RDEP,NVL(B.DEP,0)PDEP,
    NVL(pnt,0)PNT,NVL(eqp,0)EQP,NVL(dtr,0)DTR,NVL(drf,0)DRF,NVL(unadj,0)UNADJ
    from
    (select DISTINCT day ,accountid
    from
    syntblmaccount, tblmtime where yyyy =2010)ta,
    (SELECT accountid,
    SUM(srfee)srf,
    SUM(srvat)srv,
    SUM(subfee)sbf,
    SUM(subvat)sbv,
    SUM(eqefee)ef,
    SUM(eqevat)ev,
    SUM(ttlsrv)tsrv,
    SUM(ttlsub)tsub,
    SUM(ttleqe)teqe,
    SUM(dep)dep,
    SUM(dt)dt,trunc(fromdate)fromdate
    FROM VWDT_v2
    GROUP BY accountid,trunc(fromdate)
    )a,
    (SELECT accountid,
    SUM(pnt)pnt,
    SUM(subpnt)sbpnt,
    SUM(eqpnt)eqp,
    SUM(dep)dep,
    SUM(DEPTRANSFER)dtr,
    SUM(DEPREFUNDED)drf,
    SUM(unadj)unadj,trunc(paymentdate)paymentdate
    FROM vwkt_v4
    GROUP BY accountid,trunc(paymentdate)
    )b,
    (SELECT ACCOUNTID,REFUND,trunc(createdate) createdate FROM vwrefund)F,
    ( SELECT ACCOUNTID,
    TRUNC(CREATEDATE)CREATEDATE,
    sum(TOTALDUE)/100 TOTALDUE,sum(currentbillamount)currentbillamount
    FROM SYNTBLTDEBITDOCUMENT
    group by ACCOUNTID, TRUNC(createdate))debit,
    (SELECT ACCOUNTID accountid,TRUNC(createdate)CREATEDATE, SUM(totalamount)PAYMENT
    from syntbltcreditdocument
    where CREDITDOCUMENTTYPEID IN ('CDT01','CDT04')
    -- AND ACCOUNTID='ACC000003014'
    group by accountid,TRUNC(createdate))credit
    where ta.accountid=a.accountid(+)
    and ta.accountid=b.accountid(+)
    --and ta.accountid=pay.accountid(+)
    and ta.accountid=debit.accountid(+)
    and ta.accountid=credit.accountid(+)
    and ta.accountid=f.accountid(+)
    and ta.day=a.fromdate(+)
    --and ta.day=pay.createdate(+)
    and ta.day=debit.createdate(+)
    and ta.day=credit.createdate(+)
    and ta.day=b.paymentdate(+)
    and ta.day=f.createdate(+)
    and trunc(ta.day)=to_date(var_date,'DD-MON-YY');
    begin
    select distinct processdate into var_date1 from ledgerdetail;
    FOR V1 IN C1 LOOP
    UPDATE LEDGERDETAILtest
    SET PAYMENT=v1.payment,
    TOTALDUE=v1.TOTALDUE,
    CURBILL=v1.curbill,
    SRF=v1.srf,
    SBPNT=v1.sbpnt,
    SRV=v1.srv,
    SBF=v1.sbf,
    SBV=v1.sbv,
    EF=v1.ef,
    EV=v1.ev,
    TSRV=v1.tsrv,
    TSUB=v1.tsub,
    TEQE=v1.teqe,
    DT=v1.dt,
    PDEP=v1.rdep,
    PNT=v1.pnt,
    EQP=v1.eqp,
    DTR=v1.dtr,
    DRF=v1.drf,
    UNADJ=v1.unadj
    where accountid=v1.accountid
    and processdate=v1.processdate;
    --DBMS_OUTPUT.PUT_LINE('INSERTED ROW');
    commit;
    end loop;
    end;
    I have created above procedure to update table column....but i am getting run time error....
    Error report:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "CRESTELVIEWSPRD501.TESTLEDGER1", line 70
    ORA-06512: at line 1
    01422. 00000 - "exact fetch returns more than requested number of rows"
    *Cause:    The number specified in exact fetch is less than the rows returned.
    *Action:   Rewrite the query or change number of rows requested
    how to resolve this error...
    Pl give me solution...
    thanks in advance.

    Hi:
    You have to make sure that join condition joins one record to one record not to a group of records.
    Saad,
    http://saadnayef.blogspot.com/

  • Updating the database using z bapi without deleting existing data

    hi every body,
    i am using a zbapi in that i am updating a table which is having 40 fields but i am modifying the only four fields but it is deleting the remaining field entries
    i am now attaching the code what i have used
    ZMPETS_SHIPHDR-SHIPDOCNO    = wf_shipdocno.
    ZMPETS_SHIPHDR-VENACCEPTIND = VENACCEPTIND.
    ZMPETS_SHIPHDR-LASTCHANGEDT = SY-DATUM.
    ZMPETS_SHIPHDR-LASTCHANGEBY = SY-UNAME.
    ZMPETS_SHIPHDR-LOEKZ        = ' '.
    CALL FUNCTION 'Z_MPETS_SAVE_SHIPHDR'
      EXPORTING
        zmpets_shiphdr_save       = ZMPETS_SHIPHDR.
    *COMMITING THE UPDATION.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        IMPORTING
          RETURN = RETURN.
    UPDATING THE SHIPMENT ACTIVITY TABLE.
    ZMPETS_SHIPACTIV-PETSDOCNUMBER = wf_shipdocno.
    ZMPETS_SHIPACTIV-LOEKZ    = ' '.
    ZMPETS_SHIPACTIV-ACTIVITY = '20'.
    CALL FUNCTION 'Z_MPETS_SAVE_SHIPACTIV'
      EXPORTING
        zmpets_shipactiv_save       = ZMPETS_SHIPACTIV.
    in the upper function module the code
    is
    modify zmpets_shipactiv from zmpets_shipactiv_save.
    we have to use this compulsory as it is client's standard
    *COMMITING THE UPDATION.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        IMPORTING
          RETURN = RETURN.
    kindly give me reply
    i will reward the points for a best reply

    Welcome to SDN!
    You will need to pass all 40 fields into your BAPI structure (ZMPETS_SHIPACTIV). The problem is that when you use the modify from statement, the BAPI updates the DB as-is from the BAPI structure, and since you are passing it only 4 values, it defaults the others to space.
    Do this:
    SELECT * FROM ZMPETS_SHIPACTIV WHERE <specify key fields here>
    and then
    ZMPETS_SHIPACTIV-PETSDOCNUMBER = wf_shipdocno.
    ZMPETS_SHIPACTIV-LOEKZ = ' '.
    ZMPETS_SHIPACTIV-ACTIVITY = '20'.
    CALL FUNCTION 'Z_MPETS_SAVE_SHIPACTIV'
    EXPORTING
    zmpets_shipactiv_save = ZMPETS_SHIPACTIV.
    This should work.
    Hope this helps.
    Sudha

  • Updating the table using excel sheet

    hello friends
    i have exported the tabel EINA in to a excel sheet , and made changes , now i want to upload same excel sheet into same table and update the change value into table , how can i do this???
    regards
    ravikant dewangan

    hi thr
    to upload multiple multitab Excel sheets or Ranges from Front end to SAP
    Please refer to
    http://www.sap-img.com/abap/abap-object-oriented-spreadsheet-with-unlimited-power.htm
    Visit
    http://help.sap.com/saphelp_47x200/helpdata/en/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
    and
    http://help.sap.com/saphelp_47x200/helpdata/en/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
    You need some basic idea of range object in excel.
    You need to create XLS with named ranges or create ranges dynamically.
    This could be a neat way to upload XLS the OO way!
    The function Module zjnc_get_range reads 1 range into any Internal
    table.
    DATA: BEGIN OF it_test OCCURS 0,
            vpd  LIKE mseg-menge,
            vas  LIKE mkpf-budat,
            vkm  LIKE mseg-matnr,
          END OF it_test.
      CALL FUNCTION 'ZJNC_GET_RANGE'
        EXPORTING
          rangename       = 'test'
          itabname        = 'IT_TEST[]'
          irecname        = 'it_test'
          spreadsheetintf = spreadsheetintf.
    =Work!$A$14:$C$16 is range "test"
    Numbers & Character data are no problem BUT dates are.
    In Excel default date is mm/dd/yyyy but is dependent on PC's
    international setting which is normally default
    To Avoid any 5-March 3-May type mix-up, I have designed the FM so that you need to
    enter dates as 'dd.Mon.yyyy i.e. in Characters in "Internet Date Format"
    FUNCTION zjnc_get_range.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(RANGENAME) TYPE  C
    *"     REFERENCE(ITABNAME) TYPE  C
    *"     REFERENCE(IRECNAME) TYPE  C
    *"     REFERENCE(SPREADSHEETINTF) TYPE REF TO  I_OI_SPREADSHEET
    *"     REFERENCE(SPREADSHEETINTF) TYPE REF TO  I_OI_SPREADSHEET
      DATA:
        stru_ref    TYPE REF TO cl_abap_structdescr,
        comp_tab    TYPE abap_compdescr_tab,
        one_comp    TYPE abap_compdescr,
        one_name    TYPE string,
        type_ref    TYPE REF TO cl_abap_typedescr,
        is_ddic     TYPE abap_bool,
        lt_ddic     TYPE dd_x031l_table,
        wa_ddic     TYPE x031l.
      DATA: zjncranges    TYPE soi_range_list,
            zjnccontents  TYPE soi_generic_table,
            zjnconerange  TYPE soi_range_item,
            zjnconeitem   TYPE soi_generic_item,
            prevrow(4)    TYPE n,
            nrow(4)       TYPE n,
            ncolumn(4)    TYPE n,
            mystring      TYPE string,
            mydate        LIKE sy-datum.
      FIELD-SYMBOLS: <fs_type>  TYPE ANY,
                     <fs_table> TYPE STANDARD TABLE,
                     <fs_line>  TYPE ANY.
      CONCATENATE '(' sy-cprog ')' itabname INTO mystring.
      ASSIGN (mystring) TO <fs_table>.
      CONCATENATE '(' sy-cprog ')' irecname INTO mystring.
      ASSIGN (mystring) TO <fs_line>.
      stru_ref ?= cl_abap_structdescr=>describe_by_data( <fs_line> ).
      comp_tab = stru_ref->components.
      REFRESH zjncranges.
      MOVE rangename TO zjnconerange-name.
      APPEND zjnconerange TO zjncranges.
      CALL METHOD spreadsheetintf->get_ranges_data
        IMPORTING
          contents = zjnccontents
          error    = zjncerror
          retcode  = zjncretcode
        CHANGING
          ranges   = zjncranges.
      MOVE 0 TO prevrow.
      LOOP AT zjnccontents INTO zjnconeitem.
        MOVE zjnconeitem-row TO nrow.
        IF nrow <> prevrow.
          IF prevrow <> 0.
            APPEND <fs_line> TO <fs_table>.
          ENDIF.
          CLEAR <fs_line>.
          MOVE nrow TO prevrow.
        ENDIF.
        MOVE zjnconeitem-column TO ncolumn.
        READ TABLE comp_tab INDEX ncolumn INTO one_comp.
        CONCATENATE '(' sy-cprog ')' irecname '-' one_comp-name INTO one_name.
        ASSIGN (one_name) TO <fs_type>.
        IF one_comp-type_kind <> 'D'.
          MOVE zjnconeitem-value TO <fs_type>.
        ELSE.
          TRANSLATE zjnconeitem-value TO UPPER CASE.
          CALL FUNCTION 'CONVERSION_EXIT_SDATE_INPUT'
            EXPORTING
              input  = zjnconeitem-value
            IMPORTING
              output = mydate.
          MOVE mydate TO <fs_type>.
        ENDIF.
      ENDLOOP.
      IF prevrow <> 0.
        APPEND <fs_line> TO <fs_table>.
      ENDIF.
    ENDFUNCTION.
    SAP has a facility called BDS.
    Read
    http://www.intelligententerprise.com/channels/applications/feature/archive/schulze.jhtml
    Read http://www.sappro.com/download03.cfm?session=   
    There is ready code of BDS+DOI -- uses CL_BDS_DOCUMENT_SET global class.
    If you wish to store a Word/Excel/AutoCad or any other document in SAP,
    then you can use the Business Document Service (BDS). I did not - as
    Cluster Data Directory is a simple beginning ...
    Do reward if helpful.... and come bak if stil have trouble.
    Edited by: Prem Sharma on Apr 3, 2008 12:00 PM

  • Update the database using bc4j tag

    hi
    i am new to struts based bc4j tag.
    i have created the one application using the struts based jsp for business component.
    this wizard create a web application , with update , delete facility record. and number of pages like :
    1) DataEditComponent.jsp
    2) DataQueryComponent.jsp
    3) DataScrollerComponent.jsp
    4) DataTransacationComponet.jsp
    5) viewnameBrowse.jsp
    6) viewnameEdit.jsp
    7) viewnameQuery.jsp
    8) description.html
    9) content.html
    etc...
    and number of java files
    1) viewnameBrowsAction.java
    2) viewnameEditAction.java
    3) viewnameForm.java
    5) viewnameFormBeaninfo.java
    6) viewnameQueryAction.java
    and
    applicationResource.properties and struts-config.xml.
    this application run sucessfully,
    but when i clicked on the edit and after change the record and finally update the record internally it update the record in the view object or application module.
    but it dont update the data base.
    also, the DataTransacationComponent.jsp page display the link like
    commit and Rollback
    when i click on the commit link it invoked the appropriate java file (Transaction.java) which is provided by the oracle itself.
    but it dosent update the record in the database.
    last few days i have try to identify , any other requirement which one i was missing
    so, please help me

    I have a form with form elements like text box,list box with multiple values. I want to insert this using xsql and also update the same. Is there any method by which i can do this by just submitting the form to xsql as posted xml document with out using xsl as transform attribute and posting the xml with ROWSET/ROW form directly which includes my form element values as sub nodes. The easy way of doing is create a view (either simple or object) and write an INSTEAD OF trigger on the view. You can keep insert-request in the xsql and put logic in the trigger whether to update or insert the record.

Maybe you are looking for

  • How to display the multiple lines text in a single - String, StringBuffer

    Hi, I have a textarea field named Decription which contains more than one line seperated by new line.I need to display those five lines in a single text without breaking. Is it possible? I am getting ArrayIndexOutOfBoundsException while i reached to

  • Spry security (and maybe ajax security)?

    Hi there, I've been used Spry for several sites until now, later i realized that we can easily request the XML (if use XMLDataSet) by parsing variable to url directly which would be like this: http://www.example.com/data_generator.php?var1=x&var2=y T

  • 17" Powerbook can't find Panasonic PV-GS39 via firewire

    I just picked this Panasonic mini-dv camcorder up the other night and have yet to get it to talk to my powerbook (final cut pro hd 4.5 or iMovie hd) via firewire. If I connect the USB cable, I can access the pictures on the SD card, but no go with fi

  • Burning slideshow to disc using iPhoto 5

    I have a number of slideshows that I want to burn to disc to make prints of slideshow photos. Can this be done or do I have to drag photos from the library?

  • Deletion of Reservation item generated from Maintenance Order

    We have a peculiar problem. In Production system, weu2019ve close Maintenance Order that has a component reservation. When closing the Maintenance Order, the reservation has been set deletion flag but two components are not being marked for deletion.