CHANGE_AT_SAVE SAP Method Invoice Document at Save
Below is documentation, parameters and attributes of ABAP Method CHANGE_AT_SAVE within SAP class IF_EX_INVOICE_UPDATE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_EX_INVOICE_UPDATE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CHANGE_AT_SAVE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CHANGE_AT_SAVE
.| Name | Type | Data Type | Description | Default Value |
| I_UPDATE_FLAG | Importing | TYPE MARKE | Change Indicator | |
| S_RBKP_NEW | Importing | TYPE RBKP | Invoice Document Header: New | |
| S_RBKP_OLD | Importing | TYPE RBKP | Invoice Document Header: Old | |
| TI_RBCO_NEW | Importing | TYPE MRM_TAB_MRMRBCO | G/L Account Postings: New | |
| TI_RBCO_OLD | Importing | TYPE MRM_TAB_MRMRBCO | G/L Account Postings: Old | |
| TI_RBMA_NEW | Importing | TYPE MRM_TAB_MRMRBMA | Document Lines: New Material | |
| TI_RBMA_OLD | Importing | TYPE MRM_TAB_MRMRBMA | Document Lines: Old Material | |
| TI_RBTX_NEW | Importing | TYPE MRM_TAB_MRMRBTX | Invoice Tax Data: New | |
| TI_RBTX_OLD | Importing | TYPE MRM_TAB_MRMRBTX | Invoice Tax Data: Old | |
| TI_RBVE_NEW | Importing | TYPE MRM_TAB_MRMRBVE | Persistent Key FIgures with Info About Indicator | |
| TI_RBVS_NEW | Importing | TYPE MRM_TAB_MRMRBVS | Invoice Amount Split: New | |
| TI_RBVS_OLD | Importing | TYPE MRM_TAB_MRMRBVS | Invoice Amount Split: Old | |
| TI_RBWS_NEW | Importing | TYPE MRM_TAB_MRMRBWS | Withholding Tax Data for Invoice: New | |
| TI_RBWS_OLD | Importing | TYPE MRM_TAB_MRMRBWS | Withholding Tax Data for Invoice: Old | |
| TI_RSEG_NEW | Importing | TYPE MRM_TAB_MRMRSEG | Invoice Document Item: New | |
| TI_RSEG_OLD | Importing | TYPE MRM_TAB_MRMRSEG | Invoice Document Item: Old | |
| TI_RECON | Importing | TYPE MRM_TAB_RECON | Document Lines: Consignment Settlement |
Exceptions of Method CHANGE_AT_SAVE
ERROR_WITH_MESSAGE - Error Message OccurredExample ABAP coding
DATA: lo_class TYPE REF TO IF_EX_INVOICE_UPDATE.
DATA: lv_I_UPDATE_FLAG TYPE MARKE,
lv_S_RBKP_NEW TYPE RBKP,
lv_S_RBKP_OLD TYPE RBKP,
lv_TI_RBCO_NEW TYPE MRM_TAB_MRMRBCO,
lv_TI_RBCO_OLD TYPE MRM_TAB_MRMRBCO,
lv_TI_RBMA_NEW TYPE MRM_TAB_MRMRBMA,
lv_TI_RBMA_OLD TYPE MRM_TAB_MRMRBMA,
lv_TI_RBTX_NEW TYPE MRM_TAB_MRMRBTX,
lv_TI_RBTX_OLD TYPE MRM_TAB_MRMRBTX,
lv_TI_RBVE_NEW TYPE MRM_TAB_MRMRBVE,
lv_TI_RBVS_NEW TYPE MRM_TAB_MRMRBVS,
lv_TI_RBVS_OLD TYPE MRM_TAB_MRMRBVS,
lv_TI_RBWS_NEW TYPE MRM_TAB_MRMRBWS,
lv_TI_RBWS_OLD TYPE MRM_TAB_MRMRBWS,
lv_TI_RSEG_NEW TYPE MRM_TAB_MRMRSEG,
lv_TI_RSEG_OLD TYPE MRM_TAB_MRMRSEG,
lv_TI_RECON TYPE MRM_TAB_RECON,
lv_other TYPE c.
CALL METHOD lo_class=>CHANGE_AT_SAVE(
EXPORTING
I_UPDATE_FLAG = lv_I_UPDATE_FLAG
S_RBKP_NEW = lv_S_RBKP_NEW
S_RBKP_OLD = lv_S_RBKP_OLD
TI_RBCO_NEW = lv_TI_RBCO_NEW
TI_RBCO_OLD = lv_TI_RBCO_OLD
TI_RBMA_NEW = lv_TI_RBMA_NEW
TI_RBMA_OLD = lv_TI_RBMA_OLD
TI_RBTX_NEW = lv_TI_RBTX_NEW
TI_RBTX_OLD = lv_TI_RBTX_OLD
TI_RBVE_NEW = lv_TI_RBVE_NEW
TI_RBVS_NEW = lv_TI_RBVS_NEW
TI_RBVS_OLD = lv_TI_RBVS_OLD
TI_RBWS_NEW = lv_TI_RBWS_NEW
TI_RBWS_OLD = lv_TI_RBWS_OLD
TI_RSEG_NEW = lv_TI_RSEG_NEW
TI_RSEG_OLD = lv_TI_RSEG_OLD
TI_RECON = lv_TI_RECON ).
Links to Related Class(s)
IF_EX_IN...Full list of available SAP object classes
Search for further information about these or an SAP related objects