A way to automatically terminate contract header with no active lines???

Hello kind friends,
When we transfer an Install Base Instance with a contract attached, the line on the contract is terminated and a new contract is created for the new item instance. However, we now have contracts that have had all their lines terminated, but the header remains active, so if we see this contract, lets say in SR's, it still shows as active even though it doesn't have any active lines.
Is there a way to get the header to terminate automatically, either through a concurrent request or another means, so we don't need to go through and manually terminate each contract with no valid lines? Please and thank you!

This is intended functionality. Here is the reason
1. One contract line can cover many sublines and one contract can have many lines.
When you return a product, only termination date and trn_code are populated.Status still remains as active. When you run the contract status change program, it changes the status to TERMINATED from ACTIVE because date_terminated and trn_code are populated. But if there are more than one product is covered, non-returned products are still active.
You may argue that the the subline(s) is terminated hence the contract line should automatically terminate. But functionality should also support the addition of product as a replacement for the product returned, for which oracle creates a new subline under the same contract line when returned. Or some customers (oracle customers) want to add subline manually. Hence you have to manage this from the from end.
If you want to utilize the contract status change program, just do this:
Create a new concurrent program (custom) that checks the date_terminated and trn_code in the covered line or lines. If all these lines have these two columns populated and have termination_date <=sysdate, then update the contract line for the same two columns trn_code and date_terminated).
Use the same logic to popualte the same two columns at the contract header level if all the contract lines and covered lines have these two columns populated.
Make a request set with this program and contract status change program.
Now contract status change program will set the status of contract lines and header as terminated.
But please Test, Test Test!
Thanks
Nagamohan

