SAP Function Modules

STW_INVITE_PARTICIPANTS SAP Function module - StreamWork: Invite Participants to a StreamWork Activity







STW_INVITE_PARTICIPANTS 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 STW_INVITE_PARTICIPANTS into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM STW_INVITE_PARTICIPANTS - STW INVITE PARTICIPANTS





CALL FUNCTION 'STW_INVITE_PARTICIPANTS' "StreamWork: Invite Participants to a StreamWork Activity
  EXPORTING
*   iv_application_id = 'SAIL'  " clb_application_id  Collaboration: Application ID
    iv_activity_id =            " stw_activity_id  StreamWork Activity ID
  IMPORTING
    et_message =                " stw_t_bapiret2  Return parameter table
    ev_result_code =            " sy-subrc      Return Value of ABAP Statements
  CHANGING
    ct_participants =           " stw_t_user_invitation  List of User Identifications for Logon to StreamWork
    .  "  STW_INVITE_PARTICIPANTS

ABAP code example for Function Module STW_INVITE_PARTICIPANTS





The ABAP code below is a full code listing to execute function module STW_INVITE_PARTICIPANTS 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_et_message  TYPE STW_T_BAPIRET2 ,
ld_ev_result_code  TYPE SY-SUBRC .

DATA(ld_ct_participants) = 'Check type of data required'.
DATA(ld_iv_application_id) = 'Check type of data required'.
DATA(ld_iv_activity_id) = 'Check type of data required'. . CALL FUNCTION 'STW_INVITE_PARTICIPANTS' EXPORTING * iv_application_id = ld_iv_application_id iv_activity_id = ld_iv_activity_id IMPORTING et_message = ld_et_message ev_result_code = ld_ev_result_code CHANGING ct_participants = ld_ct_participants . " STW_INVITE_PARTICIPANTS
IF SY-SUBRC EQ 0. "All OK 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_ct_participants  TYPE STW_T_USER_INVITATION ,
ld_et_message  TYPE STW_T_BAPIRET2 ,
ld_iv_application_id  TYPE CLB_APPLICATION_ID ,
ld_ev_result_code  TYPE SY-SUBRC ,
ld_iv_activity_id  TYPE STW_ACTIVITY_ID .

ld_ct_participants = 'Check type of data required'.
ld_iv_application_id = 'Check type of data required'.
ld_iv_activity_id = '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 STW_INVITE_PARTICIPANTS or its description.