cancel
Showing results for 
Search instead for 
Did you mean: 

Default logic question

Former Member
0 Kudos

Hello, HOw do I make sure that the default logic only runs for data loaded in the system by data manager package but NOT for Input schedule fact records?(Journals are not being used)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello, HOw do I make sure that the default logic only runs for data loaded in the system by data manager package but NOT for Input schedule fact records?(Journals are not being used)

================================================================

Hi Zack,

It depends on how you make the logic.

If the package your mention does not have any selection of default logic execution, then you do not have to worry about executing logic with the DM package. The logic is only available with selection of Default logic execution in DM package, therefore it does not affect any logic in default.lgf.

If the script logic is named as Default, then it will always be called whenever there is request of input schedule, if you intend to run a script logic with request of DM package, strongly recommend naming another name which is not "Default", and specify the logic name in the DM package(in Advanced Script, DM package menu). It will seperate logic, and the logic is only executed with the request of the DM package.

Hope this helps,

Regards,

YH Seo

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Zack,

As pointed out earlier, you need to pull out the code from Default and maintain it in the separate logic. This needs to be called after import. In order to make absolutely sure this gets called you may need to adjust the import package to automatically run the specific logic rather than default one.

Hope this helps,

Madis

Former Member
0 Kudos

Hi,

The records from input schedule goes to the factwb table. The records from the DM package goes to the fac2 table.

When you run any script (default or any other) it first fetches the record from the application based on the selection conditions defined in your script. While fetching these records from the application, it first creates a join of all the 3 tables (fact, fac2, factwb) and then fetches the records.

So, enabling the default logic to pick data from fac2 table and ignoring the other tables is not feasible.

Hope this helps.