Similar Messages

  • Creating PS Network header with one activity

    I need to create to a projekt the network header with one activity. so I want top proceed the following coding:
         CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
          CALL FUNCTION 'BAPI_BUS2002_CREATE'
            EXPORTING
              i_network = gs_network
            TABLES
              et_return = et_return.
          CALL FUNCTION 'BAPI_PS_PRECOMMIT'
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            IMPORTING
              return = es_return.
            CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
            CALL FUNCTION 'BAPI_BUS2002_ACT_CREATE_MULTI'
              EXPORTING
                i_number    = ls_number
              TABLES
                it_activity = gt_activity.
            CALL FUNCTION 'BAPI_PS_PRECOMMIT'
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              IMPORTING
                return = es_return.
    But I get an Runtime Error with "MESSAGE_TYPE_X" because the PRECOMMIT was not successful.
    Has anyone an idea how to handle that ??
    thx a lot
    Edited by: Rob Burbank on Nov 18, 2009 9:42 AM

    DATA: lt_return   TYPE TABLE OF bapiret2,
            l_wa_return TYPE bapiret2.
      CALL FUNCTION 'BAPI_PS_INITIALIZATION'
      CALL FUNCTION 'BAPI_BUS2002_CREATE'
        EXPORTING
          i_network = pi_wa_aufnr
        TABLES
          et_return = lt_return.
      READ TABLE lt_return WITH KEY type = 'S'
                           TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        REFRESH lt_return.
        CALL FUNCTION 'BAPI_PS_PRECOMMIT'
          TABLES
            et_return = lt_return.
        READ TABLE lt_return WITH KEY type = 'S'
                           TRANSPORTING NO FIELDS.
        IF sy-subrc = 0.
          READ TABLE lt_return INTO l_wa_return INDEX 3.
          pc_aufnr_new = l_wa_return-message_v2.
        ENDIF.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          IMPORTING
            return = l_wa_return.
      ENDIF.
    this is the sample code to create network & to get the network number created

  • Is there a way to automatically build measure object with SUM(col_name) from INT DB column?

    Hello,
    I have a workflow that needs to be repeated every month and I'd like to optimize it.
    1. DB table in SQL Server 2008 looks something like this:
    TABLE [CONTRACTS_GCO_LVL2](
      [CONTRACTS_BP_ID] [varchar](50),
      [Flag 1] [int] ,
      [Flag 2] [int] ,
      [Flag 3] [int] ,
    2. I bring this table into my BOE IDT 4.0.3 and drag it into object folder. All INT columns become dimensions. This is not what I want. These are 1/0 flags for me and I need them to be measures with SUM aggregation.
    3. I select all these INT sourced dimensios and right click on them with "Turn into measure with aggregation function - SUM"
    The problem is that step #3 is unbelievably slow. I need to spend hours doing this as I have thousands of these flags. I end up selecting all dimensions from one screen and converting them at the same time. This takes 4-5 minutes. IDT runs on a Win 2008 R2 Enterprise server with 32 GB RAM and 4 CPUs.
    In Universe Designer there used to be external strategies that allowed some customization of how the objects get automatically created from DB tables. I know there are no strategies in r4 (External strategy for tables)  but is there anything else to make this process faster?
    Thank you all!
    Natasa

    Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.

  • I want to effect a change for about 100 users - basically I want a command-line solution in CentOS. Is there a reasonable way to automatically associate .ica files with /usr/lib/ICAClient/wfica so we don't get prompted by Firefox? TIA.

    I would like to write a script to do this for about a 100 CentOS users. I don't want each of them changing preferences on their browser.

    Hello Oddsbodkin,
    It looks like the creator of Netflix Desktop has a site for the project here:
    https://answers.launchpad.net/netflix-desktop/
    I would try posting your question there and see if anyone else has encountered this error and has a solution.
    Cheers, Patrick

  • How to automatically build a table with 2 alternated font colors for the lines ?

    Hi,
    I'm looking for a way to automatically build a table with alternate background color and alternate font color for the lines.
    I have this particular project (a list of companies of an industrial area) and it is updated twice a year :
    I managed to set an automated alternate background color of the lines so this works well (white/blue/white/blue...)
    But the font color does not automatically alternates... and I do not know how to set this up...
    All the companies are ordered alphabetically so when I have to insert or delete one, the whole text of the table under the modified line is messed up. Then I have unreadable white text on white background and blue text on blue background...
    Does anyone have an idea on how to automatically alternate the font color ?
    Thank you.
    Best regards,
    G.

    Hi,
    I know this [JS] code is awful but it works. If  someone wants to correct it …! 
    At the beginning, you have an Excel file. You play a little with it [doing concatenations] to get, after importing it in ID:
    Then, just run the .jsx:
    Done! 

  • 10G redo log switchs with no activity

    We have been testing 8i to 10G migrations and two things I have noticed that are different bwteeen the 2 databases are:
    1) redo log switching occurring even though the database has no users and just sitting there. This is not happeniong in our 8i databases.
    2) trace files of format instance_m001_ and instance_m000_ in ../bdump. Our 8i bdump's normally do not have trc files unless a problem occurs.
    Is it normal for 10G to automatically switch redo logs with no activity and are these .trc files also normal? In general I get nervous with trc files. -quinn

    Still haven't figured out the redo log switches, they seem to be slowing down, but the excess trace files are apparently cuased by a bug and can be fixed with Patch 3432729.

  • Is there a way to create a heading with shading behind the text and thin lines above and below?

    I'm working with InDesign CS6, Windows 7.
    Is there a way, using paragraph rules, to create a heading with shading behind the text and thin lines above and below the text?
    I'd like to create headings that look like these:
    Thank you!

    I have a document where I almost do such, but without the fill. I use a Head Style which Spans Columns for this instance; it allows the haeds to flow and fill the width.
    Paragraph Rules above and below are turned on with plenty of offset.
    I tweaked my setting to accomodate your need - It required only one instance, not above and below, and changing the stroke to a double stroke. 
    It may be necessary to create a custom stroke to modify the proportion of stroke vs fill. There is a difference of thin-thin and  thick-thick, neither of which seemed perfect but might be dependent on the Character height.
    Creating custom strokes is accomplished via the Strokes Panel.

  • I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I would also recommend to write the description into the meta data. This would allow to place a text frame above the image and it is possible to add meta information and file name automatically together with the image, when you place it or even in a prepared template.
    Meta data information can be written easily in Bridge in the Meta File Workspace.

  • Is there a good way to automate changing existing links to external PDFs to instead be to PDF attachments with same names?

    Greetings!
    Can anyone tell me a good way to automate changing a "main" PDF's existing hyperlinks to external PDFs to instead be links to PDF attachments to the main PDF (the attached PDFs to have the same filenames as the external PDFs) ?
    Format of current link in main PDF:
    Go to a page in another document
    File: C:\\path\filename.pdf
    Destination name: P:1
    When link is manually changed to link to a PDF that has been attached to the main PDF:
    Go to a page in another document
    File: PDF attachment
    Page: 1
    Zoom level: Fit page
    The new PDF link does not list the PDF attachment filename in the link.
    The main PDF (the one that has the links that I would like to automatically change) is generated with the hyperlinks to other PDFs from Adobe FrameMaker 11.  In FrameMaker11, we added special marker text "openpage filename.pdf:1" that is "automatically" changed to be hyperlinks to external PDFs when the main PDF is created (postscript file is processed) by Adobe Acrobat Pro 11.
    My first choice is to be able to change the format of the special marker text in Adobe FrameMaker source file, but I have not found way to specify a link to be to a PDF attachment with a certain filename.
    However, I would also really like the option of running a batch file on a main PDF to change the links there.
    Has anyone tried using that Adobe ExtendScript ToolKit CS6 to do this? That is, a script that could automatically modify the hyperlinks in a PDF to link to PDF attachments rather than external PDFs, or else modify the unprocessed links while they are still in Postscript file format, or else modify the marker text in FrameMaker to instead of creating a link to a PDF in the same directory as the main PDF being processed, to create a link to a PDF attachment files?
    Thank you,
    Judith Wallace
    [email protected]

    FrameMaker's Hypertext feature has no ability to "link" to an attachment on/in a target PDF.
    PDFs sourced from FM can have named destinations set in the FM authoring files such that a link from file01.fm to the specified named destination in file01.fm will be functional in the PDFs created from the FM files.
    Then, of course, there's the dynamics possible by use o FM Books. But that's the grist for the mills at the FM user-2-user forum.
    RE: Scripting - PDF scripting is via Acrobat JavaScript. That something still of and by Adobe although it may migrate to an ISO Standard (or be rolled up in a future ISO 32000).
    So, to the point - look to Acrobat JavaScript for scripting.
    Be well...

  • Create Order with reference to Contract header

    Hello,
    In copy control from Contract to order can  you please tell me if it is possible to copy only header data?
    Meaning ,when creating Order with reference to contract I would like to copy contract header data only
    Thanks,
    Dave

    Hi Dave,
    You can try this,
    Go to VTAA--> Select your copy control of contract to order --> Click at details --> Remove the check box of
    Copy item number
    Complete refrence
    Then double click at "Item" left side --> Select your item category --> Click at details --> Remove the check box of
    Copy Schedule lines
    Then try to create and revert back with your findings,
    Regards,
    MT

  • Is there a way to automatically control the audio volume on safari? Some streaming video sites (Hulu, in particular), like to try to deafen me with the commercials. And yes, I'm not an idiot, I know that I can manually control the volume.

    I've been searching for some way to automatically control the volume, so the commercials on streaming sites (Hulu, for example), don't deafen me. And yes, I am aware that I can manually control the volume with the volume keys on the keyboard or the slider in the menubar.

    This really frustrates me, small differences between the apps that shouldn't be there.
    I understand you can't change the keyboard shortcuts to be the same/similar, but this is totally different. Let's hope it changes soon.

  • Any ways to automate smartlist updates with Classic App?

    We have been trying to find a way to automate a smartlist with a Classic app. Through EPMA this appears to be possible by modifying the ADS file, but we cannot find a workable way to do this with a Classic Planning app. Has anyone figured a way to do this? We are currently using DIM to update our Planning metadata.

    I rarely update my software via iTunes and always opt for OTA method, which is what I did for IOS 7.0 upgrade. Yet, my images and videos stay intact with the 7.0 update, which I thought would be the same for 7.0.3, but boy, I was wrong. I read that a lot of people are having similar problem with this particular update cos it linked with the iTunes. I've been having problems syncing my iPhone to iTunes (on my Mac), which I presume is what others face as well...
    Yeap, very good learning experience indeed

  • Is there a way to automate the CFX tags installation?

    Hello,
    I'm currently in the process of re-installing a web farm of ColdFusion 8 servers (W2K8, IIS 7.5).
    I have to install a number of CFX tags (C++) on each server to get the code running.
    Is there a way to automate the installation of the CFX tags (regedit imports, VBS, PowerShell...)?
    I found some link indicating that keys should be imported in the registry at: HKLM\Software\Allaire, but Allaire does not even exist in this branch (I believe that the instructions were true of older versions of CF).
    I installed one of the tags manually and noticed that the file neo-runtime.xml was updated with:
    <?xml version="1.0"?>
    <wddxPacket version="1.0">
      <header/>
      <data>
        <array length="18">
          <boolean value="true"/>
          <struct type="coldfusion.server.ConfigMap">
            <var name="session_variables">
              <boolean value="false"/>
            </var>
            <var name="application_variables">
              <boolean value="false"/>
            </var>
            <var name="server_variables">
              <boolean value="false"/>
            </var>
          </struct>
          <struct type="coldfusion.server.ConfigMap">
            <var name="cfx_http5">
              <struct type="coldfusion.server.ConfigMap">
                <var name="NAME">
                  <string>cfx_http5</string>
                </var>
                <var name="CACHE">
                  <string>true</string>
                </var>
                <var name="PROCEDURE">
                  <string>ProcessTagRequest</string>
                </var>
                <var name="DESCRIPTION">
                  <string/>
                </var>
                <var name="TYPE">
                  <string>cpp</string>
                </var>
                <var name="LIBRARY">
                  <string>D:\ColdFusion8\cfx\cfx_http5\cfxhttp5.dll</string>
                </var>
              </struct>
            </var>
          </struct>
    Can I simply add the XML node to get it running?
    Thanks in advance for any lead to the solution.

    This is great! but I'm not there yet. I figured how to assign little midi triggered melodies to a touch track. I used to do stuff like this on an old Buchla years ago. How do I get the automation on the midi track to control the filter on an audio track? I created regions with the automation I want on a midi track, then I assigned those regions to keys with touch tracks. How do I get that to control the filter on the audio track?
    thanks,
    Lee

  • Is there a way to automatically sort/filter the itunes music list by files that  cannot be located?

    I have quite a lot of files that can't be located, and want to delete them all at once rather than clicking on everyfile to choose delete. Does anybody know of a way to sort the itunes listing so that I can group them all together to delete, or a way to automatically purge them all from the itunes file?

    But is there a way (simple or not-so-simple) to find
    out EVERY SINGLE FILE that's referenced on a
    timeline? (I have lots of stuff imported into the
    project that I know isn't used on any timeline, but
    I'm afraid of moving or deleting things for fear of
    never finding it again.)
    I'd love to get some sort of "printout" (a list or
    something) of every single file.
    There is, go to browser and cntrl click on any one of the columns,
    and select - show/source. A new column named "source" will pop up and will show where everything "lives". Click on the header at the top and it will justify the column as well. You'll notice this won't show anything for your seq.'s. of course, but will show stills/audio/motion files...
    Once you have the new column, you can drag it next to the "name" column and get a grab of it and print it if you like, or whatever.
    If you want to do this for just 1 seq., then can create a new bin and double click it to open it. Cntrl-A (select all) in your main seq. and just drag all into the new bin. You will see only what's in that seq. with the "source" column right next to it.
    From what I've read, you seem to get the MM thing and it's obviously what you'll need to do to archive as the guys said. But what your missing is a file path system to where everything resides.
    Hope this helps and that I've read you properly,
    Peace
    P-Book 1.5, 17" 2gsRAM   Mac OS X (10.4.4)   FCStudio

  • Contract update with reference to an order

    Hello everybody,
    I'm trying to find a way to update the contract value released (AWERT field in RV45A structure) when an additional order is created with reference to an existing one.
    Thank you in advance.
    Mike
    Edited by: Michael Papadakis on Dec 22, 2010 12:11 PM

    Hi Shiva,
    That will permit the doc flow to be seen from the contract. So you will be able to see the subsequent order created to the original call off order.
    But I dont think that will automatically consume a quantity/value from a quantity/value contract for the subsequent order created from the call off order.
    A suggestion would be to use a data transfer routine or copy control requirement at item level of the Order to Order Copy control rules in VTAA.
    Best regards,
    Glynn

