2020 Oct 02 9:33 AM - edited 2024 Feb 03 11:12 PM
Hello Experts,
i'm struggling to add attachments to the XML file of the eDocument using EDOC_IT_ATTACHMENT Badi. Documentation and Example implementation do not say much.
I tried to implement an outbound service to call the GetPDF with API_BILLING_DOCUMENT_SRV API with no luck so far, i'm getting an HTTP 400 response.
Do you have an example of such an implementation or maybe a CDS that contains the attachement in binary format ?
Thank you for your inputs.
Regards
Request clarification before answering.
Hi Soufiane.F
Could you provide some detail how you are calling the service and more details of your use case?
I checked the Help on the GetPDF topic and it provides some examples:
I would also encourage you to log in to the API Hub and try the Try Out feature to get the sample call with details.
https://api.sap.com/api/API_BILLING_DOCUMENT_SRV/resource
HTTP 400 indicates a Bad Request - could be you are not encasing the billing doc in single quotes?
Please also indicate how you are calling it (Postman, Java app, etc.)
If possible, please look into Postman - it is the tool we use internally for trying out APIs.
Thank you
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
120 | |
9 | |
8 | |
5 | |
4 | |
4 | |
3 | |
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.