SAP Function Modules

TR_LOAN_POST_PAYMENTS_EXT SAP Function module - Payment Postprocessing: Shell







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

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


Pattern for FM TR_LOAN_POST_PAYMENTS_EXT - TR LOAN POST PAYMENTS EXT





CALL FUNCTION 'TR_LOAN_POST_PAYMENTS_EXT' "Payment Postprocessing: Shell
  EXPORTING
    i_budat =                   " bkpf-budat
    i_bktxt =                   " bkpf-bktxt
    i_protocol =                "
    i_simu =                    "
    i_specialperiod =           "
*   i_protocol_text =           "
    i_rantyp =                  " tzb0a-rantyp
  TABLES
    gt_vdznv =                  " vdznv
    gt_opznb =                  " opznb
*   gt_bsid =                   " bsid
  EXCEPTIONS
    POSTING_IMPOSSIBLE = 1      "
    PROGRAM_ERROR = 2           "
    DATABASE_ERROR = 3          "
    LOAN_POST_ERROR = 4         "
    .  "  TR_LOAN_POST_PAYMENTS_EXT

ABAP code example for Function Module TR_LOAN_POST_PAYMENTS_EXT





The ABAP code below is a full code listing to execute function module TR_LOAN_POST_PAYMENTS_EXT 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_gt_vdznv  TYPE STANDARD TABLE OF VDZNV,"TABLES PARAM
wa_gt_vdznv  LIKE LINE OF it_gt_vdznv ,
it_gt_opznb  TYPE STANDARD TABLE OF OPZNB,"TABLES PARAM
wa_gt_opznb  LIKE LINE OF it_gt_opznb ,
it_gt_bsid  TYPE STANDARD TABLE OF BSID,"TABLES PARAM
wa_gt_bsid  LIKE LINE OF it_gt_bsid .


SELECT single BUDAT
FROM BKPF
INTO @DATA(ld_i_budat).


SELECT single BKTXT
FROM BKPF
INTO @DATA(ld_i_bktxt).

DATA(ld_i_protocol) = 'some text here'.
DATA(ld_i_simu) = 'some text here'.
DATA(ld_i_specialperiod) = 'some text here'.
DATA(ld_i_protocol_text) = 'some text here'.

SELECT single RANTYP
FROM TZB0A
INTO @DATA(ld_i_rantyp).


"populate fields of struture and append to itab
append wa_gt_vdznv to it_gt_vdznv.

"populate fields of struture and append to itab
append wa_gt_opznb to it_gt_opznb.

"populate fields of struture and append to itab
append wa_gt_bsid to it_gt_bsid. . CALL FUNCTION 'TR_LOAN_POST_PAYMENTS_EXT' EXPORTING i_budat = ld_i_budat i_bktxt = ld_i_bktxt i_protocol = ld_i_protocol i_simu = ld_i_simu i_specialperiod = ld_i_specialperiod * i_protocol_text = ld_i_protocol_text i_rantyp = ld_i_rantyp TABLES gt_vdznv = it_gt_vdznv gt_opznb = it_gt_opznb * gt_bsid = it_gt_bsid EXCEPTIONS POSTING_IMPOSSIBLE = 1 PROGRAM_ERROR = 2 DATABASE_ERROR = 3 LOAN_POST_ERROR = 4 . " TR_LOAN_POST_PAYMENTS_EXT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here 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_i_budat  TYPE BKPF-BUDAT ,
it_gt_vdznv  TYPE STANDARD TABLE OF VDZNV ,
wa_gt_vdznv  LIKE LINE OF it_gt_vdznv,
ld_i_bktxt  TYPE BKPF-BKTXT ,
it_gt_opznb  TYPE STANDARD TABLE OF OPZNB ,
wa_gt_opznb  LIKE LINE OF it_gt_opznb,
ld_i_protocol  TYPE STRING ,
it_gt_bsid  TYPE STANDARD TABLE OF BSID ,
wa_gt_bsid  LIKE LINE OF it_gt_bsid,
ld_i_simu  TYPE STRING ,
ld_i_specialperiod  TYPE STRING ,
ld_i_protocol_text  TYPE STRING ,
ld_i_rantyp  TYPE TZB0A-RANTYP .


SELECT single BUDAT
FROM BKPF
INTO ld_i_budat.


"populate fields of struture and append to itab
append wa_gt_vdznv to it_gt_vdznv.

SELECT single BKTXT
FROM BKPF
INTO ld_i_bktxt.


"populate fields of struture and append to itab
append wa_gt_opznb to it_gt_opznb.
ld_i_protocol = 'some text here'.

"populate fields of struture and append to itab
append wa_gt_bsid to it_gt_bsid.
ld_i_simu = 'some text here'.
ld_i_specialperiod = 'some text here'.
ld_i_protocol_text = 'some text here'.

SELECT single RANTYP
FROM TZB0A
INTO ld_i_rantyp.

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