on 08-27-2006 11:50 AM
Hi All,
I need to know the use of this declaration. What does this code do.
`declare fieldEcho in "SAPXJutil.dll";`
`fieldEcho()` --- What does this function do?
Regards
Arun
Hello Arun,
generates you a list of html input tags (type=hidden) for each field in the last request sent; behavior can be seen in the (output of) login and changepassword templates.
Regards,
Fekke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
good
syntax: `declare fieldEcho, getLanguages
in "SAPXJutil.dll"; fieldEcho()`
and you can check if no language specified at the service level, you can provide the list of languages available in the system in drop-down by the following code:
`if (~language=="")`
<TR>
<TD>Language:</TD>
<TD><SELECT name=~language>
`if (getLanguages
("langId", "langDesc") == 0) repeat with i from 1 to
langId.dim` <OPTION selected
value=`langId`>`langDesc`</OPTION>
`end else`
<OPTION value=en>No allowed languages specified! Using
English as default.</OPTION> `end`</SELECT> </TD></TR>`end`
The following is an example login template for using the Windows NT domain controller for verifying the user's password:
`declare fieldEcho, fieldEchoWML, getLanguages in "SAPXJutil.dll";`
<h3>Please log on to the SAP System</h3>
<table>
<tr>
<td>
<form method="post" action="`wgateURL()`">
`fieldEcho()`
<table>
<tr><td>Service:</td><td>`~Service`</td></tr>
`if (~client=="")`
<tr><td>Client:</td><td><input name="~client" value="`RSYST MANDT`"></td></tr>
<tr><td>
<input name="~clientinput" type="hidden" value= "1">
</td></tr>
`end`
`if (~extauthtype == "DLL" || ~extauthtype == "NTpassword")`
`if (login=="")`<tr><td>Login:</td><td><input name="login" value="`RSYST-BNAME`"></td></tr>
<tr><td>
<input name="~logininput" type="hidden" value="1">
</td></tr>
`end`
`if (~password=="")`
<tr><td>Password:</td><td><input type=password name="~password" value=""></td></tr>
<tr><td>
<input name="~passwdinput" type="hidden" value="1">
</td></tr>
`end`
`if (~extauthtype=="NTpassword")
if (~ntdomain=="")`
<tr><td>NT domain:</td><td><input name="~ntdomain" value=""></td></tr>
`end`
`end`
`if (~language=="")`<tr><td>Language:</td>
<td>
<select name="~language">
`if (getLanguages ("langId", "langDesc") == 0)
repeat with i from 1 to langId.dim`
<option value="`langId<i>`">`langDesc<i>`</option>
`end
else`
<option value="en">No allowed languages specified! Using English as default.</option>
`end`
</select>
</td></tr>
`end`
`end`
<tr><td></td><td>`~MessageLine`</td></tr>
</table>
</td>
</tr>
<tr>
<td>
<table allign=center">
<tr>
<td>
<input type=submit name="~OkCode=/0" value="Logon">
</td>
</tr>
</table>
</td>
</tr>
</form>
</td>
</tr>
</table>
thanks
mrutyun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mrutyunjaya,
Thanks for the input.
Can you further explain some of the points.
<Form method = "post" action = "`wgateurl()`"
What is the service file does it call to login to SAP
<input type=submit name="~OkCode=/0" value="Logon">
What is the purpose of the okcode.
What program or service file does it call.
Regards
Arun
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.