SAP Function Modules

RSB_API_OHS_SOURCE_SELECT SAP Function module - Selects a data source and starts BW processes







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

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


Pattern for FM RSB_API_OHS_SOURCE_SELECT - RSB API OHS SOURCE SELECT





CALL FUNCTION 'RSB_API_OHS_SOURCE_SELECT' "Selects a data source and starts BW processes
  EXPORTING
*   client =                    " mandt         3-Byte Field
*   logsys =                    " logsys        Source System
    tlogo = RS_C_TLOGO-DATASOURCE  " rstlogo    BW: Object Type (TLOGO)
    objnm =                     " rsobjnm       Name of Source
  IMPORTING
    return =                    " bapiret2      Return Parameter(s)
* TABLES
*   selections =                " rsselect      Scheduler: Selection Structure
*   t_updmode =                 " rsb_s_updmode  List of Possible Update Behaviors
*   t_messages =                " bapirettab    Table with BAPI Return Information
    .  "  RSB_API_OHS_SOURCE_SELECT

ABAP code example for Function Module RSB_API_OHS_SOURCE_SELECT





The ABAP code below is a full code listing to execute function module RSB_API_OHS_SOURCE_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:
ld_return  TYPE BAPIRET2 ,
it_selections  TYPE STANDARD TABLE OF RSSELECT,"TABLES PARAM
wa_selections  LIKE LINE OF it_selections ,
it_t_updmode  TYPE STANDARD TABLE OF RSB_S_UPDMODE,"TABLES PARAM
wa_t_updmode  LIKE LINE OF it_t_updmode ,
it_t_messages  TYPE STANDARD TABLE OF BAPIRETTAB,"TABLES PARAM
wa_t_messages  LIKE LINE OF it_t_messages .

DATA(ld_client) = 'Check type of data required'.
DATA(ld_logsys) = '123 '.
DATA(ld_tlogo) = 'some text here'.
DATA(ld_objnm) = 'some text here'.

"populate fields of struture and append to itab
append wa_selections to it_selections.

"populate fields of struture and append to itab
append wa_t_updmode to it_t_updmode.

"populate fields of struture and append to itab
append wa_t_messages to it_t_messages. . CALL FUNCTION 'RSB_API_OHS_SOURCE_SELECT' EXPORTING * client = ld_client * logsys = ld_logsys tlogo = ld_tlogo objnm = ld_objnm IMPORTING return = ld_return * TABLES * selections = it_selections * t_updmode = it_t_updmode * t_messages = it_t_messages . " RSB_API_OHS_SOURCE_SELECT
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_return  TYPE BAPIRET2 ,
ld_client  TYPE MANDT ,
it_selections  TYPE STANDARD TABLE OF RSSELECT ,
wa_selections  LIKE LINE OF it_selections,
ld_logsys  TYPE LOGSYS ,
it_t_updmode  TYPE STANDARD TABLE OF RSB_S_UPDMODE ,
wa_t_updmode  LIKE LINE OF it_t_updmode,
ld_tlogo  TYPE RSTLOGO ,
it_t_messages  TYPE STANDARD TABLE OF BAPIRETTAB ,
wa_t_messages  LIKE LINE OF it_t_messages,
ld_objnm  TYPE RSOBJNM .

ld_client = 'some text here'.

"populate fields of struture and append to itab
append wa_selections to it_selections.
ld_logsys = '123 '.

"populate fields of struture and append to itab
append wa_t_updmode to it_t_updmode.
ld_tlogo = 'some text here'.

"populate fields of struture and append to itab
append wa_t_messages to it_t_messages.
ld_objnm = '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 RSB_API_OHS_SOURCE_SELECT or its description.