BAPI to create bp with name, search term, address and Authorization Group
Hi
which BAPI could be used to create Business Partner (type organazation) with names, search term, address and the Authorization Group field.
ths
Hello ,
You can use : BAPI_BUPA_CREATE_FROM_DATA
In case you need to update additional fragments just search in trn code SE37 for BAPI_BUPA_*CREATE.
For example BAPI_BUPA_FRG0040_CREATE - Create classification data for BP , etc'.
Additional you can use XIF :CRMXIF_PARTNER_SAVE to create business partners
Rika
Similar Messages
-
Error creating bean with name 'rbacxSchedulerService'
Hi
I am installing Oralce Identity Analytics and this with an error in the log posted below. Someone could help me. Thank you
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexGlobalUserGlobalUserUpdateAdvisor' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot create inner bean 'com.vaau.rbacx.search.aop.IndexAdvise#1ba7ab0' of type [com.vaau.rbacx.search.aop.IndexAdvise] while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.search.aop.IndexAdvise#1ba7ab0' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot resolve reference to bean 'ftSearchProvider' while setting bean property 'searchProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftSearchProvider' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot resolve reference to bean 'rbacxSchedulerService' while setting bean property 'rbacxSchedulerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxSchedulerService' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'vaauSchedulerManager' while setting bean property 'vaauSchedulerManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vaauSchedulerManager' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'quartzSchedulerProvider' while setting bean property 'schedulerProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerProvider' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'quartzSchedulerFactoryBean' while setting bean property 'quartzScheduler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerFactoryBean' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot create inner bean 'quartzSchedulerFactoryBeanTarget' of type [org.springframework.scheduling.quartz.SchedulerFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerFactoryBeanTarget' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'springNonTxDataSource.quartzSchedulerFactoryBeanTarget': java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource [See nested exception: java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource]]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)Hi,
Yes - I changed the password in Oracle DB admin console and jdbc.properties but I still get the same error: ORA-01017.
The only thing I can think of is that I did not run the encryption java script but to be honest I can't think what diffence this would make.
Any other suggestions guys?
Oh the error has now changed slightly
15:00:54,797 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'certificationEventListener' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIDCService' while setting bean property 'rbacxIDCService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIDCService' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIAMService' while setting bean property 'rbacxIAMService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIAMService' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot create inner bean 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#2d09aa' of type [com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#2d09aa' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'oimSolution' is defined
have checked these files and nothing stands out as being wrong.
Edited by: user8380428 on 09-Dec-2011 07:09 -
In a Google search within a Firefox session, clicking on a search result causes the new page to open with the search terms highlighted in yellow -- how can I turn off this highlighting?
Try to clear the Google cookies and redo those Google options.
* "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies" -
Hello
I am using Hibernate 4, Spring 3 , JSF 2.0 and Weblogic 10.3.6
When I start weblogic server and server starts successfully, however whenever it starts publishing application, I am getting the following exception.
Error creating bean with name
'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0'
defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException:
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'entityManagerFactory'defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Invocation of init method failed;
nested exception is java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/
SharedCacheMode;
Caused By: java.lang.NoSuchMethodError:
javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()
Ljavax/persistence /SharedCacheMode; at
org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:38) at
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:525)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManager I have the following in applicationContext.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="net.test" />
<!-- Data Source Declaration -->
<bean id="DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
<property name="driverClass" value="oracle.jdbc" />
<property name="jdbcUrl" value="jdbc:oracle:thin:@server:1521:DB" />
<property name="user" value="scott" />
<property name="password" value="tiger" />
<property name="maxPoolSize" value="10" />
<property name="maxStatements" value="0" />
<property name="minPoolSize" value="5" />
</bean>
<bean
class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
<!-- JPA Entity Manager Factory -->
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="DataSource" />
<property name="packagesToScan" value="net.test.entity" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="true" />
<property name="generateDdl" value="false" />
<property name="databasePlatform" value="${jdbc.dialectClass}" />
</bean>
</property>
</bean>
<bean id="defaultLobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler" />
<!-- Session Factory Declaration -->
<bean id="SessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="DataSource" />
<property name="annotatedClasses">
<list>
<value>net.test.entity.Department</value>
<value>net.test.entity.Employees</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
</prop>
</props>
</property>
</bean>
<!-- Enable the configuration of transactional behavior based on annotations -->
<tx:annotation-driven transaction-manager="txManager" />
<tx:annotation-driven transaction-manager="transactionManager" />
<!-- Transaction Config -->
<bean id="txManager"
class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="SessionFactory" />
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>
<context:annotation-config />
<bean id="hibernateStatisticsMBean" class="org.hibernate.jmx.StatisticsService">
<property name="statisticsEnabled" value="true" />
<property name="sessionFactory" value="#{entityManagerFactory.sessionFactory}" />
</bean>
<bean name="ehCacheManagerMBean"
class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" />
<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
<property name="locateExistingServerIfPossible" value="true" />
</bean>
<bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter"
lazy-init="false">
<property name="server" ref="mbeanServer" />
<property name="registrationBehaviorName" value="REGISTRATION_REPLACE_EXISTING" />
<property name="beans">
<map>
<entry key="SpringBeans:name=hibernateStatisticsMBean"
value-ref="hibernateStatisticsMBean" />
<entry key="SpringBeans:name=ehCacheManagerMBean" value-ref="ehCacheManagerMBean" />
</map>
</property>
</bean>
</beans>
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.test</groupId>
<artifactId>myappp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>myappp</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
<properties>
<spring.version>3.1.1.RELEASE</spring.version>
</properties>
<dependencies>
<!-- Spring 3 dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- JSF library -->
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.6</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- Primefaces library -->
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>afterwork</artifactId>
<version>1.0.8</version>
</dependency>
<!-- Hibernate library -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.1.0.Final</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<!-- Oracle Java Connector library -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.3</version>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
</dependency>
<!-- Log4j library -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.4</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>1.2.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.extensions.cdi.core</groupId>
<artifactId>myfaces-extcdi-core-api</artifactId>
<version>1.0.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>4.0.1.Final</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArgument>-proc:none</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>2.0.6</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<!-- source output directory -->
<outputDirectory>target/metamodel</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>In Weblogic 10.3.6 I have enabled JPA2 support by adding the following in commEnv.cmd
@rem Enable JPA 2.0 functionality on WebLogic Server
set PRE_CLASSPATH=%BEA_HOME%\modules\javax.persistence_1.1.0.0_2-0.jar;
%BEA_HOME%\modules\com.oracle.jpa2support_1.0.0.0_2-1.jarApplication which works on WLS 10.3.6 is http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_dev.zip and the one which is not working is
http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_win32.exe.
How can I resolve these errors and exceptions? Any help is highly appreciable.
ThanksLooks like you might have a spelling error in your spring config, or are trying to set a read-only property. BdasInterfaceManagerImpl has been configured as having a method called setBdasInterfaceJdbcDao() : does it?
By the way, we now know that you're writing code for JP Morgan - there's a slight risk that this could bite you in the @ss at some point (there are some malicious people around) you might want to take that into consideration next time! -
Bapi to create Invoice with reference to SalesOrder
Hi All,
I want to create Invoice with reference to SalesOrder ,
can anybody help me regarding
--> what is the Bapi to Create Invoice with reference to SalesOrder
--> what are the import parameters
Thanks in Advance
Regards
SrinivasHi Giuseppi,
Thanks to your reply,
i have used BAPI_BILLINGDOC_CREATEMULTIPLE , i have given the following input values in the BILLINGDATAIN
-- salesorg,distrchan,division,doc-type,sold-to,plant,material,doc-number,item-number , when i execute the Bapi , i got the DocNo:0090021983 , but i did not find that DocNo. by executing the Bapi BAPI_BILLINGDOC_GETLIST.
i found the short description for
BAPI_BILLINGDOC_CREATEMULTIPLE -- is for Individual Customer Billing Document, is it the correct Bapi to create invoice
what is the correct Bapi to create invoice based on the salesorder.
RV_INVOICE_CREATE OR GN_INVOICE_CREATE OR BAPI_BILLINGDOC_CREATEMULTIPLE.
Can u specify the import parameters for that Bapi.
Thanks & Regards
Srinivas -
IDOC Related - Search Term 1 and Search term 2
Hi,
In FK03 , we have Search term 1 and search term 2 in the second screen
I am trying to populate those values using IDOC type CREMAS and segment E1LFA1M
In that only search term 1 SORTL is there ,
Any idea how can we populate Search term 2
thanks
chandra
Edited by: Chandrasekhar Jagarlamudi on Apr 21, 2008 7:53 PMHi!
It can be performed:
- with modifying the standard
- copying it to a ZCREMAS interface, change the structure, and of course you have to set all IDoc settings to this new one
Regards
Tamá -
I did not know my kids had set up an Itunes account for me with one user name and password. then i got an i phone and set it up with a different email address and new password. how can i get my accounts to merge so i can have all of my music on my iphone
Quote: "You cannot merge two or more Apple IDs into a single one. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). See “Using one Apple ID for iCloud and a different Apple ID for Store Purchases” above for details." See also Apple ID & iCloud FAQ: http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US
You can set up your iCloud account on your iOS device under: "Settings > iCloud" and a other account for store purchases under "Settings > iTunes & App Stores". Unfortunately merging accounts is not possible but you could transfer all of your music manually via iTunes from your Mac or PC. -
Is it possibe to create PO with account assignment catagory "U" and B
Hi all,
Is it possibe to create PO with account assignment catagory "U" and B combination with material or without material code?
if yes then what are the setting requried ?
Secondly can we do GR for this combination? if yes what are the setting requried ? at the time of GR can we assign WBS element?
Regards,
AnilAnil,
Typically Item category B can only be used without material code.
Item category B means you are using Limit PO's ( typical usage of Limit PO : If you wish to make provision in the PO for services that are not precisely definable during the planning phase of a procurement project, set a money limit instead of entering a service description. This limit, which represents a budget for unplanned services, must not be exceeded. The service can be specified later - perhaps at the time of actual performance)
For standard Limit PO's GR is not done. You enter Serrvice under Service entry sheet.
What item category/ Account assignment is used depends on how you have done the config in SPRO>MM> Purchaisng--> Account assignment.
I am sure this gives you good idea of what the possiblities are.
Thanks,
Ram -
I Have a new email address which I have entered into settings and it has been verified. I no longer have the old email address. When I try to update an app, it comes up with my old email address and asks for my password. It always comes back with a message that the password is incorrect. What do I do to fix this?
Hi Vivian Zollman,
Welcome to the Support Communities!
I'm not sure if you are referring to your Apple ID or just your email account in the Mail app. So, I've included all of the articles that may be relevant for you.
iOS: Setting up an email account
http://support.apple.com/kb/ht4810
If you already have an email account set up and you want to modify its settings, tap Settings > Mail, Contacts, Calendars, tap the name of your account, and then your email address. Then tap any information you want to adjust.
iOS: Changing the signed-in iTunes Store Apple ID account
http://support.apple.com/kb/HT1311
iCloud: View or change your iCloud payment information
http://support.apple.com/kb/PH2616
Cheers,
- Judy -
I own three Apple devices, but my iPad remained associated with my old email address and password. How can I register it with the same new email and password?
If you updated your existing account then try logging out of it on the iPad by tapping on the id in Settings > Store and then log back in and see if that 'refreshes' the account on the iPad. If you created a new account then any content that you purchased/downloaded via the old account will remain tied to that old account, and only that old account can download updates to its apps.
-
How to create subfolders with names corresponding to the filenames
Hello outhere,
sorry to ask this here, but I'm a complete noob with Actionscript.
Can anybody please tell me if this is possible at all and perhaps give me some hint how to manage this:
I would like to be able to do something like this:
I have a source folder with files.
The files do have different extensions, which are not important for the actions
The filenames consist of a 8digit, some have some additional strings which are not important for the action.
Example filename: 14123456.tif or 1423456YT.jpg
I would like to create a folder structure where each of the 8digits of the filenames represents a subfolder (which needs to be created when not there) and then move the file into this subfolder, overwriting exinsting files with the same name without prompt.
So for the file 14123456YT.jpg the script should create a folder structure like:
Foler "1" with a subfolder "4", with a subfolder "1" etc. and move then this file into this subfolder. Again: it is only about 8 digits, if there are addition strings after the 8th digit, this does not need a subfolder (like "Y" in the above example". The next file in the source might have a complete different number.
I do not expect that somebody creates this for me, not at all.
But before I dive into the Applescript I would like to know if this is possible at all. Of course I would be happy for any hints to scripts that are similar to what I want so that I can use this as a starting point.
Thanks for any discussions on this matter,
gb5256It looks like (on a British system with "." as the decimals separator), coercion from a string to an integer will round up with a "." - "1234.567" becomes 1235 - and will ignore a "," - the same string becomes "1234567". On a continental system, this will likely be the other way around.
In these circumstances, I think the only option you have is to iterate through every character to check that it's a number. This will take slightly longer, but it will at least guarantee that nothing other than a number will work. I have made the change below. Note that the 'exit repeat' takes you out of the repeat loop as soon as an illegal character is found.
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;">
tell application "Finder"
set theFolder to choose folder --asks for user to select a top level folder
set topLevel to theFolder --holds the path to the top level
set fileList to document files of theFolder --gets every document file in the top level folder
repeat with theFile in fileList --iterates through the files
set fileName to name of theFile --sets variable to name of the file
set thePath to characters 1 thru 8 of fileName --gets first 8 characters of the file name into a list
set numeric to true
repeat with theChar in thePath
if theChar is not in "0123456789" then
set numeric to false
exit repeat
end if
end repeat
if numeric then
repeat with subFolder in thePath --iterates through the list of characters
if (subFolder as text) is in "0123456789" then --checks for numeral
if not (exists folder named subFolder in theFolder) then --checks if folder with this name already exists
set folderName to (subFolder as text) --puts name into a variable
set theFolder to (make new folder in theFolder with properties {name:folderName}) --makes the new folder
else
set theFolder to folder subFolder of theFolder --if the folder exists, move down to that level
end if
end if
end repeat
if not (exists file named fileName in theFolder) then
move theFile to theFolder --move the file from the top level to the bottom of the folder hierarchy
end if
set theFolder to topLevel --start again from the top
end if
end repeat
end tell </pre>
Message was edited by: Bernard Harte -
I am having a big problem with entering search terms in Google
Here is the problem. I enter several search terms and do a search. So far, so good.
After I am finished clicking on one or more links I return to the Google search page to do a new search.
Since most of the words are the same, except the last one or two, I backspace over the old words and start entering the new ones.
Then very strange things happen much of the time.
1. It may restore the old words (the ones I already backspaced over and erased) and put my new words behind the old ones.
2. It may just restore the old words, that had been backspaced over, completely removing the new words I had just typed in.
Any ideas why this keeps happening? Is it Google or Firefox causing the problem?
It seems very strange that words that had been backspaced over (erased) magically reappear as if I hadn't removed them.
Thank you.What is the problem?
Does send work?
Receive?
Error messages?
Does the account work on other devices?
DId it ever work on an iOS device?
Did yo Google for the setting to use?
DId you delete the account on the iPod and tried again? -
Need help to create file with name and current time stamp.
I need to create .xlsx file exporting data from sql database and file name would be 'FileName' and current yyyymmdd.
I'm trying to use following code but it's keep saying incorrect syntax near "+".
EXEC p_CreateExcel 'sql64', 'NewFile', '\\hrfile1\Shared\Buying Report\NewFile'
+ CAST(YEAR(CURRENT_TIMESTAMP) AS VARCHAR)
+ RIGHT('00'+CAST(MONTH(CURRENT_TIMESTAMP) AS VARCHAR),2)
+ RIGHT('00'+CAST(DAY(CURRENT_TIMESTAMP) AS VARCHAR),2)+'.xlsx'This is what I have on EXEC p_CreateExcel
USE [XePro01]
GO
/****** Object: StoredProcedure [dbo].[p_CreateExcel] Script Date: 02/26/2015 11:27:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [dbo].[p_CreateExcel]
@db_name varchar(100),
@table_name varchar(100),
@file_name varchar(100)
as
--Generate column names as a recordset
declare @columns varchar(8000), @sql varchar(8000), @data_file varchar(100)
select
@columns=coalesce(@columns+',','')+column_name+' as '+column_name
from
information_schema.columns
where
table_name=@table_name
select @columns=''''''+replace(replace(@columns,' as ',''''' as '),',',',''''')
--Create a dummy file to have actual data
select @data_file=substring(@file_name,1,len(@file_name)-charindex('\',reverse(@file_name)))+'\data_file.xls'
--Generate column names in the passed EXCEL file
set @sql='exec master..xp_cmdshell ''bcp "set fmtonly off select * from (select '+@columns+') as t" queryout "'+@file_name+'" -c -t, -T -S'''
exec(@sql)
--Generate data in the dummy file
set @sql='exec master..xp_cmdshell ''bcp "set fmtonly off select * from XeProgst01.dbo.'+@table_name+'" queryout "'+@data_file+'" -c -t, -T -S'''
exec(@sql)
--Copy dummy file to passed EXCEL file
set @sql= 'exec master..xp_cmdshell ''type '+@data_file+' >> '+@file_name+''''
exec(@sql)
--Delete dummy file
set @sql= 'exec master..xp_cmdshell ''del '+@data_file+''''
exec(@sql)
GO -
Search terms: boolean and exact phrase
I constructed my search terms per the "tips" to find messages containing the exact phrase "save as" and the word corrupt:
"save as" AND corrupt
the search returned a list of messages with the word "corrupt" highlighted as I would have hoped, but it also listed messages with "as" highlighted and even more bizarre, with the word "and" highlighted.
Did I miss something in the discussion of boolean expressions? Do I have to do something special to cause it to treat "and" as an operator instead of as a search string????
and why is it highlighting "as"???I'm not seeing how that answered any of my questions.
I think my answer goes to this question:
Do I have to do something special to cause it to treat "and" as an operator instead of as a search string????
To:
Nor does it illustrate that the exact phrase operation is working.
You are correct. All it does is help you to get better results than you got using AND. -
My dad's email has changed, he cannot remember his password under his old itunes email account. Whenever he tries to download apps on his new iphone with his new email address, it is asking for his password for his "old email" account. We created a new itunes account with his new email address, but whenever we try to install an app, it keeps asking for his password and shows his old email address. What is the best way to solve this problem?
Hi Vivian Zollman,
Welcome to the Support Communities!
I'm not sure if you are referring to your Apple ID or just your email account in the Mail app. So, I've included all of the articles that may be relevant for you.
iOS: Setting up an email account
http://support.apple.com/kb/ht4810
If you already have an email account set up and you want to modify its settings, tap Settings > Mail, Contacts, Calendars, tap the name of your account, and then your email address. Then tap any information you want to adjust.
iOS: Changing the signed-in iTunes Store Apple ID account
http://support.apple.com/kb/HT1311
iCloud: View or change your iCloud payment information
http://support.apple.com/kb/PH2616
Cheers,
- Judy
Maybe you are looking for
-
How do get my music from my ipod to my library.
I swiped my computer a few days ago and i was woundering if i could just move the music from my ipod to my library, iv ben looking but i havent found anything, or do i need to just reload everything(if i reload everything will i lose my purchased mus
-
CAR/PR is mandatory to make PO-Stopper
Hi All, We have created a scenario where CAR/PR is mandadtory to make PO, After approval of this CAR,PO has created, But while doing PO User can able to Edit the PO Price value. - User is able to put PO Value more than PR value. Please let me know an
-
CSV export problem with multiple pages
I have a simple report with pagination and export to excel enabled. If I paginate from page 1, without exporting to excel, to any other page, then export to Excel, I get "No data found." in the CSV output file. If I export from Page 1 first, then the
-
Route a signal to RTSI when AO starts output
I would like to route a signal to RTSI when AO starts output using "Route signal.vi". Now I choose the signal source as "AO update" so that a series of TTL signals are routed to RTSI. If I would like only to route a signal to RTSI when AO starts outp
-
Return Overview - Unprocessed Items preventing process complete
When viewing the Returns Overview screen during the advanced returns process, there are a few documents which we are not using in our process, as they are being handled externally. Yet these documents are marked as incomplete (yellow status) within