cancel
Showing results for 
Search instead for 
Did you mean: 

Dump in standard FPM GAF application during infotype update

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi folks,

this problem happen when call a infotype function from Web Dynpro (FPM, Z) automaticly has create a instance with a new buffer adapter (New Framework for work with infotypes), the posible solutions are:

>Call a Z function with 'destination' parameter (maybe)

>Create a job with hr_infotype fuction (test OK)

>The wild form is recreate the operation to DB like  'insert  PA0001 from wa_xxx', etc.  (test OK)

Further if  'HR_INFOTYPE_OERATION' function is called in 'UPDATE_DB' method of  'HRPAD00INFTYDB' BADI, exist a note in header of this method : 'COMMIT/ROLLBACK must not be performed within the BADI implementation itself.'

See this OSS Notes: (SN:716914,1724005,493984)

********************

''*            The exception is raised in case the 'new' infotype framework (based on the buffer

*            IF_HRPA_MASTERDATA_BUFFER) and the 'old' infotype framework (based on the 'PS' buffer of SAPFP50P)

*            are both initialized within the same application. Both infotype frameworks are working,

*            but it is not possible to use them in the same application."

JurijsP
Explorer
0 Kudos

Hi,

Did you manage to solve this issue? If yes, please share. It will be very usefull for me and others.

Thanks!