SAP Function Modules

BP_BUPA_SEARCH_BY_USER SAP Function module







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

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


Pattern for FM BP_BUPA_SEARCH_BY_USER - BP BUPA SEARCH BY USER





CALL FUNCTION 'BP_BUPA_SEARCH_BY_USER' "
* EXPORTING
*   maxrows =                   " i             <>0: Row Restriction for Hit List
  IMPORTING
    et_partner =                " bu_partner_t  Table Category for Category BU_PARTNER
    maxrows_exceeded =          " ddbool_d      X: Hit List Restricted to MAXROWS Entries
  TABLES
    ir_user =                   " usselmodbe    Transfer structure selection options  Changed by (User name)
    .  "  BP_BUPA_SEARCH_BY_USER

ABAP code example for Function Module BP_BUPA_SEARCH_BY_USER





The ABAP code below is a full code listing to execute function module BP_BUPA_SEARCH_BY_USER 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_partner  TYPE BU_PARTNER_T ,
ld_maxrows_exceeded  TYPE DDBOOL_D ,
it_ir_user  TYPE STANDARD TABLE OF USSELMODBE,"TABLES PARAM
wa_ir_user  LIKE LINE OF it_ir_user .

DATA(ld_maxrows) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ir_user to it_ir_user. . CALL FUNCTION 'BP_BUPA_SEARCH_BY_USER' * EXPORTING * maxrows = ld_maxrows IMPORTING et_partner = ld_et_partner maxrows_exceeded = ld_maxrows_exceeded TABLES ir_user = it_ir_user . " BP_BUPA_SEARCH_BY_USER
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_et_partner  TYPE BU_PARTNER_T ,
ld_maxrows  TYPE I ,
it_ir_user  TYPE STANDARD TABLE OF USSELMODBE ,
wa_ir_user  LIKE LINE OF it_ir_user,
ld_maxrows_exceeded  TYPE DDBOOL_D .

ld_maxrows = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ir_user to it_ir_user.

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