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: 

Problem with CONVERT_ABAPSPOOLJOB_2_PDF through RFC

0 Kudos

Hi all,

Basically I've copied the ABAP code from FM CONVERT_ABAPSPOOLJOB_2_PDF to an new FM Z_CONVERT_ABAPSPOOLJOB_2_PDF (and the same for CONVERT_OTFSPOOLJOB_2_PDF) and I've remotely enabled the new FM's for use with RFC (so I can use it with PHP saprfc).

This works superb for OTF files (using Z_CONVERT_OTFSPOOLJOB_2_PDF) and I havn't had any problems at all.

When I use it for ABAP spoollists (using Z_CONVERT_ABAPSPOOLJOB_2_PDF) 85% of the time I've get an error after opening the PDF in Adobe Reader:

"An unrecognized token 'x,xxx' was found", where x is a number

I think this probably has something to do with the fact that the ',' has to be a '.' (or vice versa), but I'm not sure...

... Maybe it has something to do with locale settings on sap server and the machine where the RFC function is called?

Anyone has other ideas for solving this?

Many thanks in advance.

1 REPLY 1

0 Kudos

... Please check this thread instead...

... thanks...