SAP Function Modules

BBP_PD_OBJREL_READ_VIA_REF SAP Function module







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

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


Pattern for FM BBP_PD_OBJREL_READ_VIA_REF - BBP PD OBJREL READ VIA REF





CALL FUNCTION 'BBP_PD_OBJREL_READ_VIA_REF' "
  EXPORTING
    iv_objectkey =              " be_object_id
*   iv_objectline =             " be_obj_item
*   iv_packno =                 " packno
*   iv_introw =                 " bbp_introw
*   iv_object_type = 'BUS2012'  " swo_objtyp
*   iv_target_system =          " log_system
* TABLES
*   et_rec_and_req =            " bbp_pds_partner
*   et_req_name =               " bbps_partner_roles
*   et_header =                 " bbp_pds_sc_header_d
*   et_item =                   " bbp_pds_sc_item_d
    .  "  BBP_PD_OBJREL_READ_VIA_REF

ABAP code example for Function Module BBP_PD_OBJREL_READ_VIA_REF





The ABAP code below is a full code listing to execute function module BBP_PD_OBJREL_READ_VIA_REF 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_et_rec_and_req  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_et_rec_and_req  LIKE LINE OF it_et_rec_and_req ,
it_et_req_name  TYPE STANDARD TABLE OF BBPS_PARTNER_ROLES,"TABLES PARAM
wa_et_req_name  LIKE LINE OF it_et_req_name ,
it_et_header  TYPE STANDARD TABLE OF BBP_PDS_SC_HEADER_D,"TABLES PARAM
wa_et_header  LIKE LINE OF it_et_header ,
it_et_item  TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D,"TABLES PARAM
wa_et_item  LIKE LINE OF it_et_item .

DATA(ld_iv_objectkey) = 'Check type of data required'.
DATA(ld_iv_objectline) = 'Check type of data required'.
DATA(ld_iv_packno) = 'Check type of data required'.
DATA(ld_iv_introw) = 'Check type of data required'.
DATA(ld_iv_object_type) = 'Check type of data required'.
DATA(ld_iv_target_system) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_rec_and_req to it_et_rec_and_req.

"populate fields of struture and append to itab
append wa_et_req_name to it_et_req_name.

"populate fields of struture and append to itab
append wa_et_header to it_et_header.

"populate fields of struture and append to itab
append wa_et_item to it_et_item. . CALL FUNCTION 'BBP_PD_OBJREL_READ_VIA_REF' EXPORTING iv_objectkey = ld_iv_objectkey * iv_objectline = ld_iv_objectline * iv_packno = ld_iv_packno * iv_introw = ld_iv_introw * iv_object_type = ld_iv_object_type * iv_target_system = ld_iv_target_system * TABLES * et_rec_and_req = it_et_rec_and_req * et_req_name = it_et_req_name * et_header = it_et_header * et_item = it_et_item . " BBP_PD_OBJREL_READ_VIA_REF
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_iv_objectkey  TYPE BE_OBJECT_ID ,
it_et_rec_and_req  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_et_rec_and_req  LIKE LINE OF it_et_rec_and_req,
ld_iv_objectline  TYPE BE_OBJ_ITEM ,
it_et_req_name  TYPE STANDARD TABLE OF BBPS_PARTNER_ROLES ,
wa_et_req_name  LIKE LINE OF it_et_req_name,
ld_iv_packno  TYPE PACKNO ,
it_et_header  TYPE STANDARD TABLE OF BBP_PDS_SC_HEADER_D ,
wa_et_header  LIKE LINE OF it_et_header,
ld_iv_introw  TYPE BBP_INTROW ,
it_et_item  TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D ,
wa_et_item  LIKE LINE OF it_et_item,
ld_iv_object_type  TYPE SWO_OBJTYP ,
ld_iv_target_system  TYPE LOG_SYSTEM .

ld_iv_objectkey = 'some text here'.

"populate fields of struture and append to itab
append wa_et_rec_and_req to it_et_rec_and_req.
ld_iv_objectline = 'some text here'.

"populate fields of struture and append to itab
append wa_et_req_name to it_et_req_name.
ld_iv_packno = 'some text here'.

"populate fields of struture and append to itab
append wa_et_header to it_et_header.
ld_iv_introw = 'some text here'.

"populate fields of struture and append to itab
append wa_et_item to it_et_item.
ld_iv_object_type = 'some text here'.
ld_iv_target_system = 'Check type of data required'.

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