CGI W Exits Implementation Norway

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

CGI format for Norway

Table of Contents
CGI format for Norway....................................................................................................................... 1
General Recommendation Valid For All Countries.......................................................................... 2
Payroll Country Specific Functionoality for CGI_XML_CT ............................................................ 3
Country/Project Specific Issues ....................................................................................................... 3
Example Customer Implementation ................................................................................................ 4
Payroll outgoing payments specific SEB Bank .............................................................................. 4
Paymet Ref KIDNO for Nordea Bank ............................................................................................ 5
General Recommendation Valid For All Countries

Read note 2253571 (Collective information note: CGI_XML_CT extended with BAdI enhancement)
where you can find more information regarding implementation of CGI format. See also attached
document (especially document "Introduction to the BAdI solution for CGI_171215.docx" and others).

Apply prerequisite notes (if not implemented yet or not installed with corresponding Support Package):

 1665873 – CGI: DMEE XML Format as per ISO20022 (see attached document
CGI_XML_CT_IMG.zip to prepare FPM_CGI structure, enhance structures FPAYP, FPAYH,
FPAHX, create function group DMEE_CGI, and so on)
 2133039 – SEPA: Instruction key for SvcLvl and PmtMtd, service level, payment method cod
 2230023 – Creation of New Packages ID-FI-REU and ID-FI-REU-PAYM
 2226373 – CGI: BAdI exits introduced to CGI_XML_CT
 2236518 – CGI: CGI_XML_CT with Country BAdI Extension
 2241939 – CGI: CGI_XML_CT w BAdI - Corrections in Fallback Class
CL_IDFI_CGI_DMEE_FALLBACK
 2241311 – CGI: CGI_XML_CT country specific functionality for ES, IT (CBI) , AT, DK, CN, TW,
AU, HK, US, GB, MX , SE
 2257354 – CGI: CGI_XML_CT country specific functionality improvement
 2261341 – CGI: CGI_XML_CT Format Updates #1
 2272412 – CGI: CGI_XML_CT Format Updates #2
 2268668 – CGI: CGI_XML_CT Format Updates #3
 2245270 – CGI_XML_DD: Spain - FSDD prefix in MsgId in case of Discount SEPA DD, PAYGR
- sample function modules for checking
 2253924 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #4
 2274616 – CGI Payment Format: address fields truncated (CGI_XML_CT, CGI_CML_DD)
 2283292 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #5
 2289247 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #6
 2295642 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #7
 2306111 – CGI: BAdI enhancement for Requested Execution Date in CGI_XML_CT and
Requested Collection Date in CGI_XML_DD
 2306304 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #8
 2311029 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #9
 2318961 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #10
 2322683 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #11
 2330563 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #12
 2350646 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #13
 2354237 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #14
 2366540 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #15
 2375987 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #16
 2387052 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #17
 2394966 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #18
 2414649 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #19
 2441382 – CGI: CGI_XML_CT, CGI_XML_DD Format Updates #20

Then refer the note 2253571 to check up-to-date list of delivered SAP Notes and to update DMEE
Tree "CGI_XML_CT" to the latest version (follow manual corr.instructions to get DMEE tree XML
definition and XSLT)
Payroll Country Specific Functionoality for CGI_XML_CT
Please, refer to SAP Note 2385694 - CGI: CGI_XML_CT country specific functionality for Norway for
more details. Also make sure you have checked attached documentation „Customizing for salary
payment.pdf“.

Country/Project Specific Issues

Create customer BAdI Implementation of Enhancement Spot: ES_IDFI_CGI_DMEE:

1) Start transaction SE18 and select display


2) Denmark specific version is under BAdI Definition FI_CGI_DMEE_COUNTRIES >
Implementations > BAdI Implementation IDFI_CGI_DMEE_COUNTRIES_NO
3) You need to create own new implementation under BAdI Definition
FI_CGI_DMEE_COUNTRIES_CUST

4) Select Enhancement Implementation

5) Fill in values with name of customer BAdI, description and implementing class:

6) Enter filter values:


Because not all functionality is provided, we expect that some Nodes will be handled in bank specific
development of customer BAdI:

Example Customer Implementation


