Skip to Content
-1

SAP GOS SGOS_DOCUMENT_CREATE_DIALOG IS NOT saving the Attachment

Nov 03, 2017 at 10:13 AM

58

avatar image
Former Member

Hi, Guys Need your Help. I want to use SAP GOS(Generic Object Services) to Attach, save and Display the Attachments in my Customized Application.

i want to know how MM02 saves and retrieves the attachments against material number. i want to add same functionality in my program.

I have used

SGOS_DOCUMENT_CREATE_DIALOG this FM to save the Attachment but it does not save the File in SRGBTBREL Table with key field.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Nov 03, 2017 at 12:05 PM
0

Perform some search on class CL_GOS_MANAGER.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 03, 2017 at 02:08 PM
0

Which business object did you use ?

GOS Manager in MM02 uses BUS1001006.

You can set a break point in constructor of CL_GOS_MANAGER.

  DATA:
    ls_object TYPE borident,
    lc_objkey TYPE borident-objkey.


  ls_object-objkey = '100-100'.
  ls_object-objtype = 'BUS1001006'.
  ls_object-logsys = space.
  CALL FUNCTION 'SGOS_DOCUMENT_CREATE_DIALOG'
    EXPORTING
      is_object   = ls_object
      ip_title    = 'SDN'
    IMPORTING
      ep_document = lc_objkey.
  WRITE: / lc_objkey.
  COMMIT WORK.

Method CL_GOS_DOCUMENT_SERVICE->CREATE is a wrapper for FuMo SGOS_DOCUMENT_CREATE_DIALOG.

Share
10 |10000 characters needed characters left characters exceeded