SAP Function Modules

RWIN_CHECK_SUBSET SAP Function module







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

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


Pattern for FM RWIN_CHECK_SUBSET - RWIN CHECK SUBSET





CALL FUNCTION 'RWIN_CHECK_SUBSET' "
  EXPORTING
    i_event =                   " trwpr-event
    i_gjahr =                   " trwca-toyear
    i_process =                 " trwpr-process
*   i_subset = SPACE            " trwprc-subset
*   i_comp_only = SPACE         " trwpr-component
  TABLES
    t_trwpr =                   " trwpr
  EXCEPTIONS
    EVENT_NOT_FOUND = 1         "
    .  "  RWIN_CHECK_SUBSET

ABAP code example for Function Module RWIN_CHECK_SUBSET





The ABAP code below is a full code listing to execute function module RWIN_CHECK_SUBSET 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_t_trwpr  TYPE STANDARD TABLE OF TRWPR,"TABLES PARAM
wa_t_trwpr  LIKE LINE OF it_t_trwpr .


SELECT single EVENT
FROM TRWPR
INTO @DATA(ld_i_event).


SELECT single TOYEAR
FROM TRWCA
INTO @DATA(ld_i_gjahr).


SELECT single PROCESS
FROM TRWPR
INTO @DATA(ld_i_process).


SELECT single SUBSET
FROM TRWPRC
INTO @DATA(ld_i_subset).


SELECT single COMPONENT
FROM TRWPR
INTO @DATA(ld_i_comp_only).


"populate fields of struture and append to itab
append wa_t_trwpr to it_t_trwpr. . CALL FUNCTION 'RWIN_CHECK_SUBSET' EXPORTING i_event = ld_i_event i_gjahr = ld_i_gjahr i_process = ld_i_process * i_subset = ld_i_subset * i_comp_only = ld_i_comp_only TABLES t_trwpr = it_t_trwpr EXCEPTIONS EVENT_NOT_FOUND = 1 . " RWIN_CHECK_SUBSET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_i_event  TYPE TRWPR-EVENT ,
it_t_trwpr  TYPE STANDARD TABLE OF TRWPR ,
wa_t_trwpr  LIKE LINE OF it_t_trwpr,
ld_i_gjahr  TYPE TRWCA-TOYEAR ,
ld_i_process  TYPE TRWPR-PROCESS ,
ld_i_subset  TYPE TRWPRC-SUBSET ,
ld_i_comp_only  TYPE TRWPR-COMPONENT .


SELECT single EVENT
FROM TRWPR
INTO ld_i_event.


"populate fields of struture and append to itab
append wa_t_trwpr to it_t_trwpr.

SELECT single TOYEAR
FROM TRWCA
INTO ld_i_gjahr.


SELECT single PROCESS
FROM TRWPR
INTO ld_i_process.


SELECT single SUBSET
FROM TRWPRC
INTO ld_i_subset.


SELECT single COMPONENT
FROM TRWPR
INTO ld_i_comp_only.

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