Maybe you are looking for

  • How do I sync only selected contacts on an IPhone 4 -16 gb and and iPod Touch? Syncing contacts no longer appears in iTunes.

    How do I sync contacts on an IPhone 4 and an IPod Touch with my Mac?  This option no longer appears in ITunes 11.1.3.  Imac running osx 10.9.1

  • Filemaker (10) crashes post Yosemite upgrade

    We are still using Filemaker 10 with zero problems up until now.  However, with the most recent upgrade to Yosemite, we are experiencing frequent crashes during which Filemaker will spontaneously shut down after a few minutes of working within the FM

  • XML Content and Linked containers

    Hi, I just downloaded the trial of CS5 and I was wondering how to do the following. I have 5 XML files that load into my site.  Each one is called by a button click.  On the initial stage I have 2 containers which are linked for overflow text.  So he

  • Problem in Using Collections as Web Parameters

    Hello, I have tried to use ArrayList and Map variables to pass as web parameter in oc4j(10.1.3.1.0). The interesting this is that, in my web method return type object, if i am declaring a variable of type Map or List, and the variable name is all in

  • Acrobat crashes when I try to read forms

    I created an intake form for my clients to complete on their computers and email back to me. Two have completed the forms and sent the back to me - but the text runs off the page as one long sentence rather than wrapping inside the text boxes I inser