How to retrieve information get in a sap table
Hello,
A sap program in my job chain reads a sap table. How can I retrive information of one of its fields and pass it in parameter in another step of my job chain ?
Hi,
The Z program returns informations in the job protocol, the question is how to parse the protocol to retrieve the string and put it in a parameter. I've been told that I can put a script in the "action" tag of the job definition as a post-running action. Where can I find an exemple of that kind of script ?
FYI : the z program returns the following sentence, "flux sortant : nouveau compteur =0002" and what I need is to get 2 as a parameter for the next step.
Re.
Similar Messages
-
How the consumption valuse gets updated in the table MVER
Hi,
Can anyone explain me how the consumption value gets updated in the table?
Would you please be able to confirm that all movement types are considered for updates in table MVER. If not, i would need the movement types that are considered as pertaining to u2018consumptionu2019.
Thanks
SriniHi,
Consumption both in material master view and table MVER are updated as soon as the movement is made, ie, real time data.
To see the movements relevant to consumption, use OMJJ to review movement types or table T156. In this table, select Consumpt.postg. field not equal to blank (so blank is excluded).
This should then show all movement types subject to consumption posting. The likely ones to see are below, with majority being G.
(blank) No consumption update
G Planned withdrawal (total consumption)
R Planned, if ref. to reservation, otherwise unplanned
U Unplanned withdrawal (unplanned consumption)
Thanks. -
How can i make entry in standard SAP table
hi all
how can i make entry in standard sap table.
ex- lfa1
without using programming,BDC.Hi,
in the table if u find delivery and maintainance allowed with restrictions in delivery /maintainance tab u can enter data from program only.
see the below example.
tables: lfa1.
lfa1-lifnr = '0878877'.
lfa1-name1 = 'my name'.
lfa1-ort01 = 'bangalore'.
lfa1-land1 = 'in'.
modify lfa1.
rgds,
bharat. -
How to retrieve the Field Name of a Table
Hi guys,
I'm trying to retrieve the field name of a table in java, but i don't know how to do it. Could somebody help me?Let say i have a table name Itemmaster, then
i want to retrieve its field and display to dos prompt.
Example :
Item No.
Description
Quantity
It is possible to retrieve the fields?
What could be the possible command in java using packages Java.sql.*?
Thanks in advanced...
Best regards,
DharryThe ResultSet class, which is how query results are returned in JDBC, has methods to get at the metadata for the table queried, including column names:
ResultSet resultSet=statement.executeQuery("select * from table");
resultSetMetadata=resultSet.getMetaData();
resultSetMetadata.getColumnLabel(column+1); -
How to retrieve number of rows of a table by jdbc?
can anyone show me a simple snippet of a java code about how to retrieve the number of ROWS in a table?
or even only showing the jdbc command that does this job would be enough.
thanks in advance :)
cheers1. query for the count, then execute the query
"select count(*) from test" then
"select * from test"
2. create a scrollable ResultSet then
rs.last();
int count = rs.getRow();
rs.beforeFirst();
Jamie
p.s. this topic has been discussed MANY times. Do a search on this forum and you will get lots of other discussions on this topic. -
How to select LAST line from a SAP table?
Hi developers,
I need to select the last line from a SAP table, NOT from an internal table.
Something like
SELECT SINGLE LAST FROM pa00169..
any help is more than welcome.Javier,
Based on this statement from you:
"i created a Z table, its a config table that stores some bussines rules, and an id counter, so in order to update that counter i need the last line of the ztable."
I have one additional solution which is the "text box" approach IF the 'id counter' mentioned above is a numeric data type.
If so, use an SQL function to get the highest value of ID_COUNTER.
Then simply add one to it to produce a new, unique, higher-order primary key.
See below:
data: l_id_counter like ztable-id_counter.
data: new_id_counter like ztable-id_counter.
select max( ID_COUNTER ) from ztable into l_id_counter.
new_id_counter = l_i_counter + 1.
Now new_id_counter will be the unique, primary key IF this is the only field in ZTABLE's primary key.
This will also GUARANTEE that your new record is built correctly. -
How to retrieve the values from PL/SQL table types.
Hi Every one,
I have the following procedure:
DECLARE
TYPE t1 IS TABLE OF emp%ROWTYPE
INDEX BY BINARY_INTEGER;
t t1;
BEGIN
SELECT *
BULK COLLECT INTO t
FROM emp;
END;
This procedure works perfectly fine to store the rows of employee in a table type. I am not able to retrieve the values from Pl/SQL table and display it using dbms_output.put_line command.
Can anybody help me please!!!!!
Thanks
Ahmed.You mean, you can't add this
for i in t.first..t.last loop
dbms_output.put_line(t(i).empno||' '||t(i).ename||' '||t(i).job);
end loop;or you can't add this
set serveroutput onor maybe, you are working in third party application where dbms_output is not applicable at all?
You see, not able like very similar it is not working - both are too vague...
Best regards
Maxim -
In CQ5 How to retrieve information stored provided via dialog and stored in a node of content folder
Hi,
I have to get few details in dialog of a component and stored it in node of the content package. how can i retrieve the saved information from the jsp.?
any help will be helpful.
Thanks in advance.Hi Raja,
In a component's jsp, assuming <cq:defineObjects> has been called, you can use the properties scripting variable to get the node's properties.
Have you gone through the tutorial at http://dev.day.com/docs/en/cq/current/developing/components.html#Extending%20the%20Text%20 and%20Image%20Component%20-%20An%20Example ?
Regards,
Justin -
How to retrieve price per unit in SAP?
Hi all!
does anyone know what are the steps to retrieve from SAP price per unit value that customer was invoiced?
I am writing Z program for retrieving price per unit (for example per kilogram) in order to calculate debit/credit memo invoice for the customer.
To achieve this I have the following information:
customer nr
material nr
amount of units (for example amount of kilograms)
invoice nr
pricelist nr
so price per unit value is missing here... if I have it I could multiply it with amount of units and get the result I need...
Award points are waiting!
BR, M.Get the data from A004 and A005 tables...
See below example code material price per unit :
Get the data from A004 table to get KNUMH
Added new field Sales Unit - Seshu 01/09/2006
refresh : i_a004.
clear : i_a004.
data : lv_kbetr like konp-kbetr," Condition value
lv_KPEIN like konp-kpein , "per
lv_KMEIN like konp-KMEIN. " Sales Unit
select * from a004 into table i_a004
where matnr = i_join-matnr
and vkorg = '0001'
and vtweg = '01'.
if sy-subrc eq 0.
sort i_a004 by DATAB descending.
Get the Latetest Date
read table i_a004 with key matnr = i_join-matnr
vkorg = '0001'
vtweg = '01'
binary search.
Get the Sales Value
select single kbetr KPEIN KMEIN from konp
into (lv_kbetr,lv_KPEIN, lv_KMEIN)
where knumh = i_a004-knumh
and kappl = i_a004-kappl
and kschl = i_a004-kschl.
if sy-subrc eq 0.
i_output-kbetr = lv_kbetr / lv_KPEIN.
i_output-KMEIN = lv_KMEIN.
endif.
endif.
clear : lv_kbetr,
lv_kpein,
lv_KMEIN.
Reward Points if it is useful
Thanks
Seshu -
How to retrieve information from server?
Hi,
I'm currently working on a project, which is implemented with JSP. The function of the JSP is to connect to different servers within the Intranet(IP address already known) and get database list & file list residing on each server. And then compose all those information into a table, and display them in JSP. I just wonder how can I connect to those server? Can I just set up a socket client? Once the connection between servers has been setup, how can I retreive information from server? Are there any reference I can use? Thank you very much for your considerations.
MyraActually, I need extract some information from the file, and those files are on the server. In this case, do you think I should use FTP client to visit server? The server is running with Weblogic.
-
How to retrieve information from XML using servlets
Hi
I have a scenario like this
File-->XI-->J2ee application(HTTP Receiver adapter)
I want to know how XI sends xml file as a query string file name?
What ever may be the case i just need to retrieve the information from Request object and display the same in browser(JSP).How to do that, I am totally confused, please anyone help me!
Code help is highly rewarded.
ThanxHi Rajesh!
I have tried your code. But some where i went wrong. Please correct me: I am using NWDS2.0.9
my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>WEB APP</display-name>
<description>WEB APP description</description>
<servlet>
<servlet-name>DisplayRes</servlet-name>
<servlet-class>com.quinnox.DisplayRes</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DisplayRes</servlet-name>
<url-pattern>/DisplayRes/*</url-pattern>
</servlet-mapping>
</web-app>
my application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>ReceiverEntpr</display-name>
<description>EAR description</description>
<module>
<web>
<web-uri>HttpReceiver.war</web-uri>
<context-root>/HttpReceiver</context-root>
</web>
</module>
</application>
and my servlet code:
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.Writer;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.xml.sax.EntityResolver;
import org.xml.sax.SAXException;
import com.sun.java_cup.internal.parser;
import com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl;
public class DisplayRes extends HttpServlet {
public void doGet(HttpServletRequest requset, HttpServletResponse response) throws ServletException, IOException
doWork(requset, response);
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doWork(req, resp);
private void doWork(HttpServletRequest req, HttpServletResponse resp) throws IOException
String path = null;
PrintWriter out = null;
PrintWriter p2=resp.getWriter();
try
resp.setContentType("text/xml");
out = resp.getWriter();
out.println("hi");
path = req.getPathInfo();
if(req.getContentLength() != -1){
outputURI(req.getInputStream(), out);
} catch (IOException ioe) { return;
//private void outputURI(InputStream resultStream, Writer out) {
private void outputURI(InputStream resultStream, PrintWriter out) {
if (resultStream == null) {
// no default file
// logger.error("No File to return");
return;
try {
DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
// Class clazz = loader.loadClass("org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
// DocumentBuilderFactoryImpl factory = (DocumentBuilderFactoryImpl) clazz.newInstance();
// DocumentBuilder parser = factory.newDocumentBuilder();
parser.setEntityResolver(new ClassPathEntityResolver());
printXML(parser.parse(resultStream), out);
resultStream.close();
} catch (Exception e) {
// logger.error("Trying to parse the output " , e);
//private void printXML(Document document, Writer writer) throws Exception {
private void printXML(Document document, PrintWriter writer) throws Exception {
Transformer transformer = TransformerFactory.newInstance().newTransformer();
Source source = new DOMSource(document);
Result output = new StreamResult(System.out);
transformer.transform(source, output);
// Write as XML so that entity references can be resolved.
if (writer != null) {
transformer.transform(source, new StreamResult(writer));
Please tell me how to display in servlet.
If it is better to display in a browser. Please send me the code.
Thanks -
How to retrieve information from iCloud (earlier than the 3 most recent backups) ?
I had to restore my iPod 4th generation to factory settings and I'm trying to get all the information back from iCloud backup. The thing is that I had waited about a week or two(instead of right away) to try to put the information back into the iPod. And when I restored it again(for the second time) it only had the choice of retrieving informaiton from the 3 most recent iCloud backups but those were too recent for the information I wanted to get back. Is there any way, ANY WAY AT ALL that I can get access to earlier iCloud backups? Like maybe all the iCloud backups that have happened so far?
I've done some research and it doesn't say there is a way but there doesn't seem to be a lot of people with this problem. :( Please if you know a way, let me know.Welcome to the Apple Community.
Unfortunately, you cannot go back further than the three backups that you already have. -
How to retrieve information from a database View name
For a given database View name, is there any way to retrieve what are the columns (also the corresponding table name) associated with that View?
I am getting the view names by using DatabaseMetaData APIs.
Now I want to retrieve the info associated with that view.
Any help will be highly appreciated.If all else fails then since you have the view name then "select * from viewname where 1=0" should work.
-
How to retrieve information on UNIX Host from oracle Forms
Hi,
Has anybody tried to retrieve manipulated information
on the Unix Server From the oracle forms running on a client ?.
If it is to be done by user exit and calling the pro*c code
then where should the pro*c code exist ?. on server or on client.
1. If on server then can that code return the value to form ?.
2. If on client then can that code access the unix server and
return the value ?..
OR
any other method or tool to do the above.
Thnaks and regards
nullI can only tell you what we've done for our system. We have
client applications which need to send/recv information from the
UNIX server (report submission, etc.)
We have a deamon (written in PRO*C) which runs on the UNIX
server. This deamon constantly monitors a pipe (using the
DBMS_PIPE package available with ORACLE 7.1). The client apps.
send requests through this pipe and wait for the server deamon to
process the request and send responses down a "return pipe".
This approach has served us well.
With ORACLE 8, you can (according to what I've read) link
external object modules (similar to ORA_FFI on the client), which
would make these OS specific functions available to the database
developer via PL/SQL but we're just now looking at ORACLE 8 so I
have no first hand experience with this.
gautam (guest) wrote:
: Hi,
: Has anybody tried to retrieve manipulated information
: on the Unix Server From the oracle forms running on a client ?.
: If it is to be done by user exit and calling the pro*c code
: then where should the pro*c code exist ?. on server or on
client.
: 1. If on server then can that code return the value to form ?.
: 2. If on client then can that code access the unix server and
: return the value ?..
: OR
: any other method or tool to do the above.
: Thnaks and regards
null -
How to retrieve information from entity beans?
Hi all!
I have a problem while trying to get information from entity beans. Here it goes:
There are two entity beans with 1:N relationship between them.
A FacadeSB is used to find a single record in one entity bean, using the findbyPrimaryKey method.
What is required now is to get information from the other entity bean matching the record found from the first entity bean.
to become more clear, the db schema is like that:
vehicle_table
vehicleid (vehicle_pkey)
name (type of vehicle i.e. car, bike, atv, etc)
brand_table
brandid (brand_pkey)
name (brand name e.g. ferrari)
vehicleid (foreign key to vehicle_table)
a FacadeSB gets the vehicle_table info and passes them to a servlet generated dropdown.
what is the best way to populate a brand dropdown based on the vehicle dropdown selection?
thanx in advance
I hope the problem definition is clear enough for you guys...thanx for the reply
i'm ok with the finder methods you suggested. my main concern in whether to create another FacadeSB to access the brand EJB. I don't believe that's the way to go on i.e. creating a session bean for every EJB created. Shall i use the VehicleFacadeSB to access brand EJB as well?
I can undestand that such an implementation would be a quick fix as well as not such a resources hungry hack but on the other hand, would it make any sense architecturally?
any suggestions?
Zac
Maybe you are looking for
-
Project management tools for complex publishing project?
I was wondering what project management tools people use for managing complex InDesign projects? Software-oriented project management tools, or are there tools specifically for publishing projects?
-
Add a field in Material Master-QM view
The requirement is as... Create a field on the QM view of the material master MM01. The field will be a check box. F1 help on this field should say Select ******** . Is there any BADI or any other way to achieve this?
-
What do you say to people when they ask you about ...
Dear all, People are naturally curious about your new N97 smart phone, they always ask the question 'how is the new phone?' and I I'm interested in how you answer them?. How would you answer to: A friend A close relative or GF / BF A business colleg
-
All, I have changed the extension for my presentation template from .html to .aspx. However, it does not see to recongnize it. I see that the new extension is indeed saved, but it never publishes with the new extension. For the content item, if I vie
-
I'm trying to install Arch onto a laptop with a RAID 1 setup. I followed the fake raid guide on the wiki and I'm stumped at the installing GRUB portion. I'm able to chroot into the new environment and when I attempt to install GRUB on /dev/mapper/ra