Can any one clear my dought's ?
Here is a peace of code :-
try
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost/project?user=root&password=swardfish");
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("Select * from bill");
while(rs.next())
System.out.println(rs.getString(1));
System.out.println(rs.getString(2));
System.out.println(rs.getString(3));
catch(Exception e)
System.out.println("This Jsp File Not Working");
}now what this line means & also ".newInstance()"?
Class.forName("com.mysql.jdbc.Driver").newInstance();
newInstance Stand's For hear ?
if i wan to use oracle then what queary i have to right ?
& one more.
i wana use MsAccess So can i use with java?
if yes then pl tell me how i want to use withought JDBC:ODBC Connection so can i use it ?
I award you full marks for originality of spelling.
> Class.forName("com.mysql.jdbc.Driver").newInstance();It is roughly equivalent to doing this:
new com.mysql.jdbc.Driver();
newInstance Stand's For hear ?It doesn't stand for anything; it's a method on the class called java.lang.Class - see the API documentation for details.
if i wan to use oracle then what queary i have to
right ? [ ditto Access ]I think you need to read the tutorial:
http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html
Similar Messages
-
Have doubt?? Can any one clear it
Hi guys i have doubt.It will be nice if
some one clears it
around.
Question:
when making a connection to the database using
ConnectionPooling should we close
connection,statementobject and resultSet.
like this(this is the way i am doing too.)
try
---opening a connection,rs,stmt
other code
}catch() {
finally{
if(rs!=null)
rs.close();
if(stmt!=null)
stmt.close();
if(conn!=null)
conn.close()
Doubt:
Is it not Sufficient to close the connection.Can any one
explain in detail why resultset and statment should be
closed.From my understanding, close releases resources on the object, so I would suspect that each DB driver implements their resources independently. It would be DB driver specific if closing the connection would cascade the resource cleanup to any objects that were created within that connection. I perform the same logic you do at the end of my DB calls. I have each in a try/catch since close throws SQLException, and I would prefer if each got the chance to execute. I don't do anything with an exception if close fails, because there really isn't anything you can do.
try {
...something to DB
}finally
try {
if(rs != null )
rs.close();
}catch(Exception e){}
try {
if(cursor != null )
cursor.close();
}catch(Exception e){}
try {
if(conn != null )
conn.close();
}catch(Exception e){}
} -
Help needed I updated my ipad2 with iOS5 but few of my dashbaords (HTML5) are not working now ,can any one let me know how to downgrade the OS as we have a meeting coming up .. its urgent
Downgrading the iOS is not supported. If you are using Safari this try clearing its cache via Settings > Safari.
If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
Can any one say What are the mandatory parameters in BAPI_GOODSMVT_CREATE
Hi,
Can any one say What are the mandatory parameters in
BAPI_GOODSMVT_CREATE.
Helpful answer will be rewarded.Hi,
The following is an abap program making used of the BAPI function BAPI_GOODSMVT_CREATE to do Goods Receipts for Purchase Order after importing the data from an external system.
BAPI TO Upload Inventory Data
GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
02 - MB31 - Goods Receipts for Prod Order
03 - MB1A - Goods Issue
04 - MB1B - Transfer Posting
05 - MB1C - Enter Other Goods Receipt
06 - MB11
Domain: KZBEW - Movement Indicator
Goods movement w/o reference
B - Goods movement for purchase order
F - Goods movement for production order
L - Goods movement for delivery note
K - Goods movement for kanban requirement (WM - internal only)
O - Subsequent adjustment of "material-provided" consumption
W - Subsequent adjustment of proportion/product unit material
report zbapi_goodsmovement.
parameters: p-file like rlgrap-filename default
'c:\sapdata\TEST.txt'.
parameters: e-file like rlgrap-filename default
'c:\sapdata\gdsmvterror.txt'.
parameters: xpost like sy-datum default sy-datum.
data: begin of gmhead.
include structure bapi2017_gm_head_01.
data: end of gmhead.
data: begin of gmcode.
include structure bapi2017_gm_code.
data: end of gmcode.
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
data: begin of itab occurs 100.
include structure bapi2017_gm_item_create.
data: end of itab.
data: begin of errmsg occurs 10.
include structure bapiret2.
data: end of errmsg.
data: wmenge like iseg-menge,
errflag.
data: begin of pcitab occurs 100,
ext_doc(10), "External Document Number
mvt_type(3), "Movement Type
doc_date(8), "Document Date
post_date(8), "Posting Date
plant(4), "Plant
material(18), "Material Number
qty(13), "Quantity
recv_loc(4), "Receiving Location
issue_loc(4), "Issuing Location
pur_doc(10), "Purchase Document No
po_item(3), "Purchase Document Item No
del_no(10), "Delivery Purchase Order Number
del_item(3), "Delivery Item
prod_doc(10), "Production Document No
scrap_reason(10), "Scrap Reason
upd_sta(1), "Update Status
end of pcitab.
call function 'WS_UPLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
exit.
endif.
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
loop at pcitab.
itab-move_type = pcitab-mvt_type.
itab-mvt_ind = 'B'.
itab-plant = pcitab-plant.
itab-material = pcitab-material.
itab-entry_qnt = pcitab-qty.
itab-move_stloc = pcitab-recv_loc.
itab-stge_loc = pcitab-issue_loc.
itab-po_number = pcitab-pur_doc.
itab-po_item = pcitab-po_item.
concatenate pcitab-del_no pcitab-del_item into itab-item_text.
itab-move_reas = pcitab-scrap_reason.
append itab.
endloop.
loop at itab.
write:/ itab-material, itab-plant, itab-stge_loc,
itab-move_type, itab-entry_qnt, itab-entry_uom,
itab-entry_uom_iso, itab-po_number, itab-po_item,
pcitab-ext_doc.
endloop.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = gmcode
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg
clear errflag.
loop at errmsg.
if errmsg-type eq 'E'.
write:/'Error in function', errmsg-message.
errflag = 'X'.
else.
write:/ errmsg-message.
endif.
endloop.
if errflag is initial.
commit work and wait.
if sy-subrc ne 0.
write:/ 'Error in updating'.
exit.
else.
write:/ mthead-mat_doc, mthead-doc_year.
perform upd_sta.
endif.
endif.
FORM UPD_STA *
form upd_sta.
loop at pcitab.
pcitab-upd_sta = 'X'.
modify pcitab.
endloop.
call function 'WS_DOWNLOAD'
exporting
filename = p-file
filetype = 'DAT'
IMPORTING
FILELENGTH =
tables
data_tab = pcitab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
OTHERS = 6
endform.
*--- End of Program
Reward for useful answers.
Regards,
Raj. -
Can any one pls tell me the mandatory fields for BAPI_ACC_DOCUMENT_POST
hi all ,
Can any one pls tell me the mandatory fields for BAPI_ACC_DOCUMENT_POST
what all data i need to give to post a document.
Thanks and Regards
JKHi...
part of my source code:
** Header Data " Sending comp code
wa_documentheader-comp_code = 'XXXXX'.
wa_documentheader-doc_date = '20060620'.
wa_documentheader-pstng_date = '20060620'.
wa_documentheader-doc_type = 'XX'.
wa_documentheader-username = sy-uname.
wa_documentheader-ref_doc_no = 'XXxxxxxx'.
wa_documentheader-header_txt = 'Text Header.
wa_documentheader-bus_act = 'XXXX'.
*it_currencyamount
wa_currencyamount-itemno_acc = '1'.
wa_currencyamount-currency = 'COP'.
wa_currencyamount-amt_doccur = 1943.
APPEND wa_currencyamount TO it_currencyamount.
*it_accountpayable
wa_accountpayable-itemno_acc = '1'.
wa_accountpayable-gl_account = '1234567890'.
wa_accountpayable-bus_area = 'DIV'.
wa_accountpayable-item_text = 'Text 1 XXxxxxx '.
wa_accountpayable-pmnt_block = ''.
APPEND wa_accountpayable TO it_accountpayable.
*it_accountgl
wa_accountgl-itemno_acc = '2'.
wa_accountgl-gl_account = '1234567890'.
wa_accountgl-item_text = 'Text 2 XXxxxxx'.
wa_accountgl-bus_area = 'DIV'.
APPEND wa_accountgl TO it_accountgl.
wa_currencyamount-itemno_acc = '2'.
wa_currencyamount-currency = 'COP'.
wa_currencyamount-amt_doccur = ( 1943 ) * -1.
APPEND wa_currencyamount TO it_currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
EXPORTING
documentheader = wa_documentheader
TABLES
accountgl = it_accountgl
accountpayable = it_accountpayable
currencyamount = it_currencyamount
return = it_return.
clear it_return.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = wa_documentheader
TABLES
return = it_return
currencyamount = it_currencyamount "currencyamount
accountpayable = it_accountpayable "accountpayable
accountgl = it_accountgl "accountgl
EXCEPTIONS
OTHERS = 01.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'. -
I cannot install latest itunes to my Sony notebook which is running on traditional chinese windows 7 64-bit, the error message is something like unrecognized windows package, can any one help me or has similar experience? Thanks.
iTunes 9.0.x is certainly compatible with Win7 64 bit since I use that exact setup on 3 different PCs. Two suggestions for your installation problems:
1)Download a new copy of the 64 bit installer from Apple then, instead of just running the itunes installer right click on it and try 'run as adminstrator'. In my experience that clears up a world of problems with program installation in Win7 and Vista. This is necessary even if you're already logged in as an administrator.
2) Try the previous version of iTunes (9.0.3). You can get a copy at http://www.oldapps.com/itunes.php?old_itunes=54 again right click on the file and "run as administrator"
Good luck, hope this helps.
Lil -
Can any one send select query for this?
Hi,
can any one plese send select query for the following query.please send as early as possible.
Loop through the I_BSID internal table to fill records in I_OUTPUT.Combine data from I_BSID, I_KNKK, I_KNKK_KNKLI, I_KNA1 and I_KNVV into I_OUTPUT based on the linking conditions .Field Description Source are
I_OUTPUT-BUKRS Company code I_BSID-BUKRS
I_OUTPUT-KUNNR Customer number I_BSID-KUNNR
I_OUTPUT-NAME1 Customer Name I_KNA1-NAME1
I_OUTPUT-KNKLI Credit account I_KNKK-KNKLI
I_OUTPUT-KDGRP Customer Group I_KNKK-KDGRP
I_OUTPUT-KLIMK Credit Limit I_KNKK_KNKLI-KLIMK
I_OUTPUT-KVGR1 Business Unit I_KNVV-KVGR1
I_OUTPUT-REBZG Invoice Number I_BSID-REBZG
I_OUTPUT-BLDAT Invoice Date I_BSID-BLDAT
I_OUTPUT-WAERS Document Currency I_BSID-WAERS
I_OUTPUT-DUE_DATE Due Date Based on below
Calculation
Get the Payment terms days combining I_BSID and I_T052 based on the linking conditions mentioned above. Note : a) Baseline Date : If baseline date I_BSID-ZFBDT is blank , use the Document Date.b) Payment Term Days :If I_BSID-ZBD3T is not blank, take this as Payment Term Days for Due date calculation.
If I_BSID-ZBD3T is Blank, then get payment term days from I_T052 based on I_BSID-ZTERM. If there are more than one record in I_T052 for the given Payment term, get the day part from baseline date and select the first record where the day limit I_T052-ZTAGG is greater than the day part.If I_BSID-ZBD3T is blank and I_BSID-ZTERM is also blank, then take Y000 (Due Immediately) as Payment term and proceed with the above logic. Set the payment term field blank while printing.
Calculate Due date : For Debits, Determine Due Date = Baseline Date + Payment term Days(not discount days) For Credits Due date = Baseline date.Then, move the amount I_BSID-DMBTR to respective buckets (Not yet Due, Current Due, Past due 1-30, Past Due 31-60 etc.) Based on the due date.
Thanks&Regards,
praveen kumar.AHI,
To get Open Items you can use Function module:
data:i_items TYPE STANDARD TABLE OF rfpos.
CALL FUNCTION 'CUSTOMER_OPEN_ITEMS'
EXPORTING
bukrs = p_bukrs
kunnr = wa_customer-kunnr
TABLES
t_postab = i_items
EXCEPTIONS
no_open_items = 1
OTHERS = 2.
Table I_items will have all the open items for that Customer in the given company code.
Well for Clear Items: Try
GET_CLEARED_ITEMS or FMITPOFM_CLEARED_ITEMS_GET.
Hope it helps.
Manish -
when i was trying to update my iphone 4s from 6.1.4 to ios 7,its asking to change the media sync options,how can i change that option,can any one help me.........?
I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
Thanks very much for your feedback. -
Hi
This is with respect to P-Card.
I am actually confused with G/L account funda.
I understand that the G/L account and Document type is created in backend to configure the PCARD. The Card company is created as vendor and the newly created G/L account and document type is assigned to it in the backend.
But how can I assing one new G/L account and document type to the PCARD functionality.
I am not understanding this concept. Can any one tell me what exactly needs to be done in SRM with respect to G/L account and document type.
Thnaks
JaganHi
<u>Here are the detailed steps for R/3 as well as the SRM cofiguarion for P-Card scenario.
<b>In the SRM system</b> - SPRO Transaction, Define Number ranges
<b>1) You create number ranges</b>
<b>2) Define Card Company</b>
You create Company Logical_System and Description
Say,
AMEX R3_LOGICAL_SYSTEM R/3 back-end logical system
<b>3) Allocate Company code</b>
In this step, you define the details on a card company for Financial Accounting for each company code. This includes:
->Vendor
Each company must have their own vendor master record in the backend R/3 System.
-> Clearing account
-> Document type
You define with which document type the system makes postings to the G/L accounts in Financial Accounting. SAP recommends creating a separate document type for these invoices in the backend system.
Say,
PCard_Company R/3_Company_code R/3_GL_ACCOUNT R/3_VENDOR_BANK_ID R/3_DOC_TYPE R/3_Tax_Account_P-Card_Tax_posting
AMEX 1111 90100 100108 ZA 91500
Similarly, maintain new entries for each new R/3 company code and save it.
<b>R/3 system config settings</b>
In R/3 system, create this new Document type (say "ZA" in our case)
SPRO Path ->
Financial Accounting -> Accounts Receivable and Accounts Payable -> Business Transactions -> Outgoing Invoices/Credit Memos -> Carry Out and Check Document settings -> Define Document types
Maintain new document type (Say ZA)
Document type - ZA
Description - (For PCard in SRM)
Properties tab
Number range -> say 99
Reverse Doc. Type -> ZA
Account types allowed (Enable/ tick the following)
X Assets
X Vendor
X Material
X G/L account
</u>
Let me know incase you face any issues.
Hope this will help.
Please reward suitable points, incase it suits your requirements.
Regards
- Atul -
The task failed with error: Invalid BPM Object context key, can any one hel
The application works fine on version 5.7. I am trying to migrate to 10.3 angetting the error when tried to execute task. This is coming up from opening a jsp page; don't know exact code/line number as the error message is in a popup window and doesn't show it clearly in logs:
The task could not be successfully executed. Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'.
See log file for more information [Error code: workspace-1255544311265]
The log shows the below starting from just before the error upto the complete error msg:
ExecutionDispatcher.actionId: RUN_INSTANCE_TASK
WamJsp: commit prepare.
java.lang.NullPointerException
java.lang.NullPointerException
at fuegoblock.net.NewJSP$1.prepare(NewJSP.java:185)
at fuego.web.execution.InteractiveInvocation.retryExecution(InteractiveInvocation.java:72)
at fuego.web.execution.InteractiveExecution.retry(InteractiveExecution.java:246)
at fuego.web.papi.TaskExecutor.runInstanceTask(TaskExecutor.java:375)
at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:98)
at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Unexpected Error:The task could not be successfully executed.
Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'.
Can any one please help?
JavedHi Javed,
I'm having similar error. What was the root cause of your problem? How did you fix that?
Thanks,
Bharat -
Hi every one can any one help i have a problem in importing java dump for
hi every one can any one help i have a problem in importing java dump for solman 4.0 mssql 2005 sr3
Hi wahed,
Please elobrate question not clear.
Regards,
Shahed iqbal -
Can any one tell whether the concept which i understood is correct or not
hai everyone
iam studying jdbc and this is what i understood about the basic concept .can any one tell whether the concept which i understood is correct or not
whenever the statement class.forName("driver class") is executed driver class is loaded and registered with drivermanager.Internally drivr class contains a static bloc which contains the following code
static
Driver drv=new name of driver class();
DriverManager.registerDriver(drv);
whenever the statement class.forName("driver class") is executed,static bloc is executed first and driver class is registerd.
concept as i understood about DriverManager:
suppose there may be situations where an application developed in java has to deal with one or several databases and this is accomplished with one or different driver classes.so all these driver classes are to be managed and this is done by DriverManager class and in order to make the driver class itself known to the driver manager we have to register the driver classes with the help of registerDriver() method of DriverManager class because DriverManager is the class which will attempt to load the driver classes into memory..
If we look at the last statement: DriverManager is the class which will attempt to load the driver classes into memory.Here i have some doubt if DriverManager class loads the driver class after registering the driver class then what does the statement class.forName("driver class") will do which is also used to loaad the driver class.
what i understood is since the responsibility of loading the class is done by class.forName("driver class") only registering of the driver class is done as the class is alredy loaded.
help me to clear my confusion
thanks in advancehai everyone
iam studying jdbc and this is what i understood about
the basic concept .can any one tell whether the
concept which i understood is correct or not
whenever the statement class.forName("driver class")
is executed driver class is loaded and registered
with drivermanager.Internally drivr class contains a
static bloc which contains the following code
static
Driver drv=new name of driver class();
DriverManager.registerDriver(drv);
}That's supposed to be the case, but there's no way to guarantee that every driver actually has that static init. I don't think I've ever run across one that doesn't, though, so, yes, you're basically correct.
whenever the statement class.forName("driver class")
is executed,static bloc is executed first and driver
class is registerd.When you do Class.forName(), the class is loaded and initialized. Whenever you initialize a class, its static init blocks are executed, yes.
concept as i understood about
DriverManager:
suppose there may be situations where an application
developed in java has to deal with one or several
databases and this is accomplished with one or
different driver classes.so all these driver classes
are to be managed and this is done by DriverManager
class and in order to make the driver class itself
known to the driver manager we have to register the
driver classes with the help of registerDriver()
method of DriverManager class because
DriverManager is the class which will attempt
to load the driver classes into memory..Except for that last part, yes.
DM keeps track of loaded drivers, and gives them a chance to parse the connection URL when you call getConnection. DM does NOT load the driver classes into memory, however. That's done when you call Class.forName.
what i understood is since the responsibility of
loading the class is done by class.forName("driver
class") only registering of the driver class is done
as the class is alredy loaded.Right. -
Can any one tell me how we are linking BF and UM
Dear all,
I have a question regarding the linkage between the 2LIS_03_BF and 2LIS_03_UM ( revaluations).
Both the data sources data is there in the PSA but from PSA to infocube how the data will flow through update rules...can any one give me with one example so that all my doubts wil be cleared..
can u pleas take an example with the help of a document nubers of MM ans FI....
Regards
venu
Edited by: venu on Apr 8, 2008 6:47 AMHi,
Bf is useful to get the material movements. the movements are determined by the movement type field. based on the movement type the material quantity will be treated as debit or credit. this will help us in getting the invetory positions at a particular point.
um data is picked from fi tables to get Map i.e is moving average price and prices determined or reflected in the fi tables.this is to valuate tha stocks.
Regards,
sekhar reddy -
Can any one send purchase order flow with detail
hi i have one doubt during purchase order can any one send flow of purchase order
Ravi,
What Is The DataFlow Of MM?
The dataflow as functional process below are the points:
1) Purchasing Requsition -> sent by inventory dept to purcharsing dept
2) Request for Quotation(RFQ)-> Purchasing Dept shall ask the vendors to give the quotation for the requested materials by inventory.
3) Quotation -> Quotation is sent by vendors to the company
4) Purchase order-> Based on all paramers of a quotation sent by vendors. Vendors are selected from whom the material has to be obtained. The company gives purchase order to the vendor.
5) Good's receipt -> vendors sends the goods to the company with goods receipt
6) Invoice verification -> this done based on good's receipt. this means that the ordered goods have reached or not.
7) Payment -> payment is done based on invoice verification. this is (FI/CO) *-- Santosh Kumaar.M
Full MM Transaction Codes Flow:
RFQ to Vendor - ME41
Raising Quotation - ME47
Comparison of Price - ME49
Creation of PO - ME21N
Goods Receipt - MIGO
Invoice (Bill PAssing) - MIRO
Goods Issue - MB1A
Physical Inventory - MI01( Create doc)
MI04 (Enter Count)
MI07 (Post)
The FI - MM integration:
First you define the g/l master records.
1) Inventry raw material a/c
2) GR/IR clearing a/c
3) Raw material consumption a/c
Above like this you define all required g/l accounts then you will go to T.CODE - OBYC
Double click BSX (this is transaction key)
" GBB
" WRX
" PRD
These are transaction keys important.
Then you go to T CODE - OMSY (this is also important) then
Material creation T Code MM01
then
1) Purchase order T.code ME21N
2) Goods received " MIGO
3) Invoice verification " MIRO
The FI - MM integration finished
PO Flow
http://sap-img.com/materials/what-is-the-dataflow-of-mm.htm
http://sap-img.com/materials/what-is-the-dataflow-of-mm.htm
Don't forget to reward if useful... -
Can any one send Mltiprovider link in BI7.0
Hi Experts,
Can any one send Mltiprovider link in BI7.0.hi srini..
check out this link for creating multiproviders in bi7...
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/bc734190ba137de10000000a155106/frameset.htm
and here are the steps for creation..
1. Create an InfoArea to which you want to assign the new MultiProvider.
2. Choose Modeling InfoProvider.
3. In the context menu of the InfoArea, choose Create MultiProvider.
4. Enter a technical name and a description.
5. Choose Create.
6. Select the InfoProvider that you want to form the MultiProvider. Choose Continue. The MultiProvider screen appears.
7. Use drag and drop to transfer the required InfoObjects into your MultiProvider. You can also transfer entire dimensions.
8. Use Identify Characteristics and Select Key Figures to make InfoObject assignments between MultiProviders and InfoProviders.
In a MultiProvider, each InfoObject in the MultiProvider must correspond to exactly one InfoObject in each of the InfoProviders involved (as long as it is available in the MultiProvider). If this mapping is not clear, you have to specify the InfoObject to which you want to assign the InfoObject in the MultiProvider.
9. Save or Activate the MultiProvider. Only active MultiProviders are available for analysis and reporting.
hope it will help..
Maybe you are looking for
-
How to start a BPM process from ERP system
Hi, I created a process in Netweaver Developer Studio with the Process Composer in SAP CE 7.1 BPM, now I want to automatically start the process by saving a SAP document like purchase requisition or purchase order. Therefore I think about implementin
-
I just bought a samsung HD tv....i would sometimes like to the connect the two what cables would i need? is a wireless connection posssible?
-
Jsf 2.0 functionality in Jsf 1.2
Hi Team, I am using Jdev version 11.1.1.7 so JSF Version : JSF 1.2 I need to use the functionality which presents in the JSF 2.0. i.e., FacesContext.getAttributes() and UIViewRoot.getViewRoot() Any suggestions how to achieve the above functionalityin
-
Is there a way to recover lost voicemail messages on an iPhone 4S?
Is there a way to recover lost voicemail messages on an iPhone 4S? I listened to a message yesterday but wanted to keep it so I could show it to somebody else. However today when I went to show it to them, it was no longer there. Hopefully somebody c
-
what does the method mystery() do?