cancel
Showing results for 
Search instead for 
Did you mean: 

Word translation and BSP

emmanuel_turci
Advisor
Advisor
0 Kudos

Hi all,

Using a BSP, it is possible to use OTR(package/field) to have your word automatically translated

into the connected language when the BSP is read by the server.

Now, in my Flash object, I use a few words that I need to translate depending on which language is used. My idea was to create a TEXT TABLE in my package with all words in english. This

TEXT TABLE has to be translated in the normal SAP translation process, so I don't care about this translation. Then I read this TABLE, I create a file with all words from this TABLE and give this page to my flash object.

All words in this page are in the connected language.

BUT, the most inconvenient is that each time I launch my flash object, each time this page is built and it is of course not required because the TEXT TABLE doesn't change.

Do you have another solution ?

Create a persitent page ?

Thanks for your help

Best regards,

Emmanuel.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181879
Active Contributor
0 Kudos

Hallo Emmanuel,

Somehow I suspect that you already have all the bits and pieces. So let me just bring them all together for you.

First, the solution to use the text table is excellent. It is one that we have used often with success.

Next you need a page which sends these language related texts to your browser so that your flash object can read them. I assume that it will either be a .js or .xml page. Simply make a new BSP page, call it, for example, "texts.js".  Look at the property tab for this page, and then set both browser and server cache values to something like 86000 (24 hours). Once the browser has fetched the file, it will be cached in the server, and in the browser. All new fetches will be done directly at the browser.

For an example, see: BSP application "system", page "htmlb_text.js". Does exactly this, including the text pool! Do not forget to look at the properties tab of the page, the caching section.

brian

emmanuel_turci
Advisor
Advisor
0 Kudos

Hi Brian,

Ok thanks for your reply

So you mean that this page will be created only once per day ? (24 hours)

thanks again

best regards,

Emmanuel

former_member181879
Active Contributor
0 Kudos

Hallo Emmanuel,

Yes, in principle, once the cache is loaded, you will not see it again.

Let me give you the tools to do the job. The quickest way to verify this, is to set a break-point inside the page. So if the page is called, the debugger will pop up. Thereafter flush browser and server cache (use transaction SMICM, menu goto->cache->invalidate). Then call page again. Debugger stops, you have a hit. Call page again. Now cache is filled, no hit.

Please look also at two weblogs. One will be published tonight, and is about HTTP logging. It will already help you a lot about understanding what is happening. The other is about using a proxy tool to trace HTTP traffic. This weblog will be published next week. Both are highly recommended for you to understand what is actually happening in the browser.

bye, brian

emmanuel_turci
Advisor
Advisor
0 Kudos

Hi Brian,

I tried to use SMICM transaction but didn't find my page to invalidate it ?

do I have to search my page or do something else before going to invalidate it ?

thanks

bye, Emmanuel.

former_member181879
Active Contributor
0 Kudos

Emmanuel,

Please read my previous post carefully. Transaction SMICM has a menu. There select GoTo. Then you are looking for an entry "cache" and then "invalidate".

brian

Former Member
0 Kudos

Hi Emmanuel,

here's again a link to the relevant documentation.

http://help.sap.com/saphelp_webas630/helpdata/en/8b/25183a3bef2669e10000000a114084/frameset.htm

Under Web Application Server, choose Architecture -> SAP Web Application Server Compoments -> Internet Server Cache  (-> Invalidating Objects in the Cache).

Regards, Heidi