This website is not affiliated with, sponsored by, or approved by SAP AG.

How to determine that GOS-attachment take place?

Business WorkFlow

Moderators: Snowy, thx4allthefish

How to determine that GOS-attachment take place?

Postby troy » Wed Jul 29, 2009 10:19 am

Hi all!

I'm wondering how can I determine that user is really attached something in GOS, if COMMIT was not performed. Example:
Code: Select all
  ls_gobject-objtype = ...
  CREATE OBJECT go_gos_manager
      EXPORTING
        ip_no_commit   = 'X' "attachments should only be saved by own commits
    EXCEPTIONS
      OTHERS = 1.
    CALL METHOD go_gos_manager->start_service_direct
      EXPORTING
        ip_service   = 'PCATTA_CREA'
        is_object    = ls_gobject
      EXCEPTIONS
        OTHERS       = 1.


i.e. user open document in edit mode, call attachment window and make some operations... (but does not really import any file). I must decide: is there attachments or not? The important thing is that document can be not saved yet (create transaction), so we can't pass parameter ip_no_commit=space and analyze GOS tables after METHOD call...
troy
 
Posts: 66
Joined: Wed Mar 29, 2006 10:36 am

Re: How to determine that GOS-attachment take place?

Postby troy » Thu Jul 30, 2009 8:55 am

OK, now I can get actual list of attachments before COMMIT with the following code:
Code: Select all
cl_binary_relation=>read_links_of_binrel(
  EXPORTING
    is_object    = ls_sibflporb
    ip_role      = 'GOSAPPLOBJ'
*    ip_no_buffer = 'X'
    ip_no_buffer = SPACE
  IMPORTING
    et_links     = et_links[] ).


But how can I get a list of attachments that are stored in database (to compare with actual)??
Parameter "ip_no_buffer" in method above is no use (((
troy
 
Posts: 66
Joined: Wed Mar 29, 2006 10:36 am


Return to Business WorkFlow

Who is online

Users browsing this forum: No registered users and 4 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.