Skip to Content
0
Former Member
Nov 10, 2008 at 05:34 PM

BHTML implementation button

23 Views

Hi experts,

I implement a screen 9000 linked to the service BBPSC01, I build two buttons called ok and cancel with respective funtion code 'ZSAVE' and 'ZCANC' within the template I create SAPLBBP_SC_UI_ITS_9000 , unfortunately when I execute an action on this button, I receive the following message :

'return' statement outside of function.

Here after is the sample code concerning the build of these both buttons :

`TD()`

`BBPVSpace()`

`BBPButtonBegin()`

`if (Z_SAVE.exists)`

`if (Z_SAVE.disabled)`

`BBPDisabledButton(Z_SAVE.label)`

`BBPButtonSpace()`

`else`

`BBPButton(Z_SAVE.OKCODE,Z_SAVE.label)`

<! `BBP_EXCHANGE_HTML_BUTTON_JS(bbpformname,Z_SAVE.OKCODE," "))` >

`BBPButtonSpace()`

`end`

`end`

`if (Z_CANCEL.exists)`

`if (Z_CANCEL.disabled)`

`BBPDisabledButton(Z_CANCEL.label)`

`else`

`BBPButton(Z_CANCEL.OKCODE,Z_CANCEL.label)`

`end`

`end`

`BBPButtonEnd()`

</td>

Thank you in advance if you have idea and give me some clues about it.

Best regards.