Help with update in procedure

Hello,
i have 2 tables called EMWP and DPT EMWP holds distinct data, and the other holds all those distinct values a 1 row in DPT table.
I wrote a procedure to get all the data from emwp to dpt table. when i add new row
here is EMWP TABLE
EMWP data
code rlevel tid ind emp_rule upd_logon timestamp
GU00 1 1 S 100 501 sysdate
GU00 1 1 S 101 501 sysdate
GU00 1 1 S 102 501 sysdate
GU00 1 1 S 105 608 sysdate
DR00 2 3 R 100 701 sysdate
DR00 2 3 R 101 701 sysdate
DR00 2 3 R 102 701 sysdate
DR00 2 3 R 104 701 sysdate
DPT data
ccode rlevel tid ind DPTRULENUM upd logon timestamp
GU00 1 1 S 100,101,102 501 sysdate
DR00 2 3 R 151,152,153,154 701 sysdate
WHEN I add a new emp rule row into EMWP table as for example:
GU00 1 1 S 155 608 sysdate
when i run the following procedure it basically replaces the data wholesale from EMWP to DPT table.
when execute this procedure this new emp rule should be added to DPT table as
GU00 1 1 S 100,101,102,105 608 sysdate
basically it should replace the row in DPT which has updlogon 501 data and add this new emprule as 100, 101, 102 and 105 as shown in the above example.
how can interpret in procedure please.
here i am sending the code that i wrote.
CREATE OR REPLACE PROCEDURE GET_dpt
IS
BEGIN
DELETE get_dpt;
FOR c IN (select a.cCODE ,
a.RLEVEL,
a.TID,
a.IND,
rtrim (xmlagg (xmlelement (e, a.emp_rule || ',' )order by a.emp_rule).extract ('//text()'), ',') RULENUM,
a.UPDLOGON,
b.CCODE coc ,
b.RLEVEL level,
b.TID typeid,
b.IND indic
from EMWP a full outer join DPT b on
a.ccode = b.ccode
AND a.rlevel = b.level
AND a.tid = b.tid
AND a.ind = b.ind
Group by a.ccode, a.rlevel, a.tid, a.ind, a.UPDLOGON, b.CCODE,b.RLEVEL, b.TID, b.INDic
order by a.ccode, a.rlevel)
LOOP
BEGIN
IF (c.CCODE = c.COC
AND C.RLEVEL = C.RLEVEL
AND C.tid = C.TID
AND C.IND = C.IND) THEN
insert into dpt (CCODE, RLEVEL, TID, IND, dptrulenum, UPDLOGON, TIMESTAMP)
values (C.CCODE, C.RLEVEL, C.TID, C.IND, C.RULENUM, C.UPDLOGON, SYSDATE);
ELSE
END IF;
EXCEPTION
WHEN OTHERS THEN
END;
end loop;
commit;
END;
/

here is the sample data that need to be replaced with new updlogon...
code rlevel tid ind emp_rule upd_logon timestamp
GU00 1 1 S 100 501 sysdate
GU00 1 2 S 101 501 sysdate
GU00 1 3 S 102 501 sysdate
GU00 1 0 S 105 608 sysdate
say for example i add this new to EMWP table
GU00 1 0 S 105 608 sysdate
i have to keep the above sample rows where updlogon = 501 plus 608 in EMWP table, but when inserting or updatingto DPT table i have to make sure to replace the above 3 rows with 501 and 608 rows as one string value with new updlogon in DPT table..
GU00     1 1     S     100,101,102,105 608     sysdate
CREATE OR REPLACE PROCEDURE GET_dpt
IS
BEGIN
DELETE get_dpt;
FOR c IN (select a.cCODE ,
a.RLEVEL,
a.TID,
a.IND,
rtrim (xmlagg (xmlelement (e, a.emp_rule || ',' )order by a.emp_rule).extract ('//text()'), ',') RULENUM,
a.UPDLOGON,
b.CCODE coc ,
b.RLEVEL level,
b.TID typeid,
b.IND indic
from EMWP a full outer join DPT b on
a.ccode = b.ccode
AND a.rlevel = b.level
AND a.tid = b.tid
AND a.ind = b.ind
Group by a.ccode, a.rlevel, a.tid, a.ind, a.UPDLOGON, b.CCODE,b.RLEVEL, b.TID, b.INDic
order by a.ccode, a.rlevel)
LOOP
BEGIN
IF (c.CCODE = c.COC
AND C.RLEVEL = C.RLEVEL
AND C.tid = C.TID
AND C.IND = C.IND) THEN
insert into dpt (CCODE, RLEVEL, TID, IND, dptrulenum, UPDLOGON, TIMESTAMP)
values (C.CCODE, C.RLEVEL, C.TID, C.IND, C.RULENUM, C.UPDLOGON, SYSDATE);
ELSE
END IF;
EXCEPTION
WHEN OTHERS THEN
END;
end loop;
commit;
END;
thank you.

