取消
显示的结果
而不是寻找
你的意思是:
edreir
临时会员-二级

创建费用报告

你好,

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

json_data ={"Name": "TEST #2", "Purpose": "TEST create expense report", "PolicyID":"xyzxyzxyzxyzxyz ", "Comment": "this is just 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
临时会员-二级

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

问候

在原来的帖子中查看解决方案

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

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

问候

在原来的帖子中查看解决方案

AshleyB
SAP Concur,前员工

伟大的听!谢谢分享你的解决方案。


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

这个回答回答了你的问题吗?确保选择“接受作为解决方案”,这样你的社区成员也能得到帮助。
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.">