Ansicht
Dokumentation

EXIT_SAPLE25S_001 - IS-U: Check and Change Logical View of Budget Billing Plan

EXIT_SAPLE25S_001 - IS-U: Check and Change Logical View of Budget Billing Plan

ABAP Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Documentatioin for the Function Module EXIT_SAPLE25S_001

Enhancement

This user exit enables you to check and change data of the budget billing plan to be migrated. The data is available in the following structures:

  • X_EVER: Contract data
  • XY_BBP: Budget billing plan data
    This consists of the following structures:
  • EABP:,,,,Header data

  • T_EABPS:,,Item data

Important: Note that the fields of the structure XY_BBP are required entries. This means that if any data in these fields is deleted, errors may occur during creation of the budget billing plan.

Note

You store your own coding in the function module in the following include file:

Function module Include file
EXIT_SAPLE25S_001 ZXE25S01

Exceptions must be programmed in the enhancement in the form of an error message (see example 1 below). This enables you to use user-defined error messages from your own message classes.

Examples

  1. In the payment plan category, you can specify that a payment plan amount may not be requested in the last month of the budget billing period (this is currently only relevant for the US).
* Data definition
tables: te015.
data: v_lstmt like te015,
v_lines type i.
constants: co_value_x(1) type c value 'X'.
*--> Determine data for payment plan category.
select single lstmt,,into v_lstmt
,,,,,,,,,,,,from te015
,,,,,,,,,,,,where pyplt eq x_ever-pyplt.
if sy-subrc ne 0.
* >>Payment plan category not found<<
message E001(ZBBP) with x_ever-pyplt.
else.
*--> Delete last payment plan amount if indicator is set.
sort xy_bbp-t_eabps by faedn.
describe table xy_bbt-t_eabps lines v_lines.
if v_lstmt eq co_value_x.
delete xy_bbt-t_eabps index v_lines.
endif.
endif.
  1. If the due date for the last budget billing payment falls after the 15th of the month, it can be changed to the 15th of the month and the debit entry date can be changed to the 1st of the month.

* Data definition
data: v_lines type i,
v_faedn like eabps-faedn.
data: i_eabps like eabps occurs 0 with header line.
constants: co_day_15(2) type n value 15,
co_day_01(2) type n value 01.

* Read individual budget billing items from transfer parameter.
append lines of xy_bbp-t_eabps to i_eabps.

* Check and (if applicable) change due date.
describe table i_eabps lines v_lines.
read table i_eabps index v_lines.
if i_eabps-faedn+6(2) gt co_day.
i_eabps-faedn+6(2) = co_day_15.
i_eabps-solldat+6(2) = co_day_01.
modify i_eabps index v_lines.
endif.

* Write changed data back to changing parameter.
clear: xy_bbp-t_eabps.
move i_eabps[] to xy_bbp-t_eabps.




Parameters

XY_BBP
X_EVER

Exceptions

ERROR_MSG

Function Group

XE25S

rdisp/max_wprun_time - Maximum work process run time   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 3738 Date: 20240523 Time: 042210     sap01-206 ( 35 ms )