‎2007 Mar 05 10:15 AM
All,
On our SAP system i'm sending a mail to Business Workplace with an attachment. When I go to BW, I see the attachment, when I want to save it to file, it get's the proper name (which is coded in abap, see below)
But when I do exactly the same on another system at the client, it always get's the filename 'Untitled', while it should be 'example.csv'.
Our SAP system: SAP ERP Central Component 5.0
Client SAP system: BBPCRM 4.0
The code I used (for the attachment):
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = 'CSV'.
t_packing_list-obj_descr = 'example'.
t_packing_list-obj_name = 'name'.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Anyone an idea why it isn't working on 'BBPCRM 4.0'?
‎2007 Mar 06 2:11 PM
I found it!
It should be mentioned in obj_header.
data: t_header like solisti1 occurs 0 with header line.
t_header = 'test.csv'.
append t_header.
and in FM:
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
....
TABLES
OBJECT_HEADER = t_header
....