Application Development 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: 

ABAP List Faxing using BCS method ( Business communication service )

Former Member
0 Kudos

Experts,

I have a requirement where we are faxing the ABAP list as it gets generated .

I am using NEW-PRINT ON and NEW-PRINT OFF , to get the ABAP list in a spool request , and then get the spool contents using function module : 'RSPO_RETURN_SPOOLJOB'

I then use Class / methods provided by Business communication service , such as :

cl_cam_address_bcs=>create_fax_address ,to send this spool content to Fax gateway .

My fax goes , but the fax output list is in X_65_255 format, whereas i want the fax output to be in X_65_132 ..

My REPORT statement does have X_65_132 as line count / line size BUT somehow the Fax output does not take this list format .. ANY IDEA's ????

Would appreciate your reply .

Ashutosh

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos

Alongwith the NEW-PAGE you need to set the print parameters.

Like:


DATA: print_parameters TYPE pri_params.

print_parameters-PAART = 'X_65_132'.    "<< Page format

  NEW-PAGE PRINT ON PARAMETERS print_parameters
                    NO DIALOG.

Regards,

Naimesh Patel

0 Kudos

Naimesh,

I have passed page format X_65_132 in GET_PRINT_PARAMETERS , in export paramter ' Layout ' ... See code below :

  • write a list into spool

call function 'GET_PRINT_PARAMETERS'

exporting

line_count = sy-linct

line_size = sy-linsz

layout = 'X_65_132' <<< Page format

mode = 'BATCH'

immediately = ' '

list_text = htext_spool

list_name = 'ZV46 FAX'

no_dialog = 'X'

importing

out_parameters = print_parameters

valid = valid

exceptions

archive_info_not_found = 1 .

BUT still the fax coming out of our fax machine is compressed because i believe the outgoing fax is using page format X_65_255 .

Any idea why ????

Would appreciate your reply .

Ashutosh

Former Member
0 Kudos

I found the answer myself BUT guiding lines were given by all you experts.

0 Kudos

Forum is also a place for learning. So just give us a little feedback please! What was the issue/what was the solution?