Can you set a default value using Data Mover Scripts?

Hi,
We're going through a upgrade of PS Fin 8.9 -> 9.1. We've found some existing tables with new columns that are marked as NOT NULL so we're having trouble migrating the data using DMS.
Is there a way to Export the data from 8.9 and when importing into 9.1, set a default value for the new column using DMS?
A specific example would be the PS_SOURCE_TBL where EXCHANGE_RATE_OPTN is new and NOT NULL.
Thanks for any assistance.

What you could do is first rename the record to be imported
IMPORT SOURCE_TBL AS PS_SOURCE_TBL_ORG;
Then write a insert/select script from PS_SOURCE_TBL_ORG to PS_SOURCE_TBL defaulting column EXCHANGE_RATE_OPTN
Insert into PS_SOURCE_TBL (COLUMN,COLUMN,COLUMN,COLUMN, EXCHANGE_RATE_OPTN)
select PS_SOURCE_TBL_ORG (COLUMN,COLUMN,COLUMN,COLUMN, 'defaultvalue');
And then drop table PS_SOURCE_TBL_ORG to clean up your database.

Similar Messages

  • Tax codes - can you set up default value for rows and freight? HELP!

    Hello - I have two issues with tax codes:
    1. When adding  a sales order if any of the rows do not have a value for "Tax Code"  I will get an error "Row without tax was found".
    - How can I get all rows on my sales orders, documents, etc to default to a specific tax code? Or will users ALWAYS have to enter the tax code?
    2. When addring a sales order with Freight, if the order is added without adding a tax code to the freight I will get an error "Expense with tax was found"
    - How can I get the tax code have a default value? We always use the same tax code, so it is redundant to have to enter this information.
    Any suggestions?

    Hi Jhon,
    this is the simplest and best way to make a Tax Code default is Go to
    Answer for Question 1
    Administration -> Setup -> Financial ->  Tax -> Tax Code Determination (Click on this)
    in that screen you can set a default tax code for both sales as well as Purchase.
    If you want to set Tax Code based on Vendors or Customers or Items separately then you can use the Key Fields.
    Answer for Question 2
    Once you enter the Tax Code in the freight i think it takes the Tax Code itself, I'm not so sure about this one though.
    Hope this helps you out
    regards,
    Shreyas

  • Can we set a default value for the container variable in BPM?

    Can we set a default value for the container variable.?
    Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?

    Hi
    Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
    In Container Operation Step Assign value and Use Expression to
    Increase or Decrease Valus according to your operation.
    look Pattern 4 in this blog to understand Container Operation
    /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1

  • Can you set up apple tv using 2 different itunes accounts from 2 different macs in same household?

    can you set up apple tv using 2 different itunes accounts from 2 different macs in same household?

    No, you can only connect to one Home Sharing account at a time. If you want to see the content of the other Mac's library you will have to turn off Home Sharing on the Apple TV and log back in with the other iTunes account.

  • Can you set a "default" web page in a KM folder?

    Hi there,
    I've been playing around with using Adobe Contribute to edit web pages in a CM Repository. It was easy to create a CM repository, put some web pages and supporting CSS, images etc. in there, and create a KM navigation iView that displays the default page. Setting up Adobe Contribute to edit those pages via a WebDAV protocol was simple too, and to be honest I find the Contribute interface and functionality easier to use (particularly from the average end user's point of view) and implement than the Portal's built-in HTML editor, or the Web Page Composer.
    But then I ran into a snag. In order to be able to "administer" the site with Contribute (or Dreamweaver), it creates an _mm folder and puts a "guard" page in it. The guard page is a file which would be returned to the browser when it tries to access a folder. In a normal website that would be a "default" page (e..g index.htm, default.htm etc.), but in the Portal there doesn't seem to be a way to have one. I believe that's why if you try to access a folder through a browser you get:
    "The folder you are looking for has no displayable content.
    You can try one of the following:
    Access the folder using the Navigation user interface.
    Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work."
    That's what happens if I use something like http://<host name>:<port number>/irj/go/km/docs/<repository prefix>/<folder name>/ as a URL, though http://<host name>:<port number>/irj/go/km/docs/<repository prefix>/<folder name>/default.htm works just fine (as you would expect). And I can retrieve a fake "guard" page using http://<host name>:<port number>/irj/go/km/docs/<repository prefix>/<folder name>/_mm/default.htm
    An Adobe technote confirms this as problem - [Guard Page not found|http://go.adobe.com/kb/ts_f3675780_en-us]. Does any one know if a default page can be set in a CM repository.
    Regards,
    Tom

    I don't think you can.
    What is possible is to set content on the folder resource itself; that would be returned instead of the page you mentioned.

  • Can You set a Default Email Address when sending Emails

    I have multiple email accounts set up. When I compose a new message, it always uses the send address of the message that is selected in the open window. Is there anyway to set a particular address as default or better yet don't pick an address and force me to select one from the pull down list?
    Doug Eaton

    Hello Doug.
    Copied from Setting the account your email is sent from.
    If you have set up multiple accounts in Mail, when you create a new message, the account the message is sent from is the one associated with the currently selected mailbox. If the current mailbox is listed in the On My Mac section of the mailbox list and is not associated with any particular account, then your message is sent from the first account listed in the Accounts pane of Mail Preferences.
    You can select a different account to use to send the mail.
    To send a message from a different account, choose the account from the Account pop-up menu when you're composing the message.
    To change the order in which accounts are listed in the mailbox list, drag the account names into the order you want. You can also rearrange the account order in the Accounts pane of Mail Preferences.
    Tiger Mail includes a default email account selection when selecting New to compose a new message regardless which mailbox is currently selected.

  • Can you set a default "Reply-To:" on a per account basis?

    I have two accounts set up in Apple Mail. One is a work account, and the other is my personal iCloud account.
    For my personal emails, I would prefer to have any replies directed to an "email-for-life" address. My college alumni association has a service, which is essentially an email forwarder. The beauty of this is that I am not tied to a particular ISP such as iCloud, mobileme, .mac, etc. If I change ISPs, I only have to update the infomation on the forwarding system rather that letting all my personal contacts know that my email address has changed. For them, my permanent email address is of the form "<firstname.lastname>@<college>.alumni.edu". As such, I cannot use that address as my "From" address, as mosts ISP requirethe From address for authentication. I suppose this helps prevent spoofing.
    I have seen instructions for setting a Default "Reply-To:" address in Apple Mail by  setting the UserHeaders in Mail prefs via a Terminal window:
    To set: Enter the following in a terminal window:
    defaults write com.apple.mail UserHeaders '{"Reply-To:"="[email protected]";}'
    To review settings: Enter the following in a terminal window:
    defaults read com.apple.mail UserHeaders
    To clear settings: Enter the following in a terminal window:
    defaults delete com.apple.mail UserHeaders
    My problem is that this sets the default for all email accounts in Apple Mail. I only want to do this for my personal email account. I want emails sent from my work account to reply to the work email addresss.
    Is there a setting on the defaults write ... command such that I can apply the UserHeaders to only one account?
    Regards,
    Tim

    What you could do is first rename the record to be imported
    IMPORT SOURCE_TBL AS PS_SOURCE_TBL_ORG;
    Then write a insert/select script from PS_SOURCE_TBL_ORG to PS_SOURCE_TBL defaulting column EXCHANGE_RATE_OPTN
    Insert into PS_SOURCE_TBL (COLUMN,COLUMN,COLUMN,COLUMN, EXCHANGE_RATE_OPTN)
    select PS_SOURCE_TBL_ORG (COLUMN,COLUMN,COLUMN,COLUMN, 'defaultvalue');
    And then drop table PS_SOURCE_TBL_ORG to clean up your database.

  • Can you set the default alarm to be an email alert?

    Just curious. I noticed that in the preference window, it allows you to set a default alarm that always starts as a sound.
    Any plug-ins that will do this?
    Thanks a bunch.

    Try this add-on so you can schedule the sending of multiple emails:
    https://addons.mozilla.org/en-US/thunderbird/addon/send-later-3/
    http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html
    There's another add-on that might work in current TB versions:
    https://addons.mozilla.org/en-US/thunderbird/addon/blunderdelay/

  • How can you set the default width of the 'Detailed Navigation iView'?

    Hello,
    we would like to reduce the default width of the 'Detailed Navigation iView' in order to save some screen space.
    So far, we havn't found the right item in the portal admin to do this.
    Any help would be much appreciated! Thanks in advance.
    Frank Schülke, E.ON Ruhrgas, Germany

    Hi Frank,
    You can change the width of this navigation iview  by changing the value of "defaultExpWidth" in the file WAandNAVPanel.js present in the par file com.sap.layouts.framework.par from default value 220 pixels to the value you want.
    upload the changed par file and restart the server.
    Hope this helps,
    (if not do get  back )
    Regards,
    Uma.
    Do award points for helpful answers in SDN!!!!!!!:-)

  • HT204051 Can you set a default WiFi network?  Or is it possible to remove a near field WiFi network?

    I want to set a default a default network to connect via wifi .  Is it possible to automatically connect when in range?

    Hi GymJockey67,
    Thanks for your question.  The resource below explains how to set your preferred Wi-Fi network as the default connection.
    OS X Yosemite: Choose preferred wireless networks
    https://support.apple.com/kb/PH18525?locale=en_US
    Cheers,
    Judy

  • Can you create a form not using a php script?

    I need to create a contact us form on my website using DW and have researched how and understand the easiest way is using a php script.  Unfortuntately, my webhost server does not support this and will charge me an arm and a leg in order to to do it.  Is there another way to have a functioning contact form not using a php script?

    Yes and no.
    You could use a mailto link for your form action instead of a PHP script.
    There are several problems with this method though. First, when you do that, you are at the mercy of the viewer's computer set-up. Mailto links use whatever email client is installed on the machine in order to send the message. Public computers (libraries, colleges, etc) almost never have an email client installed, so when a viewer on one of those machines clicks the link, nothing happens. Secondly, your email address is open for spam harvesters, so you may end up with enlargement and nigerian scam emails flooding your inbox.
    Since your provider doesn't give you a way to do it the right way on your server, you may want to look into email form services online and see if they are less expensive than your current alternative.

  • Urgent - can't set managed bean value using a form, getting null

    I have a form with a bean -- unbelievably, I can't get the values entered into the form by the user to get stored into the bean. Everything is null... I've looked at a zillion examples, posts and compared etc...yet still can't see what is missing.
    Here's part of a trace :
    [cc]Dec-31 01:25:02 ApplicationImpl - Created bean resourceBean successfully
    [cc]Dec-31 01:25:02 ApplicationImpl - Storing resourceBean in scope request
    [cc]Dec-31 01:25:02 VariableResolverImpl - resolveVariable: Resolved variable:id=null name=null
    [cc]Dec-31 01:25:02 ValueBindingImpl - getValue Result:id=null name=null
    [cc]Dec-31 01:25:02 ValueBindingImpl - -->Returning id=null name=null
    If you have any ideas, please let me know--it seems just as I solve one JSF issue, I run into another on unexpectedly simple things.
    Here's the ResourceBean.java, the bean-config.xml and my jsp.
    package com.intalio.qa.tcm.view.beans;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.faces.model.SelectItem;
    import org.apache.log4j.Logger;
    import com.intalio.qa.exceptions.DuplicateIdException;
    import com.intalio.qa.tcm.model.Resource;
    import com.intalio.qa.tcm.view.builders.ResourceBuilder;
    import com.intalio.qa.tcm.view.util.FacesUtils;
    * Resource backing bean.
    public class ResourceBean extends RootBean {
         * Class logger
         public static final Logger LOG =
              Logger.getLogger(ResourceBean.class);
    * The Resource id
         private String id = null;
         * The Resource name
         private String name = null;
    * Description
    private String description= null;
         * the resource type id associated with the Resource
         private String resourceTypeId= null;
         private static SelectItem[] resourceTypeIds = new SelectItem[] {
              new SelectItem("External Software"),
              new SelectItem("Hardware"),
              new SelectItem("Intalio Product Software"),
              new SelectItem("Machine - Dual CPU"),
              new SelectItem("Machine - CPU Single"),
              new SelectItem("Memory - UNIX"),
              new SelectItem("Memory - Windows") };
    * @return Returns the resourceTypeIds.
    public SelectItem[] getResourceTypeIds() {
    return resourceTypeIds;
    * @param resourceTypeIds The resourceTypeIds to set.
    public void setResourceTypeIds(SelectItem[] typeIds) {
    resourceTypeIds = typeIds;
         * Default constructor.
         public ResourceBean() {
    super();
    init();
         * Initializes ResourceBean.
         * @see RootBean#init()
         protected void init() {
         /*True, but I'd strongly recommend instead using:
    FacesContext fContext = FacesContext.getCurrentInstance();
    Map requestParams = fContext.getExternalContext().getRequestParameterMap();
    String companyId = (String) requestParams.get("companyID");
    The getRequest(), getSession(), and getContext() methods of ExternalContext should only be used as a last resort.*/
         * Backing bean action to update Resource.
         * @return the navigation result
         public String updateAction() {
              LOG.info("updateAction is invoked");
              try {
                   Resource Resource = ResourceBuilder.createResource(this);
                   LOG.info("ResourceId = " + Resource.getId());
              //     viewServicesManager.getResourceService().updateResource(Resource);
              } catch (Exception e) {
                   String msg = "Could not update Resource";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(msg + ": Internal Error.");
                   return ActionResult.FAILURE;
              LOG.info("Resource with id of " + id + " was updated successfully.");
              return ActionResult.SUCCESS;
         * Backing bean action to create a new Resource.
         * @return the navigation result
         public String addAction() {
              try {
                   Resource resource = ResourceBuilder.createResource(this);
    LOG.info("resource created: " + resource.getName() + " with typeId = " + resource.getResourceTypeId());
                   viewServicesManager.getResourceService().saveResource(resource);
              } catch (DuplicateIdException de) {
                   String msg = "This id already exists";
                   LOG.info(msg);
                   FacesUtils.addErrorMessage(msg);
                   return ActionResult.RETRY;
              } catch (Exception e) {
                   String msg = "Could not save Resource";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(msg + ": Internal Error");
                   return ActionResult.FAILURE;
              String msg = "Resource with id of " + id + " was created successfully.";
              LOG.info(msg);
              return ActionResult.SUCCESS;
         * Backing bean action to delete Resource.
         * @return the navigation result
         public String deleteAction() {
              LOG.info("deleteAction is invoked");
              try {
         //          Resource Resource = ResourceBuilder.createResource(this);
         //          viewServicesManager.getResourceService().deleteResource(Resource);
                   //remove the ResourceList inside the cache
    //               FacesUtils.resetManagedBean(BeanNames.RESOURCE_LIST_BEAN);
              } catch (Exception e) {
                   String msg = "Could not delete Resource. ";
                   LOG.error(msg, e);
                   FacesUtils.addErrorMessage(null, msg + "Internal Error.");
                   return ActionResult.FAILURE;
              String msg = "Resource with id of " + id + " was deleted successfully.";
              LOG.info(msg);
              FacesUtils.addInfoMessage(msg);
              return ActionResult.SUCCESS;
         public String getId() {
              return id;
         * Invoked by the JSF managed bean facility.
         * <p>
         * The id is from the request parameter.
         * If the id is not null, by using the id as the key,
         * the Resource bean is initialized.
         * @param newQueryId the query id from request parameter
         public void setId(String newId) {
              LOG.info("setId " + newId);
              id = newId;
         public String getName() {
              return name;
         public void setName(String newName) {
              name = newName;
         public String getDescription() {
              return description;
         public void setDescription(String newDescription) {
              description = newDescription;
         public String getResourceTypeId() {
              return resourceTypeId;
         public void setResourceTypeId(String newResourceTypeId) {
              resourceTypeId = newResourceTypeId;
         public String toString() {
              return "id=" + id + " name=" + name;
         <!-- view -->
         <managed-bean>
              <description>
                   Managed bean
              </description>
              <managed-bean-name>applicationBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ApplicationBean
              </managed-bean-class>
              <managed-bean-scope>application</managed-bean-scope>
              <managed-property>
                   <property-name>viewServicesManager</property-name>
                   <value>#{viewServicesManagerBean}</value>
              </managed-property>
              </managed-bean>
         <managed-bean>
              <description>
                   View service manager impl for business services
              </description>
              <managed-bean-name>viewServicesManagerBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ViewServicesManagerBean</managed-bean-class>
              <managed-bean-scope>application</managed-bean-scope>
         </managed-bean>
         <managed-bean>
              <description>
                   Backing bean that contains product information.
              </description>
              <managed-bean-name>resourceBean</managed-bean-name>
              <managed-bean-class>
                   com.intalio.qa.tcm.view.beans.ResourceBean
              </managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>viewServicesManager</property-name>
                   <value>#{viewServicesManagerBean}</value>
              </managed-property>
         </managed-bean>
    </faces-config>
    <f:view>
         <h:form id="createResourceForm" target="dataFrame">
              <h:outputText value="#{applicationBean.dummyVariable}" rendered="true" />
              <div align="center">
              <head>
              <link href="../../css/stylesheet.css" rel="stylesheet" type="text/css">
              <FONT color="#191970" size="4" face="Arial">Resources View</FONT>
              </head>
              <table style="margin-top: 2%" width="35%" cellpadding="10">
                   <div align="left">
                   <FONT color="#191970" size="3" face="Arial">Update Resources </FONT>
                   </div>
                   <tr>
                        <td align="center" valign="top" align="center" style="" bgcolor="white" />
                        <table>
                             <tbody>
                                  <tr>
                                       <td align="left" styleClass="header" width="100" />
                                       <td align="left" width="450" />
                                  </tr>
                                  <tr>
                                       <td align="right" width="100"><h:outputText value="Id" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.id}" id="id"/> <h:message for="id" styleClass="errorMessage" /></td>
                                  </tr>
                                  <tr>
                                       <td align="right" width="100"><h:outputText value="Name" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.name}" id="name" /> <h:message for="name" styleClass="errorMessage" /></td>
                                  </tr>
                                  <tr>
                                       <!--td align="right" width="100" valign="bottom"><h:outputText value="Type" /></td>
                                       <td align="left" width="550"><h:selectOneMenu>
                                            <f:selectItems value="#{resourceBean.resourceTypeIds}" />
                                       </h:selectOneMenu> <h:outputText value="#{resourceBean.resourceTypeId}" id="dresourceTypeId" /> <h:message for="resourceTypeId" styleClass="errorMessage" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td align="right" width="100" valign="bottom"><h:outputText value="Description" /></td>
                                       <td align="left" width="450"><h:inputText value="#{resourceBean.description}" id="description" size="96" /> <h:message for="description" styleClass="errorMessage" /></td>
                                  </tr>
                             </tbody>
                        </table>
         </h:form>
         </td>
         <!-- END DATA FORM -->
         <!-- BEGIN COMMANDS -->
         <td width="30%" align="left" valign="top"><h:form id="buttonCommandsForm">
              <h:panelGroup id="buttons">
                   <h:panelGrid columns="1" cellspacing="1" cellpadding="2" border="0" bgcolor="white">
                        <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
                        </h:commandButton>
                        <h:commandButton id="deleteCB" value="Delete" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.deleteAction}">
                        </h:commandButton>
                        <h:commandButton id="spaceFillerButton" style="height:21px; width:51px;font-size:8pt;background-color: #ffffff;color: #ffffff;border: 0px;">
                        </h:commandButton>
                        <h:commandButton id="saveCB" value="Save" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.saveAction}">
                        </h:commandButton>
                        <h:commandButton id="updateCB" value="Update" style="height:21px; width:51px;font-size:8pt" action="#{resourceBean.updateAction}">
                        </h:commandButton>
                   </h:panelGrid>
              </h:panelGroup>
         </h:form> <!-- end buttons --></td>
         </tr>
         </table>
         <HR align="center" size="2" width="60%" />
         <!-- data table -->
         </div>
    </f:view>
    THANKS.
    -L

    I solved this.
    Since I was testing the action code only, I didn't define a navigation entry corresponding to the action string returned for this button:
    <h:commandButton value="Add" style="height:21px; width:51px;font-size:8pt; font-color: black;" action="#{resourceBean.addAction}">
    </h:commandButton>After I added a nav definition, it worked. I don't know why at this point. I suspect a key step in the lifecycle was pre-empted...someone else can probably explain why. If I get a chance to research it after I'm done with my project, I'll update this post.
    Thanks.
    -L

  • Can you set a default print quality?

    Good Morning Everyone,
    I've been putting up with this annoyance since I install PSE 8. I've looked for a solution but can't find one. Hope you can help.
    Here's the problem.
    Every time I print a document PSE 8 defaults to a print quality of 1200 dpi, which take forever to print. So I have been clicking on
    Change setting, then if I click on the drop down box for print quality the only choice is 1200, so I click on advanced setting and choose
    normal (which is 600) click ok and print. But I have to do this every time I print. I'm using a HP C3100 all in one printer and I've check the printer
    properities and they are set to a default of normal (600 dpi). Any ideas?
    Thanks
    Nancy

    Nancy,
    We have had several posts recently relating to printers and PSEv.8. Check on the HP site for updated drivers for your model. If there is an updated driver, install it. Let us know how you make out.

  • CSV Export - can you set a default directory?

    Can the "Save As" folder be defaulted to a specific location when exporting a report as CSV?
    I want to try and get all users to store the exported csv files in the same location rather than having them saved on local C:\ drives or various other network locations.
    I'm using HTMLDB 1.6 on Ora9.2

    Theoretically yes but practically NO!
    If yes, then user should install ActiveX(for IE) or java (FF and others) which will be called to determine that setting.
    But my suggestion is to leave that setting alone...
    BTW, any download that you have done on Interent...was it automatically or was guided by your decision?
    ;-)

  • Can you set the default Filter under Admin tab in UCSM?

    Such a minor and trivial question but just curious. It defaults to 'Faults, Events, and Audit Log'. A majority of the time that's all you'll need after initial setup, but I was wondering if I could somehow set the filter to 'All' as the default view.
    Is this possible?

    You can't, Apple would have to do this.

Maybe you are looking for

  • Open PDF file in browser

    Hi I have uploaded some pdf files using HTMLDB upload download tutorial. When downloading it always pops up the option of "Open"/"Save"/"Cancel" I dont want to see the options. Instead I should be able to view the pdf file in the web browser. Any sug

  • Urgent help - Unable to open operator

    Hello Friends, Need urgent help and suggestions... It started since this morning. When we open ODI Dev/Prod instance repositoy operator it gives this message. Error: Corrupted module. Unable to connect. See the license information in the 'About'...'m

  • Icon for bookmarks toolbar has disappeared. How can I have it permanently displayed again?

    My bookmarks still exist, but the permanent icon to open the window with 1 click in the upper left corner of screen has suddenly disappeared. I was recently making adjustments to my views and toolbars, and may have accidentally switched it off but I

  • Computer and TV monitors

    I am going to be getting a new MacPro and a HDMI card. For my computer monitors, I am currently using 2 - Acer AL2216W. I was wondering if anyone could suggest computer monitors (apple or not) that would be good to use while editing HD footage. Also

  • Time Balance and Account Type

    According to docs, time balance are system-defined based on account type. However, I can set any time balance. And it not enfore time balance setting on app validation and deployment. So, is any relationship between account type and time balance?