‎2014 Aug 26 1:32 PM
Hi
I create program, but I need clear "something" - memory, buffer or...?
My program have a selection screen and modificate output screen (using ALV buttons). When I modify data (using new framework and next part of code old infotype framework) program give "RAISE EXCEPTION TYPE cx_hrpa_violated_precondition"
.
I don't know have change a
CL_HRPA_MASTERDATA_FACTORY=>LEGACY_MODE( abap_true ) and next abap_false
When I run program e.g. at first modify new infotype framework, then use F3 (back button). I get selection screen then again use F8 (run button) and then old infotype framework. Everything is ok.
Between using both infotype framework I must use F3 (back button).
What I can do for working without F3 button?
Thank you
‎2014 Aug 26 1:44 PM
The quick and dirty fix for this is to use ldb PNP instead of PNPCE. Do you have the option to try this?
‎2014 Aug 26 3:05 PM
Can you help me explain how?
I don't have any experience with this.
For "old" framework I use
HR_PSBUFFER_INITIALIZE
HR_INFOTYPE_OPERATION
For "new" framework I use
cl_hrpa_masterdata_factory=>get_business_logic
g_masterdata_bl->initialize
according guide
‎2014 Aug 26 3:36 PM
If you go the Attributes of your program are you using PNPCE or PNP? Try your program rather with PNP as this might bypass the error you are getting.
‎2014 Aug 26 2:03 PM
Hi,
Add this below perform in INITIALIZATION and try.
* an event to avoid a short dump due to CE framework
* refer to SAP NOTES: 0000611782 / 0000716914
PERFORM do_nothing(sapfp50p).
Thanks
‎2014 Aug 26 2:54 PM
in SAP NOTES 493984 is advice for SET_FRAMEWORK CX_HRPA_VIOLATED_PRECONDITION
"In general, this is done by inserting a "PERFORM do_nothing(sapfp50p)" statement for event LOAD-OF-PROGRAM."
but doesn't work too