Can we call sap screens from our own abap program?
Hi... Friends...,
I want to develop one program...
In that program my selection screen contains transcation code and screen number as input parameters.
so now if i give inputs as...
> VA41
> 4001
for given T'code and screen number...
I hav to get that screen directly!
other wise it has to give error message like...
> NO SCREEN EXISTS FOR VA41 WITH GIVEN SCREEN NUMBER
Is it possible???
If possible... guide me the logic...!
Thanks,
Naveen.I
Edited by: Naveen Inuganti on Jul 14, 2008 11:15 AM
No no.. thats ok...
we can call screen and we can update...
But in VA01 or in VA41 .. we are having more than 10 screens... can i call them with my selection screen inputs...?
let me tel you one situation.
I am having billing plan in VA41 screen's 4002nd screen so now i know the screen number and t'code here.
So if i want to know the field documnetation or technical details of billing plan field... i hav to go through va41 transaction...
can i do that from my program with one step?
And...,
one more thing here we know that there will be some mandatory inputs for screens to get the screen which we are calling!
So this reuirement may not possible for that kind of screen!
Even.... I want your suggetions!
Thanks,
Naveen.I
Similar Messages
-
Can we call normal screen from subscreen
hi,
can any body tell how to call normal screen from subscreen in Dialog Programming
thanks in Advance,
Subodh.Hi,
use stmt like":
call screen '1001'.
But this will be diplayed as new screen and not as subscreen.
Jogdand M B
Message was edited by:
Jogdand M B -
How can i stop the screen from flickering in this program?
Hi, i just wanted to know if anybody knows why my screen keeps flickering when i move.
* @(#)CarWKeys.java
* CarWKeys Applet application
* @author
* @version 1.00 2008/11/29
import java.awt.*;
import java.applet.*;
import java.awt.image.*;
public class CarWKeys extends Applet implements Runnable
private Image dbImage;
private Graphics dbg;
Image img,CarWKeys1,cup;
// This Field is to Trace out the User's CarWKeys position
static int position=235;
static int points = 0;
// You can change this delay to any value which effects in the speed of the game
static int delay = 100;
road rd;
Thread thr;
static int pts=50;
boolean msg=true;
// If this field is true then the 'road' thread will be stopped
static boolean kill=false;
public void init()
int x[] = { 15, 15, 0, 60, 45, 45 };
int y[] = { 45, 50, 58, 58, 50, 45 };
setBackground(Color.black);
// Drawing the CarWKeys Image
img = createImage(60,60);
Graphics g = img.getGraphics();
g.setColor(Color.black);
g.fillRect(0,0,60,60);
g.setColor(Color.green);
g.fillRect(12,20,36,7);
g.fillRect(8,15,4,17);
g.fillRect(48,15,4,17);
g.fillRect(5,40,50,7);
g.fillRect(0,35,5,17);
g.fillRect(55,35,5,17);
g.setColor(Color.red);
g.fillRect(20,0,20,15);
g.fillRect(15,15,30,40);
g.setColor(Color.blue);
g.fillRect(20,20,7,10);
g.fillRect(33,20,7,10);
g.setColor(Color.red);
g.fillRect(22,22,3,6);
g.fillRect(35,22,3,6);
g.setFont(new Font("TimesRoman",Font.PLAIN,7));
g.setColor(Color.white);
g.fillPolygon(x,y,6);
g.setColor(Color.black);
g.drawString("YAMAHA",15,52);
// Drawing the CarWKeys Image
CarWKeys1 = createImage(60,60);
Graphics g1 = CarWKeys1.getGraphics();
g1.setColor(Color.black);
g1.fillRect(0,0,60,60);
g1.setColor(Color.green);
g1.fillRect(12,20,36,7);
g1.fillRect(8,15,4,17);
g1.fillRect(48,15,4,17);
g1.fillRect(5,40,50,7);
g1.fillRect(0,35,5,17);
g1.fillRect(55,35,5,17);
g1.setColor(Color.blue);
g1.fillRect(20,0,20,15);
g1.fillRect(15,15,30,40);
g1.setColor(Color.red);
g1.fillRect(20,20,7,10);
g1.fillRect(33,20,7,10);
g1.setColor(Color.blue);
g1.fillRect(22,22,3,6);
g1.fillRect(35,22,3,6);
g1.setFont(new Font("TimesRoman",Font.PLAIN,7));
g1.setColor(Color.white);
g1.fillPolygon(x,y,6);
g1.setColor(Color.black);
g1.drawString(" B.M.W ",15,52);
thr = new Thread(this); thr.start(); rd = new road(getGraphics(),CarWKeys1,this); rd.start();
// Cup Image
int a[] = {20,5,35};
int b[] = {150,160,160};
cup = createImage(50,165);
Graphics handle = cup.getGraphics();
handle.setColor(Color.black);
handle.fillRect(0,0,50,165);
handle.setColor(Color.red);
handle.fillArc(0,40,40,30,0,180);
handle.setColor(Color.yellow);
handle.fillArc(0,15,40,80,180,180);
handle.setColor(Color.red);
handle.drawLine(20,95,20,150);
handle.fillPolygon(a,b,3);
public void update (Graphics g)
// DoubleBuffers
if (dbImage == null)
dbImage = createImage (this.getSize().width, this.getSize().height);
dbg = dbImage.getGraphics ();
dbg.setColor (getBackground ());
dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
dbg.setColor (getForeground());
paint (dbg);
g.drawImage (dbImage, 0, 0, this);
public void run()
// If you cross the 50 mark you will get a Cup of Java
while(points <= 15)
if(points == 50 || kill == true)
rd.stop();
repaint();
thr.stop();
if((points%4)==0)
rd.j = 0;
pts = points;
points++;
delay--;
if(delay <= 0)
delay = 0;
rd.flag=1;
repaint();
try
Thread.sleep(delay);
}catch(InterruptedException exp){}
public void destroy()
thr.stop();
rd.stop();
//If User presses mouse the the CarWKeys is shifted to opposite side of the road
public boolean keyDown(Event evt, int key) {
if (key==Event.LEFT){
// left arrow key pressed
if(position == 355)
position = 235;
else if(key== Event.RIGHT){
// right arrow key pressed
if(position == 235)
position = 355;
repaint();
return true;
public void paint(Graphics gr)
if(!kill)
if(msg)
// This is the opening message
gr.setColor(Color.black);
gr.fillRect(0,0,640,400);
gr.setColor(Color.yellow);
gr.setFont(new Font("TimesRoman",Font.BOLD,16));
gr.drawString("TO START THE GAME CLICK THE SCREEN",140,100);
gr.drawString("USE THE ARROW KEYS TO MOVE THE CAR",140,200);
gr.drawString("WAIT A MINUTE......",230,240);
msg = false;
try{
Thread.sleep(3000);
}catch(Exception exp){}
gr.setColor(Color.black);
gr.fillRect(0,0,640,400);
gr.setColor(Color.white);
gr.fillRect(200,0,10,400);
gr.fillRect(440,0,10,400);
gr.drawImage(img,position,300,this);
gr.setColor(Color.yellow);
gr.fillRect(550,5,637,25);
gr.setColor(Color.blue);
gr.setFont(new Font("TimesRoman",Font.BOLD,20));
gr.drawString("Score :"+pts,557,22);
if(points >= 16)
for(int xyz=0;xyz<3;xyz++)
gr.setColor(Color.yellow);
gr.drawString("Have a Cuppa Java",240,100);
gr.drawImage(cup,300,100,this);
gr.setColor(Color.yellow);
gr.fillRect(550,5,637,25);
gr.setColor(Color.blue);
gr.setFont(new Font("TimesRoman",Font.BOLD,20));
gr.drawString("Score :50",557,22);
try
Thread.sleep(500);
}catch(InterruptedException exp){}
else
gr.setColor(Color.yellow);
gr.drawString("YOU HAVE LOST THE GAME",250,200);
class road extends Thread
int i;
public static int j = 0;
Graphics g;
Image CarWKeys2;
ImageObserver io;
public static int flag = 0;
boolean msg=true;
road(Graphics g,Image CarWKeys2,ImageObserver io)
this.g = g;
this.io = io;
this.CarWKeys2 = CarWKeys2;
public void run()
drawRoad(g);
// The actual logic i.e Moving of CarWKeyss is here
public void drawRoad(Graphics gr)
if(msg)
gr.setColor(Color.black);
gr.fillRect(0,0,640,400);
gr.setColor(Color.yellow);
gr.setFont(new Font("TimesRoman",Font.BOLD,16));
gr.drawString("TO START THE GAME CLICK THE SCREEN",140,100);
gr.drawString("USE THE ARROW KEYS TO MOVE THE CAR",140,200);
gr.drawString("WAIT A MINUTE......",230,240);
msg = false;
try
Thread.sleep(3000);
}catch(Exception exp){}
gr.setColor(Color.black);
gr.fillRect(0,0,640,400);
for(;j<=1000;j+=10)
for(i=-1000;i<=479;i+=60)
gr.setColor(Color.black);
gr.fillRect(320,i+j,10,i+j+50);
gr.setColor(Color.white);
gr.fillRect(320,i+j+10,10,i+j+60);
gr.clearRect(235,j-10,60,60);
gr.drawImage(CarWKeys2,235,0+j,io);
gr.clearRect(355,-150+(j-10),60,60);
gr.drawImage(CarWKeys2,355,-150+j,io);
gr.clearRect(235,-300+(j-10),60,60);
gr.drawImage(CarWKeys2,235,-300+j,io);
gr.clearRect(355,-450+(j-10),60,60);
gr.drawImage(CarWKeys2,355,-450+j,io);
if( (CarWKeys.position == 235 && (j >= 250 && j <= 360)) || (CarWKeys.position == 355 && (j >= 400 && j <= 510)) || (CarWKeys.position == 235 && (j >= 550 && j <= 660)) || (CarWKeys.position == 355 && (j >= 700 && j <= 810)) )
try
Thread.sleep(2000);
CarWKeys.kill = true;
}catch(InterruptedException exp){}
if (j >= 360 ) { if( (( j - 360 ) % 150 ) == 0 )
if(flag == 1)
CarWKeys.points--;
flag = 0;
CarWKeys.points++;
gr.setColor(Color.yellow);
gr.fillRect(550,5,637,25);
gr.setColor(Color.blue);
gr.setFont(new Font("TimesRoman",Font.BOLD,20));
gr.drawString("Score :"+CarWKeys.points,557,22);
try
Thread.sleep(CarWKeys.delay);
}catch(InterruptedException exp){}
}Look at the link I posted, you aren't double buffering correctly.
I saw the other post you mistakenly made before you edited it. Not really a big deal, I was just wondering why you did that. -
Hi,
I am new to BSP. I have to call SAP Screen on button click event on BSP and also need to pass data at runtime.
I searched this forum but didn't find the right solution. I tried to call SAP screen from BAPI and through URL but no success.
Anyone knows how it can be done?
Regards,
Usman MalikThanks for your reply,
Actually I am very new to BSP. I don't understand where to put this code?
[System]
Name=DEV
Description=DEV [Development]
Client=123
[User]
Name=RAJA
Language=EN
[Function]
Title=
Command=*SU01 USR02-BNAME=raja;
Type=Transaction
[Configuration]
WorkDir=d:xxxxxxSapWorkDir
[Options]
Reuse=1
Second thing is about shortcut. Do I have to place this shortcut on server?
Thanks,
Usman Malik -
Our Windows PC crashed with all our music on it. There are copies of both purchased (thru iTunes store) and from our own CDs on an external HD in a backup file. They are not linked to a Media file. Is there any way I can put this music on my new computer?
The syncing of music is one way, computer to phone. See this helpful document from a fellow user. Credit goes to the author.
https://discussions.apple.com/docs/DOC-3141 -
Opening SAP screen from an internet application
Hi,
I have a requirement in which it is needed to open up an SAP transaction screen from an internet application(salesforce.com).I have written a batch file which opens up the SAP transaction XD03 screen.This batch file can be called from a java program.But since our tool is an internet application,the java code has to be converted to a web service.
Is there any other approach to open SAP screen from internet applications?
Thanks & Regards,
VineethaResolved
-
Call multiple screens from LSMw
Hi
i want to call multiple screens from lsmw
I need to call a three transaction from LSMW wich are subzequent steps for data entry.
1) first tcode to be called is eprodcust which creates some master data and using this master data and some fields of data creatd i need to call two more tcodes first iq01 to create meter and save then eg31 tcod to feed data.
Please suggest where in lsmw can i give options for suc hscnerio and call of subsequent screens.
regards
Edited by: Prieti_V on Nov 8, 2011 8:28 PMHi Priti ,
we have few options to handle such cases , to avoid Locked Problems what you can do is
-->write BDC program within LSMW to create installation ( this will be created within step of 11 Convert Data ).
-->Based on the above BDC results ,run another BDC within LSMW to create Device.( this will be created within step of 11 Convert Data ).
-->third BDC records , let SAP do it thru LSMW or can you do it convert data step itself.
this approch needs lots of codes , so in worst case and if you dont want to break the loadings the follow this.
*Better to find any BAPI which will do creation of installation ,devices
regards
Prabhu -
How can I call a RFC from dynpage ?
Hi!
I would like to know how can I call a RFC from a Portal aplication, dynpage or jspdynpage. there include some libraries ?
any idea?
thanksfor deploying SAP Jra :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4#search=%22how%20to%20use%20jca%20sapjra%20site%3Asap.com%22
For lookup of SAP Jra use:
com.sapportals.connector.connection.IConnectionFactory connectionFactory =(IConnectionFactory) initctx.lookup( "deployedAdapters/SAPFactory/shareable/SAPFactory");
Using SAP Jra
http://help.sap.com/saphelp_nw04s/helpdata/en/47/13044258bdd417e10000000a1550b0/content.htm
The important jars required are:
connector.jar
Genericconnector.jar
prtjndisupport.jar
Thanks -
Can I call a report from pl/sql?
How can I call a report from pl/sql? I would like the output to be pdf and have it outputted to the screen?
We are running Oracle 10g database and 10.1.2.3 application server on LInux Redhat 4.
Thanks.
Shirley
Edited by: jonesfnalgov on Jul 12, 2011 2:17 PM
Edited by: jonesfnalgov on Jul 12, 2011 2:18 PMHello,
a package is provided : srwAPIins.sql installs the Event-Driven Publishing API.
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_evnt.htm
The Event-Driven Publishing API is a PL/SQL package that provides the basic functions required for the development of procedures that respond to events in the database. Event-driven jobs are submitted using the HTTP protocol. The server assigns a unique job_ident record to every call, useful for tracking the status of the job.
Regards -
Can we call a transaction from a report
hi
can we call a transaction from a reporthi,
we can call
check it
*& Report ZSALESORDERDETAILS_ASHOK
REPORT ZSALESORDERDETAILS_ASHOK
NO STANDARD PAGE HEADING
LINE-SIZE 50
LINE-COUNT 35(5).
*data declaration.
tables :vbak.
tables: VBAP.
DATA : TVBAK LIKE VBAK OCCURS 0 WITH HEADER LINE,
TVBAP LIKE VBAP OCCURS 0 WITH HEADER LINE,
TEMP TYPE p decimals 5 VALUE '0.0' ,
A type i,
FIELDNAME TYPE STRING,
FIELDVALUE TYPE VBAP-VBELN.
DATA G_CB.
selection-screen begin of block screen1 with frame title TEXT-001.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT /32(35) COMM1.
SELECTION-SCREEN ULINE /27(35).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS TVBELN FOR VBAK-VBELN.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN ULINE.
SELECTION-SCREEN COMMENT /30(50) COMM2.
SELECTION-SCREEN ULINE /27(40).
SELECTION-SCREEN SKIP.
SELECT-OPTIONS TERDAT FOR VBAK-ERDAT.
SELECTION-SCREEN SKIP.
selection-screen end of block screen1.
*Initialization
Initialization .
TVBELN-low = 4000.
TVBELN-high = 5000.
TVBELN-option = 'BT'.
TVBELN-sign = 'I'.
APPEND TVBELN.
TERDAT-low = '19960202'.
TERDAT-high = '20020302' .
APPEND TERDAT.
AT SELECTION-SCREEN .
SELECT *
FROM VBAK
INTO TABLE TVBAK
WHERE VBELN IN TVBELN AND erdat IN Terdat .
IF sy-subrc ne 0.
MESSAGE 'ENTERED ORDER NOT FOUND' type 'E'.
ENDIF.
START-OF-SELECTION.
REFRESH TVBAK.
SELECT *
FROM VBAK
INTO TABLE TVBAK
WHERE VBELN IN TVBELN AND ERDAT IN TERDAT.
END-OF-SELECTION.
LOOP AT TVBAK.
WRITE: /2 SY-VLINE,
TVBAK-VBELN INPUT ON ,
15 SY-VLINE,TVBAK-ERDAT hotspot on,
30 SY-VLINE, 35 TVBAK-ERNAM,
46 SY-VLINE,
g_cb AS CHECKBOX.
ENDLOOP.
A = SY-LINCT - SY-LINNO - 1.
SKIP A .
RESERVE A LINES.
AT SELECTION-SCREEN OUTPUT.
comm1 ='SELECT SALES ORDER RANGE'.
comm2 ='SELECT SALES ORDER CREATION DATE'.
TOP-OF-PAGE.
ULINE.
WRITE /15 ' SALES ORDER REPORT ' COLOR = 1 .
ULINE.
WRITE : /7 ' VBELN ' COLOR = 5 ,
19 ' ERDAT ' COLOR = 5,
34 ' ERNAM ' COLOR = 5.
ULINE.
END-OF-PAGE.
IF SY-LSIND = 0.
ULINE.
WRITE : /2 'NUMBER OF LINE IN THIS PAGE = ', SY-LINNO.
SKIP.
WRITE: /30 'PAGE NUMBER = ', SY-PAGNO.
ULINE.
ELSEIF SY-LSIND = 1.
ULINE.
WRITE : /12 'TOTAL PRICE = ' ,TEMP.
CLEAR TEMP.
SKIP.
WRITE : /30 'PAGE NUMBER = ', SY-PAGNO.
ULINE.
ENDIF.
at line-selection.
GET CURSOR FIELD FIELDNAME VALUE FIELDVALUE.
IF FIELDNAME = 'TVBAK-VBELN'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = FIELDVALUE
IMPORTING
OUTPUT = FIELDVALUE.
WINDOW STARTING AT 60 2 ENDING AT 120 25.
IF SY-LSIND = 1.
SELECT
FROM VBAP
INTO TABLE TVBAP
WHERE VBELN EQ FIELDVALUE.
LOOP AT TVBAP.
TEMP = TEMP + TVBAP-NETPR.
WRITE : /2 SY-VLINE, TVBAP-matnr,
17 SY-VLINE,TVBAP-VBELN,
30 SY-VLINE,TVBAP-NETPR currency 'IN',
49 SY-VLINE.
ENDLOOP.
ULINE.
A = SY-LINCT - SY-LINNO - 1.
SKIP A .
RESERVE A LINES.
ENDIF.
<b>ELSEIF SY-LSIND = 2.
call transaction 'MM01' .
ENDIF.</b>
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE : / SY-ULINE,
/7 ' DETAIL OF GIVEN SALES ORDER ' COLOR = 5,
/ SY-ULINE,
/4 'MATNR',
22 'VBELN',
35 'NETPR',
/ SY-ULINE.
Regards
ASHOK
Message was edited by:
ASHOK KUMAR -
Calling SAP scripts from WEBDYNPRO
Hi
We need to call SAP scripts from WebDynpro application. As per my understanding we need to do following steps
Create a new RFC function module and create sap script output in PDF format.For this
- use OPEN_FORM , by assigning TDGETOTF='X' in the Options(Structure
ITCPO).
- call function module CLOSE_FORM with option OTFDATA
- convert OTF data to PDF by using function module CONVERT_OTF_2_PDF
Now I would like to know how to display the PDF string from WebDynpro.
Please help....
Regards
SujithHi,
You can call by creating external window method.
create LINK to URL or LINK TO ACTION according to requirement, for this. write code in onaction of that.
data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.
data: api_component type ref to if_wd_component,
window_manager type ref to if_wd_window_manager,
window type ref to if_wd_window.
api_component = wd_comp_controller->wd_get_api( ).
window_manager = api_component->get_window_manager( ).
window = window_manager->create_external_window(
url = iv_url
modal = abap_false ).
window->open( ).
Cheers,
Kris. -
Calling SAP Transaction from BSP
I wonder whether it is possible to call SAP transaction from BSP application and pass to it some data; e.g., PO# when calling VA02?
The called transaction could appear in a separate MS IE Window (like in some Portal applications) or in SAP GUI.
Any help will be appreciated.
Thank you in advanceI have launched the Java SAPGui from BSP pages before. I used SNC so that the users were logged on via Single Sign On. I store the Java Gui in the Mime directory. You can force the startup transaction. Theorectically you could also Gui Scripting to try and control the Gui and force in the default value for your PO field. I have not tried that however. You will probably want to check the Service Marketplace for documents on the Gui Scripting. The following is the code from my BSP page to launch the Java Gui in the Browser as an applet:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<HTML>
<HEAD>
<TITLE>SAPGUI for the Java Environment</TITLE>
<STYLE type="text/css">
body { margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; }
</STYLE>
</HEAD>
<BODY scroll="no">
<SCRIPT language="JavaScript">
// user configurable part starts here
var pluginurl = '';
var scriptable = 'true';
var codebase = '.';
var jnlp = 'platin.jnlp';
var keepalive = 'true';
var frog = 'true';
var trace = '';
var tracefile = '';
var connectionData = 'conn=/M/nts163/S/3620/G/SPACE/&tran=SE80&clnt=088&fast=true&sncon=true&sncname=p:[email protected]&sncqop=9';
// user configurable part ends here
// verify if Java Plugin as control in Internet Explorer or Java Plugin for Netscape or native JRE of browser must be used
var jre = 'control';
if(navigator.platform.indexOf("Mac") > -1)
jre = 'native';
else if (navigator.appName.indexOf("Netscape") != -1)
jre = 'plugin';
document.open();
switch (jre)
case 'control':
document.writeln('<OBJECT CLASSID = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" ');
document.writeln(' ID = "PlatinGUI" ');
document.writeln(' CODEBASE = "j2re-1_3_1_02-win-i.exe#Version=1,3,1,0" ');
document.writeln(' WIDTH = "100%" ');
document.writeln(' HEIGHT = "100%" ');
document.writeln(' BORDER = 0> ');
document.writeln('<PARAM NAME = "TYPE" VALUE = "application/x-java-applet;jpi-version=1.3.1"> ');
document.writeln('<PARAM NAME = "SCRIPTABLE" VALUE = "', scriptable,'"> ');
document.writeln('<PARAM NAME = "code" VALUE = "com.sap.platin.GuiApplet2"> ');
document.writeln('<PARAM NAME = "codebase" VALUE = "', codebase,'"> ');
document.writeln('<PARAM NAME = "jnlp" VALUE = "', jnlp,'"> ');
document.writeln('<PARAM NAME = "archive" VALUE = "GuiStartS.jar"> ');
document.writeln('<PARAM NAME = "keepalive" VALUE = "', keepalive,'"> ');
document.writeln('<PARAM NAME = "frog" VALUE = "', frog,'"> ');
document.writeln('<PARAM NAME = "trace" VALUE = "', trace,'"> ');
document.writeln('<PARAM NAME = "tracefile" VALUE = "', tracefile,'"> ');
document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData,'"> ');
document.writeln(' ');
document.writeln('This page requires a Sun Java Plugin 1.3 and a SAPGUI for Java to view. ');
document.writeln(' ');
document.writeln('</OBJECT> ');
break;
case 'plugin':
document.writeln('<EMBED TYPE = "application/x-java-applet;version=1.3" ');
document.writeln(' PLUGINURL = "', pluginurl,'" ');
document.writeln(' WIDTH = "100%" ');
document.writeln(' HEIGHT = "100%" ');
document.writeln(' ALIGN = "BASELINE" ');
document.writeln(' code = "com.sap.platin.GuiApplet2" ');
document.writeln(' codebase = "', codebase,'" ');
document.writeln(' jnlp = "', jnlp,'" ');
document.writeln(' archive = "GuiStartS.jar" ');
document.writeln(' keepalive = "', keepalive,'" ');
document.writeln(' frog = "', frog,'" ');
document.writeln(' trace = "', trace,'" ');
document.writeln(' tracefile = "', tracefile,'" ');
document.writeln(' connectionData = "', connectionData,'" ');
document.writeln(' <NOEMBED> ');
document.writeln(' </NOEMBED> ');
document.writeln(' </EMBED> ');
break;
case 'native':
document.writeln('<APPLET CODEBASE = "', codebase,'" ');
document.writeln(' ARCHIVE = "GuiStartS.jar" ');
document.writeln(' CODE = "com.sap.platin.GuiApplet2" ');
document.writeln(' WIDTH = "100%" ');
document.writeln(' HEIGHT = "100%"> ');
document.writeln('<PARAM NAME = "SCRIPTABLE" VALUE = "', scriptable, '"> ');
document.writeln('<PARAM NAME = "jnlp" VALUE = "', jnlp, '"> ');
document.writeln('<PARAM NAME = "keepalive" VALUE = "', keepalive, '"> ');
document.writeln('<PARAM NAME = "frog" VALUE = "', frog, '"> ');
document.writeln('<PARAM NAME = "trace" VALUE = "', trace, '"> ');
document.writeln('<PARAM NAME = "tracefile" VALUE = "', tracefile, '"> ');
document.writeln('<PARAM NAME = "connectionData" VALUE = "', connectionData, '"> ');
document.writeln('</APPLET> ');
break;
document.close();
</SCRIPT>
</BODY>
</HTML> -
JMS: can I access SAP messages from extenal Java
- Can I access SAP Messages from an external (non-SAP) java program?
- Do I use JNDI or can I call using a jar file from my java invocation?
- Do I have to define a queue (or does SAP JMS have queues)
- What port do I use?
ThanksHi John,
> - Can I access SAP Messages from an external
> (non-SAP) java program?
>
Yes, you can use the JMS provider on the Web AS from a standalone java program.
> - Do I use JNDI or can I call using a jar file from
> my java invocation?
You connect your remote java client to the server by getting an InitialContext. The you lookup the JMS resources (such as Topic- or Queue ConnectionFactory, etc.) from the JNDI. You can have a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/25/bf8f44540c469abc19fb6ac3ac7885/frameset.htm">this</a> page for more info.
>
> - Do I have to define a queue (or does SAP JMS have
> queues)
>
The JMS Provider on the Web AS provides default connection factories that you can use to create a topic ot queue. The lookup strings you have to use are
jmsfactory/default/TopicConnectionFactory
for topics and
jmsfactory/default/QueueConnectionFactory
for queues.
> - What port do I use?
>
You use the P4 port (50004 by default for instance number 00) when obtaining the InitialContext with this code:
java.util.Properties properties = new Properties();
// set the properties of the connection
properties.put("Context.INITIAL_CONTEXT_FACTORY", "com.sap.engine.services.jndi.InitialContextFactoryImpl");
properties.put(Context.PROVIDER_URL, "<Server_Host>:<p4_port>");
properties.put("Context.SECURITY_PRINCIPAL", "Administrator");
properties.put("Context SECURITY_CREDENTIALS", "admin_password");
// start initial context with the properties specified
InitialContext context = new InitialContext(properties);
Hope that helps! -
Call sap transaction from java
can anyone tell me how to call SAP transaction from JCO,
cheers
AjayHi Ajay,
You should find or create functional module which covers your requrements.
Best regards, Maksim Rashchynski. -
Can i call portal service from a j2ee application?
Hi Experts,
Can i call portal service from a j2ee application?
If yes then how?
If no then is there any other way to achieve the same?
I m reffering this link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/9ddd0cbb211d72e10000000a1553f6/content.htm
but not getting any help
Please help me out.Hi,
Can you check this link?
http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/content.htm
Regards
Srinivasan T
Maybe you are looking for
-
Oracle Error 'ORA-27102: out of memory' - Shared memory parameters correct.
Advice please! We’ve recently shut down our Oracle test server in order to increase file system capacity. When we rebooted some of the databases wouldn’t start up. It started the first 4 instances and then errored out saying “ORA-27102: out of memo
-
Problem with updating database
Hi, gurus. here is the snippet of my program, dont know why it doesnt work properly. //this the first java bean, storing user's form inputs public class FirstPageBean private String userName; private String docType; private int index; public
-
How do I get the pics off my old SD card onto my phone I have the old SD card in my phone now so I can have my pics how can I put them on my phone so I can put my new SD card in & save them to the new card ?
-
Using an external css in Flex 4
I'm using the Flex 4 beta and the ability to load an external css seems to be broken. Running the code below shows no styling at all. Have I missed something? components.MainPanel.as: package components { import flash.events.Event; import flash.net.U
-
I'm using quicktime 6.52 using windows xp. The quicktime movie plays fine at first, but once the computer shuts down and then is rebooted, the quicktime video is there but there is no audio. My team and I tried to use quicktime 7 but that doesn't see