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

Enhancement not allowed for function module OPEN_FORM

Former Member
0 Likes
506

Hi,

We have a requirement to always print a cover page for sapscript forms that are not being printed from a production environment. This is to help the users distinguish between test prints and live prints when printing to a production printer. We are on ECC6.

I initially thought that I could use an implicit enhancement at the start of function module OPEN_FORM, to manually set OPTIONS-TDCOVER to 'X' when required. This tested fine when changing the value manually in debug.

When I tried to enhance this function module, I got an error message to the effect that you are not allowed to enhance Core Basis functions. Presumably this is due to the fact that the package BASIS is marked as "Package not extendable".

Can I repair this function module to achieve what I want? Assuming the code I am going to add is robust and doesn't cause any problems in itself, are there any other dangers?

Are there any other options to achieve what I want? I want a generic solution that will also be future-proof for new forms, i.e. I don't want to change print programs or sapscript forms on an individual basis.

We have changed the SAP cover page option in SPAD, but this only affects output from abaps, it doesn't affect layout sets.

Many thanks,

Pete

2 REPLIES 2
Read only

Former Member
0 Likes
418

Hi,

As per my knowledge, it is not possible to enhance the OPEN_FORM, please try for any other options.

Bye

Read only

0 Likes
418

As you may only sometimes which to pass the parameter through copy the OPEN_FORM FM to ZOPEN_FORM, you will then be able to call this and make your changes.

Regards

J