SAP Function Modules

BBP_PDSDLN_GET_DIFF SAP Function module







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

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


Pattern for FM BBP_PDSDLN_GET_DIFF - BBP PDSDLN GET DIFF





CALL FUNCTION 'BBP_PDSDLN_GET_DIFF' "
  EXPORTING
    iv_guid_a =                 " crmd_orderadm_h-guid
    iv_guid_b =                 " crmd_orderadm_h-guid
    iv_kind =                   " crmt_object_kind
    iv_comp_method =            " bbp_compare_method
    iv_get_diff_fields_tab =    " xfeld
*   iv_get_all_setlines =       " xfeld
  IMPORTING
    ev_sets_differ =            " xfeld
* TABLES
*   et_sdln_diff_a =            " bbp_pds_sdln_diff
*   et_sdln_diff_b =            " bbp_pds_sdln_diff
*   et_diff_fields =            " bbp_pds_diff_fields
    .  "  BBP_PDSDLN_GET_DIFF

ABAP code example for Function Module BBP_PDSDLN_GET_DIFF





The ABAP code below is a full code listing to execute function module BBP_PDSDLN_GET_DIFF 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_ev_sets_differ  TYPE XFELD ,
it_et_sdln_diff_a  TYPE STANDARD TABLE OF BBP_PDS_SDLN_DIFF,"TABLES PARAM
wa_et_sdln_diff_a  LIKE LINE OF it_et_sdln_diff_a ,
it_et_sdln_diff_b  TYPE STANDARD TABLE OF BBP_PDS_SDLN_DIFF,"TABLES PARAM
wa_et_sdln_diff_b  LIKE LINE OF it_et_sdln_diff_b ,
it_et_diff_fields  TYPE STANDARD TABLE OF BBP_PDS_DIFF_FIELDS,"TABLES PARAM
wa_et_diff_fields  LIKE LINE OF it_et_diff_fields .


SELECT single GUID
FROM CRMD_ORDERADM_H
INTO @DATA(ld_iv_guid_a).


SELECT single GUID
FROM CRMD_ORDERADM_H
INTO @DATA(ld_iv_guid_b).

DATA(ld_iv_kind) = 'Check type of data required'.
DATA(ld_iv_comp_method) = 'Check type of data required'.
DATA(ld_iv_get_diff_fields_tab) = 'Check type of data required'.
DATA(ld_iv_get_all_setlines) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_sdln_diff_a to it_et_sdln_diff_a.

"populate fields of struture and append to itab
append wa_et_sdln_diff_b to it_et_sdln_diff_b.

"populate fields of struture and append to itab
append wa_et_diff_fields to it_et_diff_fields. . CALL FUNCTION 'BBP_PDSDLN_GET_DIFF' EXPORTING iv_guid_a = ld_iv_guid_a iv_guid_b = ld_iv_guid_b iv_kind = ld_iv_kind iv_comp_method = ld_iv_comp_method iv_get_diff_fields_tab = ld_iv_get_diff_fields_tab * iv_get_all_setlines = ld_iv_get_all_setlines IMPORTING ev_sets_differ = ld_ev_sets_differ * TABLES * et_sdln_diff_a = it_et_sdln_diff_a * et_sdln_diff_b = it_et_sdln_diff_b * et_diff_fields = it_et_diff_fields . " BBP_PDSDLN_GET_DIFF
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_ev_sets_differ  TYPE XFELD ,
ld_iv_guid_a  TYPE CRMD_ORDERADM_H-GUID ,
it_et_sdln_diff_a  TYPE STANDARD TABLE OF BBP_PDS_SDLN_DIFF ,
wa_et_sdln_diff_a  LIKE LINE OF it_et_sdln_diff_a,
ld_iv_guid_b  TYPE CRMD_ORDERADM_H-GUID ,
it_et_sdln_diff_b  TYPE STANDARD TABLE OF BBP_PDS_SDLN_DIFF ,
wa_et_sdln_diff_b  LIKE LINE OF it_et_sdln_diff_b,
ld_iv_kind  TYPE CRMT_OBJECT_KIND ,
it_et_diff_fields  TYPE STANDARD TABLE OF BBP_PDS_DIFF_FIELDS ,
wa_et_diff_fields  LIKE LINE OF it_et_diff_fields,
ld_iv_comp_method  TYPE BBP_COMPARE_METHOD ,
ld_iv_get_diff_fields_tab  TYPE XFELD ,
ld_iv_get_all_setlines  TYPE XFELD .


SELECT single GUID
FROM CRMD_ORDERADM_H
INTO ld_iv_guid_a.


"populate fields of struture and append to itab
append wa_et_sdln_diff_a to it_et_sdln_diff_a.

SELECT single GUID
FROM CRMD_ORDERADM_H
INTO ld_iv_guid_b.


"populate fields of struture and append to itab
append wa_et_sdln_diff_b to it_et_sdln_diff_b.
ld_iv_kind = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_diff_fields to it_et_diff_fields.
ld_iv_comp_method = 'Check type of data required'.
ld_iv_get_diff_fields_tab = 'Check type of data required'.
ld_iv_get_all_setlines = '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_PDSDLN_GET_DIFF or its description.