How to delete Services For Objects Attachments?

How can I delete records from SOFFCONT1 selectively, to recover Database space, without corruption of Database integrity in other tables?
Thousands of scanned images have been uploaded to SAP R3 as 'Attachments' to Financial documents, and produced massive amounts of binary data in table SOFFCONT1.  It was thought that 'Links' were being created until Basis saw the size of table SOFFCONT1.
A new methodolgy creates 'Links' to files on a network filer instead.
The bleeding has stopped!
The original methodology for creating the relationship included the following:
SO_FOLDER_ROOT_ID_GET
SO_OBJECT_UPLOAD
SO_SPLIT_FILE_AND_PATH
SO_LOIO_PHIO_CREATE
SO_OBJECT_INSERT
BINARY_RELATION_CREATE
New records are thereby added to the following tables:
SOFFLOIO
SOFFPHIO
SOFFCONT1
SOFFPHF
SOOD
SOC3
SOFM
SRGBTBREL
A debug session of the transaction FB03, display attachments, and delete revealed the following function modules:
BINARY_RELATION_DELETE
SO_OBJECT_DELETE_IN_VB
This only deletes the relationship records in tables:
SOFM
SRGBTBREL
What I really want to do is delete all traces (records in tables) of these image/document relationships in R3 and recover the Database space.
Is anyone experienced with this recovery process, and has a solution to this requirement?
Any suggestions welcome.
Thanks, Marlon

(for the OP)
Roger Wilmut1 wrote:
The User Library is hidden by default but in Mavericks you can make it visible - open your Home Folder the from the Finder's View menu, choose show View Options and check Show User Library.
or just hold Option then Finder menu  Go > Library.

