SAP Function Modules

SO_WIND_RECEIVER_SELECT SAP Function module - SAPoffice: Selection of different receiver







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

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


Pattern for FM SO_WIND_RECEIVER_SELECT - SO WIND RECEIVER SELECT





CALL FUNCTION 'SO_WIND_RECEIVER_SELECT' "SAPoffice: Selection of different receiver
* EXPORTING
*   default_rectype = SPACE     "               Default value of recipient type
*   extern_call = SPACE         "
*   no_address_select = SPACE   "               No address is to be selected
*   no_dli_select = SPACE       "               No recipient list is to be selected
*   no_user_select = SPACE      "               SAPoffice user is not to be selected
*   respons_user = SPACE        " soud-usrnam
*   no_x500_select = 'X'        "
*   no_object_select = 'X'      "
*   single_selection = SPACE    " sonv-flag
*   no_org_select = 'X'         "               No recipient list is to be selected
*   no_edi_select = 'X'         "
*   prof =                      " soprd
*   no_new_x400_address = 'X'   "               No new X.400 address is to be created
*   no_new_internet_address = 'X'  "
*   no_new_fax_address = 'X'    "
*   no_new_rml_address = 'X'    "
*   no_authority_check = SPACE  " sonv-flag
*   allow_generic_entry = SPACE  " sonv-flag
*   no_commtype_check = SPACE   " sonv-flag
  TABLES
    selection_tab =             " soos1         Table of the selected entries
  EXCEPTIONS
    PARAMETER_ERROR = 1         "               incorrect parameters transferred
    X_ERROR = 2                 "               internal error occurred
    .  "  SO_WIND_RECEIVER_SELECT

ABAP code example for Function Module SO_WIND_RECEIVER_SELECT





The ABAP code below is a full code listing to execute function module SO_WIND_RECEIVER_SELECT 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:
it_selection_tab  TYPE STANDARD TABLE OF SOOS1,"TABLES PARAM
wa_selection_tab  LIKE LINE OF it_selection_tab .

DATA(ld_default_rectype) = 'some text here'.
DATA(ld_extern_call) = 'some text here'.
DATA(ld_no_address_select) = 'some text here'.
DATA(ld_no_dli_select) = 'some text here'.
DATA(ld_no_user_select) = 'some text here'.

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

DATA(ld_no_x500_select) = 'some text here'.
DATA(ld_no_object_select) = 'some text here'.

DATA(ld_single_selection) = some text here
DATA(ld_no_org_select) = 'some text here'.
DATA(ld_no_edi_select) = 'some text here'.
DATA(ld_prof) = 'Check type of data required'.
DATA(ld_no_new_x400_address) = 'some text here'.
DATA(ld_no_new_internet_address) = 'some text here'.
DATA(ld_no_new_fax_address) = 'some text here'.
DATA(ld_no_new_rml_address) = 'some text here'.

DATA(ld_no_authority_check) = some text here

DATA(ld_allow_generic_entry) = some text here

DATA(ld_no_commtype_check) = some text here

"populate fields of struture and append to itab
append wa_selection_tab to it_selection_tab. . CALL FUNCTION 'SO_WIND_RECEIVER_SELECT' * EXPORTING * default_rectype = ld_default_rectype * extern_call = ld_extern_call * no_address_select = ld_no_address_select * no_dli_select = ld_no_dli_select * no_user_select = ld_no_user_select * respons_user = ld_respons_user * no_x500_select = ld_no_x500_select * no_object_select = ld_no_object_select * single_selection = ld_single_selection * no_org_select = ld_no_org_select * no_edi_select = ld_no_edi_select * prof = ld_prof * no_new_x400_address = ld_no_new_x400_address * no_new_internet_address = ld_no_new_internet_address * no_new_fax_address = ld_no_new_fax_address * no_new_rml_address = ld_no_new_rml_address * no_authority_check = ld_no_authority_check * allow_generic_entry = ld_allow_generic_entry * no_commtype_check = ld_no_commtype_check TABLES selection_tab = it_selection_tab EXCEPTIONS PARAMETER_ERROR = 1 X_ERROR = 2 . " SO_WIND_RECEIVER_SELECT
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_default_rectype  TYPE STRING ,
it_selection_tab  TYPE STANDARD TABLE OF SOOS1 ,
wa_selection_tab  LIKE LINE OF it_selection_tab,
ld_extern_call  TYPE STRING ,
ld_no_address_select  TYPE STRING ,
ld_no_dli_select  TYPE STRING ,
ld_no_user_select  TYPE STRING ,
ld_respons_user  TYPE SOUD-USRNAM ,
ld_no_x500_select  TYPE STRING ,
ld_no_object_select  TYPE STRING ,
ld_single_selection  TYPE SONV-FLAG ,
ld_no_org_select  TYPE STRING ,
ld_no_edi_select  TYPE STRING ,
ld_prof  TYPE SOPRD ,
ld_no_new_x400_address  TYPE STRING ,
ld_no_new_internet_address  TYPE STRING ,
ld_no_new_fax_address  TYPE STRING ,
ld_no_new_rml_address  TYPE STRING ,
ld_no_authority_check  TYPE SONV-FLAG ,
ld_allow_generic_entry  TYPE SONV-FLAG ,
ld_no_commtype_check  TYPE SONV-FLAG .

ld_default_rectype = 'some text here'.

"populate fields of struture and append to itab
append wa_selection_tab to it_selection_tab.
ld_extern_call = 'some text here'.
ld_no_address_select = 'some text here'.
ld_no_dli_select = 'some text here'.
ld_no_user_select = 'some text here'.

SELECT single USRNAM
FROM SOUD
INTO ld_respons_user.

ld_no_x500_select = 'some text here'.
ld_no_object_select = 'some text here'.

ld_single_selection = some text here
ld_no_org_select = 'some text here'.
ld_no_edi_select = 'some text here'.
ld_prof = 'Check type of data required'.
ld_no_new_x400_address = 'some text here'.
ld_no_new_internet_address = 'some text here'.
ld_no_new_fax_address = 'some text here'.
ld_no_new_rml_address = 'some text here'.

ld_no_authority_check = some text here

ld_allow_generic_entry = some text here

ld_no_commtype_check = some text here

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_SELECT or its description.