Need a example about calling cobol by java?
hi all,
who can post a exampe about call cobol by java, thanks a lot.
I have found it.
CobolProgramCIPFFTBN cobolCIPFFTBN = (CobolProgramCIPFFTBN) getDynamicComponent(CobolProgramCIPFFTBN.class);
CobolCopybookCICFFTBN fftbn = cobolCIPFFTBN.getCobolCopybookCICFFTBN();
//Set the input values of the COBOL Copybook.
fftbn.get_INPUT_WRK().set_CREDIT_DT( businessDate );
fftbn.get_INPUT_WRK().set_DEBIT_DT( businessDate );
fftbn.get_INPUT_WRK().set_INCLUDE_BACKDATED_FT_SW(Bool.TRUE);
fftbn.get_INPUT_WRK().set_SA_ID(pSa.getId().getIdValue());
// Call cobol program
cobolCIPFFTBN.callCobol();
Similar Messages
-
I need an example about loading java method to Oracle
Hi,
Could anyone give me an simple example of a Java method which will be loaded into Oracle.
Let say, the method will read the email address based on employee_ID from a table called Employee. Thank you very much for all your help.
Hellenie
PS: I would like to see java code and to see how it could call a table without having to deal with connection object ,statement,etc...PS: I would like to see java code and
to see how it could call a table without
having to deal with connection
object ,statement,etc...A Java Stored Procedure still uses JDBC to talk to the database just like on the client. The difference is that instead of making a remote connection (from client to server), your connection is local and is obtained via the url
DriverManager.getConnection("oracle:jdbc:kprb:@");
If you don't want to use a Connection, Statement, Resultset, etc, you may wish to use PL/SQL. One of the advantages of Java Stored Procedures is it uses the same JDBC calls as you do on the client, so it makes it easier to move code from client, to app server, to database tier.
Hope this clears things up a bit,
Rob
null -
I need an example about JOptionPane?
hey
greetings
i need a a small example (Program)about Making a JOptionPane
thank youThere are code examples given in the API docs:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html
or
http://www.google.com/search?hl=en&safe=off&q=JOptionPane+example&btnG=Search -
I need to know about date function in Java
Hi All,
Here is my question - I need to subract 18 months from a particular date. How do I do that using Java coding?
eg: 09/30/2003 - 18 months = 03/30/2002
I have to to code this in Java in order to use it in one of my application. I would appreciate your help.
Thanks & Regards
SimlyHi There,
Thank you for your reply...Need some more help...
This is the case I want to deal with. I need to calculate the value for the field called "mydate"
These are the three dates, I am going to deal with:
1.olddate = I have a value for it -> eg: 05/12/1998
2.today = Today's date -> eg: 09/30/2003
3.newdate = today.month - 18 months -> eg: today.month =09-18=03/30/2002
These are the three dates values.
Now what I need to do is,
If olddate(05/12/1998) > newdate (03/30/1998)
then "mydate" = newdate -> 03/30/2002
Else "mydate" = olddate -> 05/12/1998
I am a good C++ programmer & a student and I am right now learning all the Java packages. I am having the greatest problem with the calcuation of value to the variable "new date". And also with the "If condition statement". I am aware of the before, after, getMonth methods. But, I am having problem in using them in this case. Could you please give me the exact coding for the declaration of the variables and the value calculation(in this specific case). I would appreciate your time and help.
Thanks & Regards
Simly -
Need Code Example to Call a SAP Remote Function from C#
I'm looking for an example of how to call a SAP RFC from within a C#
program. I've tried numerous searches and have come up empty handed. If I have a function called "MyFunction" and it takes 1 input parameter and returns one output parameter (a table) how would it be coded. I have been able to code the connection and it works so once the connection is established I need to call the funcation. Any pointers are really appreciated. Environment is MS VS Developer 2003, Frameworks 1.1, SAP 4.6C Here is the code so far.
using System;
using SAP.Connector;
using SAP.Connector.Rfc;
using SAP.Connector.Internal;
namespace ConsoleApplication2
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
static void Main(string[] args)
SAP.Connector.Destination dest = new SAP.Connector.Destination();
dest.AppServerHost = "NAFTATEST01.SAP.INTRA";
dest.Client = 300;
dest.SystemNumber = 0;
dest.Username = "myusername";
dest.Password = "mypassword";
SAP.Connector.SAPConnection connSAP = new
SAP.Connector.SAPConnection(dest);
using(connSAP)
try
connSAP.Open();
Console.WriteLine("SAP Connection was opened...");
connSAP.Close();
catch(SAP.Connector.RfcException rfcEx)
Console.WriteLine("SAP Connection was failed...");
Console.WriteLine( rfcEx.Message
+ rfcEx.StackTrace);
Console.WriteLine();hi
Create a Windows Forms application.
Add an empty SAP Connection class with the ABAP functions
RFC_CUSTOMER_GET and RFC_CUSTOMER_UPDATE.
Leave the proxy designer open. Go to the SAP Proxy toolbox and drag the Proxy field icon to the designer.
Rename the new Field1 to Tab. Change the Type property to BRFCKNA1Table. To do this, use the drop down icon.
Note that the ReadOnly property automatically changes to true and the default value changes to new BRFCKNA1Table().
Add a second Proxy Field with the name Filter, the type String and the default value A*.
Select the Rfc_Customer_Get function and click on the button of the Parameters property.
Set the default values of the three parameters with the drop-down icon as follows:
Name1: Filter
Kunnr: Customer_T: _Tab
Save the proxy designer and switch to your Windows form. Add a TextBox, a Button and a DataGrid.
Add an instance of your SAP proxy to your Windows form, add a Destination and set the Connection property as described in A4.
Set the DataSource property of the datagrid to sapProxy11. Set the DataMember property of the datagrid to Tab. Alternatively you can set the DataSource to sapProxy11.Tab and leave the DataMember empty.
For textBox1 use the DataBinding feature to bind the Text property of the textbox to sapProxy11.Filter.
Double-click the button to create an event handler and add a single line:
this.sapProxy11.Rfc_Customer_Get_();
You are using sapProxy11 as a smart DataSet that contains the necessary state. You bind the state to the corresponding controls. The overload method Rfc_Customer_Get_() does not have any parameters, as the required state is already in the bound Proxy Fields.
above statments from standard helpfile,and
in my opinion you need
datagrid1.datasource = yourtable
regards
ajai -
I need an example about object libraries
hi all,
I use oracle forms 10 in windows xp sp2, I'm new in forms i need a link or doc to implement
object libraries (for practice), any help i greatly appreciated
thanks & regard
Edited by: user10947262 on May 5, 2010 3:09 PMThere are code examples given in the API docs:
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JOptionPane.html
or
http://www.google.com/search?hl=en&safe=off&q=JOptionPane+example&btnG=Search -
Can anyone give me an idea of how to call a cobol program from java.
If you can provide me some sample code .It would be great.
Thanks in advanceA program?
If it is already running then you have to interact with it however it provides.
If you want to run it then you use one of the exec() methods. -
Need an example of how to use java.nio.channels.FileLock
Hi,
I need to use the Filelock, but can�t find any examples on how to implement it -
is it still used in Java 5.0?Would this be the correct way to check whether the file is already locked?
public static void main(String[] args) throws Exception {
FileOutputStream fos = new FileOutputStream("data.txt");
FileLock fl = fos.getChannel().tryLock();
if (fl != null) {
System.out.println("Locked File");
Thread.sleep(30000);
fl.release();
System.out.println("Released Lock");
else{
System.out.println("File is already locked!");
fos.close();
} -
For calling cobol from java, how can i add cobal bin directory to PATH
Hi all,
When i am testing my Algorithm using JUNIT i am getting this Exception ,Can any one tell me What this exact Error.
Exception in thread "CobolThread 1" java.lang.UnsatisfiedLinkError: no cbljvm_sun in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at com.microfocus.cobol.RuntimeSystem.<clinit>(Unknown Source)
at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:30)
Thanks&Regards
sivarami overcome the above exception by seting microfocus bin in classpath
But i am getting one more error.pls help to resolve this issue
Exception in thread "CobolThread 1" com.splwg.shared.common.LoggedException: Unable to load class CIPZMEMJ. Return code: 2
- 2011-09-07 12:51:52,111 [CobolThread 1] ERROR (cobol.host.CIPZMEMJ) Unable to load class CIPZMEMJ. Return code: 2
com.splwg.shared.common.LoggedException: Unable to load class CIPZMEMJ. Return code: 2
at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
at com.splwg.base.support.cobol.host.CIPZMEMJ.checkInitialized(CIPZMEMJ.java:36)
at com.splwg.base.support.cobol.host.CIPZMEMJ.touchToCobol(CIPZMEMJ.java:46)
at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:34)
at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
at com.splwg.base.support.cobol.host.CIPZMEMJ.checkInitialized(CIPZMEMJ.java:36)
at com.splwg.base.support.cobol.host.CIPZMEMJ.touchToCobol(CIPZMEMJ.java:46)
at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:34) -
Need an example about Yokogawa 7651's labview VI
hi, highly respected gurus:
I am a new guy of labview, and now I need to use Yokogawa 7651 and Keithley 196 to make an I-V curve to perform the restistance measurment. That's to say, I need to tell tell my Yokogawa 7651 to produce an voltage sweep from -2 volt to 2 volt, the voltage step is 0.1 volt, and the time between two suceesivly steps is 100 ms.
Tried to download the Yokogawa 7651 labview driver from NI website, but it seems a bunch of subvi. And I didn't manage to use those tiny vi's to achive my voltage sweep. Are there anybody have experience of using labview to control Yokogawa?
Thanks in advance.
Best regards.
Solved!
Go to Solution.hi, K C:
Thanks so much. I used the VI you posted. It does control the Yokogawa. The driver provided from NI doesn't work at all ( I guess that one doesn't use VISA)
I will try to use the VIs that you provides to build a high precision resistance meter, i.e., I will ask the Yokogawa to make a DC voltage sweep from 0 to 1.2 volts (0.1 volt each step). I have only one Yokogawa 7651, I don't know whether I can use Yokogawa 7651 output voltage to the DUT and measure the currrent sinked by the DUT simutaneously ( I guess not). So I think I should use another current meter (I have another Keithley current meter)
Thanks again. -
I need example af calling dll of my video adquisitio​n card
I need a example for calling dll of my adquisition card (winnertec system goldeneye card).
ThanksHi,
Wrapped VISA call means that the SubVI contains a set of VISA calls.
If you are calling the VI's individually it is possible that the VI's need to pass a reference to each other, so they might not work if run individually. Hard to know without the DLL docs, so to speak. It could be possible that there is no need to pass references between subVI's.
Direct VISA calls are probably not necessary if the device runs with the vendors software. The main goal was to verify functionality with either VISA or vendor app.
Ok I was looking at the Leetro web site, you can forget the VISA stuff as it is a PCI card, duh... you said that at the begining. :-)
The manual says Win2000 or XP. is this being run on two different systems?
Mark
Mark Ramsdale -
Need detailed information about u0093CALL CUSTOMER FUNCTIONu0094.
Need detailed information about CALL CUSTOMER FUNCTION.
Hello Ayan
CALL CUSTOMER FUNCTION. is the old version of
customer exits. Using transaction SMOD you can see which customer exits SAP provides. Using transaction CMODyou can see the enhancement projects which make use of these SAP enhancements.
SAP enhancements consist of different components: function modules, screens, etc.
For example, SAP enhancement CATS0001has a single component, function module EXIT_SAPLCATS_001. This function module is called within include LCATSF54:
*& Form READ_WORKLIST_FROM_EXIT
* Read worklist from customer exit *
FORM read_worklist_from_exit.
DATA: l_catsw TYPE catsw_tab. "XZQAL0K061795
*----------------Beginn XZQPL0K017888----------------
DATA: l_icatsw_fix LIKE catsw OCCURS 0. "XZQPL0K017888
* Sichern der ICATSW_FIX, damit mögliche Änderungen aus
* User-Exit/Badi rückgängig gemacht werden können.
l_icatsw_fix = icatsw_fix.
*----------------Ende XZQPL0K017888----------------
CALL CUSTOMER-FUNCTION '001'
EXPORTING
sap_tcats = tcats
sap_pernr = catsfields-pernr
sap_dateleft = catsfields-dateleft
sap_dateright = catsfields-dateright
sap_datefrom = catsfields-datefrom "XZQPL0K017888
sap_dateto = catsfields-dateto "XZQPL0K017888
TABLES
sap_icatsw = icatsw
sap_icatsw_fix = l_icatsw_fix "XZQPL0K017888
EXCEPTIONS
OTHERS = 1.
*-------------Beginn XZQAL0K061795 Worklist-Badi in CATS -------
IF badi_worklist IS INITIAL.
CALL METHOD cl_exithandler=>get_instance "Aufruf der Factory-
CHANGING instance = badi_worklist. "Methode
ENDIF.
l_catsw = icatsw[].
* Restaurieren der l_icatsw_fix für das Badi, falls sie
* doch im User-Exit geändert worden ist.
l_icatsw_fix = icatsw_fix. "XZQPL0K017888
CALL METHOD badi_worklist->get_worklist "Aufruf des Add-Ins
EXPORTING
sap_tcats = tcats
sap_pernr = catsfields-pernr
sap_dateleft = catsfields-dateleft
sap_dateright = catsfields-dateright
sap_datefrom = catsfields-datefrom "XZQPL0K017888
sap_dateto = catsfields-dateto "XZQPL0K017888
CHANGING
sap_icatsw = l_catsw
sap_icatsw_fix = l_icatsw_fix. "XZQPL0K017888
icatsw[] = l_catsw.
*-------------Ende XZQAL0K061795 Worklist-Badi in CATS -------
ENDFORM. " READ_WORKLIST_FROM_EXIT
In this routine you can see the most up-to-date version of customer exits:
BAdIs (Business AddIns). Inbetween SAP has developed BTEs(transaction FIBF) which are basically dynamically called function modules.
Regards
Uwe -
Sample Java code and detail to call RFC from Java clas developed in Eclipse
Hi All,
I am new to Java. I have downloaded Eclipse IDE and planning to use for developing Java application to send data to SAP by calling RFC JCO Interface.
I need a sample java code/tutorial step by step to create Java class for simple example to call RFC from Java.
I have downloaded SAPJCO3 from service market place.
Kindly help me to send steps involved to configure for JCO with my Eclipse with JCO.
Thanks in advance.
SharmaHi Sharma,
Please have a look at [Example: Using Generated Proxies to Call Function Modules |http://help.sap.com/saphelp_nw04/helpdata/en/b6/55e3952a902447847066a0df27b0d6/content.htm]
JCo Exceptions : http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/daea401675752ae10000000a155106/content.htm
Hope it will helps
Regards
Arun -
i cannot facetime due to a server error
What do I need to know about memory leak in java
program? Any suggestion?Use a profiler or java -verbose:gc to have a look at
the memory consumption during runtime. If it steadily
increases, even if it shouldn't, you have a memory
leak and "retired" objects aren't freed for GC. The
profiler could help you to find out where it happens.I tried java -verbose gc while my application is still running. I got a lot of [Loaded java......]. The following is a sample of the result after running java -verbose gc.
[Loaded java.security.PrivilegedActionException from shared objects file]
[Loaded java.io.IOException from shared objects file]
[Loaded java.io.FileNotFoundException from shared objects file]
[Loaded sun.misc.URLClassPath$FileLoader from shared objects file]
Exception in thread "main" java.lang.NoClassDefFoundError: gc
[Loaded java.lang.Shutdown from shared objects file]
[Loaded java.lang.Shutdown$Lock from shared objects file]
How do I diagnose if the memory consumption is steadily increase?
Thank you very much! -
Does anybody can give me a simple example about the labview programme calling dll ?
Does anybody can give me a simple example about the labview programme calling dll ?And the dll is also writed by using labview .I just want to study the process of the labview programme calling dll file.Thank you!
Hi,
Please click on "Find Examples" in the "Getting Started Window"
A window named "NI Example Finder" will pop up.
In this go to "Search" tab
Type "DLLs"
You will see a lot of examples.
If you're online, you'll see user examples too...
Maybe you are looking for
-
How can I see / change the smtp ports in use by FF 12.0 on my WIN2K antique?
My webmail account works, though slowly, when I'm using NetScape 7.1. When I try to use the same program and service with FireFox 12.0, I can receive email, but sending email gets me an error message that's something like "Could not establish an SMTP
-
Extract words from JSP into text file
Hi, I have a big problem: I want to extract selected words from a jsp file. Following are found in one of my jsp file: E.g. 1) <td width="217"><font face="verdana,arial" size=2>ORGANISATION UNIT NAME<font color="#FF0000"> <font id="fontMandatory">*</
-
hifriends I have doubht, In FF67, Manual bank stmt display, in that bank stmt some transactions are showing Posting completed ,some transactions are showing posting incompleting, if we double click on posting incomplting status field showing g/l pos
-
Hi, which characteristic in BI Content respond to sales representative.
-
Report-Painter: 2 Data sources in 1 Report
Hello members, I want to read in one step from database and archive simultaneous in a report, created by report-painter. The problem is, the checkbox can not be enabled for both sources (archive + database) together. Or, is it possible to transfer to