SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Workflow



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Function Modules | Функциональные модули
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1639

PostPosted: Tue Jun 24, 2008 9:29 pm    Post subject: Workflow Reply with quote

GOS_ATTACHMENT_LIST_POPUP - show attachment list

Code:
  DATA: nf_object    LIKE toaom-sap_object VALUE 'BUS2143'.
  DATA: s_object  LIKE sibflporb.
  DATA: DOCNUM TYPE  J_1BNFDOC-DOCNUM.
  IF NOT docnum IS INITIAL.
    s_object-instid  =   docnum.                       " BOI note 762329
    s_object-typeid  =   nf_object.
    s_object-catid   = 'BO'.

    CALL FUNCTION 'GOS_ATTACHMENT_LIST_POPUP'
       EXPORTING
         is_object             = s_object
*        IP_CHECK_ARL          = 'X'
*        IP_CHECK_BDS          = 'X'
*        IP_NOTES              = 'X'
*        IP_ATTACHMENTS        = 'X'
*        IP_URLS               = 'X'
*        IP_MODE               = 'D'
*      IMPORTING
*        EP_SAVE_REQUEST       =
*      TABLES
*        IT_OBJECTS            =
               .                                       " EOI note 762329
  ENDIF.



Comment by Andrey Markin
Re: Making attachment read only
In system 6.0 you can use FM GOS_ATTACHMENT_LIST_POPUP, for example. The attachments cann't be modified if set FM parameter IP_MODE = 'D' => Display Mode - no database changes (that's write in description for FM).
That's very simple method to give a chance for user to work with GOS attachments.
Also, you can use method DISPLAY_ATTACHMENT of class CL_GOS_DOCUMENT_SERVICE. This method run service "Display" directly and give no chance to edit/delete attachment.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Function Modules | Функциональные модули All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.