cancel
Showing results for 
Search instead for 
Did you mean: 

BHTML implementation button

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Please check in your template all the form content is with in `SAP_FormBegin()`.... `SAP_FormEnd()`

Regards

Satya

Answers (0)