on 12-18-2014 5:20 AM
Hi experts,
Can you please explain me how to include device-specific html file to ITS mobile transaction?
I've developed the ITS mobile transaction for SAP ERP system (SAPKB70215), defined internet service and published all HTML templates via a service in transaction SICF. Everything runs just fine but F-keys are not functional in Wavelink Industry Browser (running on Motorola MC9190 device).
After some googling I have figured out that I have to include some meta tags "OnKey..." to generated HTLM pages...
So first I just copied the DEVICESAMPLE html template to our Z* internet service and published it. In transaction SICF -> GUI Configuration I add this service parameter:
~ITSMOBILEDEVICEINCLUDE DEVICESAMPLE
Now, if I run the ITS mobile transaction, the internet browser shows "Application Error".
Just this text (after logon screen). There aren't any related dumps in st22.
Any idea why I cannot include even such a simple html file?
I'd be very grateful for some advice.
Thanks.
Petr
Hi Petr,
What are the contents of your DEVICESAMPLE? I presume this is NOT the name you used?
Have you given it a meaningful name like INCLUDE_Motorola_MC9190 in SE80
and then
~ITSMOBILEDEVICEINCLUDE INCLUDE_Motorola_MC9190
in SICF?
What are it's contents?
Do you see the file INCLUDE_Motorola_MC9190 included in the HTML <head> tag when you call the the initial HTML page of the Z* internet service? Or is this not possible as you get the "Application Error" message?
The ITSMobile WIKI has information about using this parameter
Service Parameter and Settings - Wiki - SCN Wiki
"
You use ~ITSMOBILEDEVICEINCLUDE to specify your own device include file in which, for example, the mapping of function keys for a specific device is defined. The device include file is included on every HTML page in the <head> tag. Function keys are normally mapped using http meta http-equiv instructions that call a specified JavaScript when a key code is entered. The device include file is exactly the right place for these device/browser-specific instructions. The ITSMOBILE01 service can be used to illustrate this.Example: ~ITSMOBILEDEVICEINCLUDE devicesample
The content of the devicesample file is included in the HTML <head> tag on every HTML page. The devicesample file must be available in the relevant service as an HTML template.
"
Regards,
Oisin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oisin,
Thanks for quick reply.
The content of DEVICESAMPLE html template is the same as the original ITSMOBILE01 -> DEVICESAMPLE template. I simply copied the original content into my own internet service under the same name and published it. I used DEVICESAMPLE for test purposes because there is no real html code inside it.
As soon as I activate this include via
~ITSMOBILEDEVICEINCLUDE DEVICESAMPLE
in the SICF service I get "Application Error" after log on via any web browser
And yes, first I used more meaningful name for my HTML template (copied from ITSMOBILE01-> DEVINCLUDE_SYMBOL3090) but with the same result: "Application Error".
Any idea what I did wrong? Is there any error log available?
Thanks,
Petr
Hi Petr,
That is unusual behaviour
If you delete
~ITSMOBILEDEVICEINCLUDE DEVICESAMPLE
in SICF for the Z_ITS_Mobile service?
Then the service works correctly?
What template generation style have you used to generate the HTML templates?
Two notes that are related to ~ITSMOBILEDEVICEINCLUDE
1491666 ITSMobile: How to obtain function key values
1031074 ITSmobile 1.1: Supplements and improvements
Regards,
Oisin
Hi Oisin,
> What template generation style have you used to generate the HTML templates?
That's the correct answer to my question.
Well, I used the Editor Templates to generate the HTML Templates... and as I understand it the ITSmobile Visual Editor does not support the ~ITSMOBILEDEVICEINCLUDE service parameter.
HTML Templates created directly with generating style MOBILE4 work fine.
Is there any way how can I include vendor-specific meta tags to html templates that were generated from ITSmobile Visual Editor templates?
Or should I revert everything back to MOBILE4?
Please advise.
Thank you.
Petr
EDIT: Oops, it doesn't work correctly even with the MOBILE4 generating style.
But there is a new error message.
500 Internal Server Error
Here is related entry in system log (SM21):
Transaction Canceled ITS_P 001 ( )
The transaction has been terminated. This may be caused by a
termination message from the application (MESSAGE Axxx) or by an
error detected by the SAP System due to which it makes no sense to
proceed with the transaction. The actual reason for the termination
is indicated by the T100 message and the parameters.
Additional documentation for message ITS_P 001
System error
No documentation exists for message ITS_P001
Message was edited by: Petr Me
Hi Oisin,
Kernel info:
SAP Kernel : 721_REL
Database Client Library : DB6_81
created in : NT 5.2 3790 S x86 MS VC++ 14.00
created on : May 27 2014 03:39:08
Support Level : 0
Kernel Patch number : 300
Source ID : 0.300
DBSL Patch No. : 220
ICU Version : 3.4 Unicode Version 4.1
libsapu16 Version : 2.0025 May 26 2014 19:55:05
Here are the 'GUI Configuration' parameters from the SICF service:
~THEME | 99 |
~TRANSACTION | ZRF |
~ITSMOBILE | 1 |
~SOURCES | <my_internet_service>,itsmobile |
~POPUPS | 1 |
~ITSMOBILEDEVICEINCLUDE | DEVINCLUDE_SYMBOLMC9190 |
~ITSMOBILEMSGSOUND | 1 |
~SHOW_SYSTEM_MODAL | 1 |
~XSRFCHECK | 1 |
After logon I can only see '500 Internal Server Error' landing page and the following entries in SM21:
Time Type Nr Clt TCode Priority Grp N Text
15:20:58 DIA 004 800 ZRF W0 1 ITS, User session terminated
15:20:58 DIA 004 800 ZRF D0 1 Transaction Canceled ITS_P 001 ( )
However, this 'GUI configuration' parameters works OK, without errors after log on. But I have to include my own html template.
~THEME | 99 |
~TRANSACTION | ZRF |
~ITSMOBILE | 1 |
~SOURCES | <my_internet_service>,itsmobile,itsmobile01 |
~POPUPS | 1 |
~ITSMOBILEDEVICEINCLUDE | DEVINCLUDE_SYMBOL3090 |
~ITSMOBILEMSGSOUND | 1 |
~SHOW_SYSTEM_MODAL | 1 |
~XSRFCHECK | 1 |
Thank you.
Petr
Hi Petr,
I believe it works OK for your second test as the "itsmobile01" has this file DEVINCLUDE_SYMBOL3090
~SOURCES | <my_internet_service>,itsmobile,itsmobile01 |
~POPUPS | 1 |
~ITSMOBILEDEVICEINCLUDE | DEVINCLUDE_SYMBOL3090 |
What's the path to the "DEVINCLUDE_SYMBOLMC9190" in SE80 under your service
<my_internet_service> ?
Has it been published to the site INTERNAL/INTEGRATED ITS?
Regards,
Oisin
Hi Oisin,
You are right I can include any existing (SAP-delivered) html files, for instance DEVICESAMPLE of the ITSMOBILE01 internet service.
By the way, it doesn't matter how I generate the html templates for screens. I can use both, the Editor templates or generate screens directly with MOBILE4 style.
The path in SE80 to DEVINCLUDE_SYMBOLMC9190 is:
ITS Services
-> <my_internet_service>
-->Topic 99
---> HTML Templates
---->DEVINCLUDE_SYMBOLMC9190
The following message is shown when the html file is published:
Any idea why my own include template fails to work?
Thank you.
Petr
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.