08-21-2020 3:13 AM - edited 02-03-2024 8:22 PM
在S4HC里面创建一个自定义业务对象,然后发布成API odata 服务,希望通过EXCEL批导数据到S4HC 自定义的业务对象里面,目前采用了excel里面写VBA的方式去处理,但是没有办法成功导入,遇到以下问题: 1. VBA代码获取token的时候取不到值 2. 通过postman获取出token放到VBA代码逻辑中,然后再进行执行,但是还没有没有办法导入到S4HC里 有谁成功实现的,可以麻烦提供详细的demo吗 谢谢
Hi,
1. VBA 调用CBO接口的样例可以参考下面这个blog,作者有完整介绍及示例代码:
https://blogs.sap.com/2018/07/31/upload-data-into-sap-s4hana-cloud-cbo-from-ms-excel/
2. token 和 session cookie 是对应的,因此如果要在VBA 里使用 postman 获取的token 的话,要同时把postman 的session cookie 一起复制过来才可以。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a re-posted Q&A of an earlier question on this community"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.