cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a pop-up window

Former Member
0 Kudos

Hi Friends

I need to create a pop-up window on click of a button . Presently , there is no such functionality in existing application.

This pop-up window created will display the data from BID Invitation.

Can anyone help me with the procedure to create a new pop-up window?

Thanks and Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

checking sy-ucomm and then

Try FM POPUP_TO_INFORM, Example:

CALL FUNCTION 'POPUP_TO_INFORM'

EXPORTING

TITEL = 'ERROR'

TXT1 = 'Enter the message using the input lines at the bottom'.

Regards

Former Member
0 Kudos

All you need in the Bid Invitation is to edit the relevant template and insert:

if ( confirm("Do you want to continue?))

{

// do something using ok_code

}

else

{

// do something else

}

I would put detailed info into another template.

Alistair

thorsten_domsalla
Active Participant
0 Kudos

Hello Virender,

as far as I know the function modules POPUP_TO_INFORM or POPUP_TO_CONFIRM are supported in SAP GUI (for HTML) only.

Regards,

TJ

Former Member
0 Kudos

Using javascript you can, for example,

<td class="b" align="center"><input type="button" name="b1" value="Dettagli" onClick="display_popup();"></td>

and define the function "display_popup" like this example:

function display_popup()

{

num_pxl = 450;

msg=open("","schermo","toolbar=no,directories=no,menubar=no,width=600,height="num_pxl",resizable=yes,scrollbars=yes");

msg.document.write("<HEAD><TITLE>`#titolo`</TITLE><LINK REL=STYLESHEET HREF='`mimeURL(service="global",name="style/evalue.css")`' TYPE=text/css></HEAD><body>");

...

...

msg.document.write("<br><br><center><a href='' onclick='self.close()'>`#chiudi`</a>");

}

</script>

Regards,

Gianluca Simeone