Sei sulla pagina 1di 8

SAP Hybris Cloud for Customer 1911: Reversal of open items

Contents
SAP Hybris Cloud for Customer 1911: Reversal of open items..................................................................... 1
1. Context .............................................................................................................................................. 2
2. ERP- Reversal of open items ............................................................................................................. 3
2.1. Process Flow.................................................................................................................................. 3
2.2. ISU Design Details ......................................................................................................................... 3
2.3. Service Definition – ....................................................................................................................... 5
3. S/4 HANA........................................................................................................................................... 6
3.1. Process Flow.................................................................................................................................. 6
3.2. ISU Design Details ......................................................................................................................... 6
3.3. Service Definition – ....................................................................................................................... 8
1. Context

Existing Behavior in C4C: Currently C4C only displays the open items in utilities financial tab and utilities
collections tab same as FPL9.

Expected Behavior in C4C: Reversal of open items will be introduced in addition to Display.
Reversal button is introduced in account History and open item tabs which will reverse the open items
selected.
2. ERP- Reversal of open items

2.1. Process Flow

Request with Importing parameters


SAP Hybris
ISU
C4C Web Service Call -> COD_UTIL_ACC_OVERVIEW_MODIFY

Response with Budget Billing Details

2.2. ISU Design Details

Note- We are Enhancing the Existing account overview modify for reversal of open items

Yellow color- New fields added

Import Parameters:

IV_DEF_DATE TYPE COD_DATE


IT_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T
IT_EXTENSION_DATA_IN TYPE COD_UTIL_EXTENSION_T
IV_ACTIONCODE TYPE COD_ACTION_CODE
IS_AUDIT TYPE COD_UTILITIES_AUDIT_LOG
IV_REV_DATE TYPE COD_DATE

Export Parameters:

ET_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T


ET_MESSAGES TYPE BAPIRET2_T
ET_EXTENSION_DATA_OUT TYPE COD_UTIL_EXTENSION_T

In structure COD_UTILITIES_CA_OPEN_ITEM_S, posting date (POSTING_DATE) is added to handle date


validation from front end.

Below are the WSDL’s updated for the same-

1. COD_UTILITIES_ACCOUNT_OVERVIEW
2. COD_UTILITIES_MANUAL_POSTING
3. COD_UTIL_ACC_OVERVIEW_MODIFY
AUDIT TRAIL
No audit trail for this.

Enhancement spot will be enhanced with Pre/Post BADI methods in the Function Module for customer
specific requirements.

Enhancement Spot: COD_UTIL_ACC_OVERVIEW_MODIFY

BADI: COD_UTIL_ACC_OVERVIEW_MODIFY

Interface: IF_COD_UTL_ACC_OVERVIEW_MODIFY

Methods:

 ACC_OVERVIEW_MODIFY_PRE
 ACC_OVERVIEW_MODIFY_POST

ACC_OVERVIEW_MODIFY_PRE

Yellow color: New fields added

IT_EXTENSION_DATA_IN TYPE COD_UTIL_EXTENSION_T


IV_ACTIONCODE TYPE COD_ACTION_CODE
IS_AUDIT TYPE COD_UTILITIES_AUDIT_LOG
CV_SKIP_FLAG TYPE BOOLEAN
CT_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T
CT_MESSAGES TYPE BAPIRET2_T
CT_EXTENSION_DATA_OUT TYPE COD_UTIL_EXTENSION_T
CV_REV_DATE TYPE BUDAT_KK
CV_DOC_TYPE TYPE BLART_KK
CV_KEY TYPE FIKEY_KK
CV_CLEARG_RSN TYPE AUGRD_KK
CV_ORIGIN_KEY TYPE HERKF_KK

ACC_OVERVIEW_MODIFY_POST:

IT_EXTENSION_DATA_IN TYPE COD_UTIL_EXTENSION_T


IV_ACTIONCODE TYPE COD_ACTION_CODE
IS_AUDIT TYPE COD_UTILITIES_AUDIT_LOG
IV_REV_DATE TYPE BUDAT_KK
IV_DOC_TYPE TYPE BLART_KK
IV_KEY TYPE FIKEY_KK
IV_CLEARG_RSN TYPE AUGRD_KK
IV_ORIGIN_KEY TYPE HERKF_KK
CT_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T
CT_MESSAGES TYPE BAPIRET2_T
CT_EXTENSION_DATA_OUT TYPE COD_UTIL_EXTENSION_T

List of Tables to be used :


 NA

Approach:

 Add reversal date as an import parameter.


 New action code 01 is given for reversal.
 Add document type (BLART), Reversal date (BUDAT), clearing reason (AUGRD), Document
