cancel
Showing results for 
Search instead for 
Did you mean: 

Where to generate a jpeg/SVG file locally on 12.x for irpt usage?

Former Member
0 Kudos

Hi,

I'm having a problem that is not a problem at all in 11.5 but looks difficult in 12.x. Hope I can get some tips here.

I have a customized action block that can generate jpeg file on local address of the server machine. I would like to run a scheduled job to regularly generate jpegs and display them on the irpt page.

In 11.5, I can save the file under inetpub/wwwroot/project/abc.jpg and use it in irpt like src="./abc.jpg". How can I do the same thing in 12.x?

THanks in advance for the answer!

Best regards,

UMeng

Accepted Solutions (0)

Answers (1)

Answers (1)

jcgood25
Active Contributor
0 Kudos

Since the webroot is now embedded in the NW database, you should use the web:// prefix in your path to have it saved into the project and published to disk for the web application server.

Not sure why it is uppercased, but this should help: http://help.sap.com/saphelp_mii122/helpdata/EN/4c/c8e3e98e9b60c5e10000000a15822d/content.htm

web://project/abc.jpg would then effectvely be viewed at http://server:port/XMII/CM/project/abc.jpg at runtime in your irpt page

agentry_src
Active Contributor
0 Kudos

I would also check the Classes which changed from 11.5 to 12.1. You may be encountering some problems with that change as some functions are different or replaced by others in the newer version. Generally you will need to rebuild any custom action blocks after you have migrated to the newer installation.

Regards,

Mike

Former Member
0 Kudos

Thanks for the responses.

The action is working now. Though I need to use the workaround of using a transaction to pull the file from local system and store it to the project.

I developed it using the 12.2 example and hence shouldn't have the problem.

Best regards,

Lawrence