How to Call Scapscript program in bapi
Hi All there,
wanted to call a sap-script program in a bapi
my coding is line
FUNCTION ZBAPI_ZDIPNB.
""Local interface:
*" EXPORTING
*" VALUE(HTML_STRING) TYPE STRING
*" TABLES
*" SELTAB STRUCTURE RSPARAMS
*" HTML_REPORT STRUCTURE W3HTML
types: begin of tt_html,
html type W3HTML,
end of tt_html.
Data: LIST_TAB type standard table of ABAPLIST.
Submit ZSDRDINVPNBRPT with SELECTION-TABLE SELTAB
exporting list to Memory and return.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
EXPORTING
REPORT_NAME =
TEMPLATE_NAME = 'WEBREPORTING_REPORT'
CHARSET = 'utf-8'
TABLES
html = HTML_REPORT
listobject = list_tab.
LISTICONS =
FREE MEMORY.
ENDFUNCTION.
but include program in this report is not excuting it is not asking for input parameter which I have defined in include preoram
Answer will definatly rewarded
Regards
Shashikant
well most of the sap-script driver programs are not executable so you will have problem trying to call these.
normally the enrty-routine is beeing called and the the rest will go its way.
but be sure to provide the neccesary data especially in the structure NAST.
Similar Messages
-
How to call one program from another program
Hai,
How to call one program through another program.
Example.
I have two programs 1.ZPROG1 2. ZPROG2.
When i execute ZPROG1 at that time it should call ZPROG2.Hi ,
u can use submit statement to call a program .
DATA: text TYPE c LENGTH 10,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
regards,
Santosh thorat -
How to call java program from ABAP
Hi Experts,
My requirement is to call java programs from ABAP. For that i have set up SAP JCO connection by using this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/739. [original link is broken] [original link is broken] [original link is broken] Connection gets sucessfully. After this how to call java program from ABAP as per our requirement. Please help me out.
Also i tried this way also.. but while executing the DOS Command line appear & disappear in few seconds. So couldnt see the JAVA output. Please help me out to call java programs in ABAP..
DATA:command TYPE string VALUE 'D:Javajdk1.6.0_20 injavac',
parameter TYPE string VALUE 'D:java MyFirstProgram'.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = command
parameter = parameter
OPERATION = 'OPEN'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
OTHERS = 8.
Thanks.This depends on the version of your Netweaver Java AS. If you are running 7.0, you will have to use the Jco framework. The Jco framework is deprecated since 7.1 though. If you want to build a RFC server in 7.1 or higher, it is adviced that you set it up through JRA.
Implement an RFC server in 7.0:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
Implement an RFC server in 7.1 or higher:
http://help.sap.com/saphelp_nwce72/helpdata/en/43/fd063b1f497063e10000000a1553f6/frameset.htm -
How to call driver program internal table in a form
how to call driver program internal table in a form? Given below is my code
TABLES: VBRK,VBAK,ADRC,KNA1,VBRP,VBAP,J_1IMOCOMP.
DATA: BEGIN OF IT_CUST_ADD OCCURS 0,
STREET LIKE ADRC-STREET,
NAME LIKE ADRC-NAME1,
POST_CODE LIKE ADRC-PSTCD1,
CITY LIKE ADRC-CITY1,
CUST_TIN LIKE KNA1-STCD1,
END OF IT_CUST_ADD.
DATA: BEGIN OF IT_IN_DA OCCURS 0,
VBELN LIKE VBRK-VBELN,
FKDAT LIKE VBRK-FKDAT,
END OF IT_IN_DA.
now suppose these are my internal table. what should i write in FORM INTERFACE (associated type)Hi Sashi, this will solve ur problem.
Check the below link.
REG:PEFORM IN SCRIPT
kindly reward if found helpful.
cheers,
Hema. -
How to call java program by HTML page
Hi guys,
I'm new java programer and want to build an HTML page to access to ORACLE database on NT server by JDBC, Can anyone give me a sample?
I already know how to access database by JDBC, but I don't know how to call java program by HTML page.
If you have small sample,pls send to me. [email protected], thanks in advance
JianThis code goes with the tutorial from this web page
http://java.sun.com/docs/books/tutorial/jdbc/basics/applet.html
good luck.
* This is a demonstration JDBC applet.
* It displays some simple standard output from the Coffee database.
import java.applet.Applet;
import java.awt.Graphics;
import java.util.Vector;
import java.sql.*;
public class OutputApplet extends Applet implements Runnable {
private Thread worker;
private Vector queryResults;
private String message = "Initializing";
public synchronized void start() {
// Every time "start" is called we create a worker thread to
// re-evaluate the database query.
if (worker == null) {
message = "Connecting to database";
worker = new Thread(this);
worker.start();
* The "run" method is called from the worker thread. Notice that
* because this method is doing potentially slow databases accesses
* we avoid making it a synchronized method.
public void run() {
String url = "jdbc:mySubprotocol:myDataSource";
String query = "select COF_NAME, PRICE from COFFEES";
try {
Class.forName("myDriver.ClassName");
} catch(Exception ex) {
setError("Can't find Database driver class: " + ex);
return;
try {
Vector results = new Vector();
Connection con = DriverManager.getConnection(url,
"myLogin", "myPassword");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(query);
while (rs.next()) {
String s = rs.getString("COF_NAME");
float f = rs.getFloat("PRICE");
String text = s + " " + f;
results.addElement(text);
stmt.close();
con.close();
setResults(results);
} catch(SQLException ex) {
setError("SQLException: " + ex);
* The "paint" method is called by AWT when it wants us to
* display our current state on the screen.
public synchronized void paint(Graphics g) {
// If there are no results available, display the current message.
if (queryResults == null) {
g.drawString(message, 5, 50);
return;
// Display the results.
g.drawString("Prices of coffee per pound: ", 5, 10);
int y = 30;
java.util.Enumeration enum = queryResults.elements();
while (enum.hasMoreElements()) {
String text = (String)enum.nextElement();
g.drawString(text, 5, y);
y = y + 15;
* This private method is used to record an error message for
* later display.
private synchronized void setError(String mess) {
queryResults = null;
message = mess;
worker = null;
// And ask AWT to repaint this applet.
repaint();
* This private method is used to record the results of a query, for
* later display.
private synchronized void setResults(Vector results) {
queryResults = results;
worker = null;
// And ask AWT to repaint this applet.
repaint(); -
How to call external programs?
I have seen people call external programs through LabVIEW and was curious what functions you could use to do this.
I'm pretty sure its using one of the ActiveX functions or maybe 'open application reference .vi'.
Can anyone tell me (or show me) a quick example of how to open an external program (ie excel, notepad, etc) programatically
Cory K
Solved!
Go to Solution.Cory K wrote:
Where did they get this:
Kudos for going from "I don't know to start" to "Let's stump Ben" with only the second post to this thread.
I either copy it from an example or try to browse to it.
NOTE:
If you plan to work with MS ActiveX objects, I found it very helpful to do a custom install of Office and make sure the help files for VBA are loaded. These will at the least give you an idea of what the methods are and what parameters go with each.
Ben
Message Edited by Ben on 12-31-2008 11:09 AM
Message Edited by Ben on 12-31-2008 11:13 AM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
Browse.PNG 24 KB -
How to call 'C' programs from stored procedures?
Hi
Did anybody tried to call 'C' programs
from oracle stored procedures?
If anybody knows, can you please send
how to configure the listener.ora and
tnsnames.ora. If its possible post all the
information from the begining with examples.
thanks....Oracle JDBC did not support return a result set, if you are using Oracle 9i, you can use pipeline function, then using the TABLE() function the get the row.
Good Luck.
Welcome to http://www.anysql.net/en/ -
How to call other program in java
how do i write code to call a program, software in window envirenment?
such as opening Microsoft Excel files using Microsoft excel?
plz helppublic static void main(String[] args)
try
Runtime.getRuntime().exec("Book1.xls");
catch (IOException ed)
}i tried, but it not working , plz help -
How do call c++program in oracle
how do I call c++ program in oracle?
how do I store results which c++ program produce to oracle database?(eg:results could be some pictures,variable)If you are using Oracle9i release, there is the new OCCI (Oracle C++ Call Interface). You can use the 'Oracle Call Interface' forum to post your additional questions.
Regards,
Geoff
how do I call c++ program in oracle?
how do I store results which c++ program produce to oracle database?(eg:results could be some pictures,variable) -
How to call report program from WebDynpro Application
HI
How call report program in WDA.
1. To extract the xml files and store the data in to data base table, program name is "zprogram_application".
When run the se38 it's working fine and save the data in database.
2. When i click "SUBMIT" button the web dynpro application automatically run the Report program "zprogram_application" and save the data into data base table. This is my requirement please give me suggestions.
3. I want run the report program in web dynpro application.
Thank you
V.VENKATESHFrom within the WDA Event handler you can call the program using SUBMIT ... AND RETURN. You might have to be careful with what the program does. It must run as though it is in the background. There is no connection to the client machine - so no SAPGUI calls. You might also consider the addition VIA JOB job NUMBER n... to the SUBMIT command. That will allow you to start the submitted program as a background job. Your WDA can then continue processing as the submitted job runs in parallel.
-
How to call a program from FM which acts as popup?
Hi,
I need to call a program from FM and once the program is called it needs to be opened as a popup. Maybe we need to assign size when we call from FM or do we need to give size in the program it self?
I know i can either use the Submit command or Call Transaction command. But that it self will open a full screen which i dont want. It needs to be of a smaller size.
Any help will be appreciated.
ThanksHi,
Try this,
REPORT ZEX_POPUPSCREEN .
*& POPUP SCREEN
* Table Declaration
TABLES VBAK.
* Start of Selection
START-OF-SELECTION.
SELECT * FROM VBAK.
WRITE / VBAK-VBELN HOTSPOT ON.
ENDSELECT.
* Display the screen
AT LINE-SELECTION.
WINDOW STARTING AT 10 10
ENDING AT 40 25.
WRITE:/ 'VBAK-VBELN, VBAK-KUNNR'.
Regards,
Nikhil. -
hi all,
just wanted to know how to call exe (like system calculater etc)from my form.i am using forms6i.
thanks
shakeelYou can look up HOST in the online help in the builder. For CLIENT_HOST, look at WebUtil, which you can find by going to the Forms page on OTN: http://www.oracle.com/technology/products/forms/index.html
Regards,
Robin Zimmermann. -
How to call C++ Program in Abap
Hi Friends,
How can i call a C/C++ Program or a Function in an Abap Program.or an Abap Module or Bapi in a C/C++ Program.
Regards,
Gowtham Kuchipudi.Let's talk about ABAP -> C/C++
You already have C functions being called in ABAP ! It is the C functions from the SAP Kernel.
There are several approaches to your problem :
- one could be to simply execute the program from the Shell (Unix or the Windows command)
- antoher would be add the function to the SAP Kernel (which is a bit of a job since you have to recompile the Kernel)
Regarding C/C++ -> ABAP, I am sure there are a lot of examples around like for the other languages (VB, Java, ...).
Hope it helps.
Cheers,
Message was edited by: Guillaume Garcia -
How to call ABAP programs from Excel
Hello everyone,
Currently I'm investigating the integration of Excel and ABAP program. I find it's easy to call Excel from ABAP program, but does anyone of you know how I can first open and do some actions in an Excel sheet first, and then, for example, when I press the save button, the data will be transferred back to ABAP system? I think when openning the Excel, the logon of the backend system is needed.
I've ever seen this functionality in some BW-reporting tools, but I cannot remember the details.
Thank you very much and best regards,
Leonyes in BW we are having this concept of creating wookbooks & queries.
If u have BW server Go to Transaction RRMX - u will get a Microsoft Excel sheet.
Here it allows u to logon to the SAP system.
For details see this link.
<a href="https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=2553631">https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=2553631</a>
<a href="https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=519862">https://forums.sdn.sap.com/click.jspa?searchID=561476&messageID=519862</a> -
How to call another program from LabVIEW?
Hi!
Is there anyone that can answer my question? I have found a similar thread where the user needed to call labVIEW from some program but I want to do the opposite.
I made a program in labVIEW that communicates via COM-ports (serial communication) with the processor I use at the job (Ubicom´s IP2022).
Now I want to add more funcionality to this program. I want to be able to program re-program IP2022 through this LabVIEW application.
The programming is done via an Ethernet-dongle. I start a program called IP2kProg, I write the ip-address of the dongle and the program-file (.elf) downloads at this address. But how can I do this from
LabVIEW, do I need to open IP2kProg or can I send some values to it via LabViEW?
Ant suggestions?
Thanks, AmirAmir,
There are couple of options:
1. If your IP2kProg program has a command-line interface, you can use LabVIEW's System Exec.vi and send the commands and parameters to it.
2. If the IP2kProg has an API / exported functions, you can call them from LabVIEW using the Call Library Function Node.
Hope this gives you some ideas.
-Khalid
Maybe you are looking for
-
Another Podcast will not update in itunes
I am able to see and download my latest podcast if I use the "show all available episodes" function but it is not seen when the Refresh button or Update Podcast functions are used. All current episodes do appear on the itunes preview page however. I
-
Hi. I read the posting regarding the options on Hotsyncing for Windows 7; however, I have some questions as I have a 64-bit system. I have a Visor Pro that I'm trying to Sync up with my new laptop which is running Windows 7. Steps I have taken: * ins
-
This box pops up more and more frequently, and sometimes completely ties up my computer. If I knew any more to tell you, I could probably fix it myself!
-
My calendar won't allow me to rename calanders nor will it recognize my group calendars anymore
My calendar won't allow me to rename a newly created calendar, whether it is a group calendar or not. I've tried restarting and it will not allow me to make a new group calander.
-
Turn off Mirroring sends Keynote to the Video Display
This has never happened before . . . I turn on mirroring for my presentation. The last part of the presentation, I turn off mirroring. When I do, the keynote screen is thrown over to the video display as opposed to the computer display. Why is this n