Similar Messages

  • How to add services for object in ECC6.0

    Hi everybody,
                        Can anybody tell me how to add "Services for Object" icon in ECC 6.0 because this icon is there in 4.6C but not coming in ECC 6.0.
    Thanks in Advance

    Hi Saurabh,
                Thanks for your reply. I have checked the path given by you...System-> Service for object, but it is showing no service available as told by you. Cud you please tell me how to add this service because this is working fine in 4.6C but I dont know how to add these services in ECC 6.0. If any code for this which is written in 4.6C which I can refer... please tell me where to see the code for adding services (in 4.6C)  b'coz its very urgent.

  • How to display service for object (attachment content ) in script

    hi all
    In me23n we find services for object like attachment, private note, workflow etc...
    i need to display the attachment content in script ..
    how could i do this ? 
    any body give your valuable inputs to bring solution.
    Regards
    deepika

    Hi,
           Configure it for document type SDIORDER.
    sirish

  • How to add "services for object " in ECC 6.0

    Hi Saurabh,
    Thanks for your reply. I have checked the path given by you...System-> Service for object, but it is showing no service available as told by you. Cud you please tell me how to add this service because this is working fine in 4.6C but I dont know how to add these services in ECC 6.0. If any code for this which is written in 4.6C which I can refer... please tell me where to see the code for adding services (in 4.6C) b'coz its very urgent.

    Hi Saurabh,
                Thanks for your reply. I have checked the path given by you...System-> Service for object, but it is showing no service available as told by you. Cud you please tell me how to add this service because this is working fine in 4.6C but I dont know how to add these services in ECC 6.0. If any code for this which is written in 4.6C which I can refer... please tell me where to see the code for adding services (in 4.6C)  b'coz its very urgent.

  • How to get "Services for Object".

    Hi,
    We are on SAP R/3 4.6C with SAP GUI 6.40.
    I don't know much about "Services for Object". In fact, I just noticed the feature.
    Some of our user do not see the feature even though they are on SAP R/3 4.6C with SAP GUI 6.40. While others see the feature but not all the time (ex. see in VA22 but not in ME22N)
    Is the "Services for Object" some thing individual need to set in the user profile? Or in the SAP GUI or durring SAP GUI installation or is at via roles.
    Thanks in advance.
    Naing Zaw-Tun

    You can do it yourself without basis help. Follow the following steps.
    From the VA22 go to System -> User Profile -> Own Data
    You will reach a new screen. Select the 3rd view "Parameters"
    Add one more line with Parameter ID as SD_SWU_ACTIVE and parameter value as "X". Save
    Now when you go to any document with VA22. Services for Objects will appear to the left of "CHANGE Quotation  xxxxx : OVERVIEW".
    Award points if its is helpful

  • Where does the Services for Object (GOS) store data?

    I have a requirement that I need to upload a Blocking Reason document for any blocked vendor.
    The normal process we follow for blocking is XK02->Extras-> Blocked Data or XK05.
    We want to check before the Vendor is saved with blocked data whether he/she (who is blocking the vendor) has uploaded the Blocking Reason Document .
    I found out that we have an option in Vendor screen for uploading a document under 'Services for Object' in XK02 as shown in the below (in the red box).
    After uploading the attachment it will show the uploaded document in the Attachment List as shown below.
    I don't know where this entry is stored. I checked in the table SOOD (SAPoffice: Object definition), but there is no entry in there.
    I would like to know on how to check whether the file has been uploaded at the time of saving the vendor.
    If anyone knows the table in which this data is stored, kindly point it out.
    Thank You,
    Sreejith Babu.

    Hi Sreehith,
    Please refer the following document: http://wiki.scn.sap.com/wiki/x/yIEEBQ
    These attachments can be downloaded using FM BDS_GOS_CONNECTIONS_GET
    Refer the following document: Printing or Downloading Service For Object Attachments to local desktop
    Regards,
    Vijay

  • Services for Object (Create , Change, Delete)

    Hi All,
    Is there any sample program where we can create (Change and delete) a note in the services for object for sales order.
    We have requitement where we need to develop a Z program which should have the functionality of changing or creating or deleting the Note from the services for object in sales order. the input parameter will be sales order.
    Thanks.
    Chindam.

    I don't have any sample code
    Please check how this fm called
        CALL FUNCTION 'BDS_CALL_NAVIGATOR'
           EXPORTING
                classname      = 'BUS2037'    " Business object for sales order
                classtype      = 'BO'
                OBJKEY         = L_OBJKEY  " Sales order Number
           TABLES
                EXCLUDING      = i_excluding
           EXCEPTIONS
                INTERNAL_ERROR = 1
                OTHERS         = 2

  • Send Smartform and Attachments from "Services for Object" in one Mail

    Dear all,
    We create a sales activity with transaction VC01n. We create a Smartform formluar and send the sales activity via E-Mail to the customer, this is working. Additionally we have some attachments in "Services for object".
    How is it possible to send the formular and the attachments in one mail to the customer?
    Thank you
    Michael

    Hi,
    Unfortunaltly there is no standard solution to send forms and attachement in a mail.
    you have to develop it .
    If you need more help tell me .
    regards

  • How to disable the Services for Object in IW32?

    Hi Experts,
    May i know how to deactivate the create and delete attachment option if the status of the order in IW32 is already TECO? Please help

    I have found my own answer.  If your user type is setup as 'Service', you will not be have the "Services for Object" icon on IQS23.   If you need the icon to perform the that service, you must change the user type to Dialog from Logon Data.

  • Accessing attachments from 'services for object'

    I have been tasked with extracting data from external attachments from the 'services for object' button. I am working in an sap ecc 6.0  environment. I have not found any tips on how to do this from google searches.
    Here is an example. If you look at most of the major documents (purchase order, invoice, delivery, etc.) there will be a little dropdown icon in the upper left corner of the screen
    That icon is the 'Services for Object' button. Clicking on it will display a small popup window with several options including one for attached documents.
    If an attachment (could be word, excel, pdf, URL, etc.) exists it will show up and can be viewed by double clicking on it. Does anyone know how to access
    that attachment programatically?
    Thank you very much in advance.
    deepak

    Hi,
    Create a subroutine in your program and call the FM: SWU_OBJECT_PUBLISH as below:
    CALL FUNCTION 'SWU_OBJECT_PUBLISH'
        EXPORTING
          objtype           = gc_businessobj
          objkey            = gw_header-vbeln
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
    This will automatically display your Services for Object ICON on your report. Here in the FM, gc_businessobj is a global business object = BUS2031(defined as a constant inside the pgm) and gw_header-vbeln can be any valid document no like a sale order, inquiry, quotation etc.
    Use this code snippet and this will work.
    Regards,
    JLN

  • Need to find table for dispute case attachments in service for objects

    Hi All,
    I have a requirement where i need to find some tables which will hold details of dispute case attachments. After a dispute case is created using UDM_DISPUTE transaction, the concerned person may open that dispute case and can attach some documents/any attachments using services for objects icon at the top left corner of the screen. All i want to know is, in which table (tables related to service object) this attachment details will be stored. Even if the attachments details are stored in service objects related tables, there should be some link for this attachment and dispute case. Please let me know if any of you have some pointers and it would be highly appreciated.
    Thanks in advance,
    Srilakshmi.

    Hi a®s,
    Thanks for your reply. An entry is getting created in this table SRGBTBREL whenever an attachment/URL/notes is attached to a dispute case using services for object and the link between this table and dispute case table SCMG_T_CASE_ATTR is INSTID_A. This field holds the value of CASE GUID from SCMG_T_CASE_ATTR. Now my requirement is whenever an attachment is present in a dispute case i need to set a customized checkbox present in UDM_DISPUTE screen so that when an user opens the dispute case he/she can understand some attachment is present for this case by seeing the checkbox. I found the SCMG* badi's are not helpful to set the checkbox. Please let me know if you have any idea on how to implement it.
    Thanks in advance,
    Srilakshmi.

  • Retrieval of attachments with services for object in ME22n or ME23n

    Hello experts,
    I have a MM requirement where the user attaches some document in ME22n or ME23n via services for object functionality to a particular PO. Here the user wants to attach this document during sending of mail with ME9F to the vendor. First of all is it possible with the standard functionality of ME9F? or Requires some Zdevelopment. Anyone can guide me how to extract the attachment and send it with mail, does it require some configuration from functional side? I searched the forums but did not find the ways to extract.
    Thanks in advance
    Regards
    Raj (SAP ABAP)

    Hi Raj,
    Did you find a way to extract the attachment?

  • How to control button "services for object" which appears in cv01/02/03

    Hi Gurus,
    In tx cv01/02/03, I get a button at the top of the window called "services for object", which gives me options as ....
      Create------(attachment/note/external document/Store business documents)
      Attachment List
      Private note
      Send (Send object with note/Object outbox)
      Relationships
      Workflow
      My objects
      Help for object services
    With the help of this button I can even attach documents in CV03 tx. through create attchment.
    Can we control appearance of this button according to the transactions?? e.g. in CV01 and CV02 it should appear, but in CV03 it should not allow to create further attachments.....
    Thanks in adavnce!
    Regards,
    Akshay

    Thanks a ton Benakaraj !!
    I am working on it...... will let you know the outcome....
    I am just not clear abiout where to insert the sodes given in the pdf   ???  pLease let me know.
    Thanks a lot,
    Akshay
    Edited by: Akshay Kurhe on Jun 5, 2009 11:17 AM

  • Attachments to Notifications - using "Services for Object"

    Hi All,
    I have sucessfully created a VC application (7.0 sp13) to create a General Notification in R/3
    using the BAPI -  IQS4_CREATE_NOTIFICATION
    Our users in R/3 4.7 use the button in the Top Left Hand corner of the Screen "Services for Object"
    to attach MS Word documents to Notifcations. Using the Create Attachment option from the Services for Object toolbar that pops up when the button is clicked.
    Has anyone else tried this or have any advice on how this can be done in VC - if you can recommend a BAPI that I can try or will this be a custom ABAP BAPI.
    Thanks in advance for any advice you can offer.
    - Robert

    FUNCTION z_pm_attachment_and_url.
    *"*"Interface local:
    *"  IMPORTING
    *"     VALUE(I_QMNUM) TYPE  QMNUM OPTIONAL
    *"     VALUE(I_AUFNR) TYPE  AUFNR OPTIONAL
    *"     VALUE(I_URL) TYPE  SO_URL OPTIONAL
    *"     VALUE(I_FILE) TYPE  ZPMCT002 OPTIONAL
    *"     VALUE(I_FILENAME) TYPE  STRING OPTIONAL
    *"  TABLES
    *"      T_RETURN STRUCTURE  BAPIRET2
    * Objetos locais
      DATA:
        vl_url         TYPE so_url,
        vl_path        TYPE string,                             "#EC NEEDED
        vl_loopc       TYPE sy-loopc,
        vl_lines       TYPE sy-loopc,
        vl_filename    TYPE string,
        vl_filelength  TYPE i,
        it_url         TYPE STANDARD TABLE OF sood-objdes,
        it_obj_cont    TYPE STANDARD TABLE OF solix,
        wa_obj         TYPE borident,
        wa_obj_cont    TYPE soli,
        wa_obj_data    TYPE sood1,
        wa_folder_id   TYPE soodk,
        wa_document_id TYPE sofmk.
      DEFINE valida_retorno.
        loop at t_return into t_return.
          if t_return-type eq zgtpm_e.
            exit.
          endif.
        endloop.
        if t_return-type eq zgtpm_e.
          exit.
        endif.
      END-OF-DEFINITION.
    * === Valida parâmetros de entrada
      IF i_qmnum IS INITIAL AND i_aufnr IS INITIAL.
    *   Nenhum objeto informado: Informe Nota ou Ordem de Manutenção
        PERFORM mensagem_retorno_tab
        USING
          'ZPM_PORTAL' zgtpm_e '055' '' '' '' ''
        CHANGING
          t_return[].
        EXIT.
      ELSEIF NOT i_qmnum IS INITIAL AND NOT i_aufnr IS INITIAL.
    *   Informe apenas um objeto: Nota ou Ordem de Manutenção
        PERFORM mensagem_retorno_tab
        USING
          'ZPM_PORTAL' zgtpm_e '054' '' '' '' ''
        CHANGING
          t_return[].
        EXIT.
      ENDIF.
      IF  i_url IS INITIAL
      AND i_filename IS INITIAL.
    *   Informe Anexo e/ou URL
        PERFORM mensagem_retorno_tab
        USING
          'ZPM_PORTAL' zgtpm_e '060' '' '' '' ''
        CHANGING
          t_return[].
        EXIT.
      ENDIF.
    * === Define Categoria de objeto
      IF NOT i_qmnum IS INITIAL.
        wa_obj-objkey  = i_qmnum.
        wa_obj-objtype = 'BUS2038'. " Nota PM
      ENDIF.
      IF NOT i_aufnr IS INITIAL.
        wa_obj-objkey  = i_aufnr.
        wa_obj-objtype = 'BUS2007'. " Ordem de manutenção
      ENDIF.
    * === Anexo
      IF NOT i_filename IS INITIAL.
    *   Conteúdo do arquivo
        IF NOT i_file[] IS INITIAL.
          it_obj_cont[] = i_file[].
          DESCRIBE TABLE it_obj_cont LINES vl_lines.
          READ TABLE it_obj_cont INTO wa_obj_cont INDEX vl_lines.
          vl_filelength =
            ( 255 * ( vl_lines - 1 ) ) + STRLEN( wa_obj_cont ).
        ELSE.
          CALL FUNCTION 'GUI_UPLOAD'
               EXPORTING
                    filename                = i_filename
                    filetype                = 'BIN'
               IMPORTING
                    filelength              = vl_filelength
               TABLES
                    data_tab                = it_obj_cont
               EXCEPTIONS
                    file_open_error         = 1
                    file_read_error         = 2
                    no_batch                = 3
                    gui_refuse_filetransfer = 4
                    invalid_type            = 5
                    no_authority            = 6
                    unknown_error           = 7
                    bad_data_format         = 8
                    header_not_allowed      = 9
                    separator_not_allowed   = 10
                    header_too_long         = 11
                    unknown_dp_error        = 12
                    access_denied           = 13
                    dp_out_of_memory        = 14
                    disk_full               = 15
                    dp_timeout              = 16
                    OTHERS                  = 17.
          IF sy-subrc <> 0.
            PERFORM mensagem_retorno_tab
            USING
             sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
            CHANGING
              t_return[].
            EXIT.
          ENDIF.
        ENDIF.
    *   Pasta de Destino
        PERFORM get_folder CHANGING wa_folder_id t_return[].
        valida_retorno.
    *   SAPoffice: definição do objeto, modificar atributos
        wa_obj_data-objla  = sy-langu.      " Idioma
        wa_obj_data-objsns = 'O'.           " Objeto confidencial
        wa_obj_data-objlen = vl_filelength. " Tamanho conteúdo documento
        wa_obj_data-ownnam = sy-uname.      " Nome proprietário
        CALL METHOD cl_report_viewer=>split_path_filename
        EXPORTING
          i_filename = i_filename
        IMPORTING
          e_path     = vl_path
          e_filename = vl_filename.
        SPLIT vl_filename AT '.' INTO
          wa_obj_data-objdes    " Descrição breve do conteúdo
          wa_obj_data-file_ext. " Extensão de file de uma aplicação PC
        CONDENSE wa_obj_data-file_ext NO-GAPS.
    *   Insere Objeto (Anexo)
        PERFORM object_insert
        USING
          'EXT' " Anexo
          wa_obj_data
          wa_folder_id
          it_obj_cont
        CHANGING
          wa_document_id
          t_return[].
        valida_retorno.
    *   Relacionamento Objeto PM x Anexo
        PERFORM relation_create
        USING
          'ATTA'
          wa_obj
          wa_document_id
        CHANGING
          t_return[].
        valida_retorno.
      ENDIF.
    * === URL
      IF NOT i_url IS INITIAL.
    *   Inicializa estruturas comuns a Anexo e URL
        CLEAR:
          it_obj_cont,
          wa_obj_cont,
          wa_obj_data,
          wa_folder_id,
          wa_document_id.
    *   Conteúdo da URL
        MOVE i_url TO vl_url.
        WHILE NOT vl_url IS INITIAL.
          CONCATENATE '&KEY&' vl_url(250) INTO wa_obj_cont.
          APPEND wa_obj_cont TO it_obj_cont.
          SHIFT vl_url LEFT BY 250 PLACES.
        ENDWHILE.
    *   Pasta de Destino
        PERFORM get_folder CHANGING wa_folder_id t_return[].
        valida_retorno.
    *   SAPoffice: definição do objeto, modificar atributos
        wa_obj_data-objla  = sy-langu. " Idioma
        wa_obj_data-objsns = 'O'.      " Objeto confidencial
        wa_obj_data-ownnam = sy-uname. " Nome proprietário
        SPLIT i_url AT '/' INTO TABLE it_url.
        DESCRIBE TABLE it_url LINES vl_loopc.
        READ TABLE it_url INDEX vl_loopc
        INTO wa_obj_data-objdes. " Descrição breve do conteúdo
    *   Insere Objeto (URL)
        PERFORM object_insert
        USING
          'URL'  " Link Inter/Intranet
          wa_obj_data
          wa_folder_id
          it_obj_cont
        CHANGING
          wa_document_id
          t_return[].
        valida_retorno.
    *   Relacionamento Objeto PM x URL
        PERFORM relation_create
        USING
          'URL'
          wa_obj
          wa_document_id
        CHANGING
          t_return[].
        valida_retorno.
      ENDIF.
    * === Libera objetos locais
      FREE:
        vl_url,
        vl_path,
        vl_loopc,
        vl_lines,
        vl_filename,
        vl_filelength,
        it_url,
        it_obj_cont,
        wa_obj,
        wa_obj_cont,
        wa_obj_data,
        wa_folder_id,
        wa_document_id.
    ENDFUNCTION.
    ***INCLUDE LZGPM0010F01 .
    *&      Form  mensagem_retorno_tab
      FORM mensagem_retorno_tab
      USING
        p_msgid TYPE symsgid
        p_msgty TYPE symsgty
        p_msgno TYPE symsgno
        p_msgv1 TYPE any
        p_msgv2 TYPE any
        p_msgv3 TYPE any
        p_msgv4 TYPE any
      CHANGING
        t_return TYPE ty_return.
        DATA:
          vl_msgty  TYPE symsgty,
          wa_return LIKE LINE OF t_return.
        IF p_msgty IS INITIAL.
          MOVE zgtpm_e TO vl_msgty.
        ELSE.
          MOVE p_msgty TO vl_msgty.
        ENDIF.
        IF p_msgno IS INITIAL.
          EXIT.
        ENDIF.
        MOVE p_msgid  TO wa_return-id.
        MOVE vl_msgty TO wa_return-type.
        MOVE p_msgno  TO wa_return-number.
        MOVE p_msgv1  TO wa_return-message_v1.
        MOVE p_msgv2  TO wa_return-message_v2.
        MOVE p_msgv3  TO wa_return-message_v3.
        MOVE p_msgv4  TO wa_return-message_v4.
        MESSAGE ID p_msgid TYPE vl_msgty NUMBER p_msgno
        WITH p_msgv1 p_msgv2 p_msgv3 p_msgv4
        INTO wa_return-message.
        APPEND wa_return TO t_return.
        FREE: vl_msgty, wa_return.
      ENDFORM.                    " mensagem_retorno_tab
    *&      Form  get_folder
      FORM get_folder
      CHANGING
        w_folder_id TYPE soodk
        t_return TYPE ty_return.
        CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
             EXPORTING
                  region    = 'B'  " ?
             IMPORTING
                  folder_id = w_folder_id
             EXCEPTIONS
                  OTHERS    = 1.
        IF sy-subrc <> 0.
          PERFORM mensagem_retorno_tab
          USING
           sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
          CHANGING
            t_return[].
        ENDIF.
      ENDFORM.                    " get_folder
    *&      Form  object_insert
      FORM object_insert USING
        p_objtp     TYPE so_obj_tp
        w_obj_data  TYPE sood1
        w_folder_id TYPE soodk
        t_obj_cont  TYPE zpmct002
      CHANGING
        w_document_id TYPE sofmk
        t_return      TYPE ty_return.
    *   Objetos locais
        DATA:
          it_objcont  TYPE STANDARD TABLE OF soli,
          it_obj_head TYPE STANDARD TABLE OF soli,
          wa_obj_id   TYPE soodk,
          wa_obj_cont LIKE LINE OF t_obj_cont.
    *   RAW to CHAR
        LOOP AT t_obj_cont INTO wa_obj_cont.
          APPEND wa_obj_cont TO it_objcont.
          CLEAR wa_obj_cont.
        ENDLOOP.
    *   Insere objeto
        CALL FUNCTION 'SO_OBJECT_INSERT'
             EXPORTING
                  folder_id                  = w_folder_id
                  object_type                = p_objtp
                  object_hd_change           = w_obj_data
                  owner                      = sy-uname
             IMPORTING
                  object_id                  = wa_obj_id
             TABLES
                  objhead                    = it_obj_head
                  objcont                    = it_objcont
             EXCEPTIONS
                  active_user_not_exist      = 1
                  communication_failure      = 2
                  component_not_available    = 3
                  dl_name_exist              = 4
                  folder_not_exist           = 5
                  folder_no_authorization    = 6
                  object_type_not_exist      = 7
                  operation_no_authorization = 8
                  owner_not_exist            = 9
                  parameter_error            = 10
                  substitute_not_active      = 11
                  substitute_not_defined     = 12
                  system_failure             = 13
                  x_error                    = 14
                  OTHERS                     = 15.
        IF sy-subrc = 0.
          w_document_id-foltp = w_folder_id-objtp.
          w_document_id-folyr = w_folder_id-objyr.
          w_document_id-folno = w_folder_id-objno.
          w_document_id-doctp = wa_obj_id-objtp.
          w_document_id-docyr = wa_obj_id-objyr.
          w_document_id-docno = wa_obj_id-objno.
        ELSE.
          PERFORM mensagem_retorno_tab
          USING
           sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
          CHANGING
            t_return[].
        ENDIF.
    *   Libera objetos locais
        FREE:it_objcont, it_obj_head, wa_obj_id, wa_obj_cont.
      ENDFORM.                    " object_insert
    *&      Form  relation_create
      FORM relation_create
      USING
        p_relationtype TYPE binreltyp
        w_obj          TYPE borident
        w_document_id  TYPE sofmk
      CHANGING
        t_return TYPE ty_return.
        DATA wa_doc TYPE borident.
        wa_doc-objtype = 'MESSAGE'.
        CASE p_relationtype.
          WHEN 'ATTA'.
            wa_doc-objkey  = w_document_id(34).
          WHEN 'URL'.
            wa_doc-objkey  = w_document_id.
          WHEN OTHERS.
        ENDCASE.
        CALL FUNCTION 'BINARY_RELATION_CREATE'
             EXPORTING
                  obj_rolea      = w_obj
                  obj_roleb      = wa_doc
                  relationtype   = p_relationtype
             EXCEPTIONS
                  no_model       = 1
                  internal_error = 2
                  unknown        = 3
                  OTHERS         = 4.
        IF sy-subrc = 0.
          COMMIT WORK AND WAIT.
          CASE p_relationtype.
            WHEN 'ATTA'.
    *         O anexo foi criado com êxito
              PERFORM mensagem_retorno_tab
              USING
                'SGOS_MSG' zgtpm_s '043' '' '' '' ''
              CHANGING
                t_return[].
            WHEN 'URL'.
    *         A URL foi criada com êxito
              PERFORM mensagem_retorno_tab
              USING
                'ZPM_PORTAL' zgtpm_s '059' '' '' '' ''
              CHANGING
                t_return[].
            WHEN OTHERS.
          ENDCASE.
        ELSE.
          PERFORM mensagem_retorno_tab
          USING
           sy-msgid sy-msgty sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
          CHANGING
            t_return[].
        ENDIF.
        FREE wa_doc.
      ENDFORM.                    " relation_create
    Edited by: Fabrício Alves Vieira on Apr 8, 2008 3:08 PM

  • Services for Object: attached documents/ links cannot be deleted

    Dear SAPfriends,
    The deletion button at the attachment list of "Services for Object" does not work. Eventhough it seems that the documents/ links/ notes have been removed from the object (i.e. Purchase order, material etc), when you exit and re-enter at the attachment list the documents are still there.
    I tried to delete them from OAER, still the same.
    Any ideas?
    Yr help will be very valuable.
    Kind Regards,
    Elly Leondi

    Hello Mauro,
    Thanks for yr reply.
    That was the problem.
    Thanks again.
    Regards,
    Elly

