cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PowerDesigner - function parameter defaults - missing in autogenerated file

0 Kudos

I am using PD 16.6.0.0.(4971).

When I create a function with parameters and set default values for these "IN" parameters, for some reason the function is generated without those defaults. Also, I’ve noticed that the PDM I imported from an earlier version is now missing these defaults. It is possible I am doing something wrong so my apologies beforehand but in case there is a bug I’d like to know about it. I figured out workaround to create a new "function" template without any %name% and other placeholders and hand-code the definition with hardcoded defaults. But that should not be the preferred solution.


Below is a snapshot of the PD environment.


The following settings will not appear in the generated "procedures" file.

View Entire Topic

Ok, thank you for the KBA reference.

Here is my workaround in case others will run into the same issue as well. It may not be perfect but it works.

1) add new custom function/procedure template (Database -> Edit Current DBMS) and strip all %QUALIFIER% and other variables away from the new template.

2) create new function from this bare-bones template and provide full function definition (including the parameters and their defaults)

3) save and generate new procedure file.