SAP Function Modules

RH_INBOX_VIEW_CREATE SAP Function module - OrgManagement: Create Organizational and Task Assignments from Inbox Vie







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

Associated Function Group: RHW1
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM RH_INBOX_VIEW_CREATE - RH INBOX VIEW CREATE





CALL FUNCTION 'RH_INBOX_VIEW_CREATE' "OrgManagement: Create Organizational and Task Assignments from Inbox View
* EXPORTING
*   search_date = SY-DATUM      " sy-datum      Date for which data is read
*   read_object_text =          " hrpp0c-test
*   no_wi_selection =           " hrpp0c-test
*   no_header_selection =       " hrpp0c-test
*   inbox_user = SY-UNAME       " actorid
*   iv_do_commit = 'X'          " xflag
* TABLES
*   inbox_view =                " hrwfuser_v
*   wi_head =                   " swwwlhead
*   wi_status =                 " pdwistat
*   task_filter =               " rhobjects
  EXCEPTIONS
    NO_ACTIVE_PLVAR = 1         "               Active plan version not defined
    NO_TASKS_FOUND = 2          "               User does not have any tasks
    USER_NOT_DEFINED = 3        "               Invalid SAP user ID!
    NO_WORKITEM_FOUND = 4       "
    .  "  RH_INBOX_VIEW_CREATE

ABAP code example for Function Module RH_INBOX_VIEW_CREATE





The ABAP code below is a full code listing to execute function module RH_INBOX_VIEW_CREATE 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_inbox_view  TYPE STANDARD TABLE OF HRWFUSER_V,"TABLES PARAM
wa_inbox_view  LIKE LINE OF it_inbox_view ,
it_wi_head  TYPE STANDARD TABLE OF SWWWLHEAD,"TABLES PARAM
wa_wi_head  LIKE LINE OF it_wi_head ,
it_wi_status  TYPE STANDARD TABLE OF PDWISTAT,"TABLES PARAM
wa_wi_status  LIKE LINE OF it_wi_status ,
it_task_filter  TYPE STANDARD TABLE OF RHOBJECTS,"TABLES PARAM
wa_task_filter  LIKE LINE OF it_task_filter .

DATA(ld_search_date) = '20210129'.

DATA(ld_read_object_text) = some text here

DATA(ld_no_wi_selection) = some text here

DATA(ld_no_header_selection) = some text here
DATA(ld_inbox_user) = '20210129'.
DATA(ld_iv_do_commit) = '20210129'.

"populate fields of struture and append to itab
append wa_inbox_view to it_inbox_view.

"populate fields of struture and append to itab
append wa_wi_head to it_wi_head.

"populate fields of struture and append to itab
append wa_wi_status to it_wi_status.

"populate fields of struture and append to itab
append wa_task_filter to it_task_filter. . CALL FUNCTION 'RH_INBOX_VIEW_CREATE' * EXPORTING * search_date = ld_search_date * read_object_text = ld_read_object_text * no_wi_selection = ld_no_wi_selection * no_header_selection = ld_no_header_selection * inbox_user = ld_inbox_user * iv_do_commit = ld_iv_do_commit * TABLES * inbox_view = it_inbox_view * wi_head = it_wi_head * wi_status = it_wi_status * task_filter = it_task_filter EXCEPTIONS NO_ACTIVE_PLVAR = 1 NO_TASKS_FOUND = 2 USER_NOT_DEFINED = 3 NO_WORKITEM_FOUND = 4 . " RH_INBOX_VIEW_CREATE
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_search_date  TYPE SY-DATUM ,
it_inbox_view  TYPE STANDARD TABLE OF HRWFUSER_V ,
wa_inbox_view  LIKE LINE OF it_inbox_view,
ld_read_object_text  TYPE HRPP0C-TEST ,
it_wi_head  TYPE STANDARD TABLE OF SWWWLHEAD ,
wa_wi_head  LIKE LINE OF it_wi_head,
ld_no_wi_selection  TYPE HRPP0C-TEST ,
it_wi_status  TYPE STANDARD TABLE OF PDWISTAT ,
wa_wi_status  LIKE LINE OF it_wi_status,
ld_no_header_selection  TYPE HRPP0C-TEST ,
it_task_filter  TYPE STANDARD TABLE OF RHOBJECTS ,
wa_task_filter  LIKE LINE OF it_task_filter,
ld_inbox_user  TYPE ACTORID ,
ld_iv_do_commit  TYPE XFLAG .

ld_search_date = '20210129'.

"populate fields of struture and append to itab
append wa_inbox_view to it_inbox_view.

ld_read_object_text = some text here

"populate fields of struture and append to itab
append wa_wi_head to it_wi_head.

ld_no_wi_selection = some text here

"populate fields of struture and append to itab
append wa_wi_status to it_wi_status.

ld_no_header_selection = some text here

"populate fields of struture and append to itab
append wa_task_filter to it_task_filter.
ld_inbox_user = '20210129'.
ld_iv_do_commit = '20210129'.

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