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

Print Binary data (PDF file converted to binary data)

0 Likes
2,593

Hi All,

I have a requirement for printing binary data.

Complete requirement was:

- upload a scanned image in AL11

- Read the image from AL11 file and print the same.

Approach we followed:

- Uploaded a PDF scanned image in AL11

- Read the AL11 file in binary format

- converted the Xstring file to binary format using FM SCMS_XSTRING_TO_BINARY

- the binary data am having in the internal table when I download to desktop with .PDF extension it is down loaded in proper format

- The same data I am sending to the spool using the FM RSPO_SR_OPEN and processing the spool write using standard program subroutines but I am not able to print the spool (junk charecter's are printed while spool is printed).

Please help me with the parameters to be passed to the spool FM to get the data in the correct format, so that I will be able to print the spool for the image.

Thanks in Advance,

Raksha

2 REPLIES 2
Read only

Former Member
0 Likes
1,135

hello,

did you read the device parameters before writing the spool using FM 'RSPO_SR_OPEN" ?

you need to do that using FM's

RSPO_LIST_TRAYS_FOR_DEVICE

RSPO_MAP_PAGEFMT_FOR_TYPE

SAPSCRIPT_MESSAGE_DEF

Then use that information in the FM 'RSPO_SR_OPEN'.

best regards,

swanand

Read only

0 Likes
1,135

Hi Swanand,

Can you provide teh parameters you are passing to the FM. Am trying to check it in the system, but as the target is very close, it would be helpful if can provide me the parameters for these FMs if you have already used.

Thanks in advance,

Raksha