on 04-02-2010 5:21 AM
你好,问一下,
我想在sap r3里写function,然后在别的系统想要调用这个function。我该怎么做?
我听说有rfc,bapi等方式。
但是不知道具体怎么操作,而且还不知道在sap r3环境里要设置那些东西。
有详细的帮助或文档吗啊?
以前有iway adapter的,那个是什么啊?如果有可能用这个的话,我在sap里需要做哪些操作啊?
谢谢。
Edited by: sckim805 on Apr 2, 2010 6:25 AM
现在基本通过PI做为中间件来实现R/3与其它系统集成了
如果要直接调用R/3的RFC,前提条件是对方系统能够支持,
如:JCO或者.NET connector
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it can be connect to r3 via the rfc.
问题是librfc32.dll有几种不同的版本。id/pw都是大写。
谢谢
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
看样子你象是做练习,怎么function硬是写的像出口。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
嗯,我有jco 2.1.8.
刚才参考了bc415,仿造那个做一个function,可是老出错。
*{ INSERT C11K900002 1
SE LECT * INTO TABLE PT_FLIGHT FROM SFLIGHT WHERE
CARRID = P_FIRST AND CONNID = P_SECOND.
*} INSERT
1. 当我想写有返回值的函数的时候出现错误,无法找到表 SFLIGHT,type也不对 。
这个需要在哪里定义啊?
这样是不是可以利用jco调用此function进行与r3的沟通了。
2. 我怎么自定义一个表,还有一个function?
有sample吗?
我想简单的做一个function,在别的地方调用此function的时候给他传一个变量,那function可以利用这个变量进行计算,把数据保存到表中,并返回一个值。
比如我调function的时候,给他传 jason,function就会将jason保存到表中,并返回hello jason。
谢谢。!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BAPI 函数是 RFC 函数的一个子集。在 SE37 创建函数模块时,函数模块属性选择 RFC-Enabled 就可以了。
RFC 函数的接口需要遵守一定的规定,以便准确传递数据,避免不同系统间造成的误读。
详细可以参考 BC415 标准教材。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.