Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

Clear memory or buffer or...?

Former Member
0 Likes
1,833

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

5 REPLIES 5
Read only

former_member201275
Active Contributor
0 Likes
1,176

The quick and dirty fix for this is to use ldb PNP instead of PNPCE. Do you have the option to try this?

Read only

0 Likes
1,176

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

http://scn.sap.com/people/aditya.palekar/blog/2010/01/19/uploading-a-pa-infotype-record-with-cost-as...

Read only

0 Likes
1,176

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.

Read only

0 Likes
1,176

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

Read only

0 Likes
1,176

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