Combine checked item and update column

Hi all,
need to design a screen that allow user to update column (code) and also pick which statement to display for the next stage. My thought was to create a checkitem and LOV display. Once user has checked the box , the process should update the code first then select the checked item into a new table. But it appears to me I can get checked item cocept to work and inserted it to a new table but fail to address the LOV update. Can you help ?
table: sample1, display as the following
seq     code     comments amt
1     T     test1     30
2     A     test2     20
3     T     test3     80
4     T     test4     20
user action: picked seq 1,2  and update code from A to T for seq2
==> process will insert the selected statement to result table
table:result
seq     code     comments amt
1     T     test1     30
2     T     test2     20mushar

I am sorry . Just realized I posted this to a wrong forum.

Similar Messages

  • Forwarding agreement can not release; Check items and calculation sheets.

    Hi Experts,
    While releasing status of a forwarding agreement to getting error message "Agreement can not release; Check items and calculation sheets''.
    Please refer the screen shot attached and suggest.
    Thanks & Regards,
    Shaktiprasad Dash

    Hello Shakthi,
    Firstly, have you maintained TCCS in your forwarding agreement?
    You migt have  inserted new item. However, there are no TCCS maintinaed in that agreement item.
    In such cases those error messages are displayed. Restricting you from releasing the agreement.
    Other cases:
    is your TCCS local?
    If your TCCS is global then ideally the charge usage should be any of the below: "customer", "Customer & service" or "ALL" for Forwarding Agreement to consume it.
    For Local TCCS by defalut charge usage will be set to "Customer".
    If Local, check whether have you missed any mandatory fields like amount, Currency.
    If there are any % charge line, then the refrence number would have been missing or you might be referencing incorrectly.
    For Global TCCS if any of the above is incorrectly maintianed it will not allow you to save the TCCS.
    If you can attach the screenshot of  the TCCS it will be helpful for me to solve your issue.
    Best Regards,
    Dimpu

  • How to combine both ITEM and SCL data

    Hi all,
    I am working in Purchasing.I am having requirement to use both 2LIS_02_ITM which is Item level and 2LIS_02_SCL which is Schedule Line level.
    I created a ODS which includes both the data sources (2LIS_02_ITM & 2LIS_02_SCL) but whenever I am load data to the ODS from both of them I am not able to get values for certain Info Objects like Purchasing Document Number (0OI_EBELN), Item Number (0OI_EBELP) but when I load only from 2LIS_02_SCL I am able to get data for the objects.
    If I load from 2LIS_02_ITM also I am not able to find data.
    Can anyone tell me what is the error.
    Thanks in advance....
    regards,
    Mahi

    Hi,
    I will guide you how to find the issue.
    As you have correct data in PSA you can try simulating update from PSA with debugging switched on.
    From RSMO > Details > Data Package > Right click > Simulate update > Here check Debugging on for Transfer rules and Update rules. This will tell whats happening for the record. where is it being filtered.
    As this is coming in correctly you can rule out any issue with extraction.
    Hope this helps.
    Thanks,
    JituK

  • Oracle apex check box with update column

    hi to all:
    i have report emp.it contain data like eno,ename,sal,record .
    example:eno ename sal record
    100 a 100
    200 b 3000 going on...
    using this column i am making report by using apex and report contain one submit button also.
    1)in this report i am creating dynamic check box depend on eno..see my coding
    declare
    str varchar2(3000);
    begin
    str:='select htmldb_item.CHECKBOX(10,eno,DECODE(record,1,''CHECKED'')) "SELECT" ,eno,ename,sal ,record from emp where 1=1';
    return str;
    end;
    2)in process crated after  submit
    iam created pl/code like ..this code for
    declare
    i number;
    str varchar2(2000);
    emp_id number;
    begin
    FOR i in 1..HTMLDB_APPLICATION.G_F10.count
    LOOP
    IF HTMLDB_APPLICATION.G_F10(i) is not null then
    SELECT htmldb_application.G_F10(i) INTO emp_id from dual;
    --insert into my_log values(emp_id);commit;
    update emp set record=1 where eno=emp_id ;
    commit;
    else if HTMLDB_APPLICATION.G_F10(i) is null then
    update emp set record=0 where eno=emp_id ;
    commit;
    else
    null;
    end if;
    end loop;
    end;
    my requirenent:
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    in process coding--
    eno alway is not null only..
    so i want to do check box with update the record column..like this
    a)if check box checked then -update -record column -1
    b)if check box uncked then -update - record column -0
    pls give solution.
    output i want like this example:
    chebox eno ename sal record
    checked(X) 100 a 300 1
    checked(x) 200 b 300 1
    next time i am trying to make uncheck first row like
    chebox eno ename sal record
    unchecked 100 a 300 0
    checked(x) 200 b 300 1

    I'm not really sure what your problem is but if you are trying to update/save data when a checkbox is checked I would use javascript to call an application process to do the update/save.
    /Daniel

  • Workflow for creating new item and updating list

    I believe that the answer is easy, but because I am already having trouble with this issue for few days I am getting blind to see the solution:)
    I have two lists and a workflow running behind. Basically when new item is created in first list, workflow makes a copy in second list. Because this workflow works only when new item is added, I have a problem when item is updated, items in second list just
    disappear - are empty. I believe that I have a problem with workflow, because somehow I should also have in to update list in case of change.
    Please help.
    Thanks in advance

    Hi,
    According to your description, my understanding is that the workflow you created was not started when an item was updated in first list.
    Did you check the option “Start workflow automatically when an item is changed” in SharePoint Designer?
    Did you sign in as system accout?
    Please use another list to check whether this issue occurs.
    If this issue still occurs, please provide screenshot about the details of the workflow in order to find out what goes wrong.
    Thanks,
    Dean Wang

  • Checking item and line service when saving PO and Contract

    Hello people,
    my requirement is:
    When saving the Purchase Order or the Contract, checking the material group of the item and their line services. They must me equal, otherwise an error message must be raised.
    Do you know what User Exit ou BADI must be used?
    Thanks a lot!

    Hi,
    please try to implement additional checks via  badi ME_PROCESS_PO_CUST and / or EXIT_SAPLMLSP_030.
    Regards,
    Edit

  • How to Reject Quotation line item and update New line item

    Hi all,
    I have a doubt in Quotation Rejection,Here it goes....
    For VC implementation,We are Creating a quotation with Dummy Material,and after Creating Material Masters we have to update the Newly created material back in Quotation for same quotation number and after this the dummy material i.e the previous line item should be rejected with reason as a duplicate(reason code 23)..
    So Pls help me in Rejecting the line item of quotation.how this is done.
    Reply soon.
    Thanks in Advance,
    Balaji Meda

    Hi,
    The requirement is also to Update the Quotation with the newly created material.
    So we need a Bapi or a function module which does 2 things:
    1. Reject the previous Line item with a reason code.
    2. Update the Quoation with the new material and insert a a new line item.
    Thanks,
    Balaji.

  • BAPI_SALESORDER_CHANGE [delete line item and update ]

    LOOP AT itab_ch .
      *IF itab_ch-itm_number = selpos1 AND  delflag = 'X'.*
    *     Delete Line items
        s_order_header_inx-updateflag = 'U'.
        i_order_item_in-itm_number = itab_ch-itm_number.
       schedule_lines-itm_number = itab_ch-itm_number.
        schedule_lines-sched_line = zsd_tab_z-etenr.
        schedule_lines-req_qty = itab_ch-target_qty.
        i_order_item_inx-updateflag = 'D'.
        i_order_item_inx-itm_number = itab_ch-itm_number.
      schedule_linesX-itm_number = itab_ch-itm_number.
      schedule_linesx-sched_line = zsd_tab_z-etenr.
      schedule_linesx-req_qty = 'X'.
      APPEND schedule_lines.
      APPEND schedule_linesx.
        APPEND: i_order_item_in, i_order_item_inx.
    ELSE.
        if itab_ch-item_categ = 'ZFRS'.
    s_order_header_inx-updateflag = 'U'.
        i_order_item_in-itm_number = itab_ch-itm_number.
        i_order_item_in-target_qty =  itab_ch-target_qty.
    schedule_lines-itm_number = itab_ch-itm_number.
    schedule_lines-sched_line = zsd_tab_z-etenr.
        schedule_lines-req_qty = itab_ch-target_qty.
        i_order_item_inx-updateflag = 'U'.
        i_order_item_inx-itm_number = itab_ch-itm_number.
         i_order_item_inx-target_qty =  itab_ch-target_qty.
    schedule_linesX-itm_number = itab_ch-itm_number.
    schedule_linesx-sched_line = zsd_tab_z-etenr.
      schedule_linesx-req_qty = 'X'.
      APPEND schedule_lines.
      APPEND schedule_linesx.
        APPEND: i_order_item_in, i_order_item_inx.
        ENDIF.
        ENDIF.
          ENDLOOP.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = vbap-vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
       schedule_lines     = schedule_lines
       schedule_linesx    = schedule_linesx.
    here line item is delete perfect but when i use  updateflag = 'U'  for other line itme then
    quantity is not modify
    Code Formatted by: Alvaro Tejada Galindo on Dec 26, 2008 10:26 AM

    DATA: s_order_header_in LIKE bapisdh1.
      DATA: s_order_header_inx LIKE bapisdh1x.
      DATA: BEGIN OF i_order_item_in OCCURS 0.
              INCLUDE STRUCTURE bapisditm.
      DATA: END   OF i_order_item_in.
      DATA: BEGIN OF i_order_item_inx OCCURS 0.
              INCLUDE STRUCTURE bapisditmx.
      DATA: END   OF i_order_item_inx.
      DATA: BEGIN OF it_return OCCURS 0.
              INCLUDE STRUCTURE bapiret2.
      DATA: END OF it_return.
      DATA: BEGIN OF i_sched OCCURS 10.
      INCLUDE STRUCTURE bapischdl.
      DATA: END OF i_sched.
      DATA: BEGIN OF i_schedx OCCURS 10.
      INCLUDE STRUCTURE bapischdlx.
      DATA: END OF i_schedx.
    LOOP AT itab_ch .
    s_order_header_inx-updateflag = 'U'.
    IF itab_ch-itm_number = selpos1 AND  delflag = 'X'.
    Delete Line items
        i_order_item_in-itm_number = itab_ch-itm_number.
        i_order_item_in-TARGET_QTY = itab_ch-target_qty.
        i_order_item_inx-updateflag = 'D'.
        i_order_item_inx-itm_number = itab_ch-itm_number.
        i_order_item_inx-TARGET_QTY  = 'X'.
        APPEND: i_order_item_in, i_order_item_inx.
      Fill schedule line flags
      i_sched-itm_number = itab_ch-itm_number.
      i_sched-sched_line = '0001'.
      APPEND i_sched.
      i_schedx-itm_number  = itab_ch-itm_number.
      i_schedx-sched_line  = '0001'.
      i_schedx-updateflag  = 'D'.
      APPEND i_schedx.
    ELSE.
    *****UPDATE TIEM.
      if itab_ch-item_categ = 'ZFRS' .
      Fill schedule lines
      i_sched-itm_number = itab_ch-itm_number.
      i_sched-sched_line = '0001'.
      i_sched-req_qty    = itemdiv.
      APPEND i_sched.
      Fill schedule line flags
      i_schedx-itm_number  = itab_ch-itm_number.
      i_schedx-sched_line  = '0001'.
      i_schedx-updateflag  = 'U'.
      i_schedx-req_qty     = 'X'.
      APPEND i_schedx.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF errorflag IS INITIAL.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument     = vbap-vbeln
        order_header_in   = s_order_header_in
        order_header_inx  = s_order_header_inx
        behave_when_error = 'P'
      TABLES
        return            = it_return
        order_item_in     = i_order_item_in
        order_item_inx    = i_order_item_inx
       schedule_lines     = i_sched
       schedule_linesx    = i_schedx.
      ENDIF.
      LOOP AT it_return.
    READ TABLE it_return WITH KEY NUMBER = '233'.
          IF sy-subrc = 0.
         CONCATENATE it_return-message  INTO zmsg.
          MESSAGE i000(38) WITH it_return-message .
          EXIT.
           ENDIF.
    ENDLOOP.

  • Sum child list items and update parent total using javascript

    I have a SharePoint 2010 Parent/Child list setup using a lookup field to join both the lists, this is working well.
    The Parent list contains requisition requests and the child list contains related item details. Each of the related child list items has a 'Line Item Total' field. I need to aggregate the Line Item Totals in the child list and place the result in a 'Requisition
    Total' in the parent. So for any given parent record the sum of it's related child 'Line Item Totals' is reflected in the 'Requisition' total in the parent row.
    I am struggling with the JavaScript code below. I am trying to aggregate Line Item Totals for a given Requisition#? Could someone please review and advise?
    <script language="javascript" src="/Purchasing/Documents/jquery-1.8.2.js" type="text/javascript"></script>
    <script language="javascript" src="/Purchasing/Documents/jquery.SPServices-2014.01.min.js" type="text/javascript"></script>
    <script>
    $(document).ready(function()
     $('select[title=Requisition#]').children().attr('disabled',true);
     $("input[title='Old Amount']").attr("readonly","true").css('background-color','#F6F6F6');
       // Retrieve the name of the selected parent item.
       var strParent=$("select[title$='Requisition#'] :selected").text(); 
     splist li = web.lists["ReqDetails"]; // This is the child list
        spquery q = new spquery();
        q.Query= "<Where>" +
         "<And>" +
          "<Neq>" +
           "<FieldRef Name='ID'/><Value Type='Number'>0</Value>" +
          "</Neq>" +
          "<eq>" +
           "<FieldRef Name='LinkID'/><Value Type='Number'>ReqID</Value>" +
          "</eq>" +
         "<And>" +
        "</Where>" +
        "<OrderBy>" +
         "<FieldRef Name='LineItemTotal'/>" +
        "</OrderBy>"
        q.ViewFields = string.Concat("<FieldRef Name='LineItemTotal' />");
        q.ViewFieldsOnly = true; // Fetch only the data that we need
        splistitemcollection items = li.getitems(q);
        foreach(SPListItem item in items)
        sum += parseInt(item["LineItemTotal"], 10);
      alert(sum)
     </script>
    Rick Rofe

    I do something similar for a PO Header/PO Detail set of lists. I use SPServices to pull the data.
    I put this code in the child edit page - so any time any child is edited, the parent is updated. I get all children records and total them up (except for the item I'm displaying at the current time. I add that value in directly from the form itself.
    <script type="text/javascript" src="/Javascript/JQuery/JQueryMin-1.11.1.js"></script>
    <script src="/Javascript/JQuery/jquery.SPServices-2014.01.min.js"></script>
    <script>var poNumber = '';
    var poDetailID = '';
    $(document).ready(function() { var queryStringVals = $().SPServices.SPGetQueryString();
    poNumber = queryStringVals["PO"];
    poDetailID = queryStringVals["ID"];
    function PreSaveAction() {
    // update the PO header with the total of all items + shipping + adjustments
    var query = "<Query><Where><And><Eq><FieldRef Name='Title' /><Value Type='Text'>" + poNumber + "</Value></Eq><Neq><FieldRef Name='ID' /><Value Type='Counter'>" + poDetailID + "</Value></Neq></And></Where></Query>";
    var viewFields = '<ViewFields><FieldRef Name="Total" />';
    viewFields += '</ViewFields>';
    var poTotal = 0.00;
    $().SPServices({
    operation: "GetListItems",
    async: false,
    listName: "PO Details",
    webURL: "/po",
    CAMLViewFields: viewFields,
    CAMLQuery: query,
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    if($(this).attr("ows_Total")) {
    //alert($(this).attr("ows_Total"));
    poTotal += Number(parseFloat($(this).attr("ows_Total").split(";#")[1],2).toFixed(2));
    // add in this changed line (we skipped it above)
    var qty = $('input[title="Quantity Ordered"]').val();
    var price = $('input[title="Price"]').val().replace(',','');
    var extend = Number(qty)*Number(price);
    poTotal += extend;
    //alert(poTotal);
    // update the PO Header
    $().SPServices({
    operation: "UpdateListItems",
    async: false,
    listName: "Purchase Orders",
    webURL: "/po",
    ID: poID,
    valuepairs: [["Total", poTotal]],
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    return true;
    Robin

  • How can I sync only checked items and not the whole album?

      I only want say three songs out of an album but it syncs the whole thing.  How do I change that?

    Don't create a playlist for three songs.
    Either uncheck those songs or a much better way is to create a playlist (or a few) of songs you want on the iPod the sync only those playlists.
    To add/delete from the iPod, simply add/delete from those playlists.

  • Update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow

    Hi,
    We have a requirement to update a column value once the item has been approved.
    Following settings have been made in the publishing articles list:
    Require content approval for submitted items : yes
    Create major and minor (draft) versions
    Who should see draft items in this document library? :Only users who can edit items
    Require documents to be checked out before they can be edited? : yes
    I have createdatu a Sharepoint 2013 workflow to check if Approval sts of current item = 0 i.e. Approved , then check out and update the item and finally checkin the item. Everything works fine till this point except that the minor version of the item is
    checked in. Due to this the updated columns are not published to others.
    Also, I created a Sharepoint 2010 workflow to SET CONTENT APPROVAL = APPROVED and started this workflow from my list workflow above, but the item does not get checked-in and always shows "In Progress" status with comment "The item is currently
    locked for editing. Waiting for item to be checked in or for the lock to be released.".
    Please let me know where I am missing out so that once the item is approved, column value gets updated and current item is still in Approved status.
    Thanks

    Hi,
    According to your post, my understanding is that you want to update Column value after current item is Approved and then publish major version using Sharepoint 2013 designer workflow.
    You will get into this kind of Catch-22 situation trying to set the Content Approval Status in SharePoint Designer workflow:
    - You must check out the document before you can change the Content Approval Status
             - You can't change the Content Approval Status once the document in checked out
    Since you set the Require documents to be checked out before they can be edited=Yes, you will need to check out the document when run the workflow on the item. But you cannot approve a document when it is checked
    out. So the logic in workflow conflicts.
    As a workaround, you can use the Start Another Workflow action to start the normal Approval workflow on the document.  The built-in Approval workflow can work with a document that’s not checked out.
    The designer approval workflow also can work with a document that’s not checked out.
    You can create two workflow using SharePoint Designer 2013.
    First, create a SharePoint 2010 platform workflow.
    Then, create a SharePoint 2013 platform workflow.
    Then when the SharePoint 2013 platform workflow start, it will start the SharePoint 2010 platform workflow to set content approval status, then the SharePoint 2013 platform workflow will update current item value.
    More information:
    SharePoint Designer Workflow Content Approval Issue
    SharePoint 2010 Approval Workflow with Content Approval
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SSIS and Update-Insert(Upsert) based on a SQL Server Result Set

    So on a weekly basis, I have to sweep a sub-set of our Member data. So my query is built to produce this result set. I then have to take that result set and compare it to a data table which contains all that same information that I have provided to a 3rd
    party vendor. So I need to take into account the following scenarios...
    Obviously, if the Member is new, then I have to Insert its row to what we'll call table 3rdPartyMember and create a row out on a 3rdPartyMemberAuditTrail Table
    Individually, I also have to manage if any of the following data fields have changed: Name, Birth Date, Addressing Information, Member Plan, Member Termination...and by Individually what I mean is that if the Last Name has changed, then update its row in
    3rdPartyMember and Insert a row to 3rdPartyMemberAuditTrail indicating "Last Name Change"...and similarly if Address Line 1 has changed..."Address Line 1 Change"
    So I guess my question is this. Should this be done in one whole Stored Procedure invoked by my SSIS Package or should it be done in pieces?
    Create the Temporary Table to house our weekly Member subset extract and result set
    Determine if the row exists on 3rdPartyMember Table and if it does not, Insert it
    If the row exists, determine if there is a First Name Change...Last Name Change...BirthDate change...Address Line 1 change...etc... If there is a change, Update 3rdPartyMember Table and also Insert a row to 3rdPartyMemberAuditTrail indicating the change
    Based on all this, I'm just not sure the right way to approach this...meaning should we create one big Stored Procedure to handle everything or each individual data point in my SSIS as an UpSert based on its lookup. I am new to the SSIS World and don't really
    know what the generally accepted practice is per se of creating and running an SSIS Package with multiple data point update steps or doing so in one big Stored Procedure.
    Also....if anyone know of some good YouTubes or web sites that would instruct me as to how to go about doing this, I'd GREATLY appreciate it.
    Thanks for your review and am hopeful for a reply.

    In my opinion using SSIS is quite a pain for Upsert-functionality, especially with your requirement of maintaining an audit trail.  With Google you can probably find 20 different variants all of which are quite complex.  I would go for the procedure
    version just to keep my sanity.  It is so easy to test and verify.
    I have been using an excellent Uppsert add on from Pragmatic Works Task Factory, but that would not help with the audit trail, though...
    http://pragmaticworks.com/Products/Features?Feature=UpsertDestination(BatchUpdateOrInsert)
    I recently discovered the CHECKSUM-function in Transact-SQL, it might simplify your code and certainly improve performance, if you have lot's of rows.
    Here is an example:
    create table member
    (id int primary key,
    name char(10) not null,
    address char(20) not null,
    checks int not null);
    create table member3p
    (id int primary key,
    name char(10) not null,
    address char(20) not null,
    checks int not null);
    create index xmember3p on member3p(id,checks);
    --create member3p_audit (...);
    insert into member values(1,'tom','new york',0);
    insert into member values(2,'mary','dallas',0);
    insert into member values(3,'marvin','durham',0);
    update member
    set checks = checksum(name,address);
    insert into member3p values(1,'tom','new york',0);
    insert into member3p values(2,'mary','chicago',0);
    update member3p
    set checks = checksum(name,address);
    insert into member3p
    select *
    from member m
    where not exists
    ( select *
    from member3p m3p
    where m3p.id = m.id );
    -- insert into audit...
    select m.*,
    case
    when m.name <> m3p1.name then 'x'
    else ' '
    end as name_change,
    case
    when m.address <> m3p1.address then 'x'
    else ' '
    end as adr_change
    from member m,
    member3p m3p1
    where m.id = m3p1.id and
    exists
    ( select *
    from member3p m3p2
    where m3p2.id = m.id and
    m3p2.checks <> m.checks );
    -- loop and update member3p and member_audit-- It's OK to update columns that were not changedupdate member3p set name = @new_name, address = @new_address;

  • Concatenate date time and update SQL datetime field

    I have a form that captures date and time in 2 separate fields data and time.
    I need to combine these fileds and UPDATE a SQL database (datetime field)
    The date field is passed like this  DSDATE={ts '2013-11-18 00:00:00'}
    The time field is passed like this   TIME_IN1=14:05
    How do I concatenate DSDATE AND TIME_IN1 so that I can insert like this 2013-11-18 14:05:00.000 ?

    The easiest way may be the best. You judge.
    <cfset DSDATE = parsedatetime('2013-11-18')>
    <cfset  TIME_IN1="14:05">
    <cfset yr = year(DSDATE)>
    <cfset mnth = month(DSDATE)>
    <cfset d = day(DSDATE)>
    <cfset hr = listGetAt(TIME_IN1,1,":")>
    <cfset mn = listGetAt(TIME_IN1,2,":")>
    <cfset datetime=createdatetime(yr,mnth,d,hr,mn,0)>
    <cfoutput>#datetime#</cfoutput>

  • How to combine Area chart and Line chart?

    Hi,
    I have to display Area chart with the Line chart in one graph.
    How can i do that,
    Please suggest.

    Pretty easy, just add series to your chart
    http://forums.arcgis.com/threads/73636-How-to-combine-line-chart-and-stacked-column-chart
    Dany

  • Check two columns and update other table

    HI ,
    I have a table called trackCenterline .Below is the table.
    What i want to do is If the segmentSequenceID is 1 it should pick the corresponding SegmentID i.e 10001 and Check for the same segment id in other table called TrackSegment which is below.  and pick the BeginMilepost of that segmentID and Update That
    Milepost in a new table .At end SegmentSequenceID number it should pick ENDMilepost and update
    TrackCenterline table.
    TrackSegment table
    In the below table for 10001 SegmentID it should pick BeginMilepost. For end Number of SegmentSequenceID in above table ID ends at 121 for that end sequenceID It should refer TrackSegment table below and pick EndMilepost and should be updated in another
    table Milepost column.
    after that a new segment starts with new sequence .and so on ...
    bhavana

    Hi Deepa_Deepu,
    According to your description, since the issue regards T-SQL. I will help you move the question in the T-SQL forums at
    http://social.technet.microsoft.com/Forums/en-US/home?forum=transactsql. It is appropriate and more experts will assist you.
    When you want to check two columns from two tables then return some results and update the third table. I recommend you use join function and combine two tables, then use update select from statement for modifying the Mailpost table. You can refer to the
    following T-SQL Statement.
    -----using join to connect to two tables
    select TrackCenterline.FeatureId,TrackCenterline.SegmentId,
    TrackCenterline.SegmentSequenceId,TrackSegment.BeginMilepost,TrackSegment.EndMilepost
    from dbo.TrackCenterline join dbo.TrackSegment
    on TrackCenterline.SegmentId=TrackSegment.SegmentId
    order by TrackCenterline.SegmentId, TrackCenterline.SegmentSequenceId
    ---the result shows as following.
    FeatureId SegmentId SegmentSequenceId BeginMilepost EndMilepost
    AMK100011 10001 1 61.0000 61.3740
    AMK100012 10001 2 61.0000 61.3740
    AMK100013 10001 3 61.0000 61.3740
    AMK1000121 10001 121 61.0000 61.3740
    AMK100021 10002 1 61.1260 61.7240
    AMK100023 10002 3 61.1260 61.7240
    AMK100033 10003 3 61.3740 62.9530
    -----Then you can use update select from statement to modify the Mailpost table, Or you can post the table structure of Mailpost
    And for more information, you can review the following article about update statement.
    http://www.techonthenet.com/sql/update.php
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • (.asc) Code Hinting in Flash Professional CS5.5 || Flash Builder 4.5

    Problem:  I would like to enable code hinting and highlighting in either Flash Professional or Flash Builder when developing an Actionscript Communications File (.asc). Steps Taken: Searched Google with limited success, most signs all pointed to FMSG

  • How to insert variable value using select statement - Oracle function

    Hi, I have a function which inserts record on basis of some condition INSERT INTO Case Case_ID, Case_Status, Closure_Code, Closure_Date SELECT newCaseID, caseStatus, Closure_Code, Closure_Date, FROM Case WHERE Case_ID = caseID Now i want new casestat

  • Clear Desktop on open

    I am creating a Flash menu that will launch from a CD, it is 800x600. When it opens I want the screen desktop to be blank, a color is fine but I don't want all the icons. Anyone have any idea how to do this? Thanks Dan

  • How can i download LIveCycle ES4manually given the Serial number?

    The link to download livecycle ES4 is showing "not applicable" under my subscriptions, and when i try to download the "English" version as directed i get an error message.

  • Ical delete duplicates

    Is there an easy way to delete duplicates in iCal?  I have a bunch of doubles they may have come from an old back up or some where I dont know but either way I would love to get rid of them.  thanks for your time Schu