SAP Function SAMPLE_INTERFACE_00011700 - Authorization Checks

Parameter Reference Type Length Default Optional Text
I_ACNUM_INT BKK_ACCNT C 10 X Internal Account Number for Current Account
I_BKKRS BKK_BKKRS C 4 X Bank Area
I_STRUC ANY A 0 Structure With Additional Data Dependent on Calling Program

Parameter Reference Type Length Text
E_RC SUBRC N 2 Subroutines Return Code
E_SKIP BOOLE-BOOLE C 1 No Validation

Parameter Reference Length Optional Text
T_MESG IBKKMESG 224 Table for Messages

Functionality
The module is used as an interface description only, and does notcontain any statements. It is intended for developers who provide theirown function module for the event 00011700 (authorizations in theinformation system).
You must not change the function module SAMPLE_INTERFACE_00011700.
To create your own function module that is to be called at the eventabove, proceed as follows:
Copy the function module to your own namespace.
Do not change any transfer parameters.
Write your own statements in the copied function module.
Save and activate your function module.
Enter the required settings in Customizing.

Notes
BTE 00011700 is used in the following reports in the information system:
Report:,,Name
RFBKACCB,,Accounts locked by end-of-day processing
RFBKACCB SINGLE,,Accounts locked by individual balancing
RFBKBAL1,,Balance list
RFBKCCINF01,,Account overview for currency changeover
RFBKCHQ1,,Check locks
RFBKCON3,,Interest scale list
RFBKCON6,,Internal reference accounts for balancing
RFBKCON6X,,External reference accounts for balancing
RFBKFOLLOWUP,,Resubmission for accounts
RFBKGL11,,Reconciliation: Overview of the BCAreconciliation keys
RFBKGLC1,,Reconciliation:Comparison of the BCA posting totals with FI posting totals
RFBKGLC2,,Reconciliation:Comparison of BCA payment items with BCA posting totals for FI
RFBKGLCM,,Netting:Overview of the BCA accounts to be netted
RFBKGLPP,,Postprocessing:Balances of BCA and FI accounts in postprocessing
RFBKINDCOND,,Report: Individual condition processing
RFBKLIRE>RFBKLIRE,,Report: List of limits to be released
RFBKLIRL,,Limit editing
RFBKLOC1,,Account locks
RFBKOVR1,,Overdraft list
RFBKOVR_CNTRL_LIST,,Accounts with a tolerated overdraft.

Description
The return code is set within the function module. Value 0 means thatthe user is authorized for the current data record. All other valuesmean that this data record is not processed further. In particular, itwill no longer be displayed in lists (reports in the informationsystem).

Description
You use this parameter to deactivate the authorization checks by BTE11700 individual reports. This improves performance.
If the BTE is activated, the authorization checks are made in all thereports that use this BTE. This is normally per individual record ofthe selected data.
However, if parameter E_SKIP is set for a report, the BTE is only runonce for the first selected data record, then no further authorizationcheck is made for this report.

Description
The internal account number is an optional parameter. This is alwayssupplied when the program that uses BTE 11700 can provide thisinformation at the time of the call.
This is explicitly not the case for the following reports in theinformation system:
RFBKGLC1 Display reconciliation balance list 1
RFBKGLC2 Reconciliation: Compare BCA payment items with BCA postingtotals for FI

Description
The bank area is an optional parameter, but is always supplied when themodule is called.

Description
The transfer structure contains data from the program that calls BTE11700 for the authorization checks.
This makes this data very dependent on this program. The followingstructures are transferred:
Program,,Description,,Structure/Type
RFBKACCB,,Accounts locked by end-of-day processing,,BKKD_TAB_LOCKDISPLAY
RFBKACCBSINGLE,,Accounts locked by individual balancing ,,BKKMACCUNR
RFBKBAL1,,Balance list,,IBKK42
RFBKBAL1_VAL,,Balance list,,IBKK42
RFBKCCINF01,,Account overview for currency changeover,,IBKK42
RFBKCHQ1,,Check locks,,BKKA1
RFBKCON3,,Interest scale list,,IBKK42
RFBKCON6 ,,Internal reference accounts (for balancing),,IBKK42
RFBKCON6X,,External reference accounts (for balancing),,BKK43
RFBKFOLLOWUP,,Resubmission for accounts,,BKKK_S_RESUBM_DATA
RFBKGL11,,Reconciliation: Overview of the ,,IBKKC01_DT
,,BCA reconciliation keys,,
RFBKGLC1,,Reconciliation: Comparison of the ,,BKKH_S_BKKFI,,
,,BCA posting totals with FI posting totals
RFBKGLC2,,Reconciliation: Comparison of BCA payment items,,BKKH_S_BKKFI
,,with BCA posting totals for FI,,
RFBKGLCM,,Netting: Overview of the BCA,,IBKKACNALV
,,account for netting,,
RFBKGLPP,,Postprocessing: Balances of BCA and FI accounts,,IBKKGLPP
,,in postprocessing,,
RFBKINDCOND,,Report: Individual condition editing,,IBKK42
RFBKLIRE,,Report: List of limits to be released,,IBKK42,,,,
RFBKLIRL ,,Limit editing,,IBKK42
RFBKLOC1,,Account locks RFBKOVR1 overdraft list,,IBKK42
RFBKOVR1,,Overdraft list,,IBKK42
RFBKOVR_CNTRL_LIST,,Accounts with tolerated overdraft,,IBKK42

Description
Table T_MESG is used for passing messages to the calling program, wherethey are processed further.
It is not permitted to output any messages using the ABAP commandMESSAGE or to transfer a message to the message handler within thisfunction module.
The table contains the following field:
Field Name,,Type,,Length,,Description
MSGTY,,CHAR,,1,,Type of message (E, I, W, S, A)
ARBGB,,CHAR,,20,,Work area
TXTNR,,CHAR,,3,,Message number
MSGV1,,CHAR,,50,,Message variable 1
MSGV2,,CHAR,,50,,Message variable 2
MSGV3,,CHAR,,50,,Message variable 3
MSGV4,,CHAR,,50,,Message variable 4
For most of the reports in the information system, authorization checksare made per BCA account. For this reason, messages from this functionmodule are not output in them directly, but the missing authorizationsare counted and this number is output.
In the following reports, the messages from table T_MESG are outputdirectly online in a dialog box:
RFBKGL11,,Reconciliation: Overview of the BCA reconciliation keys
RFBKGLC1,,Display reconciliation list 1
RFBKGLC2,,Reconciliation: Comparison of the BCA payment items with theBCA posting totals for FI
RFBKGLCM,,Netting: Overview of the accounts to be netted
RFBKGLPP ,,Postprocessing: Balances BCA accounts and FI accounts
RFBKINDCOND,,Individual condition processing
In reports RFBKLIRE, list of limits to be released andRFBKOVR_CNTRL_LIST, accounts with tolerated overdraft, the messagesare output in the status line.

Beispiel,,
To pass on message "No authorization for creating hierarchies inbank area 0001" as a warning to the calling program for example, theT_MESG fields are entered as follows:
,,T_MESG-MSGTY = 'W'.
,,T_MESG-ARBGB = '1F'.
,,T_MESG-TXTNR = '103'.
,,T_MESG-MSGV1 = '0001'.
,,APPEND T_MESG .

Default
This parameter is optional.