cancel
Showing results for 
Search instead for 
Did you mean: 

File extra Large from CRM to PI

ernesto_cruz
Participant
0 Kudos

Hi guys, we have a case in a scenario CRM <-> PI 7.10 <-> SOAP.

From CRM we execute a program that internally call the RFC. The program upload a file pdf of 160 MB, and the program ends with a message error. "Error PI Destination".

*With file more small, the program is working ok.

* ST22 do not appear error.

* In RWB the message not appear.

*From SM59, test of conection is ok.

Some suggestion?

Thank in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Harish
Active Contributor
0 Kudos

Hi Ernesto,

PI gives the error for big file size.

How you are sending the PDF to PI, as main message or as attachment. It is always better to send as attachment.

Please also monitor the PI run time memory and CPU utilization during the processing, which can give you more information about the issue.

Regards,

Harish

ernesto_cruz
Participant
0 Kudos

Hi Harish, thanks for your response.

Following with the case. I update the requirement with respect to your question:

*How you are sending the PDF to PI, as main message or as attachment. It is always better to send as attachment.

I exposed el requirement wrong, the file is not a pdf, it is a array of bytes of 160 MB(the data type en ABAP is XTRING), and the file is send as "message".

Is there a chance of send this array of bytes as attachment?


Now, the Abap Team goes to debug the program.


Regards





iaki_vila
Active Contributor
0 Kudos

Hi Ernesto,

First of all, i dont test with byte array, you could test using C_ATTACH_TYPE_BINARY:

g_attachment = attch_protocol->get_attachment_from_binary(
data = g_attach_xstring
type = if_ai_attachment=>C_ATTACH_TYPE_BINARY
name = 'Byte Attachment' ).    " Name

Check this:

Regards.

ernesto_cruz
Participant
0 Kudos

Hi Iñaki, this option applies for interface from sender adapter RFC to PI?, or only applies to proxy?

My requirement has RFC in CRM, in the import has a field INPUT_DATA of type XSTRING.

iaki_vila
Active Contributor
0 Kudos

Hi Ernest,

My wrong, im sorry  i didnt read that you are working with RFC. Have you used a RAW type in the RFC for the attachment?, have you checked this wiki

To send a mail attachment with more than 255 characters in a line - Code Gallery - SCN Wiki?, it is an example that send a binary array with an RFC.

Regards.

ernesto_cruz
Participant
0 Kudos

Hi, Iñaki thanks for your input.

The structure of RFC is:

import: data_send type XSTRING

export: data_resp type XTRING

The abap team do not use attachment. They send to PI as main message.

Regards.

Answers (3)

Answers (3)

ernesto_cruz
Participant
0 Kudos

Hi sdners, the requirement was changed, we will use send by batch, to resolve the problem size of file.

Regards.

sunil_singh13
Active Contributor
0 Kudos

Ernesto,

What you see if in transaction SM58? Any message stuck there in CRM?

Thanks,

Sunil Singh

ernesto_cruz
Participant
0 Kudos

Hi Sunil, I do not see any message stuck.

Regards.

Former Member
0 Kudos

Cruz,

Once compare the xml received in SAP ECC to the one sent from PI.

Send the pdf attachment data wrapped in cdata like ![CDATA[ <data>]] in the xml.

Regards,

Pranav