How to add a ChartOfAccounts object into the database.
how to add a ChartOfAccounts object into the database. please shows sample code
thanks
Dim CoA As SAPbobsCOM.ChartOfAccounts
CoA = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)
CoA.Code = 11223344
CoA.ExternalCode = "a1234"
CoA.ForeignName = "f Test Account"
CoA.Name = "Test Account"
CoA.AccountType = SAPbobsCOM.BoAccountTypes.at_Other
CoA.ActiveAccount = SAPbobsCOM.BoYesNoEnum.tYES
CoA.FatherAccountKey = 100001
If CoA.Add <> 0 Then
MessageBox.Show(oCompany.GetLastErrorDescription)
Else
MessageBox.Show("Added Account")
End If
Remember the father account key must be a valid account number in the company where you are trying to add the new account. (The G/L Account code seen in the SBO client)
Similar Messages
-
How to add multiple 3D objects into the same scene (photoshop cs5 extended?
I have about 13 different 3D objects, each on their own layer, and I want them to be able to cast shadows from lights all on the same ground plane. I know the setup for an individual object but when I go to set it up for each one they keep generating their own ground plane and the end result is no where close to where I want them. Does anyone know if this is possible or if there is a workaround? It's vital for this project I'm working on and I can't find any guide for the 3D features in the extended edition that is free.
It's vital for this project I'm working on and I can't find any guide for the 3D features in the extended edition that is free.
The Help?
http://help.adobe.com/en_US/photoshop/cs/using/index.html
Have you checked out 3D > Merge 3D Layers yet? -
How to add a function field into the existing matrix report
Hi,
I have a matrix report , now i wanted to add one moe field into the matrix which is getting the value from a function , this function is a part of the ref cursor query(group) , i'm able to get the value from the function but it cannot display on the existing matrix report. i wanted to add this in the repeating frame which is printing down. how could i do this , looking for your help. thanks . bcjHere the scenario like,
Data from Table_1
NAME UNITS DAYS RATE
AAA 10 1 1.2
BBB 12 2 3.1
AAA 20 2 4.1
CCC 23 1 5.2
Here, In the matrix report the NAME and UNITS are row fields and 'DAYS' is column field , RATE would be the cell field, and
Data from Table_2 ,
NAME BASIC
AAA 2
AAA 2
BBB 2
CCC 3
In the report i have to display the 'BASIC' along with the NAME in row level ( repeating frame printing down),
To get the multiple 'Basic' for each 'Name' using a ref cursor .
and, using a function to do further calculation based on the basic value
begin
select basic into v_basic where name =:name;
return(caluculated_value);
end;
and return the calculated value to the report. But at that time cannot accommodate the value in the matrix report with other groups frequency.
looking for your valuable help. Thanks Bcj -
How to add a filter/selection into the report title?
Hi experts,
Currently I try to fugure out how to set up a field into the page header (title) of a report in order to dynamically adapt the title to selected filter criteria. I tried to use the Reprot Filter Summary, but since I do have several sheets in my reports the information given through it is not applicable.
What I would like to achieve is that the end user can select e.g. a category X and Y and the title says: "Report title - categories: X,Y" Somthg like this. I'd appreciate any tips.
Best regardsHi guys,
thanks so far. I managed to show prompts in the report. But still my problem is nor 100% solved
I would like t achieve that the filtered criteria in the report title is separated through a comma like in the report filter summary - e.g.: {001, 002, 003, 004} followed by just 1chart/table that is including the whole information.
When I however just drag a variable into the report it automatically created different sections, right? Like ........ table, chart, whatever... .......table chart whatever........
Regards -
How to load a XML file into the database
Hi,
I've always only loaded data into the database by using SQL-Loader and the data format was Excel or ASCII
Now I have to load a XML.
How can I do?
The company where I work has Oracle vers. 8i (don't laugh, please)
Thanks in advance!Hi,
Tough job especially if the XML data is complex. The have been some similar question in the forum:
Using SQL Loader to load an XML File -- use 1 field's data for many records
SQL Loader to upload XML file
Hope they help.
Regards,
Sujoy -
How to import an .csv file into the database?
and can we code the program in JSP to import the.csv file into the database.
It is better to use Java class to read the CSV file and store the contents in the database.
You can use JSP to upload the CSV file to the server if you want, but don't use it to perform database operations.
JSPs are good for displaying information on the front-end, and for displaying HTML forms, there are other technologies more suitable for the middle layer, back end and the database layer.
So break you application into
1) Front end - JSPs to display input html forms and to display data retrieved from the database.
2) Middle layer - Servlets and JavaBeans to interact with JSPs. The code that reads the CSV file to parse it's contents should be a Java Class in the middle layer. It makes use of Java File I/O
3) Database layer - Connects to the database using JDBC (Java Database Connectivity), and then writes to the database with SQL insert statements.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keeping the above concepts in mind, first build a simple JSP and get it to work,
then research on Google , for Java File I/O , discover how to read a file,
Then search on how to readh a CSV file using Java.
After researching you should be able to read the CSV file line by line and store each line inside a Collection.
Then research on Google, on how to write to the database using JDBC
Write a simple program that inserts something to a dummy table in the database.
Then, read the data stored in the Collection, and write insert statements for each records in the collection. -
How to add static resource file into the NetBean project
I have several static data files(such as icons, images and etc.) need to be loaded by the program. How to add them into the NetBean project?
ThanksTry a NetBeans forum. This is the Java Compiler forum.
-
Pls see the title. There are hundreds of elements/paragraphs.
Thanks for that information.
I did not see that the “go to view link” could change documents. I thought it was only within a document.
I manually added two “go to view links” and that seems to work on both mac and pc computers.
That brings up two questions.
For old files can a acrobat java script batch file be setup to read the hyperlinks in a pdf document and replace them with a “go to view link” style?
Can one place a “go to view link” style in a word document and then have the adobe convert to acrobat process it into the pdf format with the rest of the document? (or set up the converter to make word hyperlinks change to pdf “go to view links”? -
How to add a UIResponer object in the Responder Chain ?
Hello,
I'm quite new in iPhone developement and in Objective-C programming, and I am not very good (of course I'm French :)).
I'm sure my problem is simple, but I can't find a clear response in the doc and on the Web..
I have a custom view which implements the touchesBegan, touchesMoved, and touchesEnded methods in order to handle touch screen events. For a clear separation between View and Control (MVC pattern), I want to delegate these events to another class which inherits from the UIResponder class. How can I do that ?
I think I have to move the touchesBegan and touchesMoved methods into my new UIResponder class, but how can I indicate to the View that it must forward the events to my new UIResponder class ? In the doc (iPhone OS Programming Guide, Event Handling) it is said that we have to modify the Responder Chain, but I don't know how to do that... In the init method of my custom view, I just can't call the becomeFirstResponder method with my UIResponder class as a receiver because the canBecomeFirstResponder return NO.
Please help me ! I'm sorry to be such a noob.
Thank you !!I think my problem is near to be solved : I have overriden the nextResponder method and returned my UIResponder object in my custom view . So I can handle the touch events in the responder. But the canBecomeFirstResponder still return NO in the init method of my custom view. Does someone know about that and can explain it to me ?
Thanks ! -
How to add a filter-function into the navigation?
Hi,
…this website has a pretty cool navigation-concept based on a filter-function:
http://trufcreative.com/work
Any chance to build the same kind of functionality ( "sort by” ) + ( as a separated navigation level ) with MUSE?
Any hint would be much appreciated!
GHello Sanjit,
Thank you for your feedback!
I was facing quite a few issues I had to focus on before being able to concentrate on this sorting-topic.
Would you provide some details about the mentioned possibilities available with Business Catalyst?
Merci !
G -
I need to add the values stored in the session object into the html textbox
Dear Sir,
i have been trying to create an edit employee details page
What i have done till now is as follow:
1. Got employee id from HTML page.
2. Compared it with the id stored in the database.
3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.
4. Dispatched the session values to another servlet EditEmpDetails2.java
what i need to do now
5. Now i need to set the session values in the text field of the html form
6. I also need to be able to edit those vales and store the edited values in the database.
Please help me as i have tried doing it for 1 week without any clues
i have tried to create a html page which is something like this:
<html>
<head>
<title>Edit Employee Details Page</title>
<body BGCOLOR="red" text="black">
<h1 ><font color="black">Edit Employee Details Page</font></h1>
<form action = "EditEmpDetails" method="Get">
<table width="50% align="center"
<tr><td>Employee ID: </td>
<td><INPUT TYPE="TEXT" name="employeeid"<br></td></tr>
<tr><td><center><input type="submit" value="submit"></center></td></tr>
<tr><td><center><input type="reset" value="reset" ></center></td></tr>
</table>
</form>
</body>
</html>
design of my servlet EditEmpDetails.java
public void EditEmpDetails1 extends HttpServlet
public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException
PrintWriter out = response.getWriter();
response.setContentType("text/html");
HttpSession session = request.getSession();
String employeeid;
String X = request.getParameter("employeeid");
System.out.println("Employee iD:" + X);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:murphy");
String query = "Select * from users where employeeid=?";
PreparedStatement stat = con.prepareStatement(query);
System.out.println(stat);
stat.setString(1,X);
ResultSet rs = stat.executeQuery();
while(rs.next())
String Z = rs.getString(password);
if(Z.equals(X))
String A = rs.getString(1);
session.setAttribute("employeeid", A);
String B = rs.getString(2);
session.setAttribute("firstname", B);
String C = rs.getString(3);
session.setAttribute("lastname", C);
String D = rs.getString(4);
session.setAttribute("gender", D);
String E = rs.getString(5);
session.setAttribute("dateofbirth", E);
String F = rs.getString(6);
session.setAttribute("address", F);
String G = rs.getString(7);
session.setAttribute("postalcode", G);
String H = rs.getString(8);
session.setAttribute("phone", H);
String I = rs.getString(9);
session.setAttribute("mobile", I);
String J = rs.getString(10);
String url = "/EditEmpDetao;s.java";
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url)
dispatcher.forward(request,response);
catch (Exception e)
system.out.println(e)
I do not know how to put the values stored in the session object into the html text box3. If the id is correct then pulled the record of the corresponding employee and stored it in the session object.do you really need to store this in session object?
5. Now i need to set the session values in the text field of the html form which form? in a new html/jsp page? i suggest go for a JSP
In your JSP page use JSP expression tags to put the session attributes.
it's something like : <input type='text' name='employeeid' value='<%= session.getAttribute("employeeid") %>' >and you need to generateanother servlet for saving the details/modifications to the database.
I think i m clear enough.
if you need more clarifications. just try it and then post your problem.
Diablo -
How can I add keywords for SEO into the code?
How can I add keywords (for SEO) into the code of a Muse designed site?
You might also be interested in the upcoming MuseJam on Thursday Muse Jam: Search Engine Optimization | Facebook
Muse Jam: Search Engine Optimization
Online May 22, 2013
Join Principal Product Manager Dani Beaumont of the Adobe Muse team as she explores ways within the Muse application to build search engine optimized sites by way of metadata, keywords, H1 definitions, and sitemap generation. After the presentation we'll open the floor to any questions you might with the application. -
How to add a container object in a station globals
Hi,
How to add a container object in a station globalsHi radlou,
This might be what you're looking for:
NewSubProperty Method
Syntax
PropertyObject.NewSubProperty ( lookupString, ValueType, asArray, typeNameParam, options)
Purpose
Creates a new subproperty with the name the lookupString parameter specifies.
Parameters
lookupString As String
[In] Pass the lookup string for the new subproperty to be created. If you pass a lookup string with multiple levels (such as "x.y.z"), this method creates all of the necessary intermediate container objects. Refer to lookup string for more information about the strings you can use.
ValueType As PropertyValueTypes
[In] Pass the type of value you want the new subproperty to store.
asArray As Boolean
[In] Pass True to make the new subproperty an array whose elements are of the type you specify in valueType.
typeNameParam As String
[In] Pass the name of an existing type if you want to create the new subproperty as an instance of a named type. Otherwise, pass an empty string. If you pass a type name, you must pass PropValType_NamedType for the ValueType parameter. Refer to NamedPropertyTypes for a list of built-in named types.
options As Long
[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options. You do not need to pass the InsertIfMissing option to create the new subproperty. Pass DoNothingIfExists if you want the method to not report an error if the subproperty already exists. -
How to add services for object in ECC6.0
Hi everybody,
Can anybody tell me how to add "Services for Object" icon in ECC 6.0 because this icon is there in 4.6C but not coming in ECC 6.0.
Thanks in AdvanceHi Saurabh,
Thanks for your reply. I have checked the path given by you...System-> Service for object, but it is showing no service available as told by you. Cud you please tell me how to add this service because this is working fine in 4.6C but I dont know how to add these services in ECC 6.0. If any code for this which is written in 4.6C which I can refer... please tell me where to see the code for adding services (in 4.6C) b'coz its very urgent. -
How to add more summary data in the MIP of Compensation workbench
Hi all,
In the MIP (incentive plan) of the compensation workbench, we need to add more summary data in the summary section. I checked that all the summary data in that section are stored in the table 'ben_cwb_summary'.
Even we can change the VIEW object for that page (using extension), we can't retrieve it because the new summary data/information we need to add are not stored in the table 'ben_cwb_summary'. We need to write our query to summerize data.
How to implement it?
Thanks in advanced!
Janefaiz2000 wrote:
> How to add more one record in the same time?
>
> Please I need your help to add more one record in the
same time, how can I do
> that?
>
> I have only one text field and the value it is linked
from other table, if
> user he bushes bottoms the all data it will copy it to
new record:
>
> Ex.: <input name="textfield" type="text"
>
value="<%=(Recordset1.Fields.Item("webgroup").Value)%>">
>
>
Use "Repeat Region"
Mick
Maybe you are looking for
-
IPod Touch 5th Gen sound really low when playing movies/tv shows from video app
I just bought a ipod touch 5th generation for my daughter so she can watch her movies and tv shows that i purchased on itunes. On my iPhone 5S, I have no problems with the sound... Loud and clear. However with my new ipod touch, those same movies/tv
-
Prior to a couple weeks ago when I clicked on the Fire Fox icon on my MacBook air it went directly to the Fire fox home page. Now when my computer has been off and I choose the Fire Fox icon, I get a message that Fire Fox is in "offline" mode. I then
-
Employee Contact details and Project Details
Hello Experts, I need some information about the Employee Contact details, its project details. i.e. The tables from which I can retrieve the required data. Is there any built in BAPI for the same?? Please reply. Thanks, Prashant
-
Soundcloud doesn't work since I installed Win8
When I was still on Windows 7 64bit, soundcloud worked perfectly. Ever since I installed Windows 8, the new soundcloud version hasn't been working properly. Tracks start loading but they don't want to play. I have tried removing adblock and reinstall
-
I have purchased 20 gb space in icloud yesterday but still space is not showing
Yesterday i have purchased 20 GB space in incloud to update ios 8 but still space is not showing while money deducted from my credit card