‎2006 Sep 07 1:11 PM
I have created an attachment to a custom program using Generic Object Services class CL_GOS_MANAGER and method 'start_service_direct' as shown in the below code. I need information as to where the attached data is internally being stored. I have a requirement where I have to get backup of the attachments stored by this program. Are the attachments stored in a table or object. Thanks in advance.
DATA: my_object TYPE REF TO cl_gos_manager.
DATA: ls_object TYPE borident.
DATA: li_service TYPE tgos_sels,
ls_service TYPE sgos_sels.
MOVE: i_objkey TO ls_object-objkey,
i_objtype TO ls_object-objtype.
MOVE: 'I' TO ls_service-sign,
'EQ' TO ls_service-option,
'SRELATIONS' TO ls_service-low,
'SRELATIONS' TO ls_service-high.
APPEND ls_service TO li_service.
CREATE OBJECT my_object
EXPORTING
is_object = ls_object
it_service_selection = li_service
EXCEPTIONS
object_invalid = 1
callback_invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*
CALL METHOD my_object->start_service_direct
EXPORTING
ip_service = 'SRELATIONS'
is_object = ls_object
EXCEPTIONS
no_object = 1
object_invalid = 2
execution_failed = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards,
Vishnu Priya
‎2006 Sep 09 12:51 PM
you can use tocde OAOR to view/save locally the attachments.
of use FM
BDS_BUSINESSDOCUMENT_GET_TAB to read it programatically
Regards
Raja
‎2006 Sep 12 5:20 AM
Hi,
Using OAOR transaction, by giving the class name and the Class type (as 'Business Objects'), I could see the attachments. But, I could not transport them as it is giving message 'SAP GOS documents cannot be processed using BDN (Business Document Navigator)'.
So, when a document is stored using GOS, where does it actually get stored and how to get that path where is it stored.
Thanks & Regards,
Vishnu Priya