Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Users from Distribution list

Former Member
0 Likes
1,562

Hello,

How to pull users from the distribution list maintained in the SAP Business workplace through an ABAP program.

Rgds.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,388

Use FM SO_DLI_READ_API1...........

Hello,

How to pull users from the distribution list maintained in the SAP Business workplace through an ABAP program.

Rgds.

2 REPLIES 2
Read only

Former Member
0 Likes
1,389

Use FM SO_DLI_READ_API1...........

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,388


parameters:pa_name type so_obj_nam.

DATA: i_entries TYPE TABLE OF sodlienti1.
DATA:wa_entries TYPE sodlienti1.
DATA: wa_dli_data TYPE sodlidati1.
DATA: wf_dli_name TYPE so_obj_nam.

CALL FUNCTION 'SO_DLI_READ_API1'
  EXPORTING
    dli_name                   = pa_name "000000151026
    shared_dli                 = 'X'
  IMPORTING
    dli_data                   = wa_dli_data
  TABLES
    dli_entries                = i_entries[]
  EXCEPTIONS
    dli_not_exist              = 1
    operation_no_authorization = 2.
IF sy-subrc = 1.
  WRITE: / 'Subscription list does not exist !'.
  EXIT.
ELSEIF sy-subrc = 2.
  WRITE: / 'No authorization'.
  EXIT.
ENDIF.

LOOP AT i_entries INTO wa_entries.
  WRITE: / wa_entries-full_name.
ENDLOOP.