Chose from list in internal error?
Hi expert
i want to use chose from list from udf object.
Private Sub LoadingCFL(ByVal oForm As SAPbouiCOM.Form)
Try
Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
'Dim oCons As SAPbouiCOM.Conditions
'Dim oCon As SAPbouiCOM.Condition
oCFLs = oForm.ChooseFromLists
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
' Adding 2 CFL, one for the button and one for the edit text.
oCFLCreationParams.MultiSelection = False
oCFLCreationParams.ObjectType = "SM_TPR" ''''''17
'oCFLCreationParams.UniqueID = "CFL1"
'oCFL = oCFLs.Add(oCFLCreationParams)
oCFLCreationParams.UniqueID = "CFL2"
oCFL = oCFLs.Add(oCFLCreationParams)
Catch
' MsgBox(Err.Description)
End Try
End Sub
when i use object no 17..... its showing order chosefrom list.,but when i use user define field object" SM_TPR"
then its error message showing '''''''''''''' internal error-1033
please solve this problem......
Hi John
U could have given the object type in the screen painter itself.
-Anto
Similar Messages
-
Crystal report Chose from List or drop down value in parameter from UDT
Hi Experts,
I had face a issue while creating a report for my client in crystal report , I had create a report and in the parameter field I want to select the value from the chose from list or drop down value from the User define table.
In parameter had written field as : Code@Select * from dbo. [@UDT] ; but in the report filled I am not able to select the value.
Please Help me ! Thanks in Advance. :HI
Welcome to the Forum...
You cannot put all the values in a single parameter field so you need to select each field for each parameter...
Better you post it in this link for more reponses:
Reporting and Printing -
Condition Specific or attach query with chose from list
Hi All,
I have developed a form with the header containing the Customer Code and Name and the Rows containing columns like SO Number, Item Code, Item Name and Quantity.
The SO Number field has a chose from list and I want that this will show only the Open Sales orders for the customer selected in the header CUSTOMER CODE field of the form.
Similarly The ITEM CODE choose from List will only show the items in that particular selected Sales Order in the first column of that row.
This is very much being possible through formatted search attached. But I wish if this can be done by adding condition or query to the choose from list. Please help me in this regards with your suggestions.
Please provide a sample code if any has already done something like this.
Regards,
RajHi,
U can use a CFL with conditions. So when u tab out u can get only the required records.
Check out the below threads for some samples for CFL conditions. Search the forum for more samples.
CFL with conditions
cfl conditions
RE: CFL Conditions
CFL Conditions and Edit Text
Vasu Natari. -
Just louded new version cat print from quick books internal error message coms up
just louded new version cat print from quick books internal error message coms up
I don't have a link handy, but as far as I know, the Acrobat 9 user guide is available online as a (guess what!) PDF you may download... or is on the disc if you bought physical media
Go to that PDF and search for compatibility
The PDF for version 8 covers setting the options to a previous version on pages 102-103
The words may (or may not) be different for v9
Adobe PDF settings
The Adobe PDF Settings dialog box in Acrobat Distiller contains panels of options that you can select to customize your PDF output.
General panel options
Use this panel to select a version of Acrobat for file compatibility and other file and device settings. (The panel appearance differs in Windows and Mac OS.)
Compatibility Sets the compatibility level of the PDF. Use the most recent version (in this case, version 1.7) to include all the latest features and functionality. If youre creating PDFs that will be distributed widely, choose an earlier level, to ensure that all users can view and print the document. -
Catch chose from list results, & use it
The following script will activate/deactivate layers based on the letter {A, E, D, F} chosen from the list, then export single page (w 3 digits for the page number section) PDF. The problem I have I don't know to trap or cacth the results of whatever is chosen from the list & use it to name the pdf. If file name is ABC01_A_100.indd & the letter chosen from the list is "E" then final pdf should be ABC01_E_100.pdf. If the letter chosen from the list is D then final pdf is ABC_D_100.pdf. Basically what is changing whatever is between the two underscores _?_
I can see the results on the events window. How can I capture the results of whatever is chosen from list? I tried return statement but no success at all.
•Then the other question is if i use choose from list with multiple selection allowed in which I can select more letters: A", "E", "D", "F" how can I output different PDFs with whatever is chosen from the list (with the correct layers activated/deactivated) & file names; ABC01_E_100.pdf, ABC01_F_100.pdf, ABC01_F_100.pdf. See below. Please any input is greatly appreciated.
property myPDFpreset : missing value
set myPDFpreset to "Screen"
set versionLayers to {"A", "E", "D", "F"}
set the_choice to (choose from list versionLayers with prompt "What version do you need?" with multiple selections allowed) as text
set chosenVersionLayer to item 1 of the_choice
-->Activate versions Layers based in what was chosen
if the_choice is false then error number -128
if the_choice is "A" then
myA()
else if the_choice is "E" then
myE()
else if the_choice is "D" then
myD()
else if the_choice is "F" then
myF()
end if
on myA()
tell application "Adobe InDesign CS4"
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Search" to {visible:true}
set properties of layer "Z1" to {visible:true}
--Hide Layers
set properties of layer "Z2" to {visible:false}
set properties of layer "Z3" to {visible:false}
set properties of layer "NS" to {visible:false}
set properties of layer "MD" to {visible:false}
end tell
display alert " A activated"
end tell
end myA
on myE()
tell application "Adobe InDesign CS4"
--set myDocument to active document
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Search" to {visible:true}
set properties of layer "Z2" to {visible:true}
--Hide Layers
set properties of layer "Z1" to {visible:false}
set properties of layer "Z3" to {visible:false}
set properties of layer "NS" to {visible:false}
set properties of layer "MD" to {visible:false}
end tell
display alert " E activated"
end tell
end myE
on myD()
tell application "Adobe InDesign CS4"
--set myDocument to active document
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Z3" to {visible:true}
--Hide Layers
set properties of layer "Z1" to {visible:false}
set properties of layer "Z2" to {visible:false}
set properties of layer "NS" to {visible:false}
set properties of layer "MD" to {visible:false}
set properties of layer "Search" to {visible:false}
end tell
display alert "D activated" giving up after 6
end tell
end myD
on myF()
tell application "Adobe InDesign CS4"
--set myDocument to active document
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Z3" to {visible:true}
set properties of layer "NS" to {visible:true}
--Hide Layers
set properties of layer "Z1" to {visible:false}
set properties of layer "Z2" to {visible:false}
set properties of layer "MD" to {visible:false}
set properties of layer "Search" to {visible:false}
end tell
display alert "F activated" giving up after 6
end tell
end myF
---======================
tell application "Adobe InDesign CS4"
activate
set source_folder to file path of active document --Put the PDFs same folder as ID file
set theName to name of active document
set text item delimiters of AppleScript to {"_"}
set theShortName to text 1 thru text item -2 of theName
--text 1 thru text item -2 is every character from the first character to the second to last text item
set text item delimiters of AppleScript to ""
tell application "Finder"
if (exists folder "PDFs" of folder source_folder) is false then
make folder at source_folder with properties {name:"PDFs"}
end if
end tell
repeat with x from 1 to count pages of active document --single pages
set thePageName to name of page x of active document
set page range of PDF export preferences to thePageName
--section-page number M-U-S-T have 3 digits
set threeDigitPageName to text -3 thru -1 of ("00" & thePageName)
(* text 1 thru 3 are the first 3 characters
text -3 thru -1 are the last 3 characters*)
set theFilePath to source_folder & "PDFs:" & theShortName & "_" & threeDigitPageName & ".pdf" as string
----Export PDF as single pages
tell active document
export format PDF type to theFilePath using myPDFpreset without showing options
end tell
end repeat
end tellThe following script will activate/deactivate layers based on the letter {A, E, D, F} chosen from the list, then export single page (w 3 digits for the page number section) PDF. The problem I have I don't know to trap or cacth the results of whatever is chosen from the list & use it to name the pdf. If file name is ABC01_A_100.indd & the letter chosen from the list is "E" then final pdf should be ABC01_E_100.pdf. If the letter chosen from the list is D then final pdf is ABC_D_100.pdf. Basically what is changing whatever is between the two underscores _?_
I can see the results on the events window. How can I capture the results of whatever is chosen from list? I tried return statement but no success at all.
•Then the other question is if i use choose from list with multiple selection allowed in which I can select more letters: A", "E", "D", "F" how can I output different PDFs with whatever is chosen from the list (with the correct layers activated/deactivated) & file names; ABC01_E_100.pdf, ABC01_F_100.pdf, ABC01_F_100.pdf. See below. Please any input is greatly appreciated.
property myPDFpreset : missing value
set myPDFpreset to "Screen"
set versionLayers to {"A", "E", "D", "F"}
set the_choice to (choose from list versionLayers with prompt "What version do you need?" with multiple selections allowed) as text
set chosenVersionLayer to item 1 of the_choice
-->Activate versions Layers based in what was chosen
if the_choice is false then error number -128
if the_choice is "A" then
myA()
else if the_choice is "E" then
myE()
else if the_choice is "D" then
myD()
else if the_choice is "F" then
myF()
end if
on myA()
tell application "Adobe InDesign CS4"
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Search" to {visible:true}
set properties of layer "Z1" to {visible:true}
--Hide Layers
set properties of layer "Z2" to {visible:false}
set properties of layer "Z3" to {visible:false}
set properties of layer "NS" to {visible:false}
set properties of layer "MD" to {visible:false}
end tell
display alert " A activated"
end tell
end myA
on myE()
tell application "Adobe InDesign CS4"
--set myDocument to active document
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Search" to {visible:true}
set properties of layer "Z2" to {visible:true}
--Hide Layers
set properties of layer "Z1" to {visible:false}
set properties of layer "Z3" to {visible:false}
set properties of layer "NS" to {visible:false}
set properties of layer "MD" to {visible:false}
end tell
display alert " E activated"
end tell
end myE
on myD()
tell application "Adobe InDesign CS4"
--set myDocument to active document
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Z3" to {visible:true}
--Hide Layers
set properties of layer "Z1" to {visible:false}
set properties of layer "Z2" to {visible:false}
set properties of layer "NS" to {visible:false}
set properties of layer "MD" to {visible:false}
set properties of layer "Search" to {visible:false}
end tell
display alert "D activated" giving up after 6
end tell
end myD
on myF()
tell application "Adobe InDesign CS4"
--set myDocument to active document
tell active document
--Activate Layers
set properties of layer "Tive" to {visible:true}
set properties of layer "Logo" to {visible:true}
set properties of layer "Z3" to {visible:true}
set properties of layer "NS" to {visible:true}
--Hide Layers
set properties of layer "Z1" to {visible:false}
set properties of layer "Z2" to {visible:false}
set properties of layer "MD" to {visible:false}
set properties of layer "Search" to {visible:false}
end tell
display alert "F activated" giving up after 6
end tell
end myF
---======================
tell application "Adobe InDesign CS4"
activate
set source_folder to file path of active document --Put the PDFs same folder as ID file
set theName to name of active document
set text item delimiters of AppleScript to {"_"}
set theShortName to text 1 thru text item -2 of theName
--text 1 thru text item -2 is every character from the first character to the second to last text item
set text item delimiters of AppleScript to ""
tell application "Finder"
if (exists folder "PDFs" of folder source_folder) is false then
make folder at source_folder with properties {name:"PDFs"}
end if
end tell
repeat with x from 1 to count pages of active document --single pages
set thePageName to name of page x of active document
set page range of PDF export preferences to thePageName
--section-page number M-U-S-T have 3 digits
set threeDigitPageName to text -3 thru -1 of ("00" & thePageName)
(* text 1 thru 3 are the first 3 characters
text -3 thru -1 are the last 3 characters*)
set theFilePath to source_folder & "PDFs:" & theShortName & "_" & threeDigitPageName & ".pdf" as string
----Export PDF as single pages
tell active document
export format PDF type to theFilePath using myPDFpreset without showing options
end tell
end repeat
end tell -
How to pass data from list to internal table
Sir,
Please tell me how to pass data from list display to internal table. Some fields in the list display are input fields .These are added at run time and these added values should be stored in the internal tableFollow this code sample:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when '<Some user Action>'.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data
* Your internal table will have the data
endcase.
ENDFORM.
Regards,
Ravi -
Emailing from LR4 gives internal error
Emailing from LR4 (export for email), gives the following error, "An internal error has occurred: There is something wrong in CryptUnprotectData." I am not trying to interface with Facebook, but use a gmail account for email. Does anyone know how to solve this error?
I input a solution at : http://forums.adobe.com/message/4503213.
Thanks,
Emily -
ITunes list shows in slide show but won't play music I chose from list.
Down loaded lastest version of iPhoto,when making slide show itunes list shows in chosening music but wont load to the slide show.The sample music shows and plays if picked.Had no trouble with slide show in older version of iPhoto.Itunes worked great in older version,but newer version is not working.
in iTunes - file menu ==> library ==> reorganize library - tehn reboot your Mac
LN -
Associating a Custome ResultSet with a Choose From List
Hi Experts,
I have to Link the Chose from List with a UDO for accessing the records from the Parent Table /Child Table
How to crack this problem?
Also I have to associate the Results of a custom query in a choose from list so that when I press TAB over a Text Box I get a Choose From List which displays the Results and I could select one of those rows.
Plz Hint me for this ProblemHello,
When you create CFL, just set your UDO type with oCFLCreationParams.ObjectType = "My_UDO", the collumn to be displayed in CFL has been determined by Find Service in your UDO definition.
As per custom query, actually you can set the condition to do so. Direct customed SQL is not supported in CFL. You may refer to the SDK sample for further info after you install SDK component:
<<C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList>>
Private Sub AddChooseFromList()
Try
Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
Dim oCons As SAPbouiCOM.Conditions
Dim oCon As SAPbouiCOM.Condition
oCFLs = oForm.ChooseFromLists
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
' Adding 2 CFL, one for the button and one for the edit text.
oCFLCreationParams.MultiSelection = False
'Just Set your UDO type.
oCFLCreationParams.ObjectType = "My_UDO"
oCFLCreationParams.UniqueID = "CFL1"
oCFL = oCFLs.Add(oCFLCreationParams)
' Adding Conditions to CFL1
oCons = oCFL.GetConditions()
oCon = oCons.Add()
oCon.Alias = "CardType"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "C"
oCFL.SetConditions(oCons)
Catch
MsgBox(Err.Description)
End Try
End Sub
Kind Regards
-Yatsea -
The server encountered an internal error that prevented it from fulfilling
Hi members!
I am new member of Java EE. When running my the following practice:
1) file: hello.xhtml*
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
Hello <h:outputText value="#{foo.subject}"></h:outputText>!
</body>
</html>
*2) file: web.xml*
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
<display-name>Hello</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>JSF</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JSF</servlet-name>
<url-pattern>/faces/***</url-pattern>
</servlet-mapping>
</web-app>
*3) file: faces-config.xml
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
</faces-config>
4) file: GreetingService.java
package hello;
import javax.annotation.Named;
import javax.context.RequestScoped;
@Named("foo")
@RequestScoped
public class GreetingService {
public String getSubject(){
return "Paul";
5) file: beans.xml
<?xml version="1.0" encoding="UTF-8"?>
At browser: http://localhost:8080/Hello/faces/hello.xhtml
Had the following errors:
The server encountered an internal error () that prevented it from fulfilling
this request.
*例外*
java.lang.NullPointerException
org.jboss.webbeans.servlet.WebBeansListener.getLifecycle(WebBeansListener.java:53)
org.jboss.webbeans.servlet.WebBeansListener.requestInitialized(WebBeansListener.java:108)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Unknown Source)
My computer is the following configuration:
jre-6u12-windows-i586-p
jdk-6u12-windows-i586-p
jboss-5.1.0.GA
mojarra-2.0.1-FCS-binary
eclipse-jee-ganymede-SR2-win32
Please teache me to know where is cause.
Thank you very much!perhaps it is not a good idea to use JSF 2.0 with JBoss 5.1; it was built to support JSF 1.2 only.
-
I plugged my ipod touch into my computer to sync it and it came up with an error message saying that it encoutered an internal error and it refused to sync.
I then unplugged it and plugged it back in and this time it told me that I needed to restore from a backup or set it up as a new ipod. I tried to restore from a backup but it came up with the error message "Backup session failed" every time. I then looked on my ipod and all of my music and movies are gone though it still says that they are on the ipod in itunes. I decided to use the restore function and let that finish. After restoring it still doesn't allow me to sync or back up and The music and movies can still not be seen. I am currently attempting to copy the music and movies to my ipod though this did not work with my apps as they transfered but when I attempted to open them they just crash... If someone could please help me it would be great. It is driving me crazy.If you get an error that says can't backup, try moving the existing backup file to a safe location and thry again. again. You can find the location of the backup file here:
iPhone and iPod touch: About backups -
Receiving "internal error" when trying to burn mp3 disc from playlist
I'm trying to burn an mp3 disc from a playlist that I've created. Unfortunately, I keep getting an error. I'm currently running iTunes 11.0.2 on my iMac which is currently running 10.8.3. I've done this many times before, and this is the first that I've had this problem. Here's the error I keep getting:
The attempt to burn a disc failed. An internal error occured.
If you want to retry the current failed burn, click on Retry. If you want to go to the next disc burn, click on Next. Otherwise click on Cancel.
Here's how it goes down:
I've created a very long playlist which will require the use of multiple discs.
I right-click on the playlist and select to burn the playlist to disc.
I then get the usual burn settings pop-up menu where I select the "MP3 CD" format with a preferred speed of "Maximum Possible"
Note: Since experiencing this error, I have tried varried speeds ranging from 8x to 24x; I still get the error.
Note Also: I have tried selecting "Audio CD" instead, and the playlist will burn and the error does not appear. This is not an option I want to go with, however, because of the length of the playlist — it would take, like, 25 discs...
For a moment iTunes will read the disc, then ask permission for the playlist to be split across multiple discs. I say "ok".
At this point, iTunes will say that it is initiallizing for about a split second then immediately say it's finalizing and spit out the disc. This is when the error pops up.If I select to "Retry", it doesn't retry to burn; it just saves a .txt file to my desktop that is a copy of the error message. There's no error code/number or anything, though - just the exact same message. "Cancel" and "Next" seem to behave correctly, though.
I have tried repairing disk permissions and restarting my computer. I've also tried using different brands of CDs: Memorex CD-R and Innovera CD-R. The error persists.
Any help on this issue would be greatly appreciated. Thanks in advance!Some people (for reasons I don't know) have problems with Dynamic Link
What happens if you export MPEG2-DVD from Premiere Pro... import the 2 files (audio and video) into Encore... and do ALL of your authoring work in Encore? -
I have an Script mostly that is generated by SSMS which works with-out issue on SQL Server 2008, but when I attempt to run it on a new fresh install of SQL Server 2012 I get an Msg 8631. Internal error: Server stack limit has been reached. Please look for
potentially deep nesting in your query, and try to simplify it.
The script itself doesn't seem to be all that deep or nested. The script is large 2600 lines and when I remove the bulk of the 2600 lines, it does run on SQL Server 2012. I'm just really baffled why something that SQL Server generated with very
few additions/changes AND that WORKS without issue in SQL Server 2008 R2 would suddenly be invalid in SQL Server 2012
I need to know why my script which is working great on our current SQL Server 2008 R2 servers suddenly fails and won't run on an new SQL Server 2012 server. This script is used to create 'bulk' Replications on a large number of DBs saving a tremendous
amount of our time doing it the manual way.
Below is an 'condensed' version of the script which fails. I have removed around 2550 lines of specific sp_addarticle statements which are mostly just copy and pasted from what SQL Management Studio 'scripted' for me went I when through the Replication
Wizard and told it to save to script.
declare @dbname varchar(MAX), @SQL nvarchar(MAX)
declare c_dblist cursor for
select name from sys.databases WHERE name like 'dbone[_]%' order by name;
open c_dblist
fetch next from c_dblist into @dbname
while @@fetch_status = 0
begin
print @dbname
SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
use ['+@dbname+']
exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
use ['+@dbname+']
exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
-- Adding the transactional publication
use ['+@dbname+']
exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
'''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
= N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
@immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
@frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
-- There are around 2400 lines roughly the same as this only difference is the tablename repeated below this one
use ['+@dbname+']
exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script =
null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N''manual'', @destination_table = N''TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false'', @ins_cmd = N''CALL sp_MSins_dboTABLE_ONE'',
@del_cmd = N''CALL sp_MSdel_dboTABLE_ONE'', @upd_cmd = N''SCALL sp_MSupd_dboTABLE_ONE''
EXEC sp_executesql @SQL
SET @dbname = REPLACE(@dbname, 'dbone_', 'dbtwo_');
print @dbname
SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
use ['+@dbname+']
exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
use ['+@dbname+']
exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
-- Adding the transactional publication
use ['+@dbname+']
exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
'''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
= N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
@immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
@frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
-- There are around 140 lines roughly the same as this only difference is the tablename repeated below this one
use ['+@dbname+']
exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''DB_TWO_TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''DB_TWO_TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script
= null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509D, @identityrangemanagementoption = N''manual'', @destination_table = N''DB_TWO_TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false''
EXEC sp_executesql @SQL
fetch next from c_dblist into @dbname
end
close c_dblist
deallocate c_dblist
George P Botuwell, ProgrammerHi George,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
If you have any feedback on our support, please click
here.
Allen Li
TechNet Community Support -
Internal Error when adding Invoice from DI-API
Hello All,
I am trying to add an invoice using DI-API. I hv populated the object using XML and than adding it. Upon adding the error Internal Error (-10) is coming. I hv checked everything but am certainly missing something. Following is the XML of the invoice and the code to add it
<?xml version="1.0" encoding="utf-16" ?>
<BOM>
<BO>
<AdmInfo>
<Object>13</Object>
<Version>1</Version>
</AdmInfo>
<OINV>
<row>
<U_EntryId>1</U_EntryId>
<DocType>I</DocType>
<DocDate>20110923</DocDate>
<DocDueDate>20111023</DocDueDate>
<CardCode>JM0004</CardCode>
<CardName>GAYAN BHARTI</CardName>
<NumAtCard></NumAtCard>
<DiscPrcnt>0.000000</DiscPrcnt>
<DocTotal>755.000000</DocTotal>
<Comments></Comments>
<U_BranchTrans>1</U_BranchTrans>
<SlpCode>-1</SlpCode>
<IsICT>N</IsICT>
<Series>40</Series>
<TaxDate>20110923</TaxDate>
<TrackNo></TrackNo>
<SeqCode>0</SeqCode>
<U_SlpName></U_SlpName>
<U_WebCreated>N</U_WebCreated>
<U_Territory></U_Territory>
<U_InvType>C</U_InvType>
</row>
</OINV>
<INV1>
<row>
<ItemCode>A003</ItemCode>
<Dscription></Dscription>
<Quantity>5.000000</Quantity>
<DiscPrcnt>0.000000</DiscPrcnt>
<WhsCode>JSP-FG</WhsCode>
<PriceBefDi>11.000000</PriceBefDi>
<TaxCode>NonTax</TaxCode>
<U_WebCreated>N</U_WebCreated>
<U_RetQty></U_RetQty>
<U_SaleQty></U_SaleQty>
<U_LineType>S</U_LineType>
</row>
<row>
<ItemCode>A005</ItemCode>
<Dscription>Ace Visual Dictonary 2</Dscription>
<Quantity>10.000000</Quantity>
<DiscPrcnt>0.000000</DiscPrcnt>
<WhsCode>JSP-FG</WhsCode>
<PriceBefDi>70.000000</PriceBefDi>
<TaxCode>NonTax</TaxCode>
<U_WebCreated>N</U_WebCreated>
<U_RetQty></U_RetQty>
<U_SaleQty></U_SaleQty>
<U_LineType>S</U_LineType>
</row>
</INV1>
</BO>
</BOM>
Program Code to add
Dim oSapObject As SAPbobsCOM.Documents
oCompany.XMLAsString = True
oSapObject = oCompany.GetBusinessObjectFromXML(Body, 0)
If oSapObject.Add <> 0 Then
Throw New Exception(oCompany.GetLastErrorDescription & " [" & oCompany.GetLastErrorCode & "]")
End If
Any help would be greatly appreciated. This is sort of urgent and needs to be done immediately.
Regards,
Rahul Jain
PS: The error is coming on oSapObject.Add - it is able to read the invoice from XML, the error comes when trying to add it. All relevant values mentioned in XML are present in the database, and I am able to add an Invoice from the UI.
Edited by: Rahul Jain on Sep 24, 2011 1:29 PMI realize this might not be to much help but everytime I have ever gotten an internal error code it has always turned out to be a SQL error. For instance there could be something in transaction notification that doesnt jive with your submission or something along those lines. Perhaps you could try a more simplified invoice as a test such as just send one item with a price and no UDFs .
Sorry if that is not much help. -
"An internal error has occurred" message when scanning from MX922 to desktop using Windows 7
I am no longer able to scan using my MX922 connected to my desktop running Windows 7 without getting a message on my desktop saying "An internal error has occurred". I have turned the MX922 on and off, I have disconnected both the power cord and USB cable from the MX922 and from my desktop, I have reconnected the USB cable to a different port on my desktop, I have uninstalled all Canon programs from my desktop and reloaded all Canon programs with the MX922 CD, and I have restarted the desktop multiple times. I scan documents several times a week for my business. It has worked fine until today. What do I need to do to correct this problem and get back to scanning?
Hi boisseaujm,
If you temporarily disable any antivirus or firewall software that is on your computer, then attempt to scan again, are you able to scan successfully?
If this is a time-sensitive matter, additional support options are available at Contact Us.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.
Maybe you are looking for
-
Upgrade of Forms4.5 stored in the database
Hi, We are upgrading from Forms4.5 to Forms6i. We have a menu and a form stored in the database 7.3.4 and there are rows in FRM45_OBJECT. After converting and upgrading these database menu and form I see rows in the FMR50__BUFFER but I do not see any
-
I have done A/I; I have done Erase/Reinstall. I have all latest updates. I have deleted some things from my login/startup file; I have repaired permissions and run AppleJack and Maintenance until I'm blue in the face. Safari is the most often culprit
-
Hi I used Time Machine to Backup. I then wiped drive and reinstalled. Leopard. Not wishing to reinstall buggy apps I dragged selected files back. Everything except Mail is behaving as expected. Mail only restored 1 out of 3 accounts. When I dragged t
-
I have been unable to send a regular text message since the other day when I arrived in Houston and took my phone off airplane mode. I have went thru the carrier and nothing we did solved the problem. What are some options I could try. I have no p
-
A question about where the ARC cache resides in a Sun ZFS 7320 Storage Appliance? Does it run in the cache of the storage head or the RAM of the node?