SAP Function Modules

ISU_CHECK_PAYER_SD_COLLECT_MOD SAP Function module







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

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


Pattern for FM ISU_CHECK_PAYER_SD_COLLECT_MOD - ISU CHECK PAYER SD COLLECT MOD





CALL FUNCTION 'ISU_CHECK_PAYER_SD_COLLECT_MOD' "
  EXPORTING
    i_fkart =                   " tvfk-fkart
    i_fktyp =                   " tvfk-fktyp
    i_vbeln =                   " vbak-vbeln
    i_posnr =                   " vbap-posnr
    i_vbeln_ref =               " vbak-vbeln
    i_posnr_ref =               " vbap-posnr
  TABLES
    it_vbpak =                  " vbpavb
    it_vbpap =                  " vbpa
  CHANGING
    x_subrc =                   " sy-subrc
    .  "  ISU_CHECK_PAYER_SD_COLLECT_MOD

ABAP code example for Function Module ISU_CHECK_PAYER_SD_COLLECT_MOD





The ABAP code below is a full code listing to execute function module ISU_CHECK_PAYER_SD_COLLECT_MOD 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_it_vbpak  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_it_vbpak  LIKE LINE OF it_it_vbpak ,
it_it_vbpap  TYPE STANDARD TABLE OF VBPA,"TABLES PARAM
wa_it_vbpap  LIKE LINE OF it_it_vbpap .

DATA(ld_x_subrc) = '20210129'.

SELECT single FKART
FROM TVFK
INTO @DATA(ld_i_fkart).


SELECT single FKTYP
FROM TVFK
INTO @DATA(ld_i_fktyp).


SELECT single VBELN
FROM VBAK
INTO @DATA(ld_i_vbeln).


SELECT single POSNR
FROM VBAP
INTO @DATA(ld_i_posnr).


SELECT single VBELN
FROM VBAK
INTO @DATA(ld_i_vbeln_ref).


SELECT single POSNR
FROM VBAP
INTO @DATA(ld_i_posnr_ref).


"populate fields of struture and append to itab
append wa_it_vbpak to it_it_vbpak.

"populate fields of struture and append to itab
append wa_it_vbpap to it_it_vbpap. . CALL FUNCTION 'ISU_CHECK_PAYER_SD_COLLECT_MOD' EXPORTING i_fkart = ld_i_fkart i_fktyp = ld_i_fktyp i_vbeln = ld_i_vbeln i_posnr = ld_i_posnr i_vbeln_ref = ld_i_vbeln_ref i_posnr_ref = ld_i_posnr_ref TABLES it_vbpak = it_it_vbpak it_vbpap = it_it_vbpap CHANGING x_subrc = ld_x_subrc . " ISU_CHECK_PAYER_SD_COLLECT_MOD
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_x_subrc  TYPE SY-SUBRC ,
ld_i_fkart  TYPE TVFK-FKART ,
it_it_vbpak  TYPE STANDARD TABLE OF VBPAVB ,
wa_it_vbpak  LIKE LINE OF it_it_vbpak,
ld_i_fktyp  TYPE TVFK-FKTYP ,
it_it_vbpap  TYPE STANDARD TABLE OF VBPA ,
wa_it_vbpap  LIKE LINE OF it_it_vbpap,
ld_i_vbeln  TYPE VBAK-VBELN ,
ld_i_posnr  TYPE VBAP-POSNR ,
ld_i_vbeln_ref  TYPE VBAK-VBELN ,
ld_i_posnr_ref  TYPE VBAP-POSNR .

ld_x_subrc = '20210129'.

SELECT single FKART
FROM TVFK
INTO ld_i_fkart.


"populate fields of struture and append to itab
append wa_it_vbpak to it_it_vbpak.

SELECT single FKTYP
FROM TVFK
INTO ld_i_fktyp.


"populate fields of struture and append to itab
append wa_it_vbpap to it_it_vbpap.

SELECT single VBELN
FROM VBAK
INTO ld_i_vbeln.


SELECT single POSNR
FROM VBAP
INTO ld_i_posnr.


SELECT single VBELN
FROM VBAK
INTO ld_i_vbeln_ref.


SELECT single POSNR
FROM VBAP
INTO ld_i_posnr_ref.

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