Asset number fetching wrongly from another asset class
Dear all,
We have created asset under asset class - furniture & fittings for which no. range starts from 61000...
but asset no. created starts with no. 60000.. .
Checked asset number range but all no. ranges are defined.
Where we are missing ? Why it happened ? How to correct it ?
Jeyakanthan
Hi Jeyakanthan,
Could you please, share with us how did you resolve your error.
I am also getting same error.
Appreciate your sharing with us.
Thanks & Regards,
Prafful Kansal
Similar Messages
-
Fetch data from another mirosoft sql server to sap
Dear all,
I want to fetch data from another mirosoft sql server
to SAP(my sap server IN unix, oracle 10g).
Thanks
Shashi
Moderator Message: Try to do you own research before posting your question. Get back to the forums in case you are stuck with any issue
Edited by: Suhas Saha on Jul 26, 2011 3:21 PMhi,
u should see following documentation:
Oracle9i Heterogeneous Connectivity Administrator's Guide
Release 1 (9.0.1)
Part Number A88789_01
in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
regards
umar -
How to call a Java class from another java class ??
Hi ..... can somebody plz tell me
How to call a Java Class from another Java Class assuming both in the same Package??
I want to call the entire Java Class (not any specific method only........I want all the functionalities of that class)
Please provide me some slotuions!!
Waiting for some fast replies!!
Regards
Smita MohantyHi Smita,
you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
e.g.
you have developed A.java and B.java, both are in same package.
in implementaion of B.java
class B
A obj = new A();
//to access A's methods
A.method();
// to access A's variable
//either
A.variable= value.
//or
A.setvariable() or A.getvariable() -
How to refresh a JTable of a class from another thread class?
there is an application, in server side ,there are four classes, one is a class called face class that create an JInternalFrame and on it screen a JTable, another is a class the a thread ,which accept socket from client, when it accept the client socket, it deal the data and insert into db,then notify the face class to refresh the JTable,but in the thread class I used JTable's revalidate() and updateUI() method, the JTable does not refresh ,how should i do, pls give me help ,thank you very much
1,first file is a class that create a JInternalFrame,and on it there is a table
public class OutFace{
public JInternalFrame createOutFace(){
JInternalFrame jf = new JInternalFram();
TableModel tm = new MyTableModel();
JTable jt = new JTable(tm);
JScrollPane jsp = new JScrollPane();
jsp.add(jt);
jf.getContentPane().add(jsp);
return jf;
2,the second file is the main face ,there is a button,when press the button,screen the JInternalFrame. there is also a thread is beggining started .
public class MainFace extends JFrame implements ActionListener,Runnable{
JButton jb = new JButton("create JInternalFrame");
jb.addActionListener(this);
JFrame fram = new JFrame();
public void performance(ActionEvent e){
JInternalFrame jif = new OutFace().createOutFace(); frame.getContentPane().add(JInternalFrame,BorderLayout.CENTER);
public static void main(String[] args){
frame.getContentPane().add(jb,BorderLayout.NORTH);
frame.pack();
frame.setVisible(true);
ServerSokct ss = new ServerSocket(10000);
Socket skt = ss.accept()'
new ServerThread(skt).start();
3.the third file is a thread class, there is a serversoket ,and accept the client side data,and want to refresh the JTable of the JInternalFrame
public class ServerThread extends Thread{
private skt;
public ServerThread(Sokcet skt){
this.skt = skt;
public void run(){
OutputObjectStream oos = null;
InputObjectStream ios = null;
try{
Boolean flag = flag;
//here i want to refresh the JTable,how to write??
catch(){}
4.second is the TableModel
public class MyTableModel{
public TableModel createTableModel(){
String[][] data = getData();
TableModel tm = AbstractTableModel(
return tm;
public String[][] getData(){
}Use the "code" formatting tags when posting code.
Read this article on [url http://www.physci.org/codes/sscce.jsp]Creating a Simple Demo Program before posting any more code.
Here is an example that updates a table from another thread:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=435487 -
How sholud we call one jframe class from another jframe class
Hi
In my application i am calling one jframe class from another jframe clas.
how sholud we make previous jframe inactve when another jframe is invoked?(user sholud not able to make any changes on on parent jframe window when another jframe is invoked)
Pls reply.Sorry for me it is not possible to change existing code,
pls suggest me any other solution so that i can inactive parent jframe when child jframe execution is going on. -
Hi all,
i need the code that can fetch the data from another URL like i need the new from different site and put into my database and then website useing the jsp or u tell me in which and how.
thanks in advance.. URGENT
Waiting................................................ UR rpely..................Hi,
People generally ignore "URGENT" pleas on this forum... it's only urgent to you.
You probably want to do a search for "web scraping"... basically parsing HTML pages as XML, and extracting the results.
Recently dcminter posted a link to a very good article from the IBM website, which you should read.
http://www-128.ibm.com/developerworks/java/library/j-jtp03225.html
regards,
Owen -
Accessing a movie from another movie (class)
Hi all!,
Ok, this is a little bit complicated to explain, but I will
try my best. First, please click on the link below to see the
mockup that I did:
Link
to mockup
Now for some explanation:
First of all, the Flash makes use of an XML file to grab some
data. This part was freakin complicated and it's actually a
programmer who helped me with that but he is very unfamiliar with
AS on the whole so he couldn't really help me with the rest. OK so
basically in the first frame I am loading the XML, then what you
are seeing on the stage is in frame 2.
on the stage there are 2 movies:
1. scrollPane_mc
2. cables_mc
For now you can check and uncheck the items in the scroll
pane and you can roll over the cables to see their names.
1. scrollPane_mc
scrollPane_mc is a scroll pane component that has a movie
called cableList_mc as source.
cableList_mc itself is an empty movie with just 1 frame and
which dynamically grabs a movie called cableListItem_mc (itself
attached to a class of the same name) from the library and
duplicates it, based on data from the XML file.
code in cableList_mc:
var startY:Number = -0.8;
for (var cableName:String in VPN_Utils.cables) {
var listItem:cableListItem_mc = new cableListItem_mc();
listItem.name = cableName;
listItem.x = 0;
listItem.y = startY;
listItem.cableNameText.text =
VPN_Utils.cables[cableName][0];
addChild(listItem);
startY += 18;
code for cableListItem_mc.as (1 cableListItem_mc is basically 1
checkbox item):
package {
import flash.display.*;
import flash.events.*;
import flash.text.TextField;
import VPN_Utils;
public class cableListItem_mc extends MovieClip {
private var checked:Boolean = true;
public function cableListItem_mc() {
addEventListener (MouseEvent.MOUSE_DOWN, swap);
private function swap(e:MouseEvent):void {
if (checked) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
checked = !checked;
trace (this + " " + this.name + " is " + checked);
2. cables_mc
cables_mc on the other hand just contains several movie
clips, placed manually on the stage and all of them based on the
class VPN_Cable.as
code for VPN_Cable.as:
package {
import flash.display.*;
import flash.events.*;
public class VPN_Cable extends MovieClip {
public function VPN_Cable() {
addEventListener (MouseEvent.MOUSE_OVER, onMouseOver);
addEventListener (MouseEvent.MOUSE_OUT, onMouseOut);
private function onMouseOver(e:MouseEvent):void {
text_mc.visible = true;
private function onMouseOut(e:MouseEvent):void {
text_mc.visible = false;
So basically now what I want to achieve is to control and
talk to the cables from the scroll pane. So when I uncheck "Cable
1" in the scroll pane, "Cable 1" on the stage should turn invisible
for example.
I hope this is clear....
Thanks a lot! in advance!
jon.Hi kglad!
uhhh, thnx a lot for u reply =] but it's not exactly this
that i'm looking for. Well yeah, i know i have to assign mouse
listeners to my checkboxes (....) (and I already have actually),
but could you give some details about that? That would help
greatly. My problem is that I don't know how to talk to the cables
(which are in a separate movie) from the checkboxes (which are in
yet another movie).
Thanks!
And happy new year!
jon. -
Help! how to refresh the JTable of a class from another thread class
there is an application, in server side ,there are two classes, one is a class called face class that screen a JTable, another is a class the a thread ,which accept socket from client, when it accept the client socket, it deal the data and insert into db,then notify the face class to refresh the JTable,but in the thread class I used JTable's revalidate() and updateUI() method, the JTable does not refresh ,how should i do, pls give me help ,thank you very much
thank you very much !
i tried it ,but the TableModel i used like this ,and how to change the TableModel?
here the files of mine ,pls give me some help,thank you very much
1,first file is a class that create a JInternalFrame,and on it there is a table
public class OutFace{
public JInternalFrame createOutFace(){
JInternalFrame jf = new JInternalFram();
TableModel tm = new MyTableModel();
JTable jt = new JTable(tm);
JScrollPane jsp = new JScrollPane();
jsp.add(jt);
jf.getContentPane().add(jsp);
return jf;
2,the second file is the main face ,there is a button,when press the button,screen the JInternalFrame. there is also a thread is beggining started .
public class MainFace extends JFrame implements ActionListener,Runnable{
JButton jb = new JButton("create JInternalFrame");
jb.addActionListener(this);
JFrame fram = new JFrame();
public void performance(ActionEvent e){
JInternalFrame jif = new OutFace().createOutFace(); frame.getContentPane().add(JInternalFrame,BorderLayout.CENTER);
public static void main(String[] args){
frame.getContentPane().add(jb,BorderLayout.NORTH);
frame.pack();
frame.setVisible(true);
ServerSokct ss = new ServerSocket(10000);
Socket skt = ss.accept()'
new ServerThread(skt).start();
3.the third file is a thread class, there is a serversoket ,and accept the client side data,and want to refresh the JTable of the JInternalFrame
public class ServerThread extends Thread{
private skt;
public ServerThread(Sokcet skt){
this.skt = skt;
public void run(){
OutputObjectStream oos = null;
InputObjectStream ios = null;
try{
Boolean flag = flag;
//here i want to refresh the JTable,how to write?? }
catch(){}
4.second is the TableModel
public class MyTableModel{
public TableModel createTableModel(){
String[][] data = getData();
TableModel tm = AbstractTableModel(
return tm;
public String[][] getData(){
} -
How to instantiate an object from another's class?
Hi... first post here
I have the following problem:
I have a first object, lets call it obj1, of class X (where X could be, for example, 'Class1' or in another moment 'Class2', etc.)
Now, I have another object, obj2, which I wish to instantiate it with the same class as obj1. The problem is I don't always know which class does obj1 belongs, so programming with an if-else statement and the getClass().getName() method is not a solution, since I cannot program for all the possible cases.
I know that with obj1.getClass() I get obj1's class and that with obj1.getClass().getName() I get a String with obj1's class name.
I guess that making obj2 of class Object I can get it, but my question is:
How do I do to create the instance of obj2 so its class in that moment is the same as the class of obj1? (And by the way, how can I use a specific constructor of obj1 for obj2?)
I repeat that the if-else method won't do since the class for obj1 won't always be in a known set of classes.
Thanks for any help or tip you can give me
Javier
from MexicoYou would use the Class.forName() static method to get a Class object of the class you are looking for. Then you would use its newInstance() to create an instance of that class using a no-arguments constructor. If you need some other constructor (and how would you know that?) then Class has a getConstructor(...) method and a getConstructors() method that return one or more Constructor objects you could use. Follow the API documentation from there.
-
Referencing WMI Manageable class from another WMI Class
Hi,
I am trying to have WMI manageable class referring to another WMI manageable class
Something like
[ManagementEntity]
Class A
[ManagementEntity]
Class B
[ManagementReference(Type = "A")]
[ManagementProbe]
public A AClass;
When trying to install the class, I am getting “Type unsupported”
I tried the Microsoft
ManagementReference sample,
http://msdn.microsoft.com/en-us/library/system.management.instrumentation.managementreferenceattribute.aspx
(working fine but the LetterPhonetic class won’t show on the WMI Object Browser)
Ideas will be highly appreciated
My Sample code
using System;
using System.Management.Instrumentation;
using System.Collections.Concurrent;
using System.Collections;
[assembly: WmiConfiguration("root\\ConsoleC", HostingModel = ManagementHostingModel.Decoupled)]
namespace ConsoleDecoupled
[System.ComponentModel.RunInstaller(true)]
public class TheInstaller : DefaultManagementInstaller
public class Program
public static void Main(string[] args)
for (int i = 0; i < 10; ++i)
TestEnumWmi ms = TestEnumWmi.CreateTestEnumWmi();
ms.teststring = i.ToString();
InstrumentationManager.RegisterType(typeof(TestEnumWmi));
InstrumentationManager.RegisterType(typeof(RuntimeConfigSettings));
Console.WriteLine("Press enter to exit");
Console.ReadLine();
InstrumentationManager.UnregisterType(typeof(TestEnumWmi));
InstrumentationManager.UnregisterType(typeof(RuntimeConfigSettings));
[ManagementEntity(Singleton = true, Name = "ConfigurationSample")]
[ManagementQualifier("Description", Value = "Configuration Sample Application")]
public class RuntimeConfigSettings
[ManagementProbe]
public string[] ReadMe;
private int myVar;
[ManagementConfiguration]
public int MyProperty
get { return myVar; }
set { myVar = value; Console.WriteLine(value); }
[ManagementReference(Type = "TestEnumWmi")]
[ManagementProbe]
public TestEnumWmi MSS;
[ManagementBind]
public RuntimeConfigSettings()
ReadMe = new string[10];
for (int i = 0; i < 10; ++i)
ReadMe[i] = "blah " + i;
[ManagementEntity(Name = "TestEnumWmi")]
public class TestEnumWmi
private TestEnumWmi()
static internal TestEnumWmi CreateTestEnumWmi()
TestEnumWmi ms = new TestEnumWmi();
ms._id = Guid.NewGuid().ToString();
ms.teststring = "blah";
ms.TestInt = new Random().NextDouble();
instantlist.TryAdd(ms._id, ms);
return ms;
[ManagementConfiguration()]
public double TestInt { get; set; }
[ManagementConfiguration()]
public string teststring { get; set; }
[ManagementKey(Name = "ID")]
public string _id;
[ManagementBind]
static public TestEnumWmi GetInstant([ManagementName("ID")] string ID)
TestEnumWmi ms = null;
if (instantlist.TryGetValue(ID, out ms))
return ms;
else
throw new InstanceNotFoundException();
[ManagementEnumerator]
static public IEnumerable EnumerateTestEnumWmis()
foreach (var i in instantlist)
yield return i.Value;
static internal ConcurrentDictionary<string, TestEnumWmi> instantlist = new ConcurrentDictionary<string, TestEnumWmi>();Hi,
The Microsoft ManagementReference sample you mentioned contains a bug:
Instead of:
inst.LetterNumber = "Letter = " + i;
inst.PhoneticNumber = "Phonetic = " + i;
The exact text (where spaces in the string are important and must be removed) should be:
inst.LetterNumber = "NumberLetter.Number=" + i;
inst.PhoneticNumber = "NumberPhonetic.Number=" + i;
With this fix, the hierarchy can now be navigated properly.
c.f. my response to the following blog post:
http://juggledthoughts.blogspot.co.uk/2008/06/wmi-association-classes.html
I have also
logged a bug on MSDN Feedback so please vote on this if you'd like them to fix the sample. -
How to run select query from one SID to fetch record from another SID?
I have two SID, one is AAA and another is BBB and the connection name is A1 and B1 respectively. I want to run one select query from A1 connection to fetch record B1. Can anyone help me how I can connect from one SID to another SID?
Hi 869357,
You can also use the copy command. (Works with limited types)
try:
help copyRegards,
Turloch -
Using Field symbol to fetch data from another program
I have a requirement where i need to fetch value of a field from one of the function pool so i have written a sample progam to check the logic but its doest seems to work its giving dump.
Basically i want to know how to use <programname><fieldname> with fieldsymbol.
REPORT ztest1.
DATA test(25) VALUE 'ggg'.
submit ztest.
report ztest.
constants: lv_memory(25) type c value '(ZTEST1)TEST'.
field-symbols: <fs2> type char25 .
assign (lv_memory) to <fs2>.
write : <fs2>.
I am getting same field symbol assignment dumpHi Rahul,
You can use this concept in between the FUNCTION MODULES where both are
under same FUNCTION GROUP ( as both the FM's have same global memory area ).
And also if you are calling an FM or method from your program ,you can have the data of the calling program in that called FM or METHOD.
Hope this may help you.
Regards,
Smart Varghese -
Using container from another global class
There are two global classes being used by me in a program - Class A and Class B.
Class A contains the container to display ALV.
Class B contains the logic to display ALV.
class B is used as attribute class in Class A.
How is that I can use the container from Class A from class B?Like this?
class A ...
public section.
methods: get_container returining value(ref_cont) type ref to ...,
constructor.
private section.
data ref_container type ref to....
endclass.
class A impl...
method get_container.
ref_cont = me->ref_container.
endmethod.
method constructor.
create object ref_container ....
endmethod.
endclass.
class B ...
public section.
methods: constructor,
display alv.
private section.
data ref_alv type ref to....
data ref_A type ref to A.
endclass.
class B impl...
method constructor.
data lr_container type ref to ...
if ref_A is not bound.
create object ref_A.
endif.
"get container from class A
lr_container = ref_A->get_container( ).
create object ref_alv
exporting
container = lr_container
endmethod.
method display_alv.
call method ref_alv->set_table_for_first_display...
endmethod.
endclass.
If storing container's reference under local LR_CONTAINER in class B constructor causes not displaying ALV, you will have to store this under class B attribute. Alternative would be directly indicating the container reference as parent to ALV by calling functional method like
create object ref_alv
exporting
container = ref_A->get_container( )
this will however work in recent releases of SAP NW AS.
Regards
Marcin -
Displaying in the GUI from another called class
Hi,
New to creating GUIs in java and I'm having two problems:
1- How do I display several images in my GUI in different areas of the GUI window?
2- For these images and my text boxes, how do I display things when it's not the class the GUI was created in, but another class that is called by the main? Basically, my main initializes my GUI and then calls another class that does all of the actual work in the program, but I need to display text and images that are being manipulated in those classes.
Sorry for the long-winded questions and thanks for any help that anyone can provide.You might want to start out by looking at the demo Swing applications to study how they work. These are part of your JDK install under $JAVA_HOME/demo/jfc
Also keep in mind that all calls to directly manipulate the Swing UI after it is mapped on the screen need to take place on the event thread. For more information on this, take a look at:
http://java.sun.com/products/jfc/tsc/articles/threads/threads3.html
http://java.sun.com/docs/books/tutorial/ui/swing/threads.html -
Fetching record from another program
hi all,
is it possible to fetch a record from SAP database,
using .NET program.....
thanks in advance.Hi Bharanidaran,
I am talking about reading (!!!) the database. SAP will (probably) not support that, since they don't know what you are exactly doing. But it is possible. There are no build-in restrictions or something like that. You should have an eye on the performance of your statements. Moreover you must make sure that there are no blockings or other negative effects on the database disturbing SAP operations.
But, if you mean any legal restrictions... I don't know.
Regards,
Sven
Maybe you are looking for
-
Is there any way to create custom views, like in Thunderbird & Evolution?
Hi Folks, I have recently switched to Mac. Before this I was using Linux. For mail I used Thunderbird (TB) for many years, and then eventually switched to Evolution Mail (EM) for its smoother integration into Linux. On both TB and EM I revolved my wo
-
BT Vision Box is not picking up the remote
My BT Vision box has been working fine up until now. The box is no longer picking anything up from the remote control (black). The remote itself is working fine, as the blue light flashes whenever you press a button, however the little blue light tha
-
A New MBP (and one for the road: any highly-recommended external drive for.
If I order a new MBP 17" for architecture and planning grad program, will SL come installed on the machine? Is SL considered a whole new OS or jut an update to Leopard? I am not even sure I am wording the questions correctly, so I apologize if I am n
-
Can I create MacOS on flash drive to run broken Imac?
So I've got an Imac that's all brokedy. Won't start up. I tried reinstalling Snow Leopard 10.6.7 on it from a boot disk, but got referred to Disk Utility. Disk Utility told me that the GB 500 drive was so fricked up that Disk Utility can't do a thing
-
How can I change security question when I don't have a rescue email address
Can anybody help me with this I don't know The answers and I don't have a rescue address is there anyway Ivan edit this with out starting a new one