取消
显示结果
而是搜索
你的意思是:
edreir
临时会员- 2级

创建费用报表

你好,

我试图创建一个费用报告,这是我使用的代码片段,用python编写:

json_data ={"Name": "TEST #2", "Purpose": "TEST create expense report", "PolicyID":"xyzxyzxyzxyzxyzxyz ", "Comment": "this is a Comment"} concur_resp = concurrent .api('v3.0/expense/reports', method='POST', params=params, headers={'Content-type': 'application/json', 'accept': '*'}, data=json.dumps(json_data))

我得到了一个500的错误。

对于同一个用户,我可以列出报告,获取策略。所以授权本身是有效的,至少可以读取。

我的问题是,我是否需要特殊权限来创建报告?如果有,是哪一个?如果不是这样,有人可以帮助弄清楚我错过了什么。

提前感谢

1解决方案
解决方案
edreir
临时会员- 2级

我可以通过删除policyID参数来修复,然后它将在用户的默认policyID上创建费用。

问候

在原帖子中查看解决方案

2回答2
解决方案
edreir
临时会员- 2级

我可以通过删除policyID参数来修复,然后它将在用户的默认policyID上创建费用。

问候

AshleyB
SAP同意,前雇员

很高兴听到这个消息!感谢分享你的解决方案。


最好的
阿什利·布拉格
SAP concurrent -社区管理器

这个回答回答了你的问题吗?一定要选择“接受作为解决方案”,这样你的社区成员也可以得到帮助。
My Settings." disabled class="lia-form-type-text lia-inline-topic-not-allowed" aria-label="Sorry, either you cannot reply to this topic or you have not verified your email address by clicking on the verification link in the email we sent you when you registered. If you did not receive an email from us, or need us to resend it, please visit My Settings."> verify your email address." disabled class="lia-form-type-text lia-inline-topic-not-allowed-mobile" aria-label="Sorry, either you cannot reply to this topic or you must first verify your email address.">