How to manipulate data printed on system console
hello,
I send a command action to an Asterisk Server and get its result printed on the System Console in Netbeans IDE. Its something like this:
| Name/Username | Host | Mask | Port | Status |
Now, I would like to add only the first column of the result printed out, to a HashMap using .put method.
How do I access the data printed on the System console? or is there another way?? Kindly help as I am new to this field.
Thanks n Regards
Aparna
Yes, but I do not know how to add just the first column to the already existing list. This is what I do:
public void CommandAction() {
CommandResponse response;
Iterator lineiterator;
try {
action.setCommand("sip show peers");
response = (CommandResponse) managerconnection.sendAction(action);
linIterator = response.getResult().iterator();
while(lineIterator.hasNext()) {
System.out.println(lineIterator.next());
catch(Exception e){}
}How can I add the value of the first column from the AsteriskServer Console to the list?
Kindly help.
thanks
Aparna
Similar Messages
-
How to transfer data from one system to another by datamart please give de
how to transfer data from one system to another by datamart please give details
Hi Deba,
Find the below SAP help doc which may help u...
http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
Also find the below threads...
Loading data from one cube to another cube.
data copy from infocube to infocube in two different BW systems
Delta when loading from ODS to ODS
reg datamart
Data mart flag
Regards,
KK. -
How to import data from legacy system to SAP
How do we import legacy data to SAP system? Iu2019m a trainee on SAP HR, just wanted a brief description on that in layman terms?
There are lot of threads related to issue please use Search forum for Better results before posting the query search the forum for better prospectsHi ,
Conversion of legacy data into SAP can be uploaded using a standard SAP Tool called LSMW ( TCode:LSMW).
the below link gives a brief explanation of the LSMW tool
http://tutorialsap.com/abap/sap-lsmw-tutorial-with-steps-to-create.html
There are various methods to upload data within LSMW. If the number of records are very high like Article Master or Conditions for Retail the IDOC method must be used.
Standard IDocs
1. Article Master - ARTMAS
2. Conditions - COND_A
3. Source list - SRCLST
4. Customer Master or WRF3/WRF6 tables - DEBMAS
5. Vendor master- CREMAS
Etc. Use transaction code WE60 to see the structure of each of the idocs. New enhancements can be done for the idocs if the required field is not available.
Regards
Prabhu -
How to send data from HR system to PI system
Hi All,
I need to write a program that pulls the data from HR system and pushes it to PI system.I pretty much have the logic to pull the HR data but I would like to know the steps involved in pusing the data to PI system and how much time does it take approximately
Thanks
Bala DuvvuriHi Bala,
Proxies are used to send data to the PI system.
Hence you will have to create ABAP Proxies which will extract the data and send it to the PI System.
Regards,
Samreen. -
How to get data from CRM systems?
Hi...
How to use adapters to get data from external systems such as CRM systems.It is totally depends what kind of message is or are coming out from CRM Systems.
If it is sending IDoc then use Idoc adapter.
If it is BSP and sending HTTP Post then use HTTP adapter.
If you are using proxy then use XI adapter.
thanks
farooq -
How to get data into BI system
Hi Experts,
I am a newbie to SAP BI. Please guide me how to get the data from tha R/3 tables into BI system tables. When I check the data in SE11 in R/3 (for ex: VBAK, VBAP...... etc), I could see all the records. Now how can I get the same data in BI system tables? When I check in BI system with Tcode SE11, I couldn't find any data for the tables VBAK,VBAP..... etc. Please guide me how to fill these tables in BI from R/3. Points will be rewarded for the solutions.
Regards,
RaviHi Ravi,
U can follow the link and know how to get data from R/3 to BI.
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/28/4c553c42360a40e10000000a114084/frameset.htm">data sources</a>
Still I give overview to u. U need to create data source in R/3 side, replicate them in BI and use them in your info source to load the data. Data source are of two type application specific (system generated) and generic (customer defined). Data Extraction can be based on table, view or infoset query.
hope this helps.
Regards,
Purvang
Assigning Point is to say Thanks in SDN * -
How to extract data from legacy system to source file
Hi can anyone tell me the procedute to copy data from legacy system to source files....this data needs to be moved to base tables
can any one tell me the procedure and any sample code i,e any example
Thanks & Regards
KrishYou should post your thread to ...:
http://forums.oracle.com/forums/forum.jspa?forumID=183
providing all necessary info......!!!!
Greetings...
Sim -
How to remove data file from System tablespace
Hi All,
I have wrongly added data file in SYSTEM tablespace, now I want remove it. I have tried to set datafile offline but it is giving me the error system tableapce can not set offline. so please help me. I am working Oracle 10g .
thanks in advance
svIn 10gR2, you can drop a datafile from tablespace, as long it's empty (and of course not the last one):
ALTER TABLESPACE tbs_03 DROP DATAFILE 'tbs_f04.dbf';
Otherwise, there's no direct way to get rid of the file. You can just shrink it and move (i.e. "rename") it another location. For a non-system tablespace, move of all segments to another tablespace (and later renaming it) would be an option, but this of course won't work with system tablespace. -
How to manipulate data in AS400 using JSP?
hi i am developing a system and i am using JSP with AS400 as its database.
My question in how am i be able to access the data from the database to the pages?
How can i also manipulate the data in the database using JSPs?ex..add,edit,delete
Can anyone help me about it..it would be better if i got to see some sample codes.Now then first of all lets come back to origination of specification
to me AS 400 is a product technology from IBM.
IBM offers solutions for operating on respective platform using a specific Application Programming Environment and if you are looking for a solution using Java Environments the below PDF / articles might have to serve your need.
http://www.redbooks.ibm.com/pubs/html/as400/v4r5/ic2924/info/java/rzaid/java400.pdf
http://search400.techtarget.com/tip/1,289483,sid3_gci537120,00.html?FromTaxonomy=%2Fpr%2F2fa
http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rzahh/javadoc/RLReadFileExample.html
http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.javatools.doc/tasks/t4over.htmand if you are looking for a open source solution the below project library might intrest you
http://jt400.sourceforge.net/Hope that might help :)
REGARDS,
RaHuL -
How to transfer data from legacy system to SAP
Hi Friends,
I would like to know the process and the steps followed to transfer data from my legacy system to SAP.
Suppose if i have all the data in the form of Excel sheet or doc type. How can i transfer this data into SAP.
Please explain the steps followed.
Appreciate your help
AnilHi ,
Conversion of legacy data into SAP can be uploaded using a standard SAP Tool called LSMW ( TCode:LSMW).
the below link gives a brief explanation of the LSMW tool
http://tutorialsap.com/abap/sap-lsmw-tutorial-with-steps-to-create.html
There are various methods to upload data within LSMW. If the number of records are very high like Article Master or Conditions for Retail the IDOC method must be used.
Standard IDocs
1. Article Master - ARTMAS
2. Conditions - COND_A
3. Source list - SRCLST
4. Customer Master or WRF3/WRF6 tables - DEBMAS
5. Vendor master- CREMAS
Etc. Use transaction code WE60 to see the structure of each of the idocs. New enhancements can be done for the idocs if the required field is not available.
Regards
Prabhu -
How to extract data from Oracle system
Hello,
I have a project to load data from an external Oracle system. (I familiar with loading data from SAP source systems).
Can anybody explain to me what is the procedure to load data directly from Oracle or to send me some links and explanations about this issue?
Best regards,
AtiehMohamad
Please check this if you have not done already
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40
Also check this thread already experts answered for this question
how create a db connection between oracle and bw
Thnaks
Sat
Message was edited by: Sat -
How to Compare date with Current system date in XSLT mapping.
Hello Experts
In a XSLT mapping program, I hava a filed, ZZOB which is giving some date.
which I need to compare with the current date.
Condition-
ZZOB is greater than current date or ZZOBLIG = NULL
Then go further statements.
how can i campare with the current date?
Please help.
Thanks
BalaprasadThis example may help:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:param name="currentDate"/>
<xsl:variable name="firstDate" select="concat(substring($currentDate, 1,4),substring($currentDate, 6,2),substring($currentDate, 9,2))"/>
<xsl:template match="/">
<xsl:apply-templates select="//item"/>
</xsl:template>
<xsl:template match="item">
<xsl:variable name="secondDate" select="concat(substring(submissionDeadline, 1,4),substring(submissionDeadline, 6,2),substring(submissionDeadline, 9,2))"/>
<xsl:choose>
<xsl:when test="$firstDate > $secondDate">
<xsl:call-template name="late"/>
</xsl:when>
<xsl:when test="$firstDate < $secondDate">
<xsl:call-template name="ontime"/>
</xsl:when>
<xsl:when test="$firstDate = $secondDate">
<xsl:call-template name="same"/>
</xsl:when>
<xsl:otherwise>Monkeys<br /></xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="ontime">
This is on time
</xsl:template>
<xsl:template name="late">
This is late
</xsl:template>
<xsl:template name="same">
This is on time
</xsl:template>
</xsl:stylesheet> -
How to convert date(YYYYMMDD) to system date format.
I neet to convert the incoming date (<b>YYYYMMDD</b>) to the format in which we are diplaying in our system. (<b>User's sytem format</b>).
Thanks in advance,
VivenVALIDATE DATE
temp_date = in_date.
call function 'DATE_CHECK_PLAUSIBILITY'
exporting
date = temp_date
exceptions
plausibility_check_failed = 1
others = 2.
if sy-subrc <> 0.
raise invalid_date.
exit.
endif.
RETRIEVE USER PROFILE DATE SETTING
select single datfm
into user_setting
from usr01
where bname = sy-uname.
REFORMAT DATE ACCORDING TO USER PROFILE
case user_setting.
when '1'.
out_date(2) = in_date+6(2).
out_date2(2) = in_date4(2).
out_date+4(4) = in_date(4).
when '2' or '3'.
out_date(2) = in_date+4(2).
out_date2(2) = in_date6(2).
out_date+4(4) = in_date(4).
when '4' or '5' or '6'.
out_date = in_date.
endcase.
PS.
<b>Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!</b>
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
How to manipulate data over two tables in same database.
hi, i am not a profficient java programmer, i was trying to copy filtered data from one table to another table.
i was trying to use
public static Connection getConnection() throws Exception {
Driver d = (Driver)Class.forName
("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection c = DriverManager.getConnection
("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=stuff.mdb");
return c;
and then
theConn = myConnection.getConnection();
ResultSet rs;
Statement stmt;
String sql;
stmt = theConn.createStatement();
sql = "SELECT * FROM shisab, myhisab WHERE shisab.Who_Bought ='ron'";
rs = stmt.executeQuery(sql);
while (rs.next()) {
System.out.println("date:"+rs.getString("shisab.Date"));
rs.close();--------------------------------------
it does not show anything! in the output! i tried many things but i thing it is not supporting my multiple table syntax , i.e.: table1,table2 in teh from clause.
please help!
i just need to filter stuff from the shisab table and write the filtered data into
the myhisab table.Your problem isn't in the Java code, it's your SQL code...
Your statement, as submitted, is an improperly formed multi-table select, where you never joined the second table. That won't work.
You need to look into the INSERT INTO statement. The exact syntax of your statement will depend on whether or not both tables contain the exact same column names, etc. A generic example based on what you have might look like:
INSERT INTO myhisab SELECT * FROM shisab WHERE Who_Bought = 'ron'HTH -
SAPSCRIPT - how to prevent data printing without underline
Hi All,
I am printing header text in script from label instructions maintained in delivery.
In that, header text is declared inside the character format with underline tag.
This text is getting printed in the MAIN window.
After, this the entire data is getting printed with underline.
What can be done to resolve this??Hi,
Check SAP note #1512049.
regards,
Aidan
Maybe you are looking for
-
Error while using Oracle Table as source file :- ODQ for ODI
Hi All, I am getting some errors while working on ODQ with Oracle Tables as source file. If I am trying with text files (*.txt) as source and output it works fine. Please let me know how we can connect to an oracle table which is my source file. In t
-
File Redirection in Tomcat 5.5
I've got an application that reads from a collection of data in a directory outside the WEB-INF directory. I am able to read the data and use it to create an html stream to send to the user. This part is working well. Now, I'd like to include graphic
-
How To Download Safari 4.0.3
I just updated iTunes, unfortunately now it will not let me on the store because I do not have version 4.0.3 or higher of Safari. Of course, I went to the site and downloaded it. Whenever I do, though, it begins the download as the regular .dmg howev
-
Epson CX Stylus 4800 won't scan
Ever since this latest security download for 10.5.2 I've had these issues with my Epson scanner and printer - it worked perfectly prior to the update. In searching other boards it seems it's a chronic issue with the download not with the printer Here
-
Hi, I am working on a B2B scenario in which i am getting PO from SRM to PI and i need to send this PO from PI to external vendor by using HTTP adapter.Can any one give me configuration steps to achive this requirement.Also i want to get the HTTP resp