Similar Messages

  • Need Help With a Stored Procedure

    Help With a Stored Procedure
    Hi everyone.
    I am quite new relative to creating stored procedures, so I anticipate that whatever help I could get here would be very much helpful.
    Anyway, here is my case:
    I have a table where I need to update some fields with values coming from other tables. The other tables, let us just name as tblRef1, tblRef2 and tblRef3. For clarity, let us name tblToUpdate as my table to update. tblToUpdate has the following fields.
    PlanID
    EmployeeIndicator
    UpdatedBy
    CreatedBy
    tblRef1, tblRef2 and tblRef3 has the following fields:
    UserName
    EmpIndicator
    UserID
    In my stored procedure, I need to perform the following:
    1. Check each row in the tblToUpdate table. Get the CreatedBy value and compare the same to the UserName and UserID field of tblRef1. If no value exists in tblRef1, I then proceed to check if the value exists in the same fields in tblRef2 and tblRef3.
    2. If the value is found, then I would update the EmployeeIndicator field in tblToUpdate with the value found on either tblRef1, tblRef2 or tblRef3.
    I am having some trouble writing the stored procedure to accomplish this. So far, I have written is the following:
    CREATE OR REPLACE PROCEDURE Proc_Upd IS v_rec NUMBER;
    v_plan_no tblToUpdate.PLANID%TYPE;
    v_ref_ind tblToUpdate.EMPLOYEEINDICATOR%TYPE;
    v_update_user tblToUpdate.UPDATEDBY%TYPE;
    v_created_by tblToUpdate.CREATEDBY%TYPE;
    v_correct_ref_ind tblToUpdate.EMPLOYEEIDICATOR%TYPE;
    CURSOR cur_plan IS SELECT PlanID, EmployeeIndicator, UPPER(UpdatedBy), UPPER(CreatedBy) FROM tblToUpdate;
    BEGIN
    Open cur_plan;
         LOOP
         FETCH cur_plan INTO v_plan_no, v_ref_ind, v_update_user, v_created_by;
              EXIT WHEN cur_plan%NOTFOUND;
              BEGIN
              -- Check if v_created_by has value.
                   IF v_created_by IS NOT NULL THEN
                   -- Get the EmpIndicator from the tblRef1, tblRef2 or tblRef3 based on CreatedBy
                   SELECT UPPER(EmpIndicator)
                        INTO v_correct_ref_ind
                        FROM tblRef1
                        WHERE UPPER(USERNAME) = v_created_by
                        OR UPPER(USERID) = v_created_by;
                        IF v_correct_ref_ind IS NOT NULL THEN
                        -- Update the Reference Indicator Field in the table TRP_BUSPLAN_HDR_T.
                             UPDATE TRP_BUSPLAN_HDR_T SET ref_ind = v_correct_ref_ind WHERE plan_no = v_plan_no;
                        ELSIF
                        -- Check the Other tables here????
                        END IF;
                   ELSIF v_created_by IS NULL THEN
                   -- Get the EmpIndicator based on the UpdatedBy
                        SELECT UPPER(EmpIndicator)
                        INTO v_correct_ref_ind
                        FROM tblRef1
                        WHERE UPPER(USERNAME) = v_update_user
                        OR UPPER(USERID) = v_created_by;
                        IF v_correct_ref_ind IS NOT NULL THEN
                        -- Update the Reference Indicator Field in the table TRP_BUSPLAN_HDR_T.
                             UPDATE TRP_BUSPLAN_HDR_T SET ref_ind = v_correct_ref_ind WHERE plan_no = v_plan_no;
                        ELSIF
                        -- Check the Other tables here????
                        END IF;
                   END IF;
              END;
         END LOOP;
         CLOSE cur_plan;
         COMMIT;
    END
    Please take note that the values in the column tblToUpdate.UpdatedBy or tblToUpdate.CreatedBy could match either the UserName or the UserID of the table tblRef1, tblRef2, or tblRef3.
    Kindly provide more insight. When I try to execute the procedure above, I get a DATA NOT FOUND ERROR.
    Thanks.

    Ah, ok; I got the updates the wrong way round then.
    BluShadow's single update sounds like what you need then.
    I also suggest you read this AskTom link to help you see why you should choose to write DML statements before choosing to write cursor + loops.
    In general, when you're being asked to update / insert / delete rows into a table or several tables, your first reaction should be: "Can I do this in SQL?" If you can, then putting it into a stored procedure is usually just a case of putting the sql statement inside the procedure header/footers - can't really get much more simple than that! *{;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • MAC OS 10.6.8 Using Safari 5.1 Needing Help With Updating Adobe Flash

    Hello-
    Recently Adobe Flash installed an icon in my System Preferences and when I click the icon there are several tabs.  One allows updates to check automatically.  It says it will install the latest version of Flash without having to remove the previous version, but I have never been told that a newer version is available unless I clcik "check now."  although "Check for updates automatically" is checked, I do not know where it tells me a newer version is available.  Also, there has been 5 "newer versions" available since this icon was installed in System Prefeences, I have only found out about the newer versions when I clicked "Check Now."  If I read that with this new way to install the latest Mac version of Flash does not require me to uninstall the previous version of Flash how do I install the most recent version of Flash?  Does it come in an email?
    Since it is not telling me that there is a more recent version of Flash unless I click "Check Now" should I still do it the way I used to install the latest version of flash?  (The way before this icon was added to System Preferences)?
    I would appreciate help with updating Flash to the most recent version.  I used to uninstall the older version, restart the browser and download the most recent version and install it.  It always worked find but this was before there was an Adobe icon in my system Preferences.

    Hello,
    The way you used to do this (uninstall, restart the browser, etc.) is still definitely valid and probably the "safest" way to get a new version installed.  Uninstalling shouldn't be required, but it definitely doesn't hurt.  If you feel comfortable doing it the old way, please feel free to continue using that process.
    As for notifications, this is a bit trickier, but in general you should be notified within 30 days (or so) after a new player is released.  This usually occurs when the browser loads swf content.  Clicking the button will, like you mention, immediately check.  Another alternative to finding out when a new player is released is to subscribe to our Flash Player Releases feed.
    Is there a way to be automatically notified when a new Flash Runtime release is made?
    Thanks,
    Chris

  • Help with updates for CS6

    I need help installing latest updates for CS6.  I have Win 7 and have tried updating from the Help - Updates menu.  The error is:  U43M1D207.

    Thanks for your response.  I am in the United States in So. Arizona.
    Date: Fri, 5 Oct 2012 12:21:45 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help with updates for CS6
    Re: Help with updates for CS6 created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Crunkle1 you are welcome to work directly with our support team for guided assistance.  If you go to http://www.adobe.com/ and select Help and Contact Us you should be given the option to contact our support team via telephone.  Which country/region are you in?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4752605#4752605
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4752605#4752605
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4752605#4752605. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • HT201541 I need help with updating my browser.

    I need help with updating my browser.  Its telling me that Safari is outdated.

    That is a very old version belonging to Snow Leopard. I take it you are not actually running Yosemite.
    Upgrading to Yosemite
    You can upgrade to Yosemite from Lion or directly from Snow Leopard. Yosemite can be downloaded from the Mac App Store for FREE.
    Upgrading to Yosemite
    To upgrade to Yosemite you must have Snow Leopard 10.6.8 or Lion installed. Download Yosemite from the App Store. Sign in using your Apple ID. Yosemite is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks/Yosemite- System Requirements
          Macs that can be upgraded to OS X Yosemite
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • Help with updates - The software change returned error code 0x87D00215(-2016411115).

    I have rolled out bunch of updates across few hundred workstation systems.
    Few of the desktops have failed to install SOME of the updates and just can't get my head around as to why?
    Looking at one of the workstations, I can see 5 updates are pending download at 0%.
    Some of these fail after a while and with in Software Centre, I can see 'Help with updates - The software change returned error code 0x87D00215(-2016411115).'. Not exactly sure what this means, but I have tried clearing the cache and
    rebooting the workstations few times.
    (I have also tried to use Windows Update and install one of these manually, which worked.)

    Investigating this further, I have found the following in CAS.log:
    ICcmContentTransferManager::ModifyJobPriority failed with error 0x87d00215 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    No need to change timeout settings ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Successfully created download request {ED6E9E5C-E806-43CA-9F93-49AC72D1DEAD} for content 53bf87a2-bedf-4def-b0ec-9637613c3429.1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Requesting locations synchronously for content 99ddb078-b780-4605-8fac-9607fe56450d.1 with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    The number of discovered DPs(including Branch DP and Multicast) is 1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Calling back with the following distribution points ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Distribution Point='http://DPSERVER.com/SMS_DP_SMSPKG$/99ddb078-b780-4605-8fac-9607fe56450d', Locality='LOCAL' ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Requesting content 99ddb078-b780-4605-8fac-9607fe56450d.1, size(KB) 0, under context System with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    ICcmContentTransferManager::ModifyJobPriority failed with error 0x87d00215 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    No need to change timeout settings ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Successfully created download request {67B7E59B-A386-4EA8-BF39-2EB64B108A6C} for content 99ddb078-b780-4605-8fac-9607fe56450d.1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Requesting locations synchronously for content 61d33de7-9582-41e3-82fc-3e0f970b60f3.1 with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    The number of discovered DPs(including Branch DP and Multicast) is 1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Calling back with the following distribution points ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Distribution Point='http://DPSERVER.com/SMS_DP_SMSPKG$/61d33de7-9582-41e3-82fc-3e0f970b60f3', Locality='LOCAL' ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Requesting content 61d33de7-9582-41e3-82fc-3e0f970b60f3.1, size(KB) 0, under context System with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    ICcmContentTransferManager::ModifyJobPriority failed with error 0x87d00215 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    No need to change timeout settings ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
    Successfully created download request {12E48136-B545-4C42-9745-9FF97CE38D52} for content 61d33de7-9582-41e3-82fc-3e0f970b60f3.1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)

  • Help with Command - Stored Procedure

    Hi all,
    I'm having a great deal of difficulty getting my head around
    an update command / stored procedure, I've pulled out all of my
    books and spent the last two days on Google which has made my
    confusion worse. In simple terms what I'm trying to do is update a
    field in a table with the value y, but based on certain criteria.
    So my table has the following fields -
    JBAID
    JBASiteID
    JBADatePosted
    JBAPostFor
    JBANotified
    What i want to do is update the value of field JBANotified on
    all records that meeting the following criteria to Y
    The criteria is -
    WHERE DATEADD(d,JBAPostFor,JBADatePosted) BETWEEN DATEADD(d,
    -7, GETDATE()) AND GETDATE() AND JBANotified = 'n' AND JBASiteID =
    MMColParam (where MMColParam is Session("SITEID"))
    So I've just tried building a command / stored procedure -
    which reads (see attached code)(more than likely all wrong)
    The things that I cant get my head around are -
    Firstly getting the code right in the first place, running
    the command on page load and then when the command has run
    redirecting to the next page.
    I really would appreciate some help with this -
    thanks all

    Ed Stewart wrote:
    > Are you using CS3 with ASP/VBScript? There is a bug in
    the command
    > implementation that has this function broken.
    >
    > I asked about it in this forum several months ago, but
    now I can't find my
    > original post, but I did find another post that talks
    about the same thing:
    >
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=26
    > 3&threadid=1281539&enterthread=y
    >
    > My solution is to drop back to DW8 for command editing,
    but use CS3 for
    > everything else. I don't know what you're supposed to do
    if you don't have an
    > earlier version.
    >
    > It looks like your sql is correct, but the bug prevents
    the second code block
    > is not being updated with the correct values.
    >
    > I hope a solution is forthcoming....
    >
    Create a stored procedure and then use a recordset to
    exectute it,
    making sure the recordset has matching parameters that the
    stored
    procedure expects.
    Commands are broken, I reported it to Adobe and they said it
    might get
    fixed in the next version.
    Steve

  • Need help with update query

    I am having a strange problem with an update query I am running. Here are the specifics:
    1. I run a script that extracts qualifying rows form a source table (S1), performs some calculation,s and stores the results in a temporary table (T1).
    2. The calculations stored in the temporary table (T1) are only for a subset of rows in the source table (S1).
    3. The temporary table (T1) uses the same primary key values as the source table (T1).
    4. Once the calculations are completed, I want to update a single column on the source table (S1.CalcValue) with the calculated value from the temporary table (T1.CalcValue).
    The problem is that I am doing monthly updates so I run month 1, do some verification of the data and then update the source table. Then repeat the process for months 2 through n. When I run the update for the month 2 data, the prior month 1 data for the column is lost. Below is the update script which looks like it should work and only update on the matching keys between the temporary table (T1) and the source table (S1). I was wondering if anyone could let me know what is wrong with this script and why.
    I am new to Oracle having worked extensively in SQL Server, so the syntax differences are killing me right now so any help would be appreciated.
    Update script:
    procedure update_rvu AS
    BEGIN
    --update the test.RVU table
    update test.RVU S1
    set S1.CalcRVU = ( select
    T1.CalcRVU
    from
    TMP_RVU T1
    where
    S1.GroupId = T1.GroupId
    and
    S1.PatientId = T1.PatientId
    and
    S1.InvoiceId = T1.InvoiceId
    and
    S1.TransId = T1.TransId
    commit;
    END update_rvu;
    Edited by: user9009311 on Apr 14, 2010 4:47 PM

    Most likely you want a WHERE clause in your update portion ... something like
    update test.RVU S1
    set S1.CalcRVU = ( select
    T1.CalcRVU
    from
    TMP_RVU T1
    where
    S1.GroupId = T1.GroupId
    and
    S1.PatientId = T1.PatientId
    and
    S1.InvoiceId = T1.InvoiceId
    and
    S1.TransId = T1.TransId
    where exists
       select null
       from tmp_rvu t11
       where S1.GroupId = T11.GroupId
       and    S1.PatientId = T11.PatientId
       and    S1.InvoiceId = T11.InvoiceId
       and    S1.TransId = T11.TransId
    )You can also look into using the MERGE command (if you're on version 10 or better you can perform update only operations with it). I personally find it more 'friendly' than correlated updates a lot of the time.

  • Help with Update task

    Hi friends,
    In the below am trying to update a custom table using a call function in update task. I dont see the table getting updated can someone take a look at it and let me knw what the problem is? I have the commit work statement and also marked the function module as an update one in the attribute. Please help me . Thanks in advance! kathy
    *&  Include           ZINBOUND_TEST
    Report: ZINBOUND_TEST.
    DATA: l_dest     TYPE REF TO if_bgrfc_destination_inbound,
          l_unit     TYPE REF TO if_trfc_unit_inbound,
          l_inb_dest TYPE bgrfc_main_i_dst,
          lv_matid TYPE /sapapo/matid,
          lv_matnr TYPE /sapapo/matnr,
          lv_maktx type /SAPAPO/MAKTX,
          lv_langu  TYPE LANGU.
    data: lt_product type  STANDARD TABLE OF ZUPDATE,
          ls_product type ZUPDATE.
    lv_matid = '123'.
    lv_langu = 'E'.
    lv_maktx = 'Materia1'.
    CALL FUNCTION 'Z_TEST' IN UPDATE TASK
      EXPORTING
        iv_matid = lv_matid
        iv_maktx = lv_maktx
        iv_langu = lv_langu .
    COMMIT WORK.
    select * from zupdate into corresponding fields OF TABLE lt_product.
    if sy-subrc <> 0.
      write 'no records added'.
    else.
      loop at lt_product into ls_product.
        write: / ls_product-MATID,
                 ls_product-MAKTX.
      endloop.
    endif.
    FUNCTION Z_TEST.
    *"*"Update Function Module:
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(IV_MATID) TYPE  /SAPAPO/MATID
    *"     VALUE(IV_MAKTX) TYPE  /SAPAPO/MAKTX
    *"     VALUE(IV_LANGU) TYPE  LANGU
    data: itab type standard table of zupdate,
    wa_itab type zupdate.
    wa_itab-matid = iv_matid.
    wa_itab-maktx = iv_maktx.
    wa_itab-langu = iv_langu.
    append wa_itab to itab.
    update zupdate from table itab .
    ENDFUNCTION.
    Edited by: ka reddy on Sep 24, 2009 4:14 PM
    Edited by: ka reddy on Sep 24, 2009 4:15 PM
    Edited by: ka reddy on Sep 24, 2009 4:16 PM
    Edited by: ka reddy on Sep 24, 2009 4:17 PM
    Edited by: ka reddy on Sep 24, 2009 4:21 PM

    Hey Naimesh thanks for the reply. yeah i read that document way before and i started taking a stab at implementing it.
    I started with update task to see how it behaves and then wanted to go with BGRFC tats when i had the update issue.
    Now that am done with update i want to implement BGRFC.
    I have modified the earlier prgm...Can you give me some ideas how to extend this? Thanks!
    *&  Include           ZBGRFC_INBOUND_TEST
    Report: ZBGRFC_INBOUND_TEST.
    DATA: l_dest     TYPE REF TO if_bgrfc_destination_inbound,
          l_unit     TYPE REF TO if_trfc_unit_inbound,
          l_inb_dest TYPE bgrfc_main_i_dst,
          lv_matid TYPE /sapapo/matid,
          lv_matnr TYPE /sapapo/matnr,
          lv_maktx type /SAPAPO/MAKTX,
          lv_matid1 TYPE /sapapo/matid,
          lv_matnr1 TYPE /sapapo/matnr,
          lv_maktx1 type /SAPAPO/MAKTX,
          lv_langu1  TYPE LANGU,
          lv_langu  TYPE LANGU.
    data: lt_product type  STANDARD TABLE OF ZUPDATE,
          ls_product type ZUPDATE.
    lv_matid = '125'.
    lv_langu = 'E'.
    lv_maktx = 'Materia3'.
    **--Get the inbound destination for BGRFC.
      IF l_inb_dest IS INITIAL.
          SELECT SINGLE * FROM bgrfc_main_i_dst INTO l_inb_dest.
        ENDIF.
        l_dest = cl_bgrfc_destination_inbound=>create( l_inb_dest-destination ).
        l_unit = l_dest->create_trfc_unit( ).
    CALL FUNCTION 'Z_TEST' IN BACKGROUND UNIT l_unit
      EXPORTING
        iv_matid = lv_matid
        iv_maktx = lv_maktx
        iv_langu = lv_langu .
    select * from zupdate into corresponding fields OF TABLE lt_product.
    if sy-subrc <> 0.
      write 'no records added'.
    else.
      loop at lt_product into ls_product.
        write: / ls_product-MATID,
                 ls_product-MAKTX.
      endloop.
    endif.
    Edited by: ka reddy on Sep 24, 2009 5:16 PM

  • Help with error on procedure

    Error is
    ORA-06550: line 1, column 71:
    PLS-00103: Encountered the symbol ">" when expecting one of the following:
    . ( ) , * @ % & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    ORA-06550: line 1, column 71:
    PLS-00103: Encountered the symbol ">" when expecting one of the following:
    . ( ) , * @ % & = - + < / > at in is mod remainder not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    The problem is I don't have < or > in my procedure. The error shows when I call procedure from c# using OleDb provider. Any help with this. The procedure works fine from sql developer.

    Hi Marcus ,
    I did the same thing on my database based on the script you had given.
    Please go through it.
    SQL> create table location(location_number number, location_id number, usage_id number);
    Table created.
    SQL> insert into location values(10,20,30);
    1 row created.
    SQL> insert into location values(11,21,31);
    1 row created.
    SQL> create table usage( usage_number number, usage_id number);
    Table created.
    SQL> insert into usage values(50,30);
    1 row created.
    SQL> insert into usage values(60,40);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> create or replace
    PROCEDURE P_GET_ALL(
    p_place in number,
    2 p_location out number,
    3 4 p_usage out number)
    5 6 is
    begin
    7 select loc.location_number into p_location from location loc where
    8
    loc.location_id=p_place;
    select us.usage_number into p_usage from usage us where us.usage_id=(select
    loc.usage_id from location loc where loc.location_id=p_place);
    end; 9 10 11 12 13 14
    15 /
    Procedure created.
    Hope it would help you. :)
    Thanks,
    Balaji K.

  • Help with Updates

    My son has a Droid Inc2 and has had multiple problems with updates. They always happen overnight and he gets a message telling him to do a battery pull to avoid further messages regarding the update. Each time we eventually have to do a hard reset so that we can restore the service to the phone. This has been happening for quite sometime now starting back in early August.
    The current software running is 3.02.605.1. My wife messaged a VZW Support Rep on Twitter about it and was told it was an old software version and to keep trying to pull the update. We have stopped trying since having to do a reset this weekend. This is really aggravating and I need to know what we should do. Right now if you check for software update it acts like it's checking but then does nothing more. Then in a couple days the phone will try to update overnight.
    Someone please tell me what needs to be done. I have looked thru the oter posts and couldn't find what I needed and got tired of looking at all the pages of posts regarding the updates.
    Thx!

    AntonioC_VZW wrote:
    Hi 2tonpickup,
    I understand your concerns regarding your son's phone. We also value your time and have different processes in place to troubleshoot any issues with your phones. Please keep in mind that this is a peer to peer forum and while our Social Media Team monitors these forums the best way to get assistance troubleshooting a device is to call us at 800-922-0204 from a different phone and have the faulty device fully charged and available when calling.
    Your device includes a one year manufacturer's warranty and we'll be happy to replace it with a Certified Like New unit of the same model if we are unable to resolve your concerns and phone is under warranty. Please visit this LINK for replacement process details.
    To the original poster: Please keep in mind that the Verizon employees are moderators, meaning that they mostly make sure we abide by the rules and regulations of the forums. While they do chime in occationally to help, your best bet is really to call tech support first or to go into a Verizon store.

  • Help with Update failure please

    I have Adobe Photoshop CC running on win 7 64 bit. When doing the latest batch of updates one keeps failing with the error message "Adobe CSXS Infrastructure 4 Installation Failed Error Code U44M1P7" Can anyone help with this?

    Thanks Eshant
    I had since  been researching this on the web and it seems it is a very
    common fault which has not always been fixed by the full re-install
    advocated by Adobe in the link you kindly provided. I therefore decided
    to keep trying for a couple of days before resorting to such a drastic
    solution.
    After several failures to get CSXS Infrastructure 4 to install, both via
    the CC Desktop App and from the "Help" menu within Photoshop CC, I had
    one more try this morning and this time it seems to have installed
    without a hitch. I have no idea why, as I have made no system changes,
    but for now I do seem to have solved the problem as my installation of
    Photoshop CC is now reporting that it is fully up to date.
    Thanks for your response.
    Pixellated

  • Help with updating the grid(CONNECT 4)

    Hi, this a small portion of my connect 4 game program. I have a problem with updating the grid. During the game, whenever I enter a column number for the first time, the program works properly. But when i try to give the same column for the second time, the chip falls in the same row instead of going to the second row. Can anybody help me write the method that will do this.
    This is the method that switches the chip's value(By the way discard the variable 'turn' because that works properly, it is used in another method):
        //Method 2: Updates the matrix
        public static void UpdateMatrix (char location, char turn)
            c.println (location);
            switch (location)
                case '1':
                    matrix [5] [0] = turn;
                    break;
                case '2':
                    matrix [5] [1] = turn;
                    break;
                case '3':
                    matrix [5] [2] = turn;
                    break;
                case '4':
                    matrix [5] [3] = turn;
                    break;
                case '5':
                    matrix [5] [4] = turn;
                    break;
                case '6':
                    matrix [5] [5] = turn;
                    break;
                case '7':
                    matrix [5] [6] = turn;
                    break;
        } //End Method 2Can anybody describe me how to write a method or write a method that will tell the computer to assign the chip to the next row. You an edit my method if u want to. THANX A LOT!!!

    HERE IS THE METHODS SO FAR!
        //Method 3: Checks if assigned place for the chip has a chip there already
        public static void emptyspot (int column, int row)
            for (row = 5 ; row >= 0 ; row--)
                for (column = 0 ; column <= 6 ; column++)
                    if (matrix [row] [column] == 'X' || matrix [row] [column] == 'O')
                        row--;
        }I AM GETTING AN ERROR!!! AT THE BOTTOM OF MY PROGRAM! SOMEBODY HELP!
    Message was edited by:
    Taufiq

  • I NEED SOME HELP WITH UPDATING MY IPOD TOUCH PLEASE

    i need some help with my ipod the version is 3.1.3 and every time I'm trying to update it says it can not be restored then it says unknown error so i need some help updating my ipod to version 4.2

    If you mean you're trying to update your ios go to settings/general/software update. then you should see the latest ios just tap it and it will automatically update your ipod. If you're trying to restore your ipod (as it's not quite clear in your query) try doing it through itunes instead of on the device itself

  • Help with update to 2.3

    can anyone help with my x10 im unable to update to android 2.3 my phone just says you already have the latest softwere!!!! its driving me insane...

    Unfortunately that generally means that the network/country that your handset was manufactured for has not yet passed approval on the 2.3 update. With this being the case there is little that I can advise you do to resolve this until acceptance has been passed on this update.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

Maybe you are looking for

  • How can I set up a mail alias in Mountain Lion Server?

    Hi, newbie to Mountain Lion Server here. I've set up mail for domain a.com and a virtual domain b.com User a receives mail just fine at [email protected] and [email protected], now I wanted to receive mail for [email protected] as an alias, which I u

  • JSSE response

    Hi, I am able to run that piece of code inside my IDE, it is an https request that requires client certificate, i have followed the JSSE instructions on using SSLSocket . i created a keystore which contains the self signed server certificate and refe

  • Cd to macbook pro, macbook pro to ipad

    I have bought all the seasons of lost but, most of my time I spend it on the road and flying so that why i use the ipad... so the question is how do i dowload all the lost cd`s( originals) to my mac so i can watch them on my ipad? after download them

  • Class Selector Question

    Hello, Is there a way in Dreamweaver to apply a class to an item like this for example: .paragraphstyle.orange The class in code view would look like: <class="paragraphstyle orange"> The only way I can find to apply a class like this, is to manually

  • Problems with iPhoto '08 to iPhoto '11 Conversion

    We are in the process of bringing up a new iMac and are having difficulty opening our old iPhoto library.  We've been running iPhoto '08 (version 7.1.5) on a vintage 2006 iMac.  The iPhoto '08 photo library has approximately 35,000 photos in 1000+ ev