cancel
Showing results for 
Search instead for 
Did you mean: 

从EXCEL批导上传数据到自定义业务对象CBO失败

Expert
Active Contributor
0 Kudos

  在S4HC里面创建一个自定义业务对象,然后发布成API odata 服务,希望通过EXCEL批导数据到S4HC 自定义的业务对象里面,目前采用了excel里面写VBA的方式去处理,但是没有办法成功导入,遇到以下问题:    1. VBA代码获取token的时候取不到值    2. 通过postman获取出token放到VBA代码逻辑中,然后再进行执行,但是还没有没有办法导入到S4HC里    有谁成功实现的,可以麻烦提供详细的demo吗    谢谢  

Accepted Solutions (1)

Accepted Solutions (1)

Expert
Active Contributor
0 Kudos

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 一起复制过来才可以。

Answers (1)

Answers (1)

Expert
Active Contributor
0 Kudos

This is a re-posted Q&A of an earlier question on this community"