HTML Template generated at Runtime.
There are some SAP transaction which generates code (HTML Code to be shown on user desktop thru IE)at runtime rather than having HTML templates. In this situation, what are different ways to edit the Template which is generated at Runtime.
TIA
Hello TIA,
It all depends on what kind of change you're trying to accomplish...
If you need to customize the layout you should create a template for it in SE80.
If you would just like to change the colours or font then you could create your own theme and customize the css files.
Let us know the extent you'd like to change the behaviour.
Edgar Chuang
Similar Messages
-
Revision: 3120
Author: [email protected]
Date: 2008-09-05 10:44:10 -0700 (Fri, 05 Sep 2008)
Log Message:
When you point Flex Builder at a local sandbox trunk build, it couldn't generate the html-templates folder correctly for new projects so we moved all the html templates up one level and removed the html-templates directory and adjusted build.xml's to accommodate the directory change
Modified Paths:
flex/sdk/trunk/build.xml
flex/sdk/trunk/webapps/webtier/build.xml
Added Paths:
flex/sdk/trunk/templates/client-side-detection/
flex/sdk/trunk/templates/client-side-detection/AC_OETags.js
flex/sdk/trunk/templates/client-side-detection/index.template.html
flex/sdk/trunk/templates/client-side-detection-with-history/
flex/sdk/trunk/templates/client-side-detection-with-history/AC_OETags.js
flex/sdk/trunk/templates/client-side-detection-with-history/history/
flex/sdk/trunk/templates/client-side-detection-with-history/history/history.css
flex/sdk/trunk/templates/client-side-detection-with-history/history/history.js
flex/sdk/trunk/templates/client-side-detection-with-history/history/historyFrame.html
flex/sdk/trunk/templates/client-side-detection-with-history/index.template.html
flex/sdk/trunk/templates/express-installation/
flex/sdk/trunk/templates/express-installation/AC_OETags.js
flex/sdk/trunk/templates/express-installation/index.template.html
flex/sdk/trunk/templates/express-installation/playerProductInstall.swf
flex/sdk/trunk/templates/express-installation-with-history/
flex/sdk/trunk/templates/express-installation-with-history/AC_OETags.js
flex/sdk/trunk/templates/express-installation-with-history/history/
flex/sdk/trunk/templates/express-installation-with-history/history/history.css
flex/sdk/trunk/templates/express-installation-with-history/history/history.js
flex/sdk/trunk/templates/express-installation-with-history/history/historyFrame.html
flex/sdk/trunk/templates/express-installation-with-history/index.template.html
flex/sdk/trunk/templates/express-installation-with-history/playerProductInstall.swf
flex/sdk/trunk/templates/metadata/
flex/sdk/trunk/templates/metadata/AC_OETags.js
flex/sdk/trunk/templates/metadata/readme.txt
flex/sdk/trunk/templates/no-player-detection/
flex/sdk/trunk/templates/no-player-detection/AC_OETags.js
flex/sdk/trunk/templates/no-player-detection/index.template.html
flex/sdk/trunk/templates/no-player-detection-with-history/
flex/sdk/trunk/templates/no-player-detection-with-history/AC_OETags.js
flex/sdk/trunk/templates/no-player-detection-with-history/history/
flex/sdk/trunk/templates/no-player-detection-with-history/history/history.css
flex/sdk/trunk/templates/no-player-detection-with-history/history/history.js
flex/sdk/trunk/templates/no-player-detection-with-history/history/historyFrame.html
flex/sdk/trunk/templates/no-player-detection-with-history/index.template.html
Removed Paths:
flex/sdk/trunk/templates/html-templates/Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
How to take data from HTML Template into BSP Variable?
hi all,
can we take the data from the input field of HTML Template and collect into BSP variable? i have the shown the HTML Template into BSP page by passing the url in <IFRAME> tag now i have to take the data form the into field of HTML Template and save it back to the BSP table onclicking the Save button of BSP Page. please help me out thanks in advance.
Thanks & Regards,
AmolHi Amol,
This is very simple....
In the onInputProcessing event of the page use the following code to read data from the InputField into an ABAP variable...
Then you can use it at will..!
Code is :
data : event TYPE REF TO if_htmlb_data,
but_event TYPE REF TO cl_htmlb_event_button.
event = cl_htmlb_manager=>get_event( request ).
IF event->EVENT_NAME = 'button' and event->EVENT_TYPE = 'click'.
but_event ?= event.
CASE event->EVENT_ID.
when 'your_button_id'.
data : lw_inf type ref to cl_htmlb_inputfield.
lw_inf ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'inputField'
id = 'your_inputField_id' ).
if lw_inf->value is not initial.
lw_variable = lw_inf->value.
endif.
ENDCASE.
ENDIF. -
HTML Template for Web Dynpro (ABAP)
Hi Guys,
I am developing a webpage in webdynpro abap.
my requirement is to use a existing HTML(same as existing applications) template for this.
how do i do that ?
regards
SiddharthYou don't. That isn't how Web Dynpro works. The architecture is such that it abstracts the HTML/JavaScript rendering of the output. You place a UI element on the screen and only a metadata reprsentation of the screen is created at design time. At runtime different rendering engines can be applied to produce the final output. This allows SAP to add new rendering engines and to improve the rendering engines over time without having to adjust the applicaitons itself. This makes Web Dynpro sutiable for producing Business Transactions, but not general web pages. It also gives us the flexibility to render Web Dynpro in HTML/JavaScript, a desktop client (.Net 3.0 and WPF), and a RIA client (Adobe Flex).
You can alter the theme of the WDA application when running in HTML rendering. The theme gets automatically inherited from the NetWeaver Portal - or you can apply a stanalone theme when running without the portal. Theming allows for some basic changes of color scheme and branding elements - but is not the same as applying a complete HTML template. -
Very simple html template engine...
Hi forum
I need to create a very simple html templating engine. My requirements are only load a html document into an object (HTMLDocument for example?), search a couple of particular tag or string, treat the text found between these tags like a block, repeating the content all the necessary times, and replacing a special string within the text for another one.
Here an example:
<html>
<title>Foo page</title>
<body>
<table>
<!-- Initial special tag -->
<tr>
<td>{String to replace}</td>
</tr>
<!-- Final special tag -->
</table>
</body>
</html>If i pass the html example code for the template engine with the following parameters, the result that i want is:
Number of times to repeat the BLOCK: 3
Text to replace de special string: Hello world
<html>
<title>Foo page</title>
<body>
<table>
<tr>
<td>Hello world</td>
</tr>
<tr>
<td>Hello world</td>
</tr>
<tr>
<td>Hello world</td>
</tr>
</table>
</body>
</html>That�s all. I search in google for something but a encountered only javascript based "applications", except the "Rhino" engine, but that is to much for mi needs.
Well, i hope anyone can help me.... and sorry for may bad english :P...Here's the generated code:
`include(~service="system", ~language="", ~theme="dm", ~name="TemplateLibraryDHTML.html")`
`SAP_DynproLayerBegin(003,001,028,001)`
`SAP_Label("%#AUTOTEXT001")`
`SAP_DynproLayerEnd()`
`SAP_DynproLayerBegin(003,003,020,001)`
`SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
`SAP_DynproLayerEnd()`
`SAP_DynproLayerBegin(030,003,005,001)`
`SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
`SAP_DynproLayerEnd()`
`SAP_DynproLabelLine(003,003,030)`
`SAP_DynproLayerBegin(003,004,020,001)`
`SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
`SAP_DynproLayerEnd()`
`SAP_DynproLayerBegin(030,004,005,001)`
`SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
`SAP_DynproLayerEnd()`
`SAP_DynproLabelLine(003,004,030)`
`SAP_DynproLayerBegin(004,006,014,001)`
`SAP_Button("CTR_NEG_AMEND_REJ")`
`SAP_DynproLayerEnd()` -
In ITS-Service ITSMOBILE no HTML-Template ALV_GRID.html
Hi all,
i use its-mobile with alv grid. In my Template i changed text:
Unknown type CUST_CTRL for element CONTAINER1
with:
`include(~service="itsmobile", ~theme="99", ~name="alv_grid.html");
alv_grid("ALV", 52, 8);`
But now i get the error: ITS_CANT_LOAD_INCLUDE - that file alv_grid.html is not found. That is right! When i look into ITSMOBILE -> Thema 99 -> HTML-Templates no file called alv_grid.html is there. So how do i get this file?
System is SAP ECC 6.0, Release 700 Support Package SAPKA70016.
Best Regards,
MaxHi Max,
What is the BASIS Support pack that you are on?
I presume its the same level as your Application Support Pack SAPKA70016? i.e SAPKB70016
For ITSMobile - I thing you would need to be on SAPKB70018?
See notes:
[BC-FES-ITS #1320125 ITSmobile: fixed ALV Grid row selection|http://service.sap.com/sap/support/notes/1320125]
[BC-DWB-TOO-WAB #1142337 Generating program creates slow HTML mobile templates|http://service.sap.com/sap/support/notes/1142337]
Regards,
Oisin -
Creating a simple HTML template
Hello All,
I have to create a simple HTML template for a screen in SRM for Mass change of a field on contracts. I have ITS service ready and I have created a HTML template with reference to the prorgam and screen. It generated following code. what change do I need to make to make the template displayed. When i run the template it gives me an error 'URL http://XXXXX/sap/bc/gui/sap/its/ysrm_ctr_mass/ call was terminated because the corresponding service is not available'.I have never worked on HTML templates before. Anybody wannna help me, pls?
Here's the generated code:
`include(~service="system", ~language="", ~theme="dm", ~name="TemplateLibraryDHTML.html")`
`SAP_DynproLayerBegin(003,001,028,001)`
`SAP_Label("%#AUTOTEXT001")`
`SAP_DynproLayerEnd()`
`SAP_DynproLayerBegin(003,003,020,001)`
`SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
`SAP_DynproLayerEnd()`
`SAP_DynproLayerBegin(030,003,005,001)`
`SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
`SAP_DynproLayerEnd()`
`SAP_DynproLabelLine(003,003,030)`
`SAP_DynproLayerBegin(003,004,020,001)`
`SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
`SAP_DynproLayerEnd()`
`SAP_DynproLayerBegin(030,004,005,001)`
`SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
`SAP_DynproLayerEnd()`
`SAP_DynproLabelLine(003,004,030)`
`SAP_DynproLayerBegin(004,006,014,001)`
`SAP_Button("CTR_NEG_AMEND_REJ")`
`SAP_DynproLayerEnd()`
Thanks,
ChandraHi
Which SRM version are you using ?
Please do the following steps ->
-->Activate the services through SICF - SRM transaction code.
> Go to SICF transaction and activate the whole tree under the node Default host>sap>bc>gui>sap>its.
Right click on any of the services (there you will find option to De-actiave / activate the service)
Related links ->
Note 851940 - Launchpad in BBPSTART has wrong URL for services
Re: Service Cannot be Reached
Please ensure IACOR service must be running correctly before publishing the HTML Templates using the report - W3_PUBLISH_SERVICES
When you are using the Internal ITS,you need not run the report W3_PUBLISH_SERVICES.(only SIAC_PUBLISH_ALL_INT )
Re: Activating a Service in SICF
Regards
- Atul -
Creating a HTML Template for Professional Web Transaction
Hi ,
I am trying to create a template for a transaction. While creating the internet service.. i select the initial screen for the template to be generated. A template is generated. But it gives error when i try to use it.
How do i create a HTML template for transaction , for which there are no default template available when creating a internet service.
Please help.
Thanks and Regards
BharathwajHi ,
I am trying to create a template for a transaction. While creating the internet service.. i select the initial screen for the template to be generated. A template is generated. But it gives error when i try to use it.
How do i create a HTML template for transaction , for which there are no default template available when creating a internet service.
Please help.
Thanks and Regards
Bharathwaj -
I'm working on creating an HTML template for use with and Item type portlet on Portal 10.1.4. I have the items themselves rendering as I want with the layout I want but I'm having an issue with the item categories. Since the template renders itself for each item, how do I add the category to the layout so that it renders similar to the portal default, which is grouped by category. The category is displayed once and the items assigned to that category are listed below it. If I add the category substitution tag to the template the category name is rendered along with each item. If there are 14 items in one category then the same category displays 14 times.
Does anyone have any ideas on how to accomplish this? Thanks in advance.You don't. That isn't how Web Dynpro works. The architecture is such that it abstracts the HTML/JavaScript rendering of the output. You place a UI element on the screen and only a metadata reprsentation of the screen is created at design time. At runtime different rendering engines can be applied to produce the final output. This allows SAP to add new rendering engines and to improve the rendering engines over time without having to adjust the applicaitons itself. This makes Web Dynpro sutiable for producing Business Transactions, but not general web pages. It also gives us the flexibility to render Web Dynpro in HTML/JavaScript, a desktop client (.Net 3.0 and WPF), and a RIA client (Adobe Flex).
You can alter the theme of the WDA application when running in HTML rendering. The theme gets automatically inherited from the NetWeaver Portal - or you can apply a stanalone theme when running without the portal. Theming allows for some basic changes of color scheme and branding elements - but is not the same as applying a complete HTML template. -
How to output stored PL/SQL into HTML Template?
I have a PL/SQL procedure that uses htp.p to write a <script> element. The procedure writes out my Google Analytics tracking code so I don't have to update it manually in my many templates.
How do I get this procedure to write the <script> in an HTML Template?
I currently use the following at the bottom of my HTML Templates:
<!-- Google Analytics code begins -->
<script type="text/javascript" language="javascript" src="http://domain/portal/pls/portal/schema.procedure"></script>
<!-- Google Analytics code ends -->
But this produces an error in IE (still seems to track ok, but some users get error dialogs of an error at line 2 char 7).Wow! Option 2 fixed it.
So I was calling the proc via a js call as follows:
<!-- Google Analytics code begins -->
<script type="text/javascript" language="javascript" src="http://domain.com/portal/pls/portal/schemaL.proc"></script>
<!-- Google Analytics code ends -->
and the proc output the following:
<script type="text/javascript">
var gaq = gaq || [];
gaq.push(['setAccount', 'UA-999999-9']);
gaq.push(['setCustomVar', 1,'var1','value1',1]);
gaq.push(['setCustomVar', 1,'var2','value2_COM',1]);
gaq.push(['trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
</script>
Apparently the "<script>" tags in the proc output were the problem. If only I could see the generated HTML output of a page... -
ITSGENMOBILE4 Template Generator
Dear Experts,
I have successfully created a New Template Generator based on the ITSGENMOBILE generator.
Now I want to create a generator based on the ITSGENMOBILE4. But i have run into some problems.
I was looking at this [TUTORIAL|http://help.sap.com/saphelp_nw70/helpdata/en/46/6c3d6041496a58e10000000a11466f/frameset.htm] and made changes for using the CL_ITS_GENERATE_HTML_MOBILE4 class instead of the one in the tutorial.
My constructor looks like this:
METHOD constructor.
DATA:
l_theme TYPE _t_theme_for_templates.
super->constructor( ).
_html_width_factor_containers = '1.00'.
_html_width_factor_elements = '0.82'.
_loop_line_name = 'LOOP_INDEX'.
l_theme-service = 'ZMYGENMOBILE4'.
l_theme-theme = '99'.
INSERT l_theme INTO _themes_for_templates INDEX 1.
ENDMETHOD.
i have redefined this
method IF_ITS_GENERATE_TEMPLATE~DESCRIPTION_TEXT.
case pi_style.
when 'ZMYSTIL'.
pe_description = 'MYSTIL (without HTML-Table)'(001).
when others.
pe_description = 'Unbekannter Stil'(002).
endcase.
endmethod.
The templates are generated successfully, but none of the customizing i am doing to the ZMYGENMOBILE4 templates is visible.
All templates look like when generating with the default ITSGENMOBILE4 generator.
None of my customizing is visible.
Your response is greatly appreciated! Thank you very much in advance
Edited by: Marko Kuhar on Jun 21, 2010 10:10 AMProblem solved.
I had to implement Note 1319940. -
HTML Templates in integrated ITS
Hi,
I am using certain ITS services in integrated ITS. However, their look and feel is like WebGUI. For two of the services, there are HTML templates defined but still their look and feel is like WebGUI. If I do not definr ~GENERATEDYNPRO = 1, then I get an internal error. If I use this parameter, then the look and feel is SAP like.
Any pointers?
Thank you.
Abhijeet.Hi abhijeet,
Set by Service file
~ generateDynpro = 0 -Automatic screen generation
disabled.
1 -Automatic screen generation
enabled.
can you re-publish service again on your ITS and re-start ITS server and test this.
Please share the result.
Thnx,
Suriya. -
Page includes in html templates
I see <% include file="header.html" %> in html template working for 'HTML' gallery type web engines.
<br />
<br />But, it doesn't work if the gallery type is 'Flash'. It seems the only supported directive includes are %variablename% format.
<br />
<br />Why LR is restricting lots of features for Flash based galleries? Is this by design or restricted for some other reasons or a bug?
<br />
<br />I wish if there is some flag somewhere that can be turned on so that Flash gallery type will have all the features of html. Currently I don't think it'll encourage any developer to write/adapt flash based web plugin for LR.
<br />
<br />ChrisSean, Thanks for your reply. SlideShowPro is no different. Please check any of the html pages in the SlideShowPro plugin. It doesn't use <% %> directives. Only %var% is used.
<br />
<br />Yes, I'm aware of what include does. That's exactly the reason why I need it in Flash gallery type. Keep the header and footer outside the template for easy user editing.
<br />
<br />To explain the issue in easier terms, lua coding is allowed in the template files only if you set gallery type as 'Html'. If you change it to 'Flash', it won't work.
<br />
<br />Even simpler,
<br />You can use <% %> only in html gallery types.
<br />
<br />It's not just 'include'. If <% ... %> is allowed for Flash gallery type, you can do a lot of lua scripting in your html templates. All spoiled by LR limitation :-) -
Flow Logic jumping to HTML Template (with SAP dialog) & back again
Hello
Overview
========
Within a HTML Template that uses flow logic, can I call a HTML Template that has SAP dialog behind it. The SAP dialog is a function module that has a screen requesting user input and then follows on to display selection based on user input. The user can then select a value that I would like returned to the flow logic screens. Just like an F4 help.
Detail
======
This is for SRM (EBP):
-Internet Service: BBPATTRMAINT
-Theme: 99
-HTML Template and flow logic: MAINTAIN_ATTRIBUTES
Basically I want to give the user more functionality and be able to select addresses using an F4 type scenario.
The function module I want to call is as follows:
CALL FUNCTION <b>'F4IF_FIELD_VALUE_REQUEST'</b>
<b>EXPORTING</b>
TABNAME = 'ADRC'
FIELDNAME = 'ADDRNUMBER'
SEARCHHELP = 'BBP_ADDR_BUPA_BUYER'
SHLPPARAM = 'ADDRNUMBER'
DYNPPROG = 'BBP_ADDR_MAINTAIN'
DYNPNR = SY-DYNNR
DYNPROFIELD = 'BBP_PARTNER_ORG-ADDR_SELECTED'
CALLBACK_PROGRAM = 'BBP_ADDR_MAINTAIN'
CALLBACK_FORM = 'PRESET_COMPANY_PARTNER'
<b>TABLES</b>
RETURN_TAB = IT_RETVALUES
<b>EXCEPTIONS</b>
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5.
This displays a screen for the user to better define search criteria and follows on to display possible selections. The user selection is returned in IT_RETVALUES.
If anyone knows of a similar SAP example where they go from flow logic to HTML templates then that would help a lot.
Any help or direction would be greatly appreciated.
Regards
PeterHey Orcasound, welcome to the forum, and also welcome to Logic.
Nice setup BTW, especially the Dangerous 2BUS into the BC1 coming back to the Rosetta 800"s, that gonna sound sweet mate.
OK Q1: The master fader for output 1-2 is always gonna be there, I've never found a way of getting rid of it, you can fortunately set up the mixer so that it won't show though. At the top of the mix window is a heap of boxes highlighted in blue, all you need to do is deselect the master and the output as per this screen shot:
Save this in your template and you'll never have to see those pesky faders again.
Q2: Same thing really, logic will always show 1-2 output as stereo out. Which is annoying, even if you manually name them from the I/O labels window it's always stereo, everything else if fine apart from 1-2. To be honest I've just learned to live with it.
Glad you made the switch, I find DP to be bloated and a bit tired nowadays. -
Problem with speed after adding external html "template
HI
I created nice looking html "template" for my site in program Aristeer 2. Basicly it created 3 files for me- *.HTML (about 10kb) *.CSS(avout 25kb) and *.js(javascript about 7kb). I was thinking that it will work perfectly ,when i will just define new dreamweaver site and open the html file in my Dreamweaver CS3.
problem is,that everything ,what i want to do,in this site takes enormly long time...if i just click to open my html file,it takes about 2 minutes to open it,later,when am trying to delete some picture,delete some text,add some ApDiv,create table etc,it takes really a lot of time to do it...
am just wondering why,cos am still working with ,lets say,small files,so where is the problem?
can please somebody help me how to fix it? (when i open another site,that i designed all by Dreamweaver CS3,there is no problem like that....)
thanks a lot
radkoI have no idea what the problem is. I did download your page and I have no idea how you can even work with that file in DW. Every time I moved my cursor, the elements either disappeared or reappeared as I moved over the page.
Looks like every element on that page has been placed inside an absolutely positioned div which may or may not account for the 'slowness'..
I did notice a lag (slowness) with the mouse movement - but once I managed to get open a content container, I did paste some text into it but it was all very slow.
I' put it down to the way the page has been created honestly. Even though it validates and no errors were found, that really is not the best way to create a web page. (sorry). I realise YOU did not create it, it was an automated process - I'd stay well away from it in future :-)
Maybe you are looking for
-
Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input
Dear Friends, We are facing a serious problem for debugging. Expecting valuable input for the same. Debugging is not working in R/3 from WebDynpro-ABAP developed webpage input in Production Server. The debugging (for WebDynpro-ABAP application) is wo
-
I installed Adobe Shape on my iPhone (iOS 8) and don't see, where the shapes are saved. In CC app for iOS there are no files (and used space in CC is 0 Mb). And I don't see my shapes in your other your apps (for iOS: Ideas, Photoshop Mix). How can I
-
Likely Cost to Upgrade from Photoshop CS5 Basic to CS6 Extended?
I know an exact answer to this question is not available yet, but I would like to get a feel for what to expect when CS6 is released. I currently have Photoshop CS5 Basic. I would like to upgrade it to CS6 Extended when CS6 is released. Am I going to
-
Activation date almost passed, no dial tone or bro...
Hi. After waiting a month for an engineer appointment, I woke up this morning to a text from BT saying that it turns out I didnt need an engineer, my phone line and broadband were activated and I could start using them immediately. My order status on
-
Eclipse Mars: Java Development unacceptable
First of all, how do I work? Ubuntu 14.04 Eclipse 4.5 for Java EE Developers (all Updates) Oracle JDK 1.8.0_25 What's the problem? Cleanup is not working. It shows an error Message. If you create a new class (or JUnit Testcase, what indeed also is a