Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

simple confirm window. easy problem

Hi all,

<b>SRM-module</b>

<b>transaction:</b> se80

<b>Object name:</b> BBP_QUOT -> Topic 99 -> HTML Templates -> SAPLBBP_QUOT_UI_ITS_300

When bidder publish his offer by pressing publish button we want to add some extra window where bidder confirm his decision.

<b>Original code :</b>

`if( SB_SAVE.exists )`

`if( SB_SAVE.disabled )`

`BBPDisabledButton(SB_SAVE.label)`

`BBPButtonSpace()`

`else`

`BBPButton(label=SB_SAVE.label, jsFunction="clickONE('QUOT_SAVE','"&SB_SAVE.label&"')",tooltip=#TOOLTIP_SAVE)`

`BBPButtonSpace()`

`end`

`end`

`BBPSetExtButton("SB_SAVE")`

......

function clickONE(OkCode,label){

if ( hit >= 1 ){

this.count++;

}

else

{

hit = 1;

if (!document.layers){

var element = document.getElementsByName(label);

element[0].style.cursor="wait";

}

SetOkCode(OkCode,'BBPForm', '', '', '');

}

}

<b>Our modification:</b>

function confirmSave() {

if( confirm("Are you sure?") == "true" )

{

SetOkCode(jsFunction="clickONE('QUOT_SAVE','"&SB_SAVE.label&"')",'')

}

}

.......

if( SB_SAVE.exists )`

`if( SB_SAVE.disabled )`

`BBPDisabledButton(SB_SAVE.label)`

`BBPButtonSpace()`

`else`

`BBPButton(label=SB_SAVE.label, jsFunction="confirmSave()", tooltip=#TOOLTIP_SAVE)`

`BBPButtonSpace()`

`end`

`end`

`BBPSetExtButton("SB_SAVE")`

confirm Windows is working but after clicking OK nothing happen. We don't have any documentation about class in this template . Java don't show errors in this code.

Any suggestions?

I think it should be easy one. <b><REMOVED BY MODERATOR></b>

Best Regards.

Peter

Title and Message were edited by:

Alvaro Tejada Galindo

Former Member
Not what you were looking for? Ask a question