11.07.2015 Views

Tips and Tricks for Working with Reports and - DSD Business Systems

Tips and Tricks for Working with Reports and - DSD Business Systems

Tips and Tricks for Working with Reports and - DSD Business Systems

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Tips</strong> <strong>and</strong> <strong>Tricks</strong> <strong>for</strong> <strong>Working</strong> <strong>with</strong> <strong>Reports</strong><strong>and</strong> Forms in <strong>Business</strong> Framework Modules


Forms Codes = Report Settings• Stores data (settings) about the Form Printing orReport window.• Printer selection.• Selections on Main Tab, Options.• SY_REPORTSETTING.M4T• ‘St<strong>and</strong>ard’ settings only save printer settings.• Question:• If the <strong>for</strong>m code saves the printer selection what happens whenanother user uses that Form Code or report?


Form Codes VS Report Settings• Behavior differences in Forms <strong>and</strong> <strong>Reports</strong>.• Forms will follow the users even to another workstation. Once auser prints to a Form Code that will be the Form Code they will seethe next time they open that <strong>for</strong>m printing window.• SY_LASTFORMUSED• <strong>Reports</strong> default to the ‘St<strong>and</strong>ard’ report setting unless the userdesignates the Report Setting as their ‘Default’.• A report setting can only have ONE default user.


Templates• When a new Form Code is created you have to choose a“Template”. The template selection assigns the type of CrystalReport <strong>for</strong>m that <strong>for</strong>m code will open.• Preprinted - SO_SalesOrder1.rpt• Plain - SO_SalesOrder2.rpt• Marbled - SO_SalesOrder3.rpt• Dot Matrix - SO_SalesOrder4.rpt• Some <strong>Reports</strong> have multiple Templates.• Template selection is done automatically based on selections in the‘Options’ section of the Report printing window.• Select ‘Print Condensed’ <strong>for</strong> portrait template - GL_DetailReportCondensed.rpt• If print condensed is not selected - GL_DetailReport.rpt


Where are these Forms / <strong>Reports</strong> coming from?• If a Custom Crystal Report has not been created all <strong>for</strong>ms <strong>and</strong>reports come from the mas90\reports directory.• If the Designer button is selected in Form Printing or if the‘Designer’ selection is chosen from the ‘Save’ drop down inReport Printing, a new .rpt file is created in themas90\mas_xxx\reports\[<strong>for</strong>m Printing Name]\[from code name]• Example: MAS90\MAS_ABC\<strong>Reports</strong>\GL_CHARTOFACCOUNTS\myChartAccounts• If set up in Report Manager a custom report can be made thedefault <strong>for</strong> all <strong>for</strong>m codes from all companies. Those .rpt files arefound in mas90\mas_system\reports\[<strong>for</strong>m Printing Name]\[fromcode name]


Crystal Work Files• Crystal work files no longer hold data.• A Temporary work file is created <strong>with</strong> a session number that isaliased in the Crystal report.• A system interuption will no longer leave data in the temp file <strong>and</strong>possibly affect future print jobs. However, these files will stay in thesystem.• How to see data when modifying a Form.• Preview the report or <strong>for</strong>m, rename the original work file to from*.M4T to *.original.• Remove the session data from the temp filename.


Fields can be added directly to Work Files• Using Customizer fields can be added directly to the CrystalWork files.• In most case you will no longer need to add additional tables to thereport or Form.• Eliminates need to create links <strong>and</strong>/or sub-reports <strong>for</strong> consistentdata.• Customizer UDF field/Table Maintenance.• Select the work table.• Create the <strong>Business</strong> Object UDF.• Update• If the added field does not appear in the report, refresh thedatabase.


One Report to Rule them ‘all’• One custom Crystal Report can be created that allunassociated Form Codes or <strong>Reports</strong> will point to.• Create a Form Code in a <strong>for</strong>m printing window <strong>and</strong> press thedesigner button.• In report manager select the <strong>for</strong>m <strong>and</strong> click the copy button.• Select the All Forms check box <strong>and</strong> a company code toCreate a Crystal Report that all unassociated will open in aspecific company.• Select the All Forms <strong>and</strong> All Companies <strong>and</strong> the modifiedreport will become the default <strong>for</strong> all companies <strong>for</strong> that <strong>for</strong>m.


Adding Custom <strong>Reports</strong> to Menu• File name must end <strong>with</strong> CUSTOM.RPT• You can have parameter fields in the report.• Tip: Place the report file in the MAS90\REPORTS directorybe<strong>for</strong>e adding the report to menu in Report Manager.• Menu names in ‘Custom <strong>Reports</strong>’ can be renamed or moved inthe list using sy_menu_ui from File > Run• TIP: The title bar does not change using this utility. DFDM can beused to change the tile bar.• Copy the menuName to menuDesription field in SY_MENU.M4T• Leave menuName in clip board <strong>and</strong> copy to taskName, taskDescription <strong>and</strong> theend of Arguments in SY_TASK.M4T


Multiple Custom .RPT’s in one Form Printing Screen• It is possible to have multiple Customized <strong>Reports</strong> <strong>and</strong> still usethe all Form Codes selection by modifyingSY_REPORTMANAGERTEMPLATE.M4T in Data File Display<strong>and</strong> Maintenance• Special Care must be observed when modifying system records inDFDM. Always make backups of the system be<strong>for</strong>e modifying files.


Multiple Custom .RPT’s in one Form Printing Screen• Example• Copy all four template RPT’s into theMAS90\MAS_ABC\<strong>Reports</strong>\SO_SALESORDERPRINTING directory.• Open SO_SalesOrder2.rpt in Crystal <strong>Reports</strong> <strong>and</strong> add a text field“Order” in the page header.• Open Library Master > Utilities > Data File Display <strong>and</strong> Maintenance.• Open mas_system\ SY_ReportManagerTemplate.M4T• Click the ‘Key Scan’ look up button beside the ‘Key’ textbox.• Select S/O000SALESORDERPRINTING_UI.PLAIN• Change the TemplateDescription to “Order”• Create an all <strong>for</strong>ms code selection in Report Manger.• Create a new <strong>for</strong>m code in Sales Order Printing <strong>and</strong> select order.


Multiple Custom .RPT’s in one Form Printing Screen• Open mas_system\ SY_ReportManagerTemplate.M4T• Click the ‘Key Scan’ look up button beside the ‘Key’ textbox.• Select S/O000SALESORDERPRINTING_UI.Preprinted Laser• Change the TemplateDescription to “Quote”• In MAS90\MAS_ABC\<strong>Reports</strong>\SO_SALESORDERPRINTINGrename SO_SalesOrder1.rpt to SO_SalesOrder1.old• Copy <strong>and</strong> paste SO_SalesOrder2.rpt <strong>and</strong> rename the copy toSO_SalesOrder1.rpt• Open SO_SalesOrder1.rpt in Crystal reports <strong>and</strong> change thetext box to ‘Quote’.• Open sales order printing <strong>and</strong> create a new <strong>for</strong>m code <strong>and</strong>select the ‘Quote’


Definitions• UI – User interface• BF – <strong>Business</strong> Framework• St<strong>and</strong>ard Form Code – Form Code or Report Setting that is notuser created• Canned Report/Form – A MAS 90/200 Crystal RPT file that hasnot been modified using Crystal Designer.• Customized Report/Form - A MAS 90/200 Crystal RPT file thathas been changed by the user or reseller.• Unassociated Form Codes – Form codes that do not have acustom crystal report associated <strong>with</strong> them.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!