js 连接sap

这篇博客展示了如何通过JavaScript创建一个Active-X对象来调用SAP R/3的事务代码。用户需要安装SAP Automation GUI DLLs,点击按钮后会尝试使用RFC调用事务代码VA02。博客提供了包含SAP连接和事务调用的JavaScript代码示例。
摘要由CSDN通过智能技术生成

<html>

<head>
<title>Calling SAP From Javascript</title>
<meta name="JAVASCRIPT" content="Active-X for SAP">
<meta name="AUTHOR" content="Axel Angeli Logos! Informatik GmbH">
<link rel="stylesheet" href="../../style.css" type="text/css">
<meta NAME="keywords"
CONTENT="SAP,R/3,javascript,logosworld,logos!,axel, angeli, axelangeli, activex,IDoc, IDoc, EDI, ALE,RFC, remotefunctioncall,Workflow
, ABAP IV, ABAB IV">
<meta NAME="description"
CONTENT="Axel Angeli's Logosworld - Example how to call SAP R/3 from JavaScript">
</head>

<body>

<h2>Calling SAP From Javascript</h2>

<p>This HTML document contains a small JavaScript which creates an Active-X object for SAP
Automation GUI. When you click on the button below it will try to call the transaction
VA02 using an RFC to the function RFC_CALL_TRANSACTION_USING. You must have SAP Automation
GUI DLLs installed, otherwise you will receive a message, that the Active-X object cannot
be created. To try it out you better install the complete SAP GUI including the RFC SDK. </p>

<p>You will be asked for userid and password. This example works with any ABAP function
that has RFC enabled. </p>

<hr>

<p><script language="JavaScript"><!--
retcd = 0;
exceptions = 0;

function SAPlogon()
{
fns = new ActiveXObject("SAP.Functions");
trans = fns.Transactions;
conn = fns.connection;
conn.System = "DEV";
conn.user = "FIXIONGF";
conn.password = "11894";
conn.Client = "400";
conn.Language = "E";
conn.tracelevel = 6;
conn.RFCWithDialog = 1;  </

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值