origin key (HERKF), Reconciliation key (FIKEY) in Pre BADI and Post BADI.
 Above parameters are given in Pre BADI for the customer to give the values in future if
needed.
 New method (REVERSAL_ACTION) is created in Class
‘CL_ISU_C4C_ACC_OVERVIEW_MODIFY’
 If document type, reversal date, clearing reason, document origin key is not filled in Pre
BADI, then pass the default values.
 Document type = ST, Document origin key = 02, Clearing reason = 05.
 Call FM ‘FKK_CRM_GENERAL_FIKEY_GET’ to create new reconciliation key.
 Call FM ’FKK_REVERSE_DOC’ with the above parameters and reverse the open items
selected.
 If it is success message or failure messages it will be appended in ET_MESSAGES.

2.3. Service Definition –

Service Definition for COD_UTIL_ACC_OVERVIEW_MODIFY will be enhanced according to new


parameters and fields
3. S/4 HANA

3.1. Process Flow

Request with importing parameters

SAP Hybris S/4HANA


C4C Web Service Call -> ISU_C4C_ACC_OVERVIEW_MODIFY

Response with Budget Billing Details

3.2. ISU Design Details

Service Name : ISU_C4C_ACC_OVERVIEW_MODIFY

Note- We are Enhancing the Existing account overview modify for reversal of open items

Yellow color- New fields added

Import Parameters:

IV_DEF_DATE TYPE ISU_C4C_DATE


IT_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T
IT_EXTENSION_DATA_IN TYPE ISU_C4C_UTIL_EXTENSION_T
IV_ACTIONCODE TYPE ISU_C4C_ACTION_CODE
IS_AUDIT TYPE ISU_C4C_AUDIT_LOG
IV_REV_DATE TYPE ISU_C4C_DATE
Export Parameters:

ET_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T


ET_MESSAGES TYPE BAPIRET2_T
ET_EXTENSION_DATA_OUT TYPE ISU_C4C_UTIL_EXTENSION_T

In structure COD_UTILITIES_CA_OPEN_ITEM_S, posting date (POSTING_DATE) is added to handle date


validation from front end.

Below are the WSDL’s updated for the same-

1. ISU_C4C_ACCOUNT_OVERVIEW
2. ISU_C4C_ACC_OVERVIEW_MODIFY
3. ISU_C4C_MANUAL_POST
AUDIT TRAIL
No audit trail for this.

Enhancement spot will be enhanced with Pre/Post BADI methods in the Function Module for customer
specific requirements.

Enhancement Spot: ISU_C4C_ACC_OVERVIEW_MODIFY

BADI: ISU_C4C_ACC_OVERVIEW_MODIFY

Interface: IF_ISU_C4C_ACC_OVERVIEW_MODIFY

Methods:

 ACC_OVERVIEW_MODIFY_PRE
 ACC_OVERVIEW_MODIFY_POST

ACC_OVERVIEW_MODIFY_PRE

Yellow color: New fields added

IT_EXTENSION_DATA_IN TYPE ISU_C4C_UTIL_EXTENSION_T


IV_ACTIONCODE TYPE ISU_C4C_ACTION_CODE
IS_AUDIT TYPE ISU_C4C_AUDIT_LOG
CV_SKIP_FLAG TYPE BOOLEAN
CT_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T
CT_MESSAGES TYPE BAPIRET2_T
CT_EXTENSION_DATA_OUT TYPE ISU_C4C_UTIL_EXTENSION_T
CV_REV_DATE TYPE BUDAT_KK
CV_DOC_TYPE TYPE BLART_KK
CV_KEY TYPE FIKEY_KK
CV_CLEARG_RSN TYPE AUGRD_KK
CV_ORIGIN_KEY TYPE HERKF_KK

ACC_OVERVIEW_MODIFY_POST:

IT_EXTENSION_DATA_IN TYPE ISU_C4C_UTIL_EXTENSION_T


IV_ACTIONCODE TYPE ISU_C4C_ACTION_CODE
IS_AUDIT TYPE ISU_C4C_AUDIT_LOG
IV_REV_DATE TYPE BUDAT_KK
IV_DOC_TYPE TYPE BLART_KK
IV_KEY TYPE FIKEY_KK
IV_CLEARG_RSN TYPE AUGRD_KK
IV_ORIGIN_KEY TYPE HERKF_KK
CT_OPEN_ITEMS TYPE COD_UTILITIES_CA_OPEN_ITEM_T
CT_MESSAGES TYPE BAPIRET2_T
CT_EXTENSION_DATA_OUT TYPE ISU_C4C_UTIL_EXTENSION_T
Approach: Same as mentioned for ERP track
3.3. Service Definition –

Service Definition for COD_UTILITIES_BUDGET_BILLING will be enhanced according to new parameters


and fields