Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

creating different spool requests based on sorting -part II

Former Member
0 Likes
4,602

hi folks,

Now I have added the group field to 'accitab' and as mentioned I have another itable (same as 'accitab') called 'final_accitab where I have the recrods for all the customers and their corresponding group types too.

something like this..

customernumber ........ sortgroup

1000001 1

1000001 1

1000001 1

1000012 1

1000012 1

1000112 1

.

.

.

.

10000002 2

10000002 2

10000002 2

.

.

.

.

10000003 3 and so on

Now I have to print the customers based on the sorting therefore I should be passing the records of all the customers that come under a common sort type into one spool request,( I think that way!!) and how to do that ?

ii)how to print separate statements for each customer

for the same sort within the same spool request.

Thanks in advance

Vinu

Thanks Max,

the issue is in a far better shape.

Question: while looping through 'final_accitab' into 'T_Customers' I am gathering the data for each customer number separately through the

' INSERT FINAL_ACCITAB INTO TABLE T_CUSTOMER' within the 'function fm_name'

once the entire data is gathered for a customer it runs through the FM FM_name to REFRESH T_CUSTOMER AND IT DOES NOT PRINT ANY STATEMENTS AT THIS TIME BUT IT RUNS THROUGH THE LOOP AGAIN GATHERS DATA INTO T_CUSTOMER AND NOW IT PRINTS THE STATEMENT THAT HAS THE DATA OF BOTH THE CUSTOMERS IN ONE PAGE.

one more thing, in the fm module

ZADNUMBER = ADNUMBER

ZADNUMBER1 = ZZADNUMBER

ZADNAME = ADNAME

ZAGENCYNAME = AGENCYNAME

these values pick up the last record of the final_accitab i.e the last customer number.

It is one of the major issues I am working on, I would really appreciate if you could help me in this regard.

Thanks

Vinu.

43 REPLIES 43
Read only

0 Likes
4,084

Printer names are case sensitive. Have you checked that?

Srinivas

Message was edited by: Srinivas Adavi

Also, I see that you marked this as answered, but I don't see any points given to Max, who has helped you a lot on this issue. Please reward him for his efforts.

Read only

0 Likes
4,084

Yes.

Read only

0 Likes
4,084

Hi Vinu

I agree with Srinivas: check the name of device, are you sure it's Xerox1?

You can try to transfer the name of that printer by dialog (FM SSF_OPEN) and then check the name in debug.

Max

Read only

Former Member
0 Likes
4,084

Hi Vinu,

I saw that you rewarded Max for his effort. I apologize for missing it.

Regards,

Srinivas