SET_USAGE_RIGHTS

Use

You use this method to define additional usage rights for a PDF form.

Import parameters

  • KEYNAME TYPE STRING OPTIONAL

    The name of the private key is required to assign usage rights to a form. The key is installed and configured by the administrator. If you do not specify a value here, the system uses the default value.

  • MESSAGE TYPE STRING OPTIONAL

    Information provided for the user.

    If you do not specify a text here, the system uses a default text.

  • DEFAULT_RIGHTS TYPE FPBOOLEAN OPTIONAL DEFAULT ABAP_TRUE

    If you set this parameter to ABAP_FALSE, the default usage rights are not assigned automatically.

  • RIGHTS TYPE TFPURIGHT OPTIONAL

    List of the usage rights that are to be assigned to the PDF form. If you do not specify any values here, the system uses the default list of usage rights. If you specify a value or values here, no default usage rights are defined. The usage rights are defined as attributes in the interface IF_FP_PDF_USAGE_RIGHTS.

Exception classes

  • CX_FP_RUNTIME_USAGE

  • CX_FP_RUNTIME_SYSTEM