Ansicht
Dokumentation

/SAPCE/FKGR_EVENT_6120 - Greek function for FI-CA event 6120

/SAPCE/FKGR_EVENT_6120 - Greek function for FI-CA event 6120

Vendor Master (General Section)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to call up your own transaction for entering incoming and outgoing payments or a report, instead of branching to the cash desk directly from the cash journal. This enables you, for example, to call up a barcode reader before you branch to the cash desk. This barcode reader defaults the input fields of the cash desk, for example, from the barcode to be read to the invoice to be paid.

  1. Deactivate functions in the cash journal or make the role-specific (see example below).
  2. Default the date for the selection of transaction data for transfers and posting differences and withdrawals (see example below).
  3. Implement five customer-defined additional functions in the menu under Environment (see example below)

Current coding in /SAPCE/FKGR_EVENT_6120, just implements the 3rd option, and more specifically it activates the Cash Journal Report for Greece, as the 1st customer specific function under menu Environment of FPCJ.

Example

Re 1: Implementation of barcode read via customer-defined report

For the report, define only the selection parameters OFFIC (branch) and CHDSK (cash desk). The report implements the barcode reader. Once the customer data has been read from the barcode in the report, the function module FKK_S_CJOURNAL_GOTO_CHDSK_DEFL should be called as follows:

CALL FUNCTION 'FKK_S_CJOURNAL_GOTO_CHDSK_DEFL'
,,EXPORTING
,,,,X_OFFIC    = OFFIC
,,,,X_CHDSK    = CHDSK
,,TABLES
,,,,TY_BDCDATA = TL_BDCDATA.

The customer data read from the bar code is stored in table TL_BDCDATA in accordance with the screen fields of the cash desk, that is, in accordance with transaction FPB0.

Enter the name of your report in the export parameter in event 6120 E_REPID = 'Z_...'.

Re 2: Deactivate roles in cash journal or make them role-specific

The export parameter E_CANCEL enables you to prohibit standard functions, such as changing the cash desk, or to make them role- specific.

For the role of the clerk, you do not want to permit changing the cash desk assignment. In the interface for the function module, the following import parameters are defaulted:,,

  • I_OKCODE = NWDSK
  • I_ROLE = NC

In accordance with the above-mentioned import parameters (NC = clerk), set the export parameter E_CANCEL to 'X'.

For the user, the message appears that assignment to a different cash desk is not permitted.

If the export parameter E_STOP_NO_MESSAGE = 'X' is set, the action is terminated without a message being output.

Re 3.: Defaulting the date

During the tranfer or posting of differences or withdrawals, the selection date for the lot selection can be defaulted automatically. If the contents of the cash desk are withdrawn before the cash desk is closed, a closing balance (zero balance) is written in the database table DFKKCJT. In this case, on the next day all previous transaction data for the functions 'Transfer' and 'Post Differences and Withdrawals' is no longer important. The from date of the lot selection has the date of the closing balance as default, recognizable from the process type balance update (DFKKCJT-PRCTP = '03') (E_DATE = DFKKCJT-CPUDT).

Re 4: Customer-Defined Additional Functions in the menu under Environment

Using the example of the export parameter for customer function 1, the following explains how customer-defined additional functions are implemented in the cash journal. The export parameters are filled as above and enable the user to branch to the reversal from the menu Environment in the cash journal

  • E_SUB1_EXIT_MENU_TXT = Reversal
  • E_SUB1_NOACTIVE = ' '
  • E_SUB1_TCODE = FP08

If you use the role concept in the cash journal, the customer-defined additional actions can be activated role-specific. To do this, set the export parameter E_SUB1_NOACTIVE = 'X'.

The role of the user is indicated by the import parameter I_ROLE = NC:

  • Branch manager: SU
  • Clerk with special tasks: SC
  • Clerk: NC

In the above mentioned example, the clerk is not allowed to reverse an incoming payment. You can activate this additional function for the role of the branch manager or the clerk with special tasks by setting the export parameter E_SUB1_NOACTIVE = ' '.





Parameters

E_CANCEL
E_MSG_TEXT
E_SUB1_EXIT_MENU_TXT
E_SUB1_NOACTIVE
E_SUB2_EXIT_MENU_TXT
E_SUB2_NOACTIVE
E_SUB3_EXIT_MENU_TXT
E_SUB3_NOACTIVE
E_SUB4_EXIT_MENU_TXT
E_SUB4_NOACTIVE
E_SUB5_EXIT_MENU_TXT
E_SUB5_NOACTIVE
I_CHDSK
I_OFFIC
I_OKCODE
I_ROLE

Exceptions

Function Group

CE/SAPLFKGRCJ

TXBHW - Original Tax Base Amount in Local Currency   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 6621 Date: 20240427 Time: 003115     sap01-206 ( 110 ms )