Maybe you are looking for

  • I have a domain with 2 DCs (both virtual machines) in different Hyper-V Hosts. Dose this case make any influence on the time sync?

    As title, I have a domain with 2 DCs (both virtual machines) in 2 different Hyper-V Hosts, and one of the perform as a PDC Emulator. Dose this case make any influence on the time sync? i.e. Both of the VMs sync with Hyper-V host, instead the other ho

  • Accounting Documents

    Hi Guru's, After Billing, two Accounting documents will be generated. Where do we configure for these documents to be generated and how? Som times only one Accounting document is getting generated And the other document is not getting generated. Why?

  • SDI interface for Mac to connect to SE-800DV

    I have three MacBook Pros (all with HDMI out) and a MacPro desktop (two HDMIs). I also own a DataVideo SE-800DV video switcher which allows you to connect a PC to it to overlay graphics for titling, animation, etc. Does anyone have any experience put

  • Problems with recently purchaed Mac Pro

    I have bought a Mac Pro of late and certain Applications that i previously owned (Recycle, Wire tap) do not seem to work when i hit the icon on the toolbar. I did some research and found out that these should work due to "Rosetta" but they do not, i

  • Convert.To​Byte and logical masks, from VB to LabVIEW

    Hi guys, I have to write a VI communicating via RS232 with a microcontroller for a PWM application. A colleague has given me the GUI he has developpd in VB and I would like to integrate it into my LabVIEW programme by converting the VB code into Labv