Payroll outgoing payments specific SEB Bank
SEB: (implementation of Method IF_IDFI_CGI_DMEE_COUNTRIES~GET_VALUE):

METHOD if_idfi_cgi_dmee_countries~get_value.
* For all available exits please check and for standard logic please
* check CL_IDFI_CGI_DMEE_FALLBACK or your Country Implementation

IF flt_val_debit_or_credit EQ 'CREDIT'.
CASE i_node_path.
WHEN '<PmtInf><-PmtTpInf>'.
IF i_fpayh-dorigin EQ 'HR-PY'.
o_value = c_value = abap_false.
ENDIF.
WHEN ' <PmtInf><CdtTrfTxInf><-PmtTpInf>'.
IF i_fpayh-dorigin EQ 'HR-PY'.
o_value = c_value = abap_true.
ENDIF.
WHEN ' <PmtInf><CdtTrfTxInf><-CdtrAgt>'.
IF i_fpayh-dorigin EQ 'HR-PY'.
o_value = c_value = abap_true.
ENDIF.
WHEN '<PmtInf><PmtTpInf><SvcLvl><Cd>'.
IF i_fpayh-dorigin EQ 'HR-PY'.
CLEAR: o_value, c_value.
ENDIF.
WHEN '<PmtInf><PmtTpInf><SvcLvl><Prtry>'.
IF i_fpayh-dorigin EQ 'HR-PY'.
o_value = c_value = 'MPNS'.
ENDIF.
WHEN '<PmtInf><CdtTrfTxInf><RmtInf><Ustrd>'.
IF i_fpayh-dorigin EQ 'HR-PY'.
o_value = c_value = i_fpayp-sgtxt.
ENDIF.
ENDCASE.
ENDIF.

ENDMETHOD.
Paymet Ref KIDNO for Nordea Bank
If the Payment reference field (KIDNO) and the Invoice reference field (XBLNR) are both present in the
posted invoice document, then when the payment file is produced, both two values are being
incorrectly populated in to the tag <Ustrd>. Nordea Bank is rejecting these records.

Therefore, the following logic is needed, before the vendor payment file is generated:

1. When the Payment reference field KIDNO has a value, then only use this value to populate tag
<Ustrd>. Ignore any value that may be present in the Invoice reference field XBLNR.
2. When the Invoice reference field XBLNR has a value, then use this value to populate tag
<Ustrd>.
3. If both KIDNO and XBLNR are empty, use NoteToPayee functionality from FALLBACK class.

Nordea: (implementation of Method IF_IDFI_CGI_DMEE_COUNTRIES~GET_VALUE):

METHOD if_idfi_cgi_dmee_countries~get_value.
* For all available exits please check and for standard logic please
* check CL_IDFI_CGI_DMEE_FALLBACK or your Country Implementation

IF flt_val_debit_or_credit EQ 'CREDIT'.
CASE i_node_path.
WHEN '<PmtInf><CdtTrfTxInf><RmtInf><Ustrd>'.
* 1. When the Payment reference field KIDNO has a value, then only
* use this value to populate tag <Ustrd>. Ignore any value that
* may be present in the Invoice reference field XBLNR.
* 2. When the Invoice reference field XBLNR has a value, then use
* this value to populate tag <Ustrd>.
* 3. If both KIDNO and XBLNR are empty, use NoteToPayee
* functionality from FALLBACK class.

IF i_fpayp-strfr IS NOT INITIAL. "Case 1)


o_value = c_value = i_fpayp-strfr.
ELSEIF i_fpayp-xblnr IS NOT INITIAL. "Case 2)
o_value = c_value = i_fpayp-xblnr.
ELSE. "Case 3)
* Unstructured tag is created with BAdI exit from NoteToPayee as
* a concateneted Type 3 + Type 1
CLEAR c_value.
CALL METHOD cl_idfi_cgi_dmee_utils=>get_note2payee_by_type
EXPORTING
im_type = '3'
IMPORTING
ex_note = c_value.
CALL METHOD cl_idfi_cgi_dmee_utils=>get_note2payee_by_type
EXPORTING
im_type = '1'
IMPORTING
ex_note = c_value.
o_value = c_value.
ENDCASE.
ENDIF.

ENDMETHOD.

You might also like