Skip to content

Instantly share code, notes, and snippets.

@larshp
Created September 21, 2016 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larshp/35e1cd631392bd9cd753c985aa3b4749 to your computer and use it in GitHub Desktop.
Save larshp/35e1cd631392bd9cd753c985aa3b4749 to your computer and use it in GitHub Desktop.
* try avoiding using class cl_distributionlist_bcs
* it causes strange dumps in concurrent situations
* instead do it "old style":
CALL FUNCTION 'SO_DLI_READ'
EXPORTING
distributionlist = iv_distlist
system_dli = abap_true
TABLES
member = lt_member
objpara = lt_objpara
objparb = lt_objparb
EXCEPTIONS
active_user_not_exist = 1
communication_failure = 2
component_not_available = 3
dl_name_not_exist = 4
folder_not_exist = 5
folder_no_authorization = 6
forwarder_not_exist = 7
object_not_exist = 8
object_no_authorization = 9
operation_no_authorization = 10
owner_not_exist = 11
parameter_error = 12
substitute_not_active = 13
substitute_not_defined = 14
system_failure = 15
user_not_exist = 16
x_error = 17
OTHERS = 18.
IF sy-subrc <> 0 OR lt_member[] IS INITIAL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment