mibuso.com

Microsoft Business Solutions online community
It is currently Sat May 25, 2013 7:38 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Print two reports simultaneous (G/L Register and Receipt)
PostPosted: Fri Feb 17, 2012 7:26 pm 
Offline

Joined: Wed Dec 14, 2011 6:50 pm
Posts: 27
Country: Portugal (pt)
Hello,

I'm trying to post and print in Financial Management - Receivables - Cash Receipt Journals.

I want to print simultaneous 2 reports: "G/L Register" and other report that i created (receipt).

Can someone help me?
Thanks.


Top
 Profile E-mail  
 
 Post subject: Re: Print two reports simultaneous (G/L Register and Receipt
PostPosted: Sat Feb 18, 2012 2:20 pm 
Offline

Joined: Thu Dec 08, 2005 9:12 am
Posts: 2870
Location: India
Country: India (in)
You need to modify CU 232 Gen. Jnl.-Post+Print to acheive this. Run debugger check the working of the code in this CU.

_________________
CA Sandeep Singla
http://ssdynamics.co.in


Top
 Profile E-mail WWW  
 
 Post subject: Re: Print two reports simultaneous (G/L Register and Receipt
PostPosted: Sat Feb 18, 2012 3:05 pm 
Offline

Joined: Mon May 18, 2009 6:36 am
Posts: 792
Location: India
Country: India (in)
Unfortunately it's not like "sequence no." in "Report Selection" table, where you can define multiple report( i have try with 2) with sequence no. incremental.

You will have to customise it(would be only minor customization in CU 232) nearby below code.
Code: Select all
    IF GenJnlTemplate."Posting Report ID" <> 0 THEN BEGIN
      GLReg.SETRECFILTER;
      REPORT.RUN(GenJnlTemplate."Posting Report ID",FALSE,FALSE,GLReg);
    END;

_________________
Vijay Gupta
Changing the code is last step. Try to change processes first...


Top
 Profile E-mail  
 
 Post subject: Re: Print two reports simultaneous (G/L Register and Receipt
PostPosted: Sat Feb 18, 2012 7:43 pm 
Offline

Joined: Wed Dec 14, 2011 6:50 pm
Posts: 27
Country: Portugal (pt)
Hello, thanks for helping me.

I went to CU 232 and below, i insert the line (underlined), i'm not 100% if the code is correct.
Can you help me to build the code i need.

Summarizing: I'm trying to post and print in Financial Management - Receivables - Cash Receipt Journals.
I want to print simultaneous 2 reports: "G/L Register" and other report that i created (receipt).

I want the receipt to get de correct information that i registering in that moment (with the line i insert, i get more than 200 receipts).

IF GenJnlTemplate."Posting Report ID" <> 0 THEN BEGIN
GLReg.SETRECFILTER;
REPORT.RUN(GenJnlTemplate."Posting Report ID",FALSE,FALSE,GLReg);
REPORT.RUNMODAL(REPORT::"MY REPORT",FALSE,FALSE,"TABLE TO GET DATA - CustLedgEntry");


Top
 Profile E-mail  
 
 Post subject: Re: Print two reports simultaneous (G/L Register and Receipt
PostPosted: Mon Feb 20, 2012 10:57 am 
Offline

Joined: Thu Dec 08, 2005 9:12 am
Posts: 2870
Location: India
Country: India (in)
Yes the code is wrong. You haven't fetched the Cust Ledger entry you are passing for running the report.

_________________
CA Sandeep Singla
http://ssdynamics.co.in


Top
 Profile E-mail WWW  
 
 Post subject: Re: Print two reports simultaneous (G/L Register and Receipt
PostPosted: Mon Feb 20, 2012 12:21 pm 
Offline

Joined: Wed Dec 14, 2011 6:50 pm
Posts: 27
Country: Portugal (pt)
Problem solved i enter this code on the CU232:


CustLedgEntry.SETRANGE("Entry No.",GLReg."From Entry No.",GLReg."To Entry No.");
REPORT.RUNMODAL(REPORT::"My report",FALSE,FALSE,CustLedgEntry);

know when i post and print, i get the correct information on my receipt.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: