Ansicht
Dokumentation
FKK_PT_SIGN_DOC - Signs an FI-CA document digitally (SAF-T) inside/outside of ODN process
ROGBILLS - Synchronize billing plans BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
This function module creates a digital signature for a document to be reported in a SAF-T file in Portugal. An official document number must be already assigned. This function module must be called at the end of event 1192.
Example
* check the customizing table, fill the local structure 'local_structure_dfkk_pt_num_rule',
* if the number range object interval requires a SAF-T number generation
* if yes, create a digital signature
......
......
if local_flag_exbelx_creation = 'X'.
call function 'FKK_PT_SIGN_DOC'
exporting
is_data_extract = i_fkkextdoc
* IF_BATCH =
changing
cs_sign_data_doc = ls_fkkextdoc2
cs_num_rule = local_structure_dfkk_pt_num_rule
exceptions
doc_not_to_be_signed = 1
doc_ds_error = 2
doc_sequence_error = 3
doc_data_error = 4
error = 5
others = 6.
if sy-subrc <> 0.
case sy-subrc .
when 1.
"signing is dropped, no table entry
clear x_fkkextdoc2.
when 2 or 3 .
"signing in batch later, basic table entry
x_fkkextdoc2 = ls_fkkextdoc2.
when 4 or 5 .
sy-msgty = 'E'. "msg type is not set in FKK_PT_GET_EXBELX_SETTING
"caller needs to handle...........
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 .
endcase .
else.
"immediate signing possible, full table entry
x_fkkextdoc2 = ls_fkkextdoc2.
endif.
endif.
Notes
Further information
Parameters
CS_NUM_RULECS_SIGN_DATA_DOC
IF_BATCH
IS_DATA_EXTRACT
Exceptions
DOC_DATA_ERRORDOC_DS_ERROR
DOC_NOT_TO_BE_SIGNED
DOC_SEQUENCE_ERROR
ERROR
Function Group
FKPT_DOCPERFORM Short Reference SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 2600 Date: 20240603 Time: 222502 sap01-206 ( 40 ms )