Ansicht
Dokumentation
FKK_PT_BUILD_EXBEL - Builds the Complete Portuguese ODN
ROGBILLS - Synchronize billing plans RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
Functionality
This function module builds the Official Document Number (EXBEL) based on the customizing data. It can be used in event 1192.
All components of the official document number, prefix, separator and sequential number, must be available when this function module is called.
These component data must be retrieved from the DFKK_PT_NUM_RULE customizing table for the relevant number range object interval. Otherwise, the document sequence to be digitally signed may be wrong, and it will not be verified by the tax authorities.
Exception: a separator is optional and can have different values within a number range object interval.
This function module is called in the Builds Legal Document Numbers from Customizing Settings.
Note:- You do not need to use this function module separately if the above mentioned module covers all your requirements when you create legal numbers.
Example
CALL FUNCTION 'FKK_PT_GET_EXBELX_SETTING'
....
....
CALL FUNCTION 'FKK_PT_BUILD_EXBEL'
EXPORTING
iv_prefix = local_structure_dfkk_pt_num_rule-num_prefix_odn
iv_separator = local_value_separator
iv_number_char = i_number
* IF_DELETE_LEADING_ZEROS = ''
IMPORTING
ev_odn = x_fkkextdoc-exbel
* EV_CHAR =
EXCEPTIONS
invalid_input_data = 1
OTHERS = 2.
IF sy-subrc <> 0.
"fatal error
raise....
ENDIF.
Notes
The function module contains a consistency check for the total length of 16 digits for the ODN. If you shorten the sequential number to use a longer prefix, you cannot use this function module.
You need to use a number range object that fits to your prefix length.
Further information
Parameters
EV_CHAREV_ODN
IF_DELETE_LEADING_ZEROS
IV_NUMBER_CHAR
IV_PREFIX
IV_SEPARATOR
Exceptions
INVALID_INPUT_DATAFunction Group
FKPT_DS_UTILITYBAL Application Log Documentation CPI1466 during Backup
This documentation is copyright by SAP AG.
Length: 2546 Date: 20240523 Time: 061041 sap01-206 ( 39 ms )