How to call a BAPI in EJB application
Hi ,
I need to develop an webservice that takes data from a BAPI and insert in to ORACLE database. I think webservices can be created through EJB application.
I am not having idea regarding how to call an BAPI in EJB application. can anyone help me out in this.
Regards,
Laxmi.
Hi,
you can use JCO Connection,
look this
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/fcadaf90-0201-0010-4091-bd0bcd7b7f6a]
Regards,
Matteo
Similar Messages
-
How to call a Bapi or RFC from a custom logon module
Can you provide an example of how to call a bapi or rfc from a custom logon module? (used to authenticate in portal)
Hello all,
Is it possible to use SAP JRA instead?
We have a Connector deployed on the WebAS 6.40. From an EJB (Webservice) it is possible to lookup the connector, but if i try to lookup the connector from a custom LoginModule, i get the following error:
Path to object does not exist at java:comp, the whole lookup name is java:comp/env/eis/SAPJRA_CRMDC.#
The whole lookup in LoginModule looks
try
initialcontext = new InitialContext();
connectionFactory = (ConnectionFactory) initialcontext.lookup("java:comp/env/eis/SAPJRA_CRM");
} catch (Exception ex)
location.errorT(ex.getMessage());
Regards Oliver -
How to call a JSP page from Applications menu?
Hi partners,
I am still looking for "how to call a JSP page from Applications menu?", I mean instead of calling a form, I want to call a JSP page which is staying in a OC4J repository which is located in another server.
Any idea will be really appreciated.
Thanks in advance.
Frank Mtz.Hi Frank,
if u know the solution please share it with me. i'm looking for the same scenario.
thanks in advance,
anish -
How to Call third party Jar into Application
Hi Can any Expert help ?
I want to put third party Jar into my application but i have some problem occur.
1. how to call jar with parameter in application ?
2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
Thanks.
Sanki Poon ([email protected])1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
3) Under the resources tag you can have as many jar tags as needed.
<resources>
<j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
<jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
</resources> -
How to Call Image Viewer from Form application
Hi,
how to call Image viewer using host command on oracle form 6i.
i trying using host command on local/client application .. and it is working ...
but when i try on server application (EBS - UNIX) it does not working ...
thanks ..
regards,
safarAre you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you. -
How to call Standard Iviews in Webdynpro application?
How to call STD iviews in the wwbdynpro application.
can any of friends give the codeUse this snippet to call standard iviews from your webdynpro code :
//use LinktoAction UI element
onActionClick (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/folders/X.Iview", WDPortalNavigationMode.SHOW_INPLACE, (String)null, (String)null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS, "Called iView Name", (String)null, (String)null);
Hope this helps.
Rgds
Prabhakar -
Calling a BAPI in JSF Application
Hi Experts,
We are planning to create a Demo applicaiton for calling a BAPI in JSF applicaiton.
Basically we have to create a sample JSF application which will cal a BAPI and display the information.
Can you please share the step by step document or any helpful links.
Thanks&Regards,
Raghui would try SAP Enterprise connector even though it is deprecated
-
How to Call a procedure for UI5 application ?
Hello experts,
What are the possible ways to call a procedure from a UI5 application?
I am trying to call the procedure created in the blog from a ui5 application. I had an idea of calling a procedure from view and generating odata services from views, but this being a read write procedure , not exactly sure if this would work .
Looking forward for your opinions on this .
Regards
VirinchyVirinchi,
Go through the below posts. You can get the source code of how to do it.
How to call HANA store procedure with table variables in xsjs?
JSDoc: Class: Connection
Sreehari -
How to Call Crystal Reports from Swing Application
Hi All,
I have a requirement for calling Crystal Report from Swing Application. Please let me know how can I do that, and also provide the Source code for calling the crystal report.
Thanks in advance.
Chandrahi
this is the code that i am using in my application which is similar to urs. but i am working with CR XI so make all the neccessary changes.
import java.awt.*;
import javax.swing.*;
import com.crystaldecisions.ReportViewer.*;
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
public class HelloSwing
public static void createAndShowGUI()
try
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("HelloWorldSwing");
frame.setTitle( "Testing Reports");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ReportViewerBean viewer = new ReportViewerBean();
viewer.init( new String[0], null, null, null);
ReportClientDocument rpt = new ReportClientDocument();
rpt.open( "report path", 1 );
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource( rptSource );
frame.getContentPane().add( viewer, BorderLayout.CENTER );
frame.setSize( 700, 500 );
frame.setVisible(true);
viewer.start();
catch ( Exception exception )
System.out.println( exception.toString() );
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
there are 23 jar files that u need to import into ur package. but remember that ReportViewerBean should be the first jar file in the list & it should be followed by jrcerom.jar
specify the key in the CRConfig.xml file (which also has to be imported in the package)
u can find these jar files in the common objects folder in your program files.
hope it helps. best of luck -
How to call a BAPIs that requires a commit as a Web Service
We have a Web Dynpro Java application which has some business objects that generate notifications in a backend R/3 system. Using JCo we simply call BAPI_ALM_NOTIF_CREATE, followed by BAPI_ALM_NOTIF_SAVE, and finally BAPI_TRANSACTION_COMMIT all using the same connection (e.g. these are stateful calls.)
Now we need to change from using JCo to calling these BAPIs as Web Services. We have generated the deployable proxy for these but can't find a way to call them in the same "ABAP session." The ports generated in the deployable proxy are set to use HTTP Cookie based sessions but the BAPI_ALM_NOTIF_SAVE and BAPI_TRANSACTION_COMMIT return empty results as if they are not being executed in the same ABAP session as the call to BAPI_ALM_NOTIF_CREATE.
We're running WAS Java 6.40 SP15. Any help would be very much appreciated.Hi Jason,
try to do this using JRA.
http://help.sap.com/saphelp_nw2004s/helpdata/en/cb/072642c9dedd2ce10000000a1550b0/frameset.htm
Vito
Best regards,
Please mark helpful answers -
How to call a BAPI from Visual Composer
hi,
I am new to Visual composer. can some body give me step by step information of calling a bapi or RFC from VC.
Thanks in advance,
GopiHi Gopi,
Steps involed for calling RFC/BAPI from VC
1. Choose Model->Select Data Services.
(Alternatively, click the Data button in the task panel toolbar.)
2. In the Portal field at the right end of the main toolbar, enter the URL of the portal from
which you can access the back-end system used by the iView.
For example, you could enter: http://<yourportal>:50000/..
3. Click the traffic light icon to the right of the Portal field. The portal Welcome screen
appears.
4. Log on to the portal as a user that exists in the connected back-end system, or which is
mapped to a user of that system. Click OK.
Once a connection to the portal is established, a list of system aliases defined in the
portal system landscape appears in the System drop-down
list.
From the System drop-down list, choose the SAP system that contains the function module.
6. Under Search SAP System, click the Search tab and in the Name field, enter the search string: <RFC/BAPI name>. Then click Search (at the bottom).
5. A list of function modules matching the search string is displayed.
7. Drag the function module/bapi from the Data task panel into the
workspace: The data service is added to your model.
8. Periodically save your work. To do so, choose File->Save Model.
Finally test the iview in VC.
In the workspace, drag your mouse from the Input port of the data service, <inputform> and dragn your mouse from the outut port from the data service <tabelview and etc..>
or
Go through the this documentation...
http://help.sap.com/download/netweaver/nw04/visualcomposer/VC_60_UserGuide_v1_1.pdf
Thanks,
Suriya. -
How to call the BAPI in BI from SAP
I want to run the process from SAP and then call a BAPI in BI to retreive some data into SAP.
What syntax should I used?
Thanks
ByeHi,
While calling BAPI use "Destination" and provide the RFC destination created for BI in SM59.
Neel Thakkar.
Edited by: neelthakkar on Mar 27, 2010 12:37 PM -
How to call infopackage bapis for other system?
Hi Experts,
I want to start infopackage of CRM from BW using BAPI. I do not see any place to mention the target system (here CRM) where infp package should be started?
Thanks in advance,
PurvangHi
You can create program and call this BAPI
BAPI_IPAK_START
using follwoing statment
CALL FUNCTION 'BAPI_IPAK_START' DESTINATION 'CRMCLNT400'
EXPORTING
INFOPACKAGE =
* JOBNAME =
* IMPORTING
* REQUESTID =
TABLES
RETURN = .
where 'CRMCLNT400' is the target system.
In case, if you are not required to use this frequent , then you can run this BAPI in se37-> Execute
then specify the target system in field RFC target sys:
Hope this helps...
Sonal....
Edited by: Sonal Patel on Dec 31, 2009 2:31 PM -
How to call oracle reports from ADF application.
Hi
I am migrating oracle 11g application to ADF. I would like to call oracle reports from ADF application.There is nothing similar to forms-reports integration, but you can invoke rwservlet url.
Here is sample and utility class: Sameh Nassar: Call Oracle Reports From Your ADF Application
Dario -
How to compile and package my EJB application
Hi,
I just ran the sample programs from the Sun J2EE tutorial. Seems to work fine. I used the ant utility to compile all the programs and the J2EE Deployment Wizard to package and deploy everything. Now how do I compile and deploy a sample EJB program that I have written ?
I am using the following platforms:
1: JBuilder 3.0 : IDE (for writing the source code)
2: JDK 1.4.0_01
3: J2SDK EE 1.3.1 (EJB/Appln server)
How do I make ant recognize my program and compile it... i guess the deployment procedure would still be the same.
Can somebody please help me out on this ??
Thanks
prasannaHi,
Thanks for your prompt reply. I tried that out.. I have a directory called "customer" under which I have my interfaces,bean implementation class and the J2EE application client.
ANT_HOME is set to : the directory where ant is installed
JAVA_HOME is set to : the directory where JDK is installed
J2EE_HOME is set to : the directory where J2EE server is installed
and PATH : includes the bin directories of JDK, ant and J2SDK EE
These are the paths I had to set when I ran the J2EE tutorial programs. It worked fine.
Now when I say : ant myprogram I get an error saying:
BUILD FAILED
Target "myprogram" does not exist in this project
How do I add my program also to the project so that ant can recognize it ?
Also if there is any other way you can suggest to compile and package my application it would be great...
Thanks
prasanna
Maybe you are looking for
-
IS there a way to recover your bookmarks from the program files after an OS crash?
My computer won't boot but all of my files are intact. I want to recover my book marks on my new computer, but I'm not sure I'll be able to get back into the old operating system to create the export file.
-
How can I copy a link when the site address doesn't show up in my address bar?
When I click a link within my email, I am taken directly there but the links address doesn't pop up in the site address bar so I'm not able to copy and share it.
-
My iPod connects to my TV just fine, but it only plays in black and white,
i can connect it and get it to play videos, but it will only play in black and white. i know the videos are color, but none is coming up. any ideas on problems or ways to fix it?
-
For many weeks now, my iTunes has failed to update. I download the updates and they go through the installation process, but then I get an error message that they failed to install. How can I update?
-
Implementation of depth-first algorithm
Hi, I am trying to implement depth-first algorithm.(directed graph, no loops). Here what I have so far. //form a one-element stack with the root node. Stack st=new st(); boolean goalflg=false; st.push(?)//do I need to clone the value from the tree, i