2010 Apr 15 1:01 PM
Hello,
How to pull users from the distribution list maintained in the SAP Business workplace through an ABAP program.
Rgds.
2010 Apr 15 1:08 PM
Use FM SO_DLI_READ_API1...........
2010 Apr 15 1:08 PM
2010 Apr 15 1:28 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |