on 02-12-2015 9:37 AM
Hi,
I have a PI -> ABAP server proxy -> PI scenario. I need to attach a PDF in the response message of the server proxy. Everything seems ok (no exceptions, sy-subrc = 0) but PI don't receive the attachment. I use the following code. What am I doing wrong?
TRY.
lo_server_context = cl_proxy_access=>get_server_context( ).
lo_attachment_protocol ?= lo_server_context->get_protocol( if_wsprotocol=>attachments ).
lo_attachment = lo_attachment_protocol->get_attachment_from_binary(
data = ld_pdf
type = ld_type
name = ld_name ).
APPEND lo_attachment TO li_attachments.
lo_attachment_protocol->set_attachments( li_attachments ).
CATCH cx_ai_system_fault INTO lo_oref.
ENDTRY.
Tranks.
Hi Benito
A few things come to mind after looking at your code:
Have you tried debugging the proxy to step through whether the creating of the attachment from PDF data and setting it to the message works?
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benito,
I'm sorry i didn't read your question propperly. First of all, you should figure out if the attachment is reaching your ECC system. Please, enable the monitoring in your ECC system (like the ABAP monitoring in PI ABAP stack), and check if the attachment is reaching your ECC system or the attachment is being lost in PI.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.