To use OTR Longtexts in Web Interface Builder you can use the following procedure:
- Create subcomponent Text in your Web Interface Builder and set it to "HTML" true.
- Use the following code within the text component.
- Create a BSP application with the name "put_in_your_bsp_appl" and a page with flow logic with the name "start".
- Put in the following Code into the bsp application.
- Use menu: Goto -> Translation -> Long texts
- Define Source and Target Language
- Translate Longtext
- Activate bsp application
- Adjust iframe if necessary (height, width, ...).
Code for the text component:
<iframe src="/sap/bc/bsp/sap/put_in_your_bsp_appl/start.htm?marginwidth="1"marginheight="1"height="950"width="750"scrolling="no"border="0"frameborder="0" ></iframe>
Code for the bsp application:
<%@page language="abap"%> <OTR>Put in your long text comment here.</OTR>.