cancel
Showing results for 
Search instead for 
Did you mean: 

Internet Service - HTML template

Former Member
0 Kudos

Hi, expert:

In the internet service, there is some code such as the following in the HTML template:

<TD>`Button(okcode="MBEW", label=#b_label_mbew, SubMenu="inactive")` </TD>

I would like to know where to define Button

Thanks,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Pls.try with the two cases given below:

Case-1

If you create the button say statistics on the screen on ABAP side,then in the HTML template you can define the button as follows:

<input type=submit name="~OkCode(ANAL)" value="Statistics">

where as for exit button you can directly define without any button on ABAP side:

<input type=submit name="~OkCode(/NEX)" value=" Home ">

Case-2

For other buttons also you can directly define in the template without any button defined on ABAP side

<form action="http://`~HTTP_HOST`/sap/bc/gui/sap/its/zess_service/" method="post">

<input type="submit" value="Cancel">

</form>

Normally,for case-1,the function code is cotrolled on BAP side(mainly on module pool screen to call other transaction(screens) and in case-2,you can access other services directly from the template.

Good luck.

Santanu

Edited by: Santanu Dehury on Mar 3, 2009 4:15 PM

former_member316351
Active Contributor
0 Kudos

Hello Yunfa,

Could you please be more specific? Button is a function of the HTMLBusiness so if you're looking to define the function then it's not possible. But if you want to change the text of the button then you usually can on the ABAP side. This though should be in a language resource file sine the name is preceded by the #, look for "b_label_mbew" in an .htrc file.

Edgar