SAP Function Modules

TR_LOAN_PROCESS_ENQUEUES SAP Function module - Checks and Sets Locks







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

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


Pattern for FM TR_LOAN_PROCESS_ENQUEUES - TR LOAN PROCESS ENQUEUES





CALL FUNCTION 'TR_LOAN_PROCESS_ENQUEUES' "Checks and Sets Locks
  EXPORTING
*   is_vdarl =                  " vdarl         Loan
*   is_bseg =                   " bseg          Accounting Document Segment
*   i_hkont =                   " bsis-hkont    G/L Account
*   i_check_sfgbew = 'X'        "               VDARL-Feld SFGBEW prüfen
*   i_enqueue_document = 'X'    "               Belegsperre für Dialog absetzen
    i_enqueue_ranl = 'X'        "
*   i_flg_confirmation = SPACE  " flag          Freigabe aktiv ('X' -> ja)
  EXCEPTIONS
    CONTRACT_WITH_RELEASE_DATA = 1  "
    CONTRACT_NOT_FOUND = 2      "
    CONTRACT_ENQUEUED = 3       "
    DOCUMENT_IN_PROPOSAL = 4    "
    DOCUMENT_NOT_OPEN = 5       "
    DOCUMENT_NOT_FOUND = 6      "
    DOCUMENT_ENQUEUED = 7       "
    AUTHORIZATION_ERROR = 8     "
    .  "  TR_LOAN_PROCESS_ENQUEUES

ABAP code example for Function Module TR_LOAN_PROCESS_ENQUEUES





The ABAP code below is a full code listing to execute function module TR_LOAN_PROCESS_ENQUEUES 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_is_vdarl) = 'Check type of data required'.
DATA(ld_is_bseg) = 'Check type of data required'.

SELECT single HKONT
FROM BSIS
INTO @DATA(ld_i_hkont).

DATA(ld_i_check_sfgbew) = 'some text here'.
DATA(ld_i_enqueue_document) = 'some text here'.
DATA(ld_i_enqueue_ranl) = 'some text here'.
DATA(ld_i_flg_confirmation) = 'Check type of data required'. . CALL FUNCTION 'TR_LOAN_PROCESS_ENQUEUES' EXPORTING * is_vdarl = ld_is_vdarl * is_bseg = ld_is_bseg * i_hkont = ld_i_hkont * i_check_sfgbew = ld_i_check_sfgbew * i_enqueue_document = ld_i_enqueue_document i_enqueue_ranl = ld_i_enqueue_ranl * i_flg_confirmation = ld_i_flg_confirmation EXCEPTIONS CONTRACT_WITH_RELEASE_DATA = 1 CONTRACT_NOT_FOUND = 2 CONTRACT_ENQUEUED = 3 DOCUMENT_IN_PROPOSAL = 4 DOCUMENT_NOT_OPEN = 5 DOCUMENT_NOT_FOUND = 6 DOCUMENT_ENQUEUED = 7 AUTHORIZATION_ERROR = 8 . " TR_LOAN_PROCESS_ENQUEUES
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 ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "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_is_vdarl  TYPE VDARL ,
ld_is_bseg  TYPE BSEG ,
ld_i_hkont  TYPE BSIS-HKONT ,
ld_i_check_sfgbew  TYPE STRING ,
ld_i_enqueue_document  TYPE STRING ,
ld_i_enqueue_ranl  TYPE STRING ,
ld_i_flg_confirmation  TYPE FLAG .

ld_is_vdarl = 'Check type of data required'.
ld_is_bseg = 'Check type of data required'.

SELECT single HKONT
FROM BSIS
INTO ld_i_hkont.

ld_i_check_sfgbew = 'some text here'.
ld_i_enqueue_document = 'some text here'.
ld_i_enqueue_ranl = 'some text here'.
ld_i_flg_confirmation = '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 TR_LOAN_PROCESS_ENQUEUES or its description.