Change Own Data modifications Following is the sequence of Function Modules used in modified Change Own Data application:
- Function HRXSS_COD_GET_DETAILS
Exporting parameter DETAIL_TABLE contains the list of 6 std fields used in change own data application. The existing change in above will get the custom subtypes in addition to above. So there will be totally 9 fields in Detail_table.
Add the following code to acheive the same.
2. Function HRXSS_COD_READ
Create enhancement YHRXSS_COD for function modue HRXSS_COD_READ. For deletion it is mandatory that the XSS adapter has to receive the old values stored in the data base. To achieve the same following code hasd to be added as an enhancement in above mentioned RFC.
If there is any need to add subtype it is important that each subtype is handled as above. XXXX is a suntype of infotype 105.
Add following code to handle the update and deletion flags in function module HRXSS_COD_MODIFY_PDATA.
The code written in first step will provide values in table records_0105.
This will make sure that the flag is set for deletion or update. For any additional subtype it is important to add this code for each subtype. It is also important that procedure "prepare_105_to_save" is also enhanced.
Above code has to be repeated for all the subtypes under include LHRXSS_COD_INTERFACEF01. On clicking EDIT, the control goes to the function. After the change introduced in step 3 the above table will carry additional subtypes. 5. Functiom HRXSS_COD_SAVE
This Function Module commits the data of standard fields which has been modified and saved in the Function Module hrxss_cod_modify
Webdynpro java changes
A. For mapping additional fields to standard attributes
Name of the component - VcCodChangeComp
Name of the method - setInputValuesFromPersonalDetailTable
Added following code in above method for mapping the extra field to the standard attributes of component controller.
YYYY should be the fieldname that appears in the detail_table.
B. Message removal SAP Note 1163517
You will need to make modification in webdynpro which may cause issues with solution covered in above mentioned note 1163517.
There will be an additional save message appearing on the review screen. The same had to be removed.
Name of the component - FCCodBusinessLogicComp
Name of the method - getRFCResult
The standard code doesn't handle the message for which there is a correction provided by SAP. This correction however is not sufficient. Following code has to be added to achieve this functionality.