‎2011 Mar 08 10:48 AM
Hi,
We have configured HTTP Content Repository to store GOS attachments in IXOS external system, in stead of storing in SAP DB SOFFCONT1. We are able to attach files manually using GOS functionality provided in SAP applications like Purchase order, Invoice, Accounting document and also SAP mails. We have noticed that all attachments are storing in IXOS content repository also able to open and view the files.
We are also inserting OTF links via workflow automation mails and storing them in IXOS content repository, but while clicking on the link instead of opening file it is giving error.
If I modfiy configuration to store the same OTF link in SAP DB table SOFCCONT1 it is storing and able to open the file, but it is not opening when I route then to IXOS content repository.
Please let us know your thoughts.
Regards,
Balaji Naravula
‎2011 Nov 24 7:23 AM
Hi,
This issue has been resolved by debugging the entire functionality.
Here is the solution :
The method CONVERT_TO_SOFM of class Z_ED_DISPLAY_IDOC is not passing the file size to the function module SO_OBJECT_INSERT. Hence the file parameters not getting stored properly in the target system IXOS. Code has been modified in method CONVERT_TO_SOFM as below and it is working fine.
Get the folder ID
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
EXPORTING
region = 'B'
IMPORTING
folder_id = l_folder_id
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
RETURN.
ENDIF.
Get the CustomerPO number*
READ TABLE me->git_edid4
WITH KEY segnam = 'E1EDK01'
INTO lv_edid4.
IF sy-subrc EQ 0.
lv_e1edk01 = lv_edid4-sdata.
ENDIF.
lv_object_data-objnam = 'SOFM'.
lv_object_data-file_ext = 'PDF'.
CONCATENATE 'Customer PO '
lv_e1edk01-belnr
INTO lv_object_data-objdes
SEPARATED BY space.
Insert Start - added below line to rectify file size transfer to target system*
lv_object_data-objlen = l_filesize.
Insert End*
Regards,
Balaji Naravula