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,561

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

hi folks,

Max happen to share this piece of information here.

Thanks a lot for the help. But I am finding hard to incorporate thsi piece into my code

I am not able to understand that 'CUSTOMER' he has used and

I am getting an error at 'AT NEW CUSTOMER'

The function module that I have declared for the smartform goes like this...

Can ANY ONE OF you help me understand THIS piece of code w.r.t the function module I am using?

  • now call the generated function module

call function fm_name

exporting

  • archive_index =

  • archive_parameters =

  • control_parameters = control

  • mail_appl_obj =

  • mail_recipient =

  • mail_sender =

  • output_options = output_options

  • user_settings = 'X'

ZTOTAL = ZTOTALAMOUNT

zscan_code = scan_number

  • zpartner = bpartner

z_bdate = e_date

zadnumber = adnumber

zadnumber1 = zzadnumber

zagencynumber = agencynumber

z_payment_terms = v_payment_terms

zzadname = adname1

zadname = adname

zagencyname = agencyname

zphone = bphone

zcreditgroup = zcredittext

z_bperiod = monthn

ztotalcredits = zappliedcredits1

ztotalbalance = zcurrenttotal

ZZEXTZIP = zzextensionzip

  • bookings = bookings

  • importing document_output_info =

  • job_output_info =

  • job_output_options =

tables

stribunecustomer = customer

accountdata = T_CUSTOMER

zcdatar = zcdata

zaging = agingdataitab

ZADDRESS = i_address_number

exceptions formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

others = 5.

Thanks for your help..

VINU

43 REPLIES 43
Read only

0 Likes
4,043

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,043

Yes.

Read only

0 Likes
4,043

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,043

Hi Vinu,

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

Regards,

Srinivas