How to get Java Version of an application server using Function Module?
Hi Friends,
We are doing developments for system performance reporting for multiple BW Systems. For this purpose we need to get the JAVA Version for these multiple systems.
If anyone tell us about any Function Module or Program that we can use to get this information?
Thanks
Nayan Joshi
Hi,
Calling an SAP Function Module from Java
To call an SAP function module from a Java application, you first need SAP JCo (Java Connector); you can download it from SAP's site, though you need an account to do so.
To actually open the connection, use the tip code shown here.
Class jcoClass = Class.forName("com.sap.mw.jco.JCO", true, this.getClass().getClassLoader());
Client client = JCO.createClient(clientNumber, user, passWord, lang, host, systemId);
//all parameters are strings
client.connect();
Repository repository = new JCO.Repository("SAP", client);
IFunctionTemplate functionTemplate = repository.getFunctionTemplate
("YOUR_FUNCTIONAL_MODULE_NAME");
Function function = functionTemplate.getFunction();
ParameterList parameterList = function.getImportParameterList();
parameterList.setValue("value1", "INPUT_PARAM_NAME");
parameterList.setValue("value2", "INPUT_PARAM_NAME2");
client.execute(function);
Regards,
Marasa.
Similar Messages
-
How to Upgrade java version on J2EE Engine Server?
Hi Experts,
We are running the NetWeaver 2004s SP 7 with Java version 1.4.2_08 on the server, but we would like to upgrade the system and be able to upgrade to Java version 1.5. How do we start? We would greatly appreciate your responses.
Thanks,
-Don P.but we would like to upgrade the system and be able to upgrade to Java version 1.5
Can you explain this more accurately? For example the OS version
Are you say about SUN or IBM JDK? I'm think you say about SUN JDK ...when only 1.4.2.XXXX can be installed for
NW 7.0, Do not use
Java version 1.5
In any case Try to check the
Note 709140 - Recommended JDK and VM Settings for the WebAS630/640/7.0
You will see all JDK/OS mixes and link's to recuired notes ....
About how to change java version, for example to newest release ? -->
Note 718901 - How to Change the JDK of the J2EE Engine
Regards. -
Dear all,
I want to extract the Item text in transaction ME53N.
for that I'm using function module READ_TEXT.
for the above function module we have to provide 7 inputs...
I want to know
Name = ?
object = ?
Archive_handle = ?
Local_cat = ?
were can we get above variables....?
Regards
Nagaraju.BHi,
Try This code
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'B01'
language = sy-langu
name = w_zht_tdname " PR Number
object = 'EBANH'
TABLES
lines = t_zht_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
Regards
Krishna -
How to get ip and hostname in application server 10g
when i am using sys_context('USERENV','HOST') IN MY value based audit trigger it return ip address of application server.
i want to get client's ip address and hostname that connect to application server 10g.
Regards,
Muhammad TouseefCKPT wrote:
i want to get client's ip address and hostname that connect to application server 10g.you can find in listener.log file for all the client connections, or if any active sessions you can find from
select username,machine from v$session;LOL
You gave a totally correct answer. Unfortunately not relevant, though.
Now take a look at that answer in context of the question. The question is "given that the environment is 3 tier, and given that the client to the database is an application server, how do we get the information about the client to the application server - one tier further out?"
OP - this is a known problem with current application server configurations and applications. The only current way of providing that info is for the app server to capture and pass that info on. An easy way to pass it on, available to the app developer, is to use the DBMS_APPLICATION_INFO package.
Perhaps one day the WebLogic Server folk will see fit to make that transparent. ;-) -
How to get data from table to pass into alvgrid function module
i want to get some data from below table to pass into function module of alvgrid
how can i get data please help.
thanks in advanced.
form get_data.
select * into corresponding fields of table itab
from J_1IEXCHDR
inner join J_1IEXCDTL
on J_1IEXCDTLlifnr = J_1IEXCHDRlifnr
where J_1IEXCHDr~status = 'P'.
append itab.
endform.Pass your final table(internal table which you want to display) along with fieldcatalog to FM reuse_alv_grid_display.:\
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = i_repid
IT_SORT = gt_sort
it_fieldcat = lt_fieldcat[]
TABLES
t_outtab = lt_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF. -
How to get pdf file from sap presentation server using java connector
Hi Friends,
with the below code i am able to get po details in pdf in presentation server.
DATA : w_url TYPE string
VALUE 'C:\Documents and Settings\1011\Solutions\web\files\podet.pdf'.
CALL FUNCTION 'ECP_PDF_DISPLAY'
EXPORTING
purchase_order = i_ponum
IMPORTING
PDF_BYTECOUNT =
pdf = file " data in Xsting format
*Converting Xstring to binary_tab
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = file
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH =
TABLES
binary_tab = it_bin " data in binary format
**Downloading into PDF file
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = w_url
filetype = 'BIN'
TABLES
data_tab = it_bin
when i am using java connector , to retirve the file from presentation server , the follwoing error i am getting...
init:
deps-jar:
compile-single:
run-single:
com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Error in Control Framework
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:1244)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3842)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:3287)
at PdfGen.<init>(PdfGen.java:35)
at PdfGen.main(PdfGen.java:78)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
i debugged too, problem with <b>gui_download......</b>
I am very glad to all with your suggestions!!
Regards,
Madhu..!!Hi
You can try to create an external command (transaction SM69).......sorry I've forgotten,,,,they works on application
How do you call CL_GUI_FRONTEND_SERVICES=>EXECUTE?
Max
Edited by: max bianchi on Oct 13, 2011 10:27 AM -
How to get planning area if I have planning book - Function module/table
Hello All,
Our basic requirement is to find out whether the planning book we are using is DP relevant or SP relevant. (inside the custom program)
One way is to find out the relevant planning area and find out if the planning area is DP relevant or SP relevant.
But can anyone suggest if there are any tables or function modules to achieve the same?
Thanks a lot.
Regards,
ChandanDear Chandan,
You can use the table "/SAPAPO/PBMVW" for your issue. "APP_SNP" field tells if it SNP planning book or not. Thee tables gives all planning books present in the system.
If you want dataview's you can use table ""/SAPAPO/PBDVW"".
I hope the information solves your issue.
Thanks and Regards,
Nithin. -
Version of Oracle application server
Hi,
How to find the version of Oracle application server installed on RedHat Linux AS machine and Sunsolaris10 machine?
Regards,
MathewMatthew,
If you have the application server installed, then you can query from the sys schema on the machine where you have your metadata repository installed (infra-home) to see the versions as follows:
select *
from app_registry;
for checking portal version, you can alternatively go to Builder page/ 'Administer' tab/ 'Portal' option/ 'Services' portlet/'Global Settings' - link. The resulting page will be taking you in the Main tab. Here look at the very bottom and you will see something like this.
Version Information
Oracle Portal Version: 10.1.4.0.0 (Build: 594)
hope that helps.
asif -
How to get the values from struct data type using java code..?
Hi ,
I am newer to java.
we are using oracle database.
How to get the data from struct data type using java code.
Thanks in Advance.
Regards,
kumarHi Rajeev,
To retrieve a FilterContainer you will need to traverse the report structure:
ReportStructure boReportStructure = boDocumentInstance.getStructure();
ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
FilterContainer boFilterContainer = null;
if (boReportContainer.hasFilter()) {
boFilterContainer = boReportContainer.getFilter();
} else {
boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
Hope this helps.
Regards,
Dan -
How to get a list of every application on my computer?
I'm trying to figure out how to get a list of every application on my computer using applescript. I know it is possible for the system to do this, as evidenced by the dialog you get when you use the "choose application" function. Other examples are doing a spotlight search for "kind:app" or programs like Namely or QuickSilver.
Is there a way to do this in applescript? The only solution I've come up with so far is to use the command:
<pre>set everyapplicationaliases to choose application as alias with multiple selections allowed</pre>
and manually select all on the resulting dialog. I can then take the results and go from there, however there are a few significant problems with this approach.
1. It requires user interaction. (I have an idea for some future applications that could use this functionality if it can be done without user input.)
2. It's horribly slow. As a test run I choose all the applications from the dialog, extracted some basic info and put the result on the clipboard. It took a couple of minutes to complete this relatively basic task. In comparison, running the aforementioned spotlight search took maybe ten seconds.
Thanks in advance!
best,
peterFor these specific queries my results are...
set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'application'c) || (kMDItemKind = 'widget'c)\"")
3082
set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'Application'c) || (kMDItemKind = 'Widget'c) ||
((kMDItemContentTypeTree = 'com.apple.application') && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard))\"")
3115
I think I finally found some numbers that make sense!
When I search for Kind:Application by the Command+F method in the Finder, I get a total of 2521 items, of which 2477 are "Applications" and 44 are "Other".
(Just by eyeballing it, "Other" seems to include some Classic Apps and some .bundle files.)
The total # found by this method (2521) plus the number of Widgets found using mdfind (318) equals the number of total number of items found by spotlight (2839).
I also noticed that these numbers almost equal the spotlight number:
mdfind results for kMDItemKind:
Widgets: 318
Applications: 1684
Classic*: 795
and
Command+F "Other" items: 44
3181684+79544 = 2841
It may be a fluke that this is so close to the 2839 spotlight gives, or maybe there's an overlap somewhere...
Tying this back into my initial question, it seems like the original mdfind command for Applications is probably the best answer for what I was looking for,
since I wasn't really thinking about Classic apps and Widgets anyway. -
How to get shadow version of DTP in BI 7.0
How to get shadow version of DTP in BI 7.0..
while activating DTP i got error as :
"Shadow DTP_7KU3789XP6HX9XP3NS6PZ7XAP object can not be resolved - Chain inconsistent"
Please can you suggest meCheck if this note is applicable :
Note 1044054 - Correction: Shadow DTP with DataSource cannot be displayed -
How to get current version of safari. without having safari browser?
how to get current version of safari. without having safari browser?
I don't understand the question. Safari is a browser.
Can you elaborate on what your are trying to do that initiated the question? People may be able to come up with some other option that gets you working the away you want.
When you respond, please post the version of the Mac OS and the version of Safari you currently have. Otherwise, people are guessing and the quailty of help you get plummets. -
How to get the version no. for service po?
Hi,
How to get the version no. for service po?For material po we are getting the version from EKKO-REVNO but for service po Ekko-revno is blank.
Regards,
Rachel.Hiee,
It is not like service PO does not have revision.
REVNO will only exists for any document if amendment is made after releasing it. If in EKKO for all service PO revision number is blank then test if version management is active for document type
MM->Purchasing->Version management -> External documents
Here check for your doc type and purchase org version management is active.
Regs,
Appie -
HT5624 how to get back my "AAp store" application on Iphone 4....
how to get back my "AAp store" application on Iphone 4....
The App store app is a built in app and cannot be deleted. Try:
Check settings to see if restrictions are turned on and/or if Installing apps is turned off (Settings app > General > Restrictions)
Check all of your home screen (by swiping left to right), and folders to see if was inserted into one. (you can also use Spotlight search which will tell you if it is in a folder. Swipe down on the Home screen and type in "app Store") -
How to Get a Version of the ME
I purchase package Adobe CS5, but Can not write in Arabic when in use photoshop or and others like .Illustrator ,Dreamweaver ,InDesign
What is the solution?
How to Make package Adobe CS5 write Arabic
" How to Get a Version of the ME"Do you want to use an Arabic typeface in PS, or have the PS interface in Arabic?
Maybe you are looking for
-
How to find out list of users who has logged into webtools
Hi All, From a database administration and monitoring traffic point of view we want to know who has logged into our web tools web site for a given period. Is there a easy way to have this information. basically user ID , date and time are info we ne
-
Include BLANK OPTION for an attribute dropdownlist in tx: COMM_ATTRSET
Hello experts, I would like to add a BLANK OPTION for an attribute dropdownlist, I have tried to add a space character in "Value Range" but the systems give me an error " Enter a fixed value". How I can include a blank option for an attribute dropdo
-
WAP321 2 SSIDs not both showing Clustered in Single Point Setup
I have 2 Cisco WAP321 with 2 SSIDs setup Single point using VLAN 1 and VLAN 2 using firmware version 1.0.5.3. VLAN 1 is the management VLAN. One WAP321 is connected to a SG200-8 version 1.0.8.3 on a trunked port 1UP,2T. The SG200-8 is connected to
-
Trying to redeem my digital copy of Star Trek, the movie, and iTunes tells me I've already redeemed it, or the redemption code is invalid. Any help woud be greatly appreciated
-
How to enable a button on click of an adjoining list box
Hi, I have a requirement that : the button "Add to the list" should be enabled only when the user clicks on the list box "product list". This is to ensure that the user is looking at the list before adding a new product. I tried that the button is di