cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Logoff is not responding in ITSMobile Service

Former Member
0 Kudos
347

I'm not sure if this is helpful anymore but I had the same problem and I solved it by publishing the logoff screen SAPLSPO1 100 and then writing my own HTML\JavaScript to "trick" it into thinking Carriage Return = Yes


<html class="MobileHtml">`

  if ( ~itsmobileNameSpace != "")

    ~current_service = ~itsmobileNameSpace & ~service;

  elseif ( strsub(~sources, 0, 1) == "/" )

    ~current_service = strsub(~sources, 0, strchr(~sources, "/", 1)+1) & ~service;

  else

    ~current_service = ~service;

  end;`

`<!-- Generated Template

      NAME:   SAPLSPO1

      SCREEN: 0100

      DATE:   20121128

      TIME:   172424

      STYLE:  ZST_RF_ITS

-->

if (~itsmobileFuncInclude != "")

    declare w(i, a) in "some.html";

    include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileFuncInclude & ".html", ~style="x");

else

    name = "functions";

    include(~service="itsmobile", ~language="", ~theme="99", ~name=name & ".html", ~style="x");

end;`

    <head>`

    if ( ~itsmobileDeviceInclude != "" )

       include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileDeviceInclude & ".html");

    end;`

        <title>`~windowtitle`</title>

`if ( ( ~messageline != "" ) && ( ~itsmobilemsgsound == "1" ) || ( ~currdynpro.messagesound != "" ) )

   if ( ~messagetype == "S" || ~currdynpro.messagesound == "S" )

         <!-- sucess message -->

`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />

`  elseif ( ~messagetype == "I" || ~currdynpro.messagesound == "I" )

         <!-- information message -->

`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />

`  elseif ( ~messagetype == "W" || ~currdynpro.messagesound == "W" )

         <!-- warning message -->

`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="1" />

`  elseif ( ~messagetype == "E" || ~currdynpro.messagesound == "E" )

         <!-- error message -->

`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="3" />

`  elseif ( ~currdynpro.messagesound != "" )

         <!-- message type not set -->

`        <bgsound src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~currdynpro.messagesound)`" loop="1" />

`  else

         <!-- message type not set -->

`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsoundmsg.wav")`" loop="1" />

`  end;

end;

if (NOTIFY_BELL_SIGNAL > 0)

`        <bgsound src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="sounds/all/sapsounderr.wav")`" loop="`NOTIFY_BELL_SIGNAL`">

`end;`

` if ( ~itsmobileCssInclude != "" ) <!-- customer include from gui settings -->`

        <link rel="stylesheet" href="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileCssInclude & ".css")`" type="text/css" />

` else <!-- default include from itsmobile --> `

        <link rel="stylesheet" href="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="styles/all/mobile.css")`" type="text/css" />

` end;`

` if ( ~itsmobileJsInclude != "" ) <!-- customer include specified in gui settings -->`

        <script type="text/javascript" language="javascript" src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileJsInclude & ".js")`"></script>

` else <!-- default include from itsmobile --> `

        <script type="text/javascript" language="javascript" src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="scripts/all/mobile.js")`"></script>

` end;

  if ( ~itsmobileCustomJsInclude != "" )`

        <script type="text/javascript" language="javascript" src="`mimeURL(~service=~current_service, ~theme=~theme, ~language="", ~name=~itsmobileCustomJsInclude & ".js")`"></script>

` end;`

        <script type="text/javascript" language="Javascript">

           var itsmobile_eos = "`wgateurl(~okcode="/nex")`";

        </script>

` <!-- rfid values --------------------------- -->

  if ( ~RfidEnabledFields != "" ) `

        <script type="text/javascript" language="javascript" src="`mimeURL(~service="itsmobile", ~theme=99, ~language="", ~name="rfid/rfbutton.js")`"></script>

        <script type="text/javascript" language="Javascript">

           var rfid_fields = new Object;

`   repeat with i from 1 to ~RfidEnabledFields.dim

      <!-- get field name and index -->

      rfidField = ~RfidEnabledFields[i];

      rfidFieldIdx = ~RfidEnabledFields[i].idx;

      rfidFieldParams = ~RfidEnabledFields[i].params; `

           rfid_fields["`rfidField`[`rfidFieldIdx`]"] = { `rfidFieldParams` };

`   end; `

        </script>

