google.com, pub-6526244334439036, DIRECT, f08c47fec0942fa0

The way in which to forestall the printing of a report pro-grammatically

In Sage X3, we may come all through a situation the place now we have to forestall printing of a report and we’re in a position to acquire this using code.

Steps to watch : 

To cease printing of a report now we have to create a specific processing script for the report and put the subsequent code throughout the file.

Script Editor

The principle is that whilst you set GOK to 0, the report will not be printed. Actually, you could substitute the dots after ‘If’ with the acceptable state of affairs. For example, suppose that you simply simply print a report from the Deliveries carry out (GESSDH) and in addition you could print it supplied that the provision is validated then it’s advisable put explicit conditions to cease report printing.

This movement generally known as merely sooner than the printing of the doc by Crystal Report. Warning! This movement is critical, if an initialization course of is specified throughout the report dictionary. It is not known as by the instruction Gosub nonetheless by the Identify instruction. Two parameters are handed to it, NBPAR (number of parameters) and PARAMETRE (parameters grid).

It is used for various functionalities as properly which can be outlined in beneath elements:

  • As talked about, it is used for stopping report printing when GOK variable value is about to 0.
  • To interchange the X3 tables (for e.g. print flags and plenty of others.)
  • assemble a bit desk in order that the data may be additional merely utilized by par Crystal Report.

It has moreover been used as an entry stage. It was developed for earlier variations of X3.

Entry stage IMPRIME had been created for considered one of many preliminary X3 variations. It wanted to be known as merely sooner than deciding on the printer and made it potential to inhibit the printer entry if variable GPE was completely completely different from 0.

The parameters are saved throughout the PARAMETRE variable with the indices 1 to NBPAR. Each value is a string inside the kind of “parameter=value” with out one other separator.

At this stage, the report parameters may be used which is perhaps saved throughout the PARAMETRE (1.NBPAR) grid the place NBPAR is the number of parameters A parameter is expressed on this grid throughout the kind : parameter title = parameter value.

There could also be moreover DEFIMP entry stage which is used to return printer title (trip spot code) by coming into the IMPRIMANTE variable and, if a printer’s title is critical.

This entry stage generally known as on the end of the subprogram used to seek out out a default printer (trip spot code) regardless {that a} printer cannot be found after the standard setup.

This subprogram generally known as by the AIMDEF movement and is often known as with the intention to initialize the printer sooner than printing a report.

There are moreover completely different entry elements which can be utilized within the equivalent prospect for the report printing course of. (e.g. ALIMETAT) So, this entry elements along with completely different subprogram has various makes use of for printing opinions and completely different functionalities in X3 as outlined throughout the above weblog.

This weblog helps to know the way we’re in a position to forestall report printing pro-grammatically. Beside that it might be used for various utilization which can be outlined throughout the above elements.

About Us

Greytrix – a globally acknowledged and considered one of many oldest Sage Gold Progress Affiliate is a one-stop reply provider for Sage ERP and Sage CRM organizational desires. Being acknowledged and rewarded for multi-man years of experience, we convey full end-to-end assist to your technical consultations, product customizations, information migration, system integrations, third-party add-on development and implementation competence.

Greytrix caters to quite a lot of Sage X3, a Sage Enterprise Cloud Reply, selections. Our distinctive GUMU™ integrations embody Sage X3 for Sage CRMSalesforce.com, Dynamics 365 CRM and Magento eCommerce along with Implementation and Technical Assist worldwide for Sage X3. At current we’re Sage X3 Implementation Affiliate in East Africa, Heart East, Australia, Asia, US, UK. We moreover provide best-in-class Sage X3 customization and development services, built-in features paying homage to POS | WMS | Payment Gateway | Shipping System | Business Intelligence | eCommerce and have developed add-ons paying homage to Catch – Weight  and Letter of Credit and India Legal guidelines for Sage X3 to Sage enterprise companions, end prospects and Sage PSG worldwide.

Greytrix is a acknowledged Sage champion ISV Affiliate for GUMU™ Sage X3 – Sage CRM integration moreover listed on Sage Marketplace; GUMU™ integration for Sage X3 – Salesforce is a 5-star rated app listed on Salesforce AppExchange and GUMU™ integration for Dynamics 365 CRM – Sage ERP listed on Microsoft AppSource.

For additional knowledge on Sage X3 Integration and Firms, please contact us at x3@greytrix.com, We’ll wish to take heed to from you.

One Response

Leave a Reply

%d bloggers like this: