Create/Edit/Delete Attachments using GOS in Sap ABAP

Describe step by step of Create/Edit/Delete Attachments using GOS in Sap ABAP :

Implented abap code here :
DATA : is_object TYPE sibflporb,
       ip_mode TYPE char1,
       ip_edit TYPE char1.
    ip_mode = 'D'. “ for display purpose
    ip_mode = 'C'. “ for create/edit purpose
           is_object-instid =  “must be unique no it may seles order number
          is_object-typeid = “must be unique no it may seles order number
          is_object-catid = 'BO'.
          IF  is_object IS NOT INITIAL.
            CALL FUNCTION 'GOS_ATTACHMENT_LIST_POPUP'
              EXPORTING
                is_object             = is_object
               ip_check_arl          = 'X'
               ip_check_bds          = 'X'
               ip_notes              = 'X'
               ip_attachments        = 'X'
               ip_urls               = 'X'
               ip_mode               = ip_mode
*            IMPORTING
*              EP_SAVE_REQUEST       =
*            TABLES
*              IT_OBJECTS            =
                      .
Endif.
Screen shots are given below :

When run this code, at first this screen will be show :


Then click on new :
You can create attached/note/external url 


If you click on attachment ,this screen will be show :
Finally create attachment sucessfully.


If you click on create note, this screen will be show. You can create note.







Comments

Popular posts from this blog

Create BP and Customer Using ABAP in SAP

Create Secondary Index on SAP Table