Ansicht
Dokumentation

CRM_WEBREQ_SIGNATURE_READ - Reading Signature Data for a Process

CRM_WEBREQ_SIGNATURE_READ - Reading Signature Data for a Process

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module displays information on the digital signature for an order number. If you wish, you can also enter the version if there are several versions for the order. This is for web requests only as the signature date is only stored here in an XML structure. The corresponding XML document for the order is first determined. The signature data is then read from this structure.

ev_signature_value: PKCS#7 format incl. certificate and document
ev_signature_format: Specifies the format of the signature
ev_doctype: Type of signed document, e.g. "HTM"
ev_user: User name of person signing
ev_signature_version: Version of signature control
et_document: Signed document as source text
et_signertab: Table with certificate, ID and return code

You get the Exception no_signature if the request was not signed. If the document could not be verified, the exception verification_error is issued. If table et_message is filled, verification errors have occurred, which can be displayed by the user. As such, it may occur that the certificate has expired, despite the data being correct.

Example

Data:
      lv_order             TYPE CRMT_OBJECT_ID,
      lv_version           TYPE UXP_VERSION,
      lv_signature_value   TYPE string,
      lv_signature_format  TYPE string,
      lv_doctype           TYPE string,
      lv_user              TYPE string,
      lv_signature_version TYPE string,
      lt_document          TYPE ssftxttab,
      lt_message           TYPE UXB_T_MESSAGE,
      lt_signertab         TYPE SSFSIGNERTAB.

,,

CALL FUNCTION 'CRM_WEBREQ_SIGNATURE_READ'
    EXPORTING
      iv_order                   = lv_order
      iv_version                 = lv_version
    IMPORTING
      ev_signature_value         = lv_signature_value
      ev_signature_format         = lv_signature_format
      ev_doctype                 = lv_doctype
      ev_user                     = lv_user
      ev_signature_version       = lv_signature_version
      et_document                 = lt_document
      et_signertab                 = lt_signertab
    TABLES
      et_message                 = lt_message
EXCEPTIONS
      verification_error         = 1
      error_in_reading_form_data = 2
      get_signature_error         = 3
      no_signature               = 4
      OTHERS                     = 5.
  IF sy-subrc <> 0.
   MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

Notes

Further information





Parameters

ET_DOCUMENT
ET_MESSAGE
ET_SIGNERTAB
EV_DOCTYPE
EV_SIGNATURE_FORMAT
EV_SIGNATURE_VALUE
EV_SIGNATURE_VERSION
EV_USER
IV_ORDER
IV_ORDERGUID
IV_SIGNATURE_ID
IV_VERSION

Exceptions

ERROR_IN_READING_XML_DATA
GET_SIGNATURE_ERROR
NO_SIGNATURE
VERIFICATION_ERROR

Function Group

CRM_WEBREQ_DIGSIG

ROGBILLS - Synchronize billing plans   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 7972 Date: 20240523 Time: 112220     sap01-206 ( 83 ms )