How to find machine name
hi,
i would like to write a java program to find out the machine name.
for example, if i run that java program on my machine so it should return my machine name.
if someone already written that kind of code, please send it to me
thanks for your help and have a great weekend
* @(#)AddressCheck.java
* @author
* @version 1.00 2007/6/9
import java.net.*;
public class AddressCheck {
public static void main(String[] args) {
String address = "";
try {
address=InetAddress.getLocalHost().toString();
} catch (Exception e) {
e.printStackTrace();
System.out.println(address);
}running on my machine will print
saloo/192.168.1.105
Similar Messages
-
How to find the Names of Most costly Views or Most Time consuming views
Hi All,
I had a database consisting of almost 200 views,as a part of Optimization process i want to find out the most costlier views.How to do that.Actually i want the names of the VIEWS,so that i can optimize that.Can any one help me out?
I had one more doubt in our Database a view is created like view A( which is created by joining several tables).so do i need to add index on this view separately or does it take the index of the tables which i joined? And in our Database i had created
a VIEW which is derived from other views(the Joining objects are views not tables),so while i select recoreds from this views which is derived from other views it is taking a lot of time.Is tehre any problem with that?Please avoid such double post spread over several forums:
http://social.msdn.microsoft.com/Forums/en-US/bae4042a-10b8-4d12-aa46-88a05ea37a76/how-to-find-the-names-of-most-costly-views-or-most-time-consuming-views?forum=sqldataaccess
Olaf Helper
[ Blog] [ Xing] [ MVP] -
How to find table name for the fields from Standard Extractor in CRM system
How to find table name of fields from the standard extractor in CRM system ?
e.g. We use LBWE TCode in R/3 system to find table name for the field from Extractor VCSCL(e.g.).
Likewise is there any way to find table name for the fields from Standard extractor like 0CRM_LEAD_I.Hi ,
Please find the link below for understanding BW CRM analysis.
http://help.sap.com/bp_biv135/html/bw.htm
activate the CRM DSs by scenario:
1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
2) Activate the Business Content DataSources (tcode RSA5).
Select/enter the application component and choose Execute (F8).
To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
All BW-Adapter metadata is considered when versions are compared:
Header information (Table SMOXHEAD)
Mapping information (Table SMOXRELP)
Global selection conditions (Table SMOXGSEL)
Attribute key fields (Table SMOXAFLD)
Hope this helps.
Regards,
csm reddy -
How to find RFC names in e-commerce application JSPs or in Java coding.
Hi Experts.
Please explain me ,how to find RFC names which were used in e-commerce b2b/b2c applications in Java coding using SAP NWDS IDE.
Thanks in Advance!!!!
Regards,
KiranThere are two ways to do this.
I. Create your own Session Log file
1. Go to http://url:port/b2b/admin/index.jsp
2. Login with Admin user id and password.
3. Click on 'Logging' from the left hand navigation
4. Click on 'Session Logging' tab
Here you can start your e-commerce application using a URL and 'Start' session logging when you need it. When you 'Stop' the session logging, you will see a log file for download.
II. View ISA Log files in the system
The path varies based on how the log config was done. But usually, if you look in this folder structure on the Java Stack, you will see log files.
.../JC00/j2ee/cluster/server0/log/applications/..
I hope this helps.
Pavan -
How to find machine is Big/little endian?
Hi,
Can any one tell me that how to find machine on which we are working i.e. Big/Little Endian in using java?
One of my friend told me that in C Programming we can find this by using following code:
#include <stdio.h>
#include <arpa/inet.h>
int main() {
if (htons(1) == 1) puts("big endian");
else puts("little endian");
return 0;
}Can any one help me in solving this mystery?
Cheers,
Ramjava.nio.ByteOrder.nativeOrder();~D
-
How to find index name with primarykey and column on a table?
Hi,
how to find index name with primarykey and column on a table?
please help me.
Thankyou.1 select ac.table_name, ac.index_name, aic.column_name
2 from user_constraints ac, user_ind_columns aic
3 where ac.constraint_type = 'P'
4 and ac.index_name = aic.index_name
5* order by 1,2,3
SQL> /
TABLE_NAME INDEX_NAME COLUMN_NAME
ACTION_TABLE SYS_C0011033 NESTED_TABLE_ID
ACTION_TABLE SYS_C0011033 SYS_NC_ARRAY_INDEX$
CATEGORIES_TAB SYS_C0011038 CATEGORY_ID
CUSTOMERS CUSTOMERS_PK CUSTOMER_ID
INVENTORIES INVENTORY_IX PRODUCT_ID
INVENTORIES INVENTORY_IX WAREHOUSE_ID
LINEITEM_TABLE SYS_C0011034 NESTED_TABLE_ID
LINEITEM_TABLE SYS_C0011034 SYS_NC_ARRAY_INDEX$
ORDERS ORDER_PK ORDER_ID
ORDER_ITEMS ORDER_ITEMS_PK LINE_ITEM_ID
ORDER_ITEMS ORDER_ITEMS_PK ORDER_ID
PRODUCT_DESCRIPTIONS PRD_DESC_PK LANGUAGE_ID
PRODUCT_DESCRIPTIONS PRD_DESC_PK PRODUCT_ID
PRODUCT_INFORMATION PRODUCT_INFORMATION_PK PRODUCT_ID
PROMOTIONS PROMO_ID_PK PROMO_ID
WAREHOUSES WAREHOUSES_PK WAREHOUSE_ID
16 rows selected. -
How to find the name of the program of session in sm35 ?
I have some session in sm35.
How to find the name of the program of session in sm35 ?
Could you please help me ?In the list of sessions displayed -> double click the session that an error (i.e. Transaction Ended with errors).
Then it will take you to another screen, here you choose the Screens tab.
Check
Re: BDC session's program name
Re: BDC session's program name
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha -
How to find Object name for a object?
Hi Experts,
How to find Object name for a particular Object? Is there a Tcode for it?
__Like Object name for__
Material number - materialnr
Goods receipts / return - matbeleg
Accounting documents - rf_beleg
How to find Object name for other Objects? Is there a particular way?
Thanks & Regards
ChandanHi,
You can find objects in SNRO transaction.
In SNRO search by giving long text...
for eg., Service .. for service entry sheet. keep the first letter in capital letter only.
Thanks & Regards,
Anand. -
How to find Table names for PO & Invoices in SRM Standalnoe system SRM 7.0?
Hi,
How to find Table names for PO & Invoices in SRM Standalnoe system SRM 7.0? Please let me know.
Thanks,
MonicaHi,
In SRM for all objects like SC ( BUS21210),BID,PO(BUS22010),Confirmation (BUS2203),invoice etc all the data stored
in BBP_PDHGP and BBP_PDBEI tables only, These is no separate tables..
for your reference below are the few SRM tables
BBP_PDACC Account Assignment
BBP_PDATT Document Attachment
BBP_PDBEH Backend Specific Header Data
BBP_PDBEI Backend Specific Item Data
BBP_PDBGP Partner Extension Gen. Purchasing Data
BBP_PDBINREL Transaction Object Linkage (EBP)
BBP_PDHCF Set for Tabular Customer and Solution Fields on Hdr
BBP_PDHGP Business Transaction Purchasing Information
BBP_PDHSB Bid Invitation
BBP_PDHSC Header Extension for Customer Fields
BBP_PDHSS Hdr Extension for SAP Internal Enhancements (IBUs and so on)
BBP_PDICF Set for Tabluar Customer and Solution Fields on Itm
BBP_PDIGP Business Transaction Item-Purchasing Information
BBP_PDISB Bid Invitation/Bid-Specific Item Data
BBP_PDISC Item Extension for Customer Fields
BBP_PDISS Item Ext. for SAP Internal Enhancements (IBUs and so on)
BBP_PDLIM Value Limit
BBP_PDORG Purchasing Organizational Unit
BBP_PDPSET Further Procurement Information
BBP_PDTAX Tax
CDCLS Cluster structure for change documents
CDHDR Change document header
CDPOS_STR Additional Change Document - Table for STRINGs
CDPOS_UID Additional Table for Inclusion of TABKEY>70 Characters
CRM_JCDO Change Documents for Status Object (Table JSTO)
CRM_JCDS Change Documents for System/User Statuses (Table JEST)
CRM_JEST Individual Object Status
CRM_JSTO Status Object Information
CRMD_LINK Transaction - Set - Link
CRMD_ORDERADM_H Business Transaction
CRMD_ORDERADM_I Business Transaction Item
CRMD_PARTNER Partners
SROBLROLB Persistent Roles of BOR Objects
SROBLROLC Persistent Roles of Business Classes
SRRELROLES Object Relationship Service: Roles
Thanks & Regards,
Prasad S -
How to find Program Name by Recording name
Hi,
How o find program name ? for example i have recording(SHDB) name is:ZVA01REC.
i want to find the respective porgram for that recoring?
Thanks and Regards,
Anu.Hi Anitha,
"No it's showing standard program name like:SAPMM06E
but actual program name is:ZBDCME22."
SAPMM06E is the program the recording runs
ZBDCME22 must be an additional program that someone must have created for running the recording.
There is no way for u to find a program for a given recording (this is only a one way trafic; recording -> program create; not visa versa)
your best bet would be that search in se38 for programs starting with ZBDC* and then check the short text. may be the person who made it was kind enough to update the short text with teh recording name.
Hope this was of some help.
Regards,
Sagar.
Edited by: Sagar Mehta on Nov 12, 2008 10:00 AM -
How to find the name of query for a given report
Hi All,
I am having the name of a report and i need to find out the name of query for that report . Plz tell me how to find out the name of the query for a given report.
Thanks.
Regards,
Pooja Joshi.Use this FM
RSAQ_DECODE_REPORT_NAME
This FM takes program name as I/P and gives Query Name as O/P.
This FM uses the structure AQADEF to fetch the data.
Hope this helps.
Regards
Vinayak -
How to use "machine name" in new report vi?
I have a computer on a network that has Microsoft excel installed. On another computer I have an application that will take an excel file and stuff a bunch of data from a database into specific cells to generate a report. The vi works fine on my computer (where excel is loaded locally) but when I try and run the VI and access excel remotely I get an error message as follows:
Error -41106 occurred at NI_Excel.lvclass:new report subVI.vi -> NI_report.lvclass:New Report.vi -> printTestSheet.vi
Possible reason(s):
Report Generation Toolkit: Microsoft Word or Excel did not open. Make sure Microsoft Word or Excel is installed.
Error -41106 occurred at NI_Excel.lvclass:new report subVI.vi -> NI_report.lvclass:New Report.vi -> printTestSheet.vi
Possible reason(s):
Report Generation Toolkit: Microsoft Word or Excel did not open. Make sure Microsoft Word or Excel is installed.
I have included the ip address of the remote machine to the "machine name" input of the "New Report" vi.
Any suggestions/solutions?
Gerry ThompsonHi Gerry,
One reason that you may get this error is if Distributed COM wasn't enabled on the remote machine. See this Microsoft KB for how to check or enable that functionality.
If that doesn't help; let me know, and I'll try to setup a similar test case on my end. The process isn't well documented, and I haven't seen any existing examples, so I'd like to see what it takes to get it running.
All the best,
Fred V -- Product Support Engineer -- LabVIEW R&D -- National Instruments -
How to find JSFF name in managed bean
Hi Gurus,
I am new in adf and using 11.1.2.3. How i can find the name of jsff page name in managed bean. For example if i have abc.jsf contains a fragment xyz.jsff. i want when i click on button in jsff page, a pop shows me the name it is xyz.jsff.
Thanks,Hi,
to get the page name,FacesContext.getCurrentInstance().getViewRoot().getViewId() (returns abc.jsf). If you expose the page fragment through an ADF region, then the call is
ControllerContext.getInstance().getCurrentViewPort().getViewId() (returns xyz if the view activity has the same name as the physical file xyz.jsff)
Frank -
How to find out name of table for a structure.
hello all,
I want to find out name of table for a structure ADDR1_DATA. can anybody pls tell me how to find out it?
Thanks,
AshuHi Ashu,
You write the structure name in se11
after selecting the database table radio button
click on the where used list button in the application tool bar.
You will find the table name if it is used else where.
Check out the website at:
http://sap-idoc2edi-consulting.com/
Read the blog at:
http://blogs.ittoolbox.com/sap/ehadzipetros
Regards,
Jagadish -
Hi,
I have a application where i need to display Name for all the service application. Specifically i need to get the size of user profile service application and Managed metadata service application name.
Please guide me. :)
Thanks and Regards:
SanjayYou can use
http://blogs.technet.com/b/tothesharepoint/archive/2011/12/19/find-active-databases-used-by-sharepoint-server-2010.aspx
Get-SPDatabase | Sort-Object disksizerequired -desc | Format-Table Name”
http://webcache.googleusercontent.com/search?q=cache:kMHQXNGmjcwJ:sharepointstruggle.blogspot.com/2011/08/programmatically-enumerating-databases.html+&cd=1&hl=en&ct=clnk&gl=in
using(SPSitesite
= newSPSite(url))
using(SPWebweb
= site.OpenWeb())
SPFarmf
= site.WebApplication.Farm;
foreach(SPDatabaseServices
inf.Services.OfType<SPDatabaseService>())
Console.WriteLine(string.Format("Found
Database service {0} of type {1}",
s.Name, s.GetType().Name));
foreach(SPDatabaseServiceInstancespdsi
ins.Instances)
Console.WriteLine(string.Format("|-Found
Database Service Instance {0} ({1})",
spdsi.DisplayName, spdsi.Name));
foreach(SPDatabasespdb
inspdsi.Databases)
Console.WriteLine(
string.Format(" |-DB: {0}\r\n |-TYPE: {1}\r\n
|-HOST: {2} ",
spdb.Name.Length
> 70? spdb.Name.Substring(0,
65)
+ "...": spdb.Name,
spdb.GetType().Name, spdb.Server.Name)
http://social.msdn.microsoft.com/Forums/en-US/61e4e56e-e373-4167-ba97-e0f411feefe9/how-can-we-programmatically-find-the-names-of-sharepoint-databases
Maybe you are looking for
-
How to calculate the subtotals in alv for curr field(bsik-wrbtr)
I want to calculate subtotal for netamt for every new lifnr(vendor ) this is my program REPORT Z23PRAC1. *& Report ZRFI_AP_AGING_REPORT TABLES : lfa1,lfb1. CONSTANTS : gc_linedat(1) TYPE c VALUE 'X', gc_duedate(1) TYPE c VALUE 'X',
-
Hi, I have a problem when trying to sign emails with an X.509 certificate in Outlook 2010. I constantly get the error message. The certificate is Verified for the email address I'm sending from. "Invalid Certificate Microsoft Outlook cannot sign or e
-
Unable to sign to Apps store after updating to ios7
Is anybody else having problem while signing in to apps store.At first I was unable to see my purchase history,so I signed out,now I am unable to signin
-
What are the proper setting for connecting a mic to the line out?
How should I set this up in my system and garageband preferences?
-
Key pressed in Jlist and selecting the item of key list accordingly
Hi, I have a JList with the items in sorted order.Now I want that if a person presses any key (say K) then the first item starting with K should be selected.Hmmm I can do it by addding a key listener to the list and cheking all the items in the list