SAP Function Modules

ISP_GP_DUPLICATE_CHECK SAP Function module - IS-M/SD: Duplicate Check for BP Addresses







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

Associated Function Group: JG11
Released Date: 17.01.1996
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISP_GP_DUPLICATE_CHECK - ISP GP DUPLICATE CHECK





CALL FUNCTION 'ISP_GP_DUPLICATE_CHECK' "IS-M/SD: Duplicate Check for BP Addresses
* EXPORTING
*   ffunktion =                 " t185f-fcode   Definition of Default Values for Enter Key
*   sadrwa_in = SPACE           " jgtsadr       Work Area for Input (Address)
*   parvw_in =                  " tjg39-jparvw
  IMPORTING
    sadrwa_out =                " jgtsadr       Work Area for Output (Address)
    rolle_out =                 " jgtadra-jparvw
    returncode =                " sy-subrc      1 = Record Selected
    current_address_out =       " rjksel-markfeld  Address Is Address Currently Valid
* TABLES
*   out_jgtsadr =               " jgtsadr       Table of All Duplicates (JGTSADR format)
*   in_jgtsadr =                " jgtsadr       Table of Addresses for LIST Mode
    .  "  ISP_GP_DUPLICATE_CHECK

ABAP code example for Function Module ISP_GP_DUPLICATE_CHECK





The ABAP code below is a full code listing to execute function module ISP_GP_DUPLICATE_CHECK 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_sadrwa_out  TYPE JGTSADR ,
ld_rolle_out  TYPE JGTADRA-JPARVW ,
ld_returncode  TYPE SY-SUBRC ,
ld_current_address_out  TYPE RJKSEL-MARKFELD ,
it_out_jgtsadr  TYPE STANDARD TABLE OF JGTSADR,"TABLES PARAM
wa_out_jgtsadr  LIKE LINE OF it_out_jgtsadr ,
it_in_jgtsadr  TYPE STANDARD TABLE OF JGTSADR,"TABLES PARAM
wa_in_jgtsadr  LIKE LINE OF it_in_jgtsadr .


SELECT single FCODE
FROM T185F
INTO @DATA(ld_ffunktion).

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

SELECT single JPARVW
FROM TJG39
INTO @DATA(ld_parvw_in).


"populate fields of struture and append to itab
append wa_out_jgtsadr to it_out_jgtsadr.

"populate fields of struture and append to itab
append wa_in_jgtsadr to it_in_jgtsadr. . CALL FUNCTION 'ISP_GP_DUPLICATE_CHECK' * EXPORTING * ffunktion = ld_ffunktion * sadrwa_in = ld_sadrwa_in * parvw_in = ld_parvw_in IMPORTING sadrwa_out = ld_sadrwa_out rolle_out = ld_rolle_out returncode = ld_returncode current_address_out = ld_current_address_out * TABLES * out_jgtsadr = it_out_jgtsadr * in_jgtsadr = it_in_jgtsadr . " ISP_GP_DUPLICATE_CHECK
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_sadrwa_out  TYPE JGTSADR ,
ld_ffunktion  TYPE T185F-FCODE ,
it_out_jgtsadr  TYPE STANDARD TABLE OF JGTSADR ,
wa_out_jgtsadr  LIKE LINE OF it_out_jgtsadr,
ld_rolle_out  TYPE JGTADRA-JPARVW ,
ld_sadrwa_in  TYPE JGTSADR ,
it_in_jgtsadr  TYPE STANDARD TABLE OF JGTSADR ,
wa_in_jgtsadr  LIKE LINE OF it_in_jgtsadr,
ld_returncode  TYPE SY-SUBRC ,
ld_parvw_in  TYPE TJG39-JPARVW ,
ld_current_address_out  TYPE RJKSEL-MARKFELD .


SELECT single FCODE
FROM T185F
INTO ld_ffunktion.


"populate fields of struture and append to itab
append wa_out_jgtsadr to it_out_jgtsadr.
ld_sadrwa_in = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_in_jgtsadr to it_in_jgtsadr.

SELECT single JPARVW
FROM TJG39
INTO ld_parvw_in.

SAP Documentation for FM ISP_GP_DUPLICATE_CHECK


In duplicate determination, an internal table is filled with addresses from JGTSADR. The addresses in which field SORT2 corresponds to field ...See here for full SAP fm documentation

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