Skip to Content
Author's profile photo chandru ramasundaram

System Error 2 in Adobe Form

Dear friends,

I need your help.

When i try to execute the Adobe Form.

Value is populated though function moudle : function_name. But System Error : 2  [ EXCEPTIONS ]

Please Help Me. High Priorty

Code :

TRY.
      CALL FUNCTION ‘FP_FUNCTION_MODULE_NAME’
        EXPORTING
          i_name     = l_name
        IMPORTING
          e_funcname = function_name.

** Exception handled
    CATCH cx_fp_api_internal.
    CATCH cx_fp_api_repository.
    CATCH cx_fp_api_usage.
  ENDTRY.

    CALL FUNCTION function_name
     EXPORTING
       /1BCDWB/DOCPARAMS       =  fp_docparams
        header                 =  lv_header

*   IMPORTING
*     /1BCDWB/FORMOUTPUT       =
     EXCEPTIONS
       usage_error              = 1
       system_error          = 2   ——————————————————————–  ” System Error Generated “
       internal_error           = 3
       OTHERS                   = 4.

    IF sy-subrc <> 0.
* Implement suitable error handling here
    ENDIF.

Also tryed to execute the Program : FP_TEST_IA_01

It shows Error message like

Error Message :   ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: could not retrive credential for alias: ReaderRights ( 200,101 )

Please give me solution for this issue.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Naveen Pathipaka
      Naveen Pathipaka

      Hi Ramasundaram,

      Please take help from your BASIS team to update the SP15 1 ADS patches.

      Hope that will resolve your problem.

      Regards,

      Naveen

      Author's profile photo Former Member
      Former Member

      Hi Chandru,

      As you use Adobe Interactive forms you require a special credential from SAP to be installed in the JAVA stack on which you call the ADS service. Do you have this credential installed in your JAVA stack? If not, make sure you request the credential from SAP and to install it. In Adobe Interactive Forms scenario, a system checks takes place to see whether the credential is in place and is registered.If this is not the case, you cannot use the Adobe Interactive Forms scenario.

      Please see below URL to see how to obtain the credential.

      http://wiki.sdn.sap.com/wiki/display/SI/How+to+require+a+Adobe+Credential+for+SAP+Interactive+Forms

      Regards,

      Tom Van den Broeck

      SAP BC Consultant

      Author's profile photo Michael Sargent
      Michael Sargent

      To add a note to this issue.

      Please check standard SAP adobe forms printing routines.

      The error can manifest when the ls-outputparams are incompatible for the medium used.  For example in print preview and in email and in print, the params are different and cause system error = 2 if not correct.

      In our system, we get the error "ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: could not retrieve credential for alias: ReaderRights ( 200,101 )" in program FP_TEST_IA_01, but the output still works with this error.

      CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
      ie_outputparams = ls_outputparams
      EXCEPTIONS
      cancel = 1
      usage_error = 2
      system_error = 3
      internal_error = 4
      OTHERS = 5.

      IF sy-subrc <> 0.
      gv_returncode = sy-subrc.
      * PERFORM protocol_update.
      RETURN.
      ENDIF.

      *--- Get the name of the generated function module
      TRY.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
      i_name = lv_form
      I MPORTING
      e_funcname = lv_fm_name.

      CATCH cx_fp_api_repository
      cx_fp_api_usage
      cx_fp_api_internal.
      gv_returncode = 99.
      * PERFORM protocol_update.
      RETURN.
      ENDTRY.

      * Directly call the function module generated
      * from according PDF form
      CALL FUNCTION lv_fm_name
      EXPORTING
      /1bcdwb/docparams = ls_docparams
      statement_prt_comm = gs_interface
      IMPORTING
      /1bcdwb/formoutput = ls_pdf_file
      EXCEPTIONS
      usage_error = 1
      system_error = 2
      internal_error = 3
      OTHERS = 4.

      *--- Close the spool job
      CALL FUNCTION 'FP_JOB_CLOSE'
      EXCEPTIONS
      usage_error = 1
      system_error = 2
      internal_error = 3
      OTHERS = 4.

       

      Regards

      Michael