` end; `

    </head>

    <body class="MobileBody" id="MobileBody" onload="setFocus('`'SPOP-OPTION1'[1].name`');`~itsmobileOnloadHandler`" style="background-color:#87CEFA;" onkeydown="return processKeyEvent(event);" onhelp="return false;">

        <form method="post" action="`WGateURL()`" id="mobileform" name="mobileform" onsubmit="return firstSend()" style="display:inline">

            <input type="hidden" id="~OkCode" name="~OkCode" value="/0" />

            <input type="hidden" id="~FKey" name="~FKey" value="" />

            <input type="hidden" id="~Focusfield" name="~Focusfield" value="" />

            `if (~SEC_SESSTOKEN != "")`<input type="hidden" name="~SEC_SESSTOKEN" value="`~SEC_SESSTOKEN`" />`end`

            <!-- The complete screen -->

            <table class="MobileScreen" cellpadding="0" cellspacing="0" border="0">

                <!-- the cua area with title, message and logo -->

                <tr>

                    <td width="60%">`

    if ( ~itsmobileCuaInclude != "" ) <!-- customers cua area -->

       include(~service=~current_service, ~language="", ~theme=~theme, ~name=~itsmobileCuaInclude & ".html");

    elseif ( ~itsmobileNoCuaInclude != "1" && ~itsmobileNoCuaInclude != "X" ) <!-- default cua area -->

       include(~service="itsmobile", ~language="", ~theme="99", ~name="include/cuaarea.html");

    end;`

                    </td>

                </tr>

                <!-- the user area -->

                <tr style="height:100%;">

                    <td>

                        <table class="MobileUserArea" cellpadding="0" cellspacing="0" border="0" style="width:40.6em">

                          <thead><tr style="height:-1px">`

                          repeat with i from 1 to 084

                             `<td style="width:`~itsmobile1UnitWidth`"/>`

                          end;

                         `</tr></thead>

                            <!-- line 1 -->

                            <tr class="MobileRow">

`if (6 != 0)

`                                <td colspan="6"/>`

end;`

                                <td colspan="71" rowspan="1">

                                    OK to Logoff

                                </td>

`if (7 != 0)

`                                <td colspan="7"/>`

end;`

                            </tr>

                            <!-- line 3 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 4 -->

                            <tr class="MobileRow">

`if (6 != 0)

`                                <td colspan="6"/>`

end;`

                                <td colspan="12" rowspan="1">

                                    `if ( ( 'SPOP-OPTION1'[1].exists == "X" ) && ( 'SPOP-OPTION1'[1].visible == "X" ) )

                                            `<input type="button" `

                                                if ( 'SPOP-OPTION1'[1].disabled == "X" )

                                                    `class="MobileButtonDisabled" disabled="disabled" `

                                                else

                                                    `class="MobileButton" `

                                                end

                                                `id="`'SPOP-OPTION1'[1].name`" name="`'SPOP-OPTION1'[1].name`" `

                                                `value="OK" `

                                                if ( 'SPOP-OPTION1'[1].rfidenabled == "" )

                                                `onfocus="javascript:setFocusField('`'SPOP-OPTION1'[1].name`');" `

                                                `onblur="javascript:leaveFocusField('`'SPOP-OPTION1'[1].name`');" `

                                                `onclick="javascript:RfidButtonClick();" `

                                                else

                                                `onclick="javascript:setOkCode('`'SPOP-OPTION1'[1].okcode`');" `

                                                end;

                                                ` />`

                                    else

                                        `<div style="width:10.8em"> </div>`

                                    end;`

                                </td>

`if (0 != 0)

`                                <td colspan="0"/>`

end;`

`if (0 != 0)

`                                <td colspan="0"/>`

end;`

`if (39 != 0)

`                                <td colspan="39"/>`

end;`

                            </tr>

                            <!-- line 5 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 6 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 7 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 8 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 9 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 10 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 11 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 12 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 13 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 14 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 15 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 16 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 17 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 18 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 19 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 20 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 21 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                            <!-- line 22 -->

                            <tr class="MobileRow">

`if (84 != 0)

`                                <td colspan="84"/>`

end;`

                            </tr>

                        </table>

                    </td>

                </tr>

            </table>

        </form>

    </body>

</html>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gavin,

Did you solve the problem by doing that or is it still there?

Can you please highlight the code of Carriage Return?

Thank you.

Former Member
0 Kudos

Yes Utkarsha,

It is working well for us as long as you implement the steps in note 1777513 also.

Regards,

Colm