Skip to Content
0
Mar 16, 2007 at 07:00 PM

Problem with CONVERT_ABAPSPOOLJOB_2_PDF through RFC

23 Views

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.