新足迹

 找回密码
 注册

精华好帖回顾

· 写一下我的儿子 (2008-3-29) 谢小残 · 成长的烦恼,养娃那几年 (2012-10-1) ayeeda
· 单灯外拍(人像) (2010-9-14) 梦想似蓝 · 笑忘书——亲子关系和爸爸参与教育——完结 (2018-10-29) 小小白虎
Advertisement
Advertisement
查看: 1405|回复: 13

SAP Ajax question [复制链接]

发表于 2010-10-20 08:30 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Is it possible to use ajax in SAP development?

For example, when open a customer page in SAP, can we read some data from other systems? ---Like ajax call service/ashx

Our SAP developer doesn't know ajax, is not able to answer my question...Funny
Advertisement
Advertisement

2010年度奖章获得者

发表于 2010-10-20 08:34 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
SAP is backend,

ajax is front end

you can expose all SAP API via webservices.

your front to mid tier just talking to those services.  so yes you can sure use ajax.

ask your sap grandpa and grandmas to enable them as webservices.
足迹 Reader is phenomenal. If you never used, you never lived 火速下载

发表于 2010-10-20 09:01 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-10-20 08:34 发表
SAP is backend,

ajax is front end

you can expose all SAP API via webservices.

your front to mid tier just talking to those services.  so yes you can sure use ajax.

ask your sap grandpa and grand ...


Thanks

What I mean "SAP" is "Existing SAP UI"....I want SAP UI to consume ajax content.

What they have done is: added links to the SAP UI, so the user can click the button to open another window. Now users are complaining...I think the better way is to use Ajax...But the SAP developer didn't know about ajax...

2010年度奖章获得者

发表于 2010-10-20 09:09 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
哦, 你是倒過來用啊。

ajax content 怎麼能consume. ajax是post到webservice的。

你sap要consume,也得consume webservice 的content。
of course you can't use ajax in SAP dev environment, SAP use abap.

webservice 是直接跟SAP API 打交道的。 可以把"content" 直接post 到SAP 的 API。

所以answer is still yes, you can post content form web UI to internal SAP APIs
足迹 Reader is phenomenal. If you never used, you never lived 火速下载

发表于 2010-10-20 09:16 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-10-20 09:09 发表
哦, 你是倒過來用啊。

ajax content 怎麼能consume. ajax是post到webservice的。

你sap要consume,也得consume webservice 的content。
of course you can't use ajax in SAP dev environment, SAP use abap.

webser ...


Yes, 倒過來用
I do see a lot of discussion about "SAP UI Ajax" on google, but don't understand what they are talking about...

2010年度奖章获得者

发表于 2010-10-20 09:23 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
ajax 是javascript, web 用的。 abap 怎麼能用?

我的理解是你的abap 程序想去call 一個 webservice 來讀取數據?
Advertisement
Advertisement

发表于 2010-10-20 09:33 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-10-20 09:23 发表
ajax 是javascript, web 用的。 abap 怎麼能用?

我的理解是你的abap 程序想去call 一個 webservice 來讀取數據?


Yes, the SAP user needs to see some information which is not in SAP system (doesn't need to be stored in SAP)

So what we really need is:
SAP UI ---Call Ajax ---> load web element (or html elements or html parts)

2010年度奖章获得者

发表于 2010-10-20 09:42 |显示全部楼层
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 于 2010-10-20 10:33 发表


Yes, the SAP user needs to see some information which is not in SAP system (doesn't need to be stored in SAP)

So what we really need is:
SAP UI ---Call Ajax ---> load web element (or html elements  ...


No。。。 哈哈

SAP UI (abap code) -- call webservice and get cotent from webservice.

got nothing to do with ajax mate
足迹 Reader is phenomenal. If you never used, you never lived 火速下载

发表于 2010-10-20 10:12 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-10-20 09:42 发表


No。。。 哈哈

SAP UI (abap code) -- call webservice and get cotent from webservice.

got nothing to do with ajax mate


Thanks, got it...

发表于 2010-10-20 10:17 |显示全部楼层
此文章由 dizzypiggy 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dizzypiggy 所有!转贴必须注明作者、出处和本声明,并保持内容完整

发表于 2010-10-20 21:13 |显示全部楼层
此文章由 西门吹哨 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 西门吹哨 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 dalaohu 于 2010-10-20 10:23 发表
ajax 是javascript, web 用的。 abap 怎麼能用?

我的理解是你的abap 程序想去call 一個 webservice 來讀取數據?


LZ说的SAP UI也许是Enterpirse Portal里的page吧,NetWeaver不全是ABAP stack,有JEE的,可以Ajax。
Take it up
Advertisement
Advertisement

发表于 2010-10-20 21:22 |显示全部楼层
此文章由 kawara 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 kawara 所有!转贴必须注明作者、出处和本声明,并保持内容完整
我的理解你说的其实是cross domain ajax call,禁止的。

popup window不受此限制。

post content form web UI to internal SAP APIs?或者,用servlet之类把想要的web content读到当前服务器,要在防火墙上打很多洞。

SAP web 是JSP 或者 BSP写的,Ajax没问题,关键就是这个cross domain issue

[ 本帖最后由 kawara 于 2010-10-20 22:46 编辑 ]

发表于 2010-10-21 11:04 |显示全部楼层
此文章由 stevenbian 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 stevenbian 所有!转贴必须注明作者、出处和本声明,并保持内容完整
ajax返回一个动态的js就行了,可以绕过跨区域调用

发表于 2010-10-21 13:06 |显示全部楼层
此文章由 典 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 典 所有!转贴必须注明作者、出处和本声明,并保持内容完整
Thank you guys,

发表回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Advertisement
Advertisement
返回顶部