SAP Function Modules

SO_WIND_RECEIVER_LIST_PER SAP Function module - Private recipient list







SO_WIND_RECEIVER_LIST_PER is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SO_WIND_RECEIVER_LIST_PER into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SO09
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SO_WIND_RECEIVER_LIST_PER - SO WIND RECEIVER LIST PER





CALL FUNCTION 'SO_WIND_RECEIVER_LIST_PER' "Private recipient list
  EXPORTING
    current_user =              " soud-usrnam   User the list is to be created for
*   multiple_objects = 'X'      " sonv-flag
*   objdes = SPACE              " sood-objdes   Description of the object
*   objnam = SPACE              " sood-objnam   Name of object
*   objno = SPACE               " sood-objno    Number of the object
*   objtp = SPACE               " sood-objtp    Object type
*   objyr = SPACE               " sood-objyr    Year the object was created
*   object = SPACE              " sood4
  IMPORTING
    ok_code =                   " sy-ucomm
* TABLES
*   pers_rec_tab =              " soos5
  EXCEPTIONS
    RECEIVER_LIST_NOT_EXIST = 1  "              No recipient list was created
    USER_NOT_EXIST = 2          "               The user (CURRENT_USER) does not exist
    .  "  SO_WIND_RECEIVER_LIST_PER

ABAP code example for Function Module SO_WIND_RECEIVER_LIST_PER





The ABAP code below is a full code listing to execute function module SO_WIND_RECEIVER_LIST_PER including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_ok_code  TYPE SY-UCOMM ,
it_pers_rec_tab  TYPE STANDARD TABLE OF SOOS5,"TABLES PARAM
wa_pers_rec_tab  LIKE LINE OF it_pers_rec_tab .


SELECT single USRNAM
FROM SOUD
INTO @DATA(ld_current_user).


DATA(ld_multiple_objects) = some text here

SELECT single OBJDES
FROM SOOD
INTO @DATA(ld_objdes).


SELECT single OBJNAM
FROM SOOD
INTO @DATA(ld_objnam).


SELECT single OBJNO
FROM SOOD
INTO @DATA(ld_objno).


SELECT single OBJTP
FROM SOOD
INTO @DATA(ld_objtp).


SELECT single OBJYR
FROM SOOD
INTO @DATA(ld_objyr).

DATA(ld_object) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pers_rec_tab to it_pers_rec_tab. . CALL FUNCTION 'SO_WIND_RECEIVER_LIST_PER' EXPORTING current_user = ld_current_user * multiple_objects = ld_multiple_objects * objdes = ld_objdes * objnam = ld_objnam * objno = ld_objno * objtp = ld_objtp * objyr = ld_objyr * object = ld_object IMPORTING ok_code = ld_ok_code * TABLES * pers_rec_tab = it_pers_rec_tab EXCEPTIONS RECEIVER_LIST_NOT_EXIST = 1 USER_NOT_EXIST = 2 . " SO_WIND_RECEIVER_LIST_PER
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ok_code  TYPE SY-UCOMM ,
ld_current_user  TYPE SOUD-USRNAM ,
it_pers_rec_tab  TYPE STANDARD TABLE OF SOOS5 ,
wa_pers_rec_tab  LIKE LINE OF it_pers_rec_tab,
ld_multiple_objects  TYPE SONV-FLAG ,
ld_objdes  TYPE SOOD-OBJDES ,
ld_objnam  TYPE SOOD-OBJNAM ,
ld_objno  TYPE SOOD-OBJNO ,
ld_objtp  TYPE SOOD-OBJTP ,
ld_objyr  TYPE SOOD-OBJYR ,
ld_object  TYPE SOOD4 .


SELECT single USRNAM
FROM SOUD
INTO ld_current_user.


"populate fields of struture and append to itab
append wa_pers_rec_tab to it_pers_rec_tab.

ld_multiple_objects = some text here

SELECT single OBJDES
FROM SOOD
INTO ld_objdes.


SELECT single OBJNAM
FROM SOOD
INTO ld_objnam.


SELECT single OBJNO
FROM SOOD
INTO ld_objno.


SELECT single OBJTP
FROM SOOD
INTO ld_objtp.


SELECT single OBJYR
FROM SOOD
INTO ld_objyr.

ld_object = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SO_WIND_RECEIVER_LIST_PER or its description.