cancel
Showing results for 
Search instead for 
Did you mean: 

rendering ESS transactions - HTML code templates?

Former Member
0 Kudos

Hi,

I was wondering, how does an ess, or any transaction get rendered into being HTML? If you take the Expense Entry from ESS, it's just transaction TRIP_EWT, but where is the HTML that the page gets created from located? I'm assuming it's on the ITS somewhere, but I have not found it yet.

Cheers,

Kevin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The HTML templates are stored in the folders setup on the host designated as the 'agate'.

By default, this folder would be something like 'usr/local/sap/its/6.20/mmm/templates/trip_ewt/99/'.

Where "mmm" is the name of the agate instance. "99" refers to the default theme. "6.20" refers to the version of the ITS.

One trick you could try is to search the file-system for the language-resource file that would have been automatically seutp for the transaction. It will be in the same directory as the templates. It's name, for your transaction, would be something like 'trip_ewt_en.htrc'. If your language is different, then the 'en' will be different.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Kevin,

All the service files i.e) HTML templates ,MIMES etc are stored in <b> AGATE of ITS </b> server . When u access any Trans from browser ,all the templates will be taken from Agate and the data will be fetched from R/3 .

Hope it helps .

Rgds,

J

If u got soln ,pl close the thread.

Former Member
0 Kudos

Hey J,

I know that all the service files are located on the ITS, but what I am looking for is not located on the server.

Last night I found that there is an ABAP class that is called and the HTML code for an SAP transaction that does NOT have any HTML templates is dynamically created within SAP and then sent out through the ITS.

I appreciate everyones input. Thanks for the help

Cheers,

Kevin

Former Member
0 Kudos

Hi kevin,

Fine . Cud u tell the name of the ABAP Class that transfers ABAP Trans into HTML templ .

Rgds,

J

Former Member
0 Kudos

Hey J,

The class(es) that you are looking for are all starting with CL_DD*. The one in particular was CL_DD_DOCUMENT.

Hope this helps.

Cheers,

Kevin

former_member316351
Active Contributor
0 Kudos

Hello Kevin,

You could create templates for trip_ewt (or any other transaction that you wish to). Just go to SE80 and create a new "Internet Service" (this will be the service name, so something like ztripewt). Right click on "ztripewt" and choose create > theme (theme 99 is the norm). Right click on the theme and choose create > template. Now just type in the program name and screen number. Do this last step for each screen that you need a template for. You should now be able to edit the template as you like to include your popup. Just be sure that users are calling this service.

Edgar

Former Member
0 Kudos

I don't believe there are any web templates for TRIP_EWT. As far as I know, the ITS will generate HTML as the transaction is called (much like the Webgui). The generated pages are dynamic and are not stored in an accessible location on the server.

Some transactions actually do have templates stored on the system - you can find them by going to SE80 and choosing "Internet Service" in the pulldown menu. You will notice that TRIP_EWT is not one of the available services. When calling a transaction which has been marked as an Easy Web Transaction, it is not necessary to create a service file.

For a good look at the difference between these two types of transactions, look at Address (PZ02), which has no templates, and Benefits Enrollment (PZ14), which has a whole stack of them.

Former Member
0 Kudos

Hi guys,

Thanks for the responses. I should have been a little more clear with my post. The reason for the post is because Daniel is right, there are no templates for the TRIP_EWT. All that is happening is an SAP transaction is being rendered by the ITS with HTML and displayed. We spent 8 months back in 2004 modifying and customizing the templates to meet our process groups likings.

Maybe this will help a bit more. What we want is for when a user clicks a link, other than what is located within the TRIP_EWT t-code, a javascript confirm popup to warn the user that they could be leaving without saving their work, preferably on the onBeforeUnload event.

You apparently can do this using the EPCM.subscribeEvent() call, but I don't know where to turn on or activate that event. I can catch the onUnload event, but that's too late as the ITS has been released by then.

Cheers,

Kevin

Former Member
0 Kudos

We are using EP 6.0 and ESS 50.4 with external ITS.

For 'Benefits - Enrollment' iView I need to hide the column 'Enrollment Form'.

I have found the PZ14 templates via SE80. But which template has the header for the Enrollment Form title which shows up in the Benefits and Payment Tab Enrollment iView?

Thank you for any assistance. I will award points.

Donna