EEM command to read OID value
Hi,
I am trying to change SNMPv2 community string on 6509 remotely, without using expect script. I tried EEM applet (we cannot use TCL scripts), but it does not work.
EEM command "action 10 info snmp oid 1.3.6.1.2.1.1.4 get-type exact" is supposed to store the result into an environment variable. It does not. Or at least not in the one that is documented. Is it a bug? We have IOS 12.2(17r)SX5. To get EEM version i ran "sh event manager version" and got "eem: (v240_throttle) 2.21.32". Does it mean i have EEM version 2.21?
Thanks,
You would need to save that data into a context. You will need EEM 3.0 or higher for this, but you could do something like:
action 1.0 info snmp oid 1.3.6.1.2.1.1.4.0 get-type exact
action 2.0 set snmp_res1 $_info_snmp_value
action 3.0 info snmp oid 1.3.6.1.2.1.1.5.0 get-type exact
action 4.0 set snmp_res2 $_info_snmp_value
action 5.0 context save key SNMPCTX variable snmp_res*
To retrieve the previously saved values, use:
action 1.0 handle-error type ignore
action 2.0 context retrieve key SNMPCTX
action 3.0 if $_error ne FH_EOK
action 4.0 set snmp_res1 0
action 5.0 set snmp_res2 0
action 6.0 end
action 7.0 handle-error type exit
Similar Messages
-
Hi,
I am very new to SNMP protocol.. Sorry for asking dumb question..
I am trying to execute weblogic examples.. What should i give the OID value? Is it configarable? If so how to add my own object or key/value pair to MIB?
Started the server successfully using following command..
java weblogic.SNMPAgent -serverURLs t3://localhost:7001 -password weblogic123
When i tried to execute the following commands (given in http://www.weblogic.com/docs51/admindocs/snmpapplications.html)
java snmpget localhost .1.3.6.1.4.1.140.600.20.1.10.10.115.116.97.110.100.97.108.111.110.101.8.109.121.115.101.114.118.101.114
OR
java snmpwalk localhost .1.3.6.1.4.1.140.600.20
I am getting Error Indication in response: There is no such variable name in this MIB.
Errindex: 1.
My question is
What vaule i should give as OID? How to see / add my own OIDs to MIB?
Any help is greatly appriciated!!
thx,
-vish
[att1.html]vish <[email protected]> wrote in message news:[email protected]..
Hi,
I am very new to SNMP protocol.. Sorry for asking dumb question..
I am trying to execute weblogic examples.. What should i give the OID value? Is it configarable? If so how to add my own object or key/value pair to MIB?
Started the server successfully using following command..
java weblogic.SNMPAgent -serverURLs t3://localhost:7001 -password weblogic123
When i tried to execute the following commands (given in http://www.weblogic.com/docs51/admindocs/snmpapplications.html)
java snmpget localhost .1.3.6.1.4.1.140.600.20.1.10.10.115.116.97.110.100.97.108.111.110.101.8.109.121.115.101.114.118.101.114
OR
java snmpwalk localhost .1.3.6.1.4.1.140.600.20
do you get any errors in the server logfile ?
Also, about your other question: the current agent cannot be extended to support addditional metrics. However it can co-exist with other SNMP agents running on the same machine which may support custom defined metrics.
[att1.html] -
Using LDAP to search attribute bit flags using attribute OID values
Hello everyone,
My question stems from trying to understand the OID and syntax behind this classic LDAP search to find disabled users:
"(useraccountcontrol:1.2.840.113556.1.4.803:=2)"
What I am interested in is the value 1.2.840.113556.1.4.803, specifically how it differentiates from the value 1.2.840.113556.1.4.8, which is the OID of the useraccountcontrol attribute:
http://msdn.microsoft.com/en-us/library/ms680832(v=vs.85).aspx
Now, this website below says that the 03 and 04 are designators of the AND and OR operations, respectively, and are added on to the end of the OID:
https://www.appliedtrust.com/blog/2011/04/keeping-your-active-directory-pantry-order
However, using this logic, I can't get these 03 and 04 operators to work with other attribute OID's that use flags as values, such as the "searchflags" attribute, e.g. a LDAP search of "(searchflags:=1.2.840.113556.1.2.33404:=0)
returns nothing, using the OR (04) operation at the end of the "searchflags" OID of 1.2.840.113556.1.2.334.
So back to my original question, for the useraccountcontrol OID of 1.2.840.113556.1.4.8, is this OID at all related to the bitwise AND extensible match of 1.2.840.113556.1.4.803 (like just adding a 03 to designate an AND operation), or is this
extensible match
value of 1.2.840.113556.1.4.803 completely separate from the useraccountcontrol OID of 1.2.840.113556.1.4.8?
If I have my terms mixed up, please feel free to correct me on what the proper terms are.
Thanks!Hmm yeah I posted that link above in my OP as well, and I was hoping that the OID values of these bitwise filters were somehow related to the shorter OID of the "useraccountcontrol" attribute, but it looks like it's just a coincidence.
So I wonder if the "useraccountcontrol" section of
this article from my OP is a little misleading when it says:
To make a comparison, we either need to use the LDAP_MATCHING_RULE_BIT_AND rule (1.2.840.113556.1.4.803), or the LDAP_MATCHING_RULE_BIT_OR rule (1.2.840.113556.1.4.804) for our attribute OID (the AND rule adds a 03 suffix to denote the AND operation,
and the OR rule adds a 04 suffix).
Following this logic, I should be able to use the "03" and "04" in other bitwise operations with different OID's to search "AND" or "OR", but as I pointed out in my OP above, I can't seem to make this work with adding the
"03" and "04" onto the end of other OID's. So I will go with Christoffer that these bitwise OID's (1.2.840.113556.1.4.803 and 1.2.840.113556.1.4.804) are unique in themselves, and the fact that they are 2 characters away from the OID of the "useraccountcontrol"
attribute (1.2.840.113556.1.4.8) is just coincidence.
This does seem strange however, and it seems like there should be some correlation here....
If anyone has any more info, I would love to hear it! -
How to read the value of Inputfield in WAD in JAVA script?
Hi Experts,
I have a requirement in WAD .
I have put an Input Field (text box), a button and a script control in the web template.
In my script control function , I want to read the value entered in the input field using java script. How do I achieve it?
Thanks in advance.
Regards
akshayHi,
To do this, first you may want to view the HTML source of the report. So, when you have the report launched with the input field, right click and select View Source. Usually it is under a <span> tag with id something like sapbi_snippet_YOURWEBITEMNAME. Most useful commands here are document.getElementById and document.getElementsByTagName.
You can also access the input web item value using standard sap command SET_SELECTION_STATE_BY_BINDING. Take a look at the documentation on this.
Hope the above helps.
Regards,
wira -
I have an "Command set ID" with value "A" in SPAD tansx with com. to transf
Hello
Does anyone knows how a device in "spad" transaction functions (in Unix)
Under Access method"L:Print Locally Using LP/LPR") I have an Command set ID with value "A" .
Under mentioned "command set" I have :
"command to transfer data " set to " /usr/bin/cat &F >/usr/sap/planning/REMINDER&N.txt". What does that means.
Does it mean any printout is copied to "/usr/sap/planning/REMINDER&N.txt" file? Also corrupted (not finished...) ones?
what is the name of file under "/usr/bin/cat ". Is it always the same? is it copied in same format (what
"&F >/" means?)?
Thx in advanceHai,
Command set id option in SAP helps to override the DEFAULT SAP parameter for the command that a print program should use to have a host spooler perform an output request.
Default parameter is rspo/host_spool/print.
You can specifically give a command to your printer through this option, COMMAND SET ID.
Here " /usr/bin/cat &F >/usr/sap/planning/REMINDER&N.txt" is the command which helps thr spooler to direct your output.
/usr/bin -- is the directory under which it has all the commands for UNIX.
/usr/bin/cat -- where 'cat' is a command, cat command reads one or more files and prints them to standard output. The operator > can be used to combine multiple files into one.
&F Name of the file to be printed (with path specification).
/usr/sap/planning/REMINDER&N.txt -- is where you can find your output.
You can even use /usr/bin/cp instead of usr/bin/cat here the former command copies to another file after the &F option.
You can use any type of commands, please check the below link.
Also you can use this command set option for Null printers were you dont need the printouts but only the spool. Here you can set the command as 'cp &F /dev/null' were the output is redireted to /dev/null path at the OS level.
http://help.sap.com/saphelp_nw04/helpdata/EN/d9/4a8eb751ea11d189570000e829fbbd/frameset.htm
Regards,
Yoganand.V -
Reading return values in ArrayBinding situation
Hi All.
I'm currently using ArrayBinding to batch insert/update records into a table. I currently have an InOut parameter set that will either set or return the ID of the row depending if it's an INSERT or UPDATE.
What I'm struggling to do is to actually read the values that come back after ExecuteNonQuery. here is some excerpts of the code:
OracleParameter requirementId = new OracleParameter("p_id", OracleDbType.Int32, ParameterDirection.InputOutput);
requirementId.ArrayBindStatus = new OracleParameterStatus[reqDS.MyRequirements.Count];
<set up the other params>
<set up the values in a loop>
requirementCmd.CommandText = "PCM_PKG_REQUIREMENT_DAC.USP_SAVE_REQUIREMENT";
requirementCmd.ArrayBindCount = reqDS.MyRequirements.Count;
requirementCmd.ExecuteNonQuery();
Now what? I've tried all sorts of ways to get to this but to no avail. My code to get it currently looks like this:
for (int j = 0; requirementId.ArrayBindStatus.Length - 1;j++)
//value = CType(outParameter.Value, Object)(i);
requirementToReqVersion.Add(reqDS.MyRequirements.RequirementId,requirementId[j].Value);
This doesnt even compile but you can see what I'm getting at. I just need to retrieve a value given an index in the array bind? Thanks for the help in advance..
jkIn VB.NET, we do something like this:
Option Explicit On
Option Strict On
Dim values() As Object
ReDim values(versions.Length - 1) ' expected nbr of returned values
ReDim identities(versions.Length - 1)
Dim outParameter As OracleParameter
outParameter = command.Parameters("NameOfOutParameter")
CDbLateBinding.GetObjectArrayFromOutParameter(outParameter, values)
Dim i As Integer
For i = 0 To values.Length - 1
identities(i) = CType(CType(values(i), OracleDecimal).ToString, Decimal)
Next
' Separate file
Option Strict Off
Public Class CDbLateBinding
Public Shared Sub GetObjectArrayFromOutParameter(ByVal parameter As OracleParameter, _
ByVal values() As Object)
Dim i As Integer
For i = 0 To parameter.ArrayBindStatus.Length - 1
values(i) = CType(parameter.Value, Object)(i) ' Option Strict Off
Next
End Sub
End Class
Looks a bit awkward but works fine.
Armin -
RE: (forte-users) Reading return value from Javaprogram
when using the RunCommand method you can specify the an error file:
task.part.os.RunCommand(command = l_tdCommandLine,
isSynchronous = TRUE,
inputFile = Nil,
outputFile = Nil,
errorFile = l_ErrorFile.GetLocalName(TRUE));
BEGIN
l_ErrorFile.Open(SP_AM_READ);
EXCEPTION
WHEN Ex: FileResourceException DO
l_ErrorFile = NIL;
task.ErrorMgr.Clear();
END;
IF l_ErrorFile <> NIL THEN
l_tdFileContents : TextData = New();
l_ErrorFile.ReadText(l_tdFileContents);
l_ErrorFile.Close();
END IF;
Have you java program output the return value to the standard IO. This way
you will have an error file that you can read from Forte.
ka
-----Original Message-----
From: Anthony D [mailto:saigonxyahoo.com]
Sent: Tuesday, September 12, 2000 7:49 AM
To: forte-userslists.xpedior.com
Subject: (forte-users) Reading return value from Java program
Hi,
Does anyone know whether Forte application can
read a return value from a Java program?
I'm using the RunCmd method to invoke the Java
program. I'd like to read the return value from the
Java program. How do I go about doing it?
Any suggestion will be appriciated.
Thanks
AD
http://mail.yahoo.com/
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.comwhen using the RunCommand method you can specify the an error file:
task.part.os.RunCommand(command = l_tdCommandLine,
isSynchronous = TRUE,
inputFile = Nil,
outputFile = Nil,
errorFile = l_ErrorFile.GetLocalName(TRUE));
BEGIN
l_ErrorFile.Open(SP_AM_READ);
EXCEPTION
WHEN Ex: FileResourceException DO
l_ErrorFile = NIL;
task.ErrorMgr.Clear();
END;
IF l_ErrorFile <> NIL THEN
l_tdFileContents : TextData = New();
l_ErrorFile.ReadText(l_tdFileContents);
l_ErrorFile.Close();
END IF;
Have you java program output the return value to the standard IO. This way
you will have an error file that you can read from Forte.
ka
-----Original Message-----
From: Anthony D [mailto:saigonxyahoo.com]
Sent: Tuesday, September 12, 2000 7:49 AM
To: forte-userslists.xpedior.com
Subject: (forte-users) Reading return value from Java program
Hi,
Does anyone know whether Forte application can
read a return value from a Java program?
I'm using the RunCmd method to invoke the Java
program. I'd like to read the return value from the
Java program. How do I go about doing it?
Any suggestion will be appriciated.
Thanks
AD
http://mail.yahoo.com/
For the archives, go to: http://lists.xpedior.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com -
C4948E, C4948E-F 'Chasis Temperature sensor' OID Value
I want to know OID value for 'Chasis Temperature sensor' of C4948E.
as below, I could find it for C4948 but couldn't C4948E and C4948E-F.
Could you do me a favor?
======================================== C4948-10G ======================================================
mrtg@WWW:~$ snmpwalk -v 2c -c public X.X.XX 1.3.6.1.2.1.47.1.1.1.1.2
SNMPv2-SMI::mib-2.47.1.1.1.1.2.1 = STRING: "Cisco Systems, Inc. WS-C4948-10GE 1 slot switch "
SNMPv2-SMI::mib-2.47.1.1.1.1.2.2 = STRING: "WS-C4948-10GE 1 slot switch chassis slot"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.3 = STRING: "Chassis Temperature Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4 = STRING: "Container of Fan Tray"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.5 = STRING: "FanTray"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.6 = STRING: "Container of Container of Power Supply"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7 = STRING: "Container of Power Supply"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.8 = STRING: "Power Supply ( AC 300W )"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.9 = STRING: "Power Supply Fan Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.10 = STRING: "Container of Power Supply"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.11 = STRING: "Power Supply ( AC 300W )"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.12 = STRING: "Power Supply Fan Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.1000 = STRING: "10/100/1000BaseT (RJ45), 10GE (X2) Supervisor with 48 10/100/1000BaseT ports an"
mrtg@WWW:~$ snmpwalk -v 2c -c public X.X.X.X 1.3.6.1.4.1.9.9.91.1.1.1.1.4
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.3 = INTEGER: 48
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.9 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.12 = INTEGER: 1
C4948#sh environment temperature
Chassis Temperature = 48 degrees Celsius
Chassis Over Temperature Threshold = 75 degrees Celsius
Chassis Critical Temperature Threshold = 95 degrees Celsius
======================================== C4948E ============================================================
mrtg@WWW:~$ snmpwalk -v 2c -c public X.X.X.X 1.3.6.1.2.1.47.1.1.1.1.2
SNMPv2-SMI::mib-2.47.1.1.1.1.2.1 = STRING: "Cisco Systems, Inc. WS-C4948E-F 1 slot switch "
SNMPv2-SMI::mib-2.47.1.1.1.1.2.2 = STRING: "WS-C4948E-F 1 slot switch chassis slot"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.3 = STRING: "Container of Fan Tray"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.4 = STRING: "FanTray"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.5 = STRING: "Container of Container of Power Supply"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.6 = STRING: "Container of Power Supply"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7 = STRING: "Power Supply ( AC 300W )"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.8 = STRING: "Power Supply Fan Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.9 = STRING: "Container of Power Supply"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.10 = STRING: "Power Supply ( AC 300W )"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.11 = STRING: "Power Supply Fan Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.1000 = STRING: "10/100/1000BaseT (RJ45), 10GE (SFP+) Supervisor with 48 10/100/1000BASET ports and 4 10GE SFP+ port"Hi,
I found this for you
Table 2. Physical and Environmental Characteristics
Feature
Specification
Environmental
Operating temperature
32 to 104°F (0 to 40°C)
Storage temperature
-40 to 167°F (-40 to 75°C)
Relative humidity
10 to 90%, noncondensing
Operating altitude
-196 to 6561 ft (-60 to 2000m)
Mean time between failure (MTBF)
• Cisco Catalyst 4948E-F : 149,261 hours
• Cisco Catalyst 4948E: 145,422 hours
Airflow
• 28 cubic feet per minute (CFM) at low speed
• 44 CFM at full speed
Physical
Dimensions
1.75 x 17.5 x 19.4 in. (4.4 x 44.4 x 49.3 cm)
Weight
• 19 lb (8.62 kg) (fully loaded with 2 power supplies and fan tray)
• 14 lb (6.35 kg) (base system only; no power supply or fan tray)
Power
AC input voltage range
90 to 264 VAC
DC input voltage range
-40.5 to -72 VDC
Maximum current
• AC: 4 amperes (A) at 120 VAC; 2A at 240 VAC input
• DC: 8A at -48 VDC input
Typical operating power
230W at 25°C
Maximum power
275W at 55°C
RoHS compliant
RoHS-6 compliance
Heat dissipation (maximum)
• AC Input: 1173 BTU per hour
• DC Input: 1251 BTU per hour
http://www.cisco.com/en/US/prod/collateral/switches/ps5718/ps6021/ps10947/data_sheet_c78-598933.html
Please rate the helpful posts.
Regards
Thanveer
"Everybody is genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is a stupid." -
Sending commands and reading data - RS232
Hello guys !
I have a special problem communicatin through RS232 with a PIC microcontroller.
The problem :
On push of a button i want to read a value from the microcontroller.
On another push of a button, i want to write a value to the microcontroller.
However, i get an error : "VISA: (Hex 0xBFFF0015) Timeout expired before operation completed."
I've tried to search the forum for similar problem, but i haven't found a suitable answer.
I also post my current code for reference. I'm using LabView 8.5.1.
The RS232 communication is working fine (i can read and write from the PIC).
I tested the connection extensively so i think that te problem is not there.
Can u help me ?
Thank you !
Attachments:
Serial-1.vi 53 KBAre you waiting for a response from the device after you send it a command? Are you getting any data back? A simple delay is not a very good solution since your program may work for one given situation but the hard delay may not in others. You can use a VISA event to wait for data at the serial port. How much data are you expecting? If it is a larg eamount of data you may want to calculate the timeout for the read based on the amount of data and your given BAUD rate. If you expect a large amount of data you may not have your timeout set long enough for all the data to arrive, especially if you are using slower BAUD rates.
I noticed in your code that you have enabled the read to look for a termination character. Does your device send one? If not, you may be getting the error because you have not received the 1000 bytes you indicating you want to receive. If you will not be getting a termination character and you don't know how much data you will be receiving you need to create some type of algorithm to read data and decide when to stop. Th eapproach I use is to read a single byte. This read will contain the maximum timeout to wait for the data to arrive. Once a single byte has been read I continue reading chunks of data using a small timeout value. This value should be long enough to allow any small delay that occurs in the data as it is being sent from the device but short enough to indicate the data is complete once a timeout does occur. This timeout error is discarded since it is not a true communication error.
NOTE: You should avoid using controls as variables. You have your Byte to Read controls set as default values and hidden. Therefore they are nothing more then a constant. Hiding controls simple to hide "variables" is not a good coding practice. Either expose the controls to teh user or use a constant.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
How to read enumerated values from an OPC server via Datasocket
Hi Labviewers,
I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
Many thanks in advance
DimitrisHi Sarah,
With the input type as variant I get the following response:
1 <-This is the current numeric value of the parameter
4 Attribute(s):
'Quality' -> 192
'TimeHigh' -> 29861723
'TimeLow' -> -665408304
'Timestamp' -> 39.238E+3
With the Input set to Enum constant I get no values or strings coming back. With the Input set to Ring constant I just get the numeric value
Dimitris -
How to read all values of a queue
Hi All,
In Message mapping I am checking condition for field value based on incoming value.
In test cases i can see the second or third occurence is getting supressed and first value fails the condition and mapping node not created.
I would like to know how to read multiple values from queue and check condition for each value and if correct value present condition should pass.
I tried all possible context changes but no luck.
Any ideas how to read all values coming .
Thanks.<?xml version="1.0" encoding="UTF-8"?>
<msg version="" dbName="">
<rowOp isLast="" cmitLSN="" cmitTime="" authID="" correlationID="" planName="">
<updateRow subName="" srcOwner="" srcName="" intentSEQ="" rowNum="" hasLOBCols="">
<col name="END_RSN_CDE" isKey="852369" invalidData="" rawData="">
<smallint>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</smallint>
<date>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</date>
<char>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</char>
</col>
<col name="SVC_USER_SDT" isKey="789654" invalidData="" rawData="">
<smallint>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</smallint>
<date>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</date>
<char>
<beforeVal invalidData="" rawData=""/>
<afterVal invalidData="" rawData=""/>
</char>
</col>
</updateRow>
</rowOp>
</msg> -
Problem reading RFC values from IRecordSet !!!!
Hi All,
I am having some problem reading values from IRecordSet. Can not seem to parse the output structure from RFC. AM using connector gateway service to execute BAPI_EXCHRATE_GETCURRENTRATES.
Here is the code,
MappedRecord input = rf.createMappedRecord("input");
input.put("DATE",new String("01011990"));
input.put("DATE_TYPE", new String("V"));
input.put("RATE_TYPE", new String("M"));
MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
Object rs = null;
IRecordSet recSet = null;
Object result = output.get("EXCH_RATE_LIST");
if (result == null) {
response.write("<BR>null");
rs = new String(" ");
} else if (result instanceof IRecordSet) {
IRecordSet irs = (IRecordSet) result;
response.write("<BR>Got some dataaa");
IRecordMetaData rsmd = null;
rsmd = irs.retrieveMetaData();
irs.beforeFirst();
while(irs.next()){
response.write("Row::"+irs.getString("RATE_TYPE")+" "+irs.getString("FROM_CURR")+" "+irs.getString("EXCH_RATE"));
Am getting the pritn statement, Got Some Data on the PDK component.
But somehow not able to read the values from IRecordSet
What is the mistake here?
Pls help
Edited by: Aakash Jain on Oct 11, 2008 12:22 AMHi
Try in this way.
IRecordSet resultTable = (IRecordSet)outputParams.get("TABLE_NAME");
for(resultTable.beforeFirst(); resultTable.next(); ) {
response.write(resultTable.getString(0));
response.write(resultTable.getString(1));
Thanks -
Short dump in reading selection values in Report
Hi all,
I have created a Navegational Attributte and added this Info Object in the existing Query and for this object we have created Charactistics Value Variable with Uesr Entry.
But, When we use input selection option to select a vlaue for this Variable in the Variable Selection Screen it is trying to read the values and going into short Dump but for other variables Selection option is working fine.
Please anyone help me if you have the solution.
Regards,
Ali.Hi,
Try deleting the master data and reload the master data again and check for the selection variables. Check the short dump in ST22 it will say which master table ie SID table or master table where the join fails.
Thanks,
Arun -
Determine/read the value of parameter rdisp/max_wprun_time within ABAP
Hi,
I need to avoid program breaks caused by exceeding run time longer than defined in parameter rdisp/max_wprun_time.
I will check the time since start of report in the critcal loop to bring the current data changes to a controlled end before getting a program break. I won't put a constant to the report, I will have a dynamical routine to avoid changes of report if the value of parameter rdisp/max_wprun_time will be changed.
But how can I get the value of this parameter within my ABAP report? Is there a table where this value has been stored? Is there an existing function module or a method to read the value?
Thank's a lot in advance!
GeorgThe runtime parameter (GET RUN TIME ) can be used to dynamically get the program run time
DATA T TYPE I.
GET RUN TIME FIELD T.
WRITE: / 'Runtime', T.
or
U probably can store the start date and time in TVARV with some variable ( line concatenate program name + START Date + Time)
and then use
SD_DATETIME_DIFFERENCE
or
SD_CALC_DURATION_FROM_DATETIME
Regards,
Mithun Shetty -
Function Module to Read attributes value from Classification tab
Dear Experts ,
We are using material classification in the material master. Under classification tab of material master , we are maintaining certain characteristics and their corresponding values.
I want to read those values and use those in one of the report.
Can you please help me in identifying Function Module which will return the values of all the attributes of that material.
Thanks in advnce,
Regards,
NikhilYou can check those details using CT06 transaction.
FM CLAF_CLASSIFICATION_OF_OBJECTS can be used to retrive the data using program.
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
class = gc_class
classtext = 'X'
classtype = gc_classtype
clint = gc_mmpsk
features = 'X'
language = sy-langu
object = l_object
key_date = sy-datum
initial_charact = 'X'
change_service_clf = ' '
inherited_char = 'X'
TABLES
t_class = lt_class
t_objectdata = lt_objectdata
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
Maybe you are looking for
-
Problem with vBulletin websites
I'm using Safari in my work Windows XP Pro machine. When I visit sites that use vBulletin (like AVS Forum, Howardforums, etc.) I get almost no text and I'm unable to log in or actually go into any of the forums. It seems to work fine for other forums
-
Creating Domain stuck at 0% - Oracle PFRD 11g - Windows Server 2008 64-bit
I hope someone can help me here. I am installing Oracle Fusion Middleware_pfrd_win_11.1.1.3.0_64 on a Windows 2008 R2 x64 Virtual Server. Step 1: download and install jdk-6u26-windows-x64.exe Step 2: download and install wls1033_generic.jar by typing
-
Hi, I am trying to add a journal voucher using the DI API. When I put a GL Account for the account code it works fine. If I put a business partner code I get an error saying "Invalid Account Code". Can anyone help? thanks
-
Including a jsf page into simple jsp
hey i m including a xhtml i.e facelet into an jsp file.till this scenarion it is working fine but when i am including that page into another jsp page it is not showing the correct representation of the jsf components
-
Nokia 5610 v 9.40 Firmware
Nokia 5610 gets another update. Nokia 5610 v9.40 Firmware Additions/Improvements > On-phone backup is a welcome addition > Video player full screen mode bug fixed > Slight battery life improvement Things that still needs to be fixed: Sounds/Music > S