--------------4637DAE9386DE9AEC6558FB5
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
This can be easily changed with a few new lines in the code. Change the sort by
putting the company first with a level break. Then create a new heading variable
and global variable.
On the before level break load the company into the global variable and in the
heading section use the global variable to chain to F0010 and get the assocated
descriptions.
here is a small sample..
Page Header Section
Create two variables
Create a report variable APFG called ‘rpt_HeaderFlag’? APFG
Create a report variable DL40 called ‘rpt_CostCenter’ -? DL30
In the Do section initialize the DL30 report variable to the internal variable
In the main section enter the following sections in the Event Rules
Initialize Section
RV A/P status = “1”
Before Level Break Section
IF RV A/P status = “1” and BC Company (Fxxx) is not equall to >Null>
Single Fetch F0010 with the BC company and return the description into DL40
IF SV File IO = CO_SUCCESS
RV A/P Status = ‘2’
ENDIF
ENDIF
I picked this information up from the list last year and changed it a little to
make it more efficient
Thanks
Rob
suni wrote:
> We are currently going through a restructuring where several companies that
> used to report through us to our common owner will now report separately.
> However, we will still do much of the processing for them.
>
> Our problem: Most (if not all) reports and other printed materials default
> to company 0 (zero) for the report heading. Currently, wr have company 0
> set to our own company name. This is no longer possible--we need to have
> reports that reflect the individual companies' names and have no reference
> to our own.
>
> JDE's solution is to blank out the description for company 0 and then
> individually input the desired company into the header for every
> dreamwriter, worldwriter, FASTR, etc. etc. etc.
>
> Does anyone have a better idea, or some tricks they could pass on? Thanks
> very muuch!
>
> Suni Sommers
> Foss Maritime Co
> World Software A7.3 C11
>
> --------------------------
> To view this thread, visit the JDEList forum at:
>
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=0&Board=W&Number=4917
> *************************************************************
> This is the JDEList World Mailing List.
> Archives and information on how to SUBSCRIBE, and
> UNSUBSCRIBE can be found at
http://www.JDELIST.com
> *************************************************************
--------------4637DAE9386DE9AEC6558FB5
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
This can be easily changed with a few new lines in the code. Change the
sort by putting the company first with a level break. Then create a new
heading variable and global variable.
On the before level break load the company into the global variable
and in the heading section use the global variable to chain to F0010 and
get the assocated descriptions.
here is a small sample..
Page Header Section
Create two variables
Create a report variable APFG called ‘rpt_HeaderFlag’? APFG
Create a report variable DL40 called ‘rpt_CostCenter’ -? DL30
In the Do section initialize the DL30 report variable to the internal
variable
In the main section enter the following sections in the Event Rules
Initialize Section
RV A/P status = “1”
Before Level Break Section
IF RV A/P status = “1” and BC Company (Fxxx) is not equall to
>Null>
Single Fetch F0010 with the BC company and return the description
into DL40
IF SV File IO = CO_SUCCESS
RV A/P Status = ‘2’
ENDIF
ENDIF
I picked this information up from the list last year and changed it
a little to make it more efficient
Thanks
Rob
suni wrote:
<blockquote TYPE=CITE>We are currently going through a restructuring where
several companies that
used to report through us to our common owner will now report separately.
However, we will still do much of the processing for them.
Our problem: Most (if not all) reports and other printed materials
default
to company 0 (zero) for the report heading. Currently, wr have
company 0
set to our own company name. This is no longer possible--we need
to have
reports that reflect the individual companies' names and have no reference
to our own.
JDE's solution is to blank out the description for company 0 and then
individually input the desired company into the header for every
dreamwriter, worldwriter, FASTR, etc. etc. etc.
Does anyone have a better idea, or some tricks they could pass on?
Thanks
very muuch!
Suni Sommers
Foss Maritime Co
World Software A7.3 C11
--------------------------
To view this thread, visit the JDEList forum at:
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=0&Board=W&Number=4917
*************************************************************
This is the JDEList World Mailing List.
Archives and information on how to SUBSCRIBE, and
UNSUBSCRIBE can be found at
http://www.JDELIST.com
*************************************************************</blockquote>
</html>
--------------4637DAE9386DE9AEC6558FB5--