Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dump in standard FPM GAF application during infotype update

Hi Gurus,

I've added a new step to standard FPM GAF application and while saving the data entered using HR_INFOTYPE_OPERATION I am getting getting the following exception CX_HRPA_VIOLATED_PRECONDITION .

I've already tried the suggestions available in Web dynpro forums and added perform do_nothing in program sapfp50p in the WDDOINIT method of my custom component but that has not solved the problem.

Please help . Below is the extract from st22 :

Short text
     An exception occurred that was not caught.

What happened?
     The exception 'CX_HRPA_VIOLATED_PRECONDITION' was raised, but it was not caught
      anywhere along
     the call hierarchy.

     Since exceptions represent error situations and this error was not
     adequately responded to, the running ABAP program
      'CL_HRPA_INFOTYPE_FACTORY======CP' has to be
     terminated.

Error analysis
     An exception occurred that is explained in detail below.
     The exception, which is assigned to class 'CX_HRPA_VIOLATED_PRECONDITION', was
      not caught in
     procedure "INITIALIZE_PS_ADAPTER" "(FORM)", nor was it propagated by a RAISING
      clause.
     Since the caller of the procedure could not have anticipated that the
     exception would occur, the current program is terminated.
     The reason for the exception is:
     Precondition Violated

Source Code Extract

Line  SourceCde

    1 METHOD set_context.
    2
    3   IF a_context IS INITIAL.
    4     CASE context.
    5       WHEN context_default OR
    6            context_legacy.
    7         a_context = context.
    8
    9       WHEN OTHERS.
   10         RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
   11           EXPORTING
   12             parameter = 'CONTEXT'.
   13     ENDCASE.
   14   ELSE.
   15 *   context must never be set twice
>>>>>     RAISE EXCEPTION TYPE cx_hrpa_violated_precondition.
   17   ENDIF.
   18 ENDMETHOD.

Tags:
Not what you were looking for? View more on this topic or Ask a question