cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with attachments - where is my content?

Former Member
0 Kudos

Hi all!

I've got a problem with my attachment in the shopping cart. We have implement a function, where the user is able to sent an email with an attachment from the shopping cart.

If the user, who added the attachment to the shopping cart will send the email, the field PHIO_CONTENT in the table ATTACH in the shopping cart structure BBPS_SC_APP_DOCUMENT is filled an i can attach these data to the email.

But when the shopping cart will be transfered to another user during the approval worklflow, the field PHIO_CONTENT is emtpy. All other data is already existing (like PHIO_OBJID). I've got the URL to the document too (field DISP_URL = http://sapdb01.XXX.XXXXXXX.de:8000/sap/ebp/docserver/Zellen%25252Exls?phioget&KpId=DDAB1A80829CEFF1B....

Does anybody knows why the data (field PHIO_CONTENT) will not by stored in the shopping cart? Is it neccessay to load the file from doc-server? If so, how can I read the files from the document server?

Thank you for help!

Greetings, Florian

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I read the document from the BDS again!

CALL METHOD cl_ism_dm_documents=>get_document

EXPORTING

io = ls_io

IMPORTING

content_bin = lt_content.

0 Kudos

Hello Florian,

I have a similar assignment where I need to send e-mail with attachments from the SC. The attachemnts can be in varius formats, i.e. DOC, XLS, TXT etc. I wonder how do you handle the attachments? I read the attachments using BBP_PD_SC_GETDETAIL and send e-mail using class cl_document_bcs. The content of the attachemnts are in binary format and receipient can't open them.

Thanks

Former Member
0 Kudos

Hi Alex,

did u solved your problem, i got the similar problem. can u help me if u know the solution.

thanks

-


Channappa

former_member183819
Active Contributor
0 Kudos

Hi Florian,

Did you notice before/after attachment BBPCONT ebp table .Whenvever you attach a document .it accumaltes the count depends upon the amount of data.

Reagards

Muthu