Skip to Content
author's profile photo Former Member
Former Member

How to..Show a wait dialog when data loads, then hide once data loads

Description: This code will have the SAP default wait dialog become visible when the page loads and hidden after the data is returned for the table.

1. Place this code within the head tags.

<head>

<SCRIPT Language="JavaScript">

function show_wait_dialog () {

document.body.style.cursor = "wait";

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("display", "block", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("visibility", "visible", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("overflow", "auto", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("width", "255", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("left", document.body.offsetWidth/2-125, false); document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("top",

document.body.offsetHeight/2-38, false);

}

function hide_wait_dialog () {

document.body.style.cursor = "auto";

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("display", "block", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("visibility", "hidden", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("overflow", "auto", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("width", "255", false);

document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("left", document.body.offsetWidth/2-125, false); document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("top", document.body.offsetHeight/2-38, false);

}

</script>

</head>

2. Place this code right after the <body> tag.

<body>

<!-- New Code -->

<script>

show_wait_dialog()

</script>

3. Lastly, place this code below right after the Table Item and before the </body> tag. (in this case GR1Table)

<object>

<param name="OWNER" value="SAP_BW"/>

<param name="CMD" value="GET_ITEM"/>

<param name="NAME" value="GR1Table"/>

<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>

<param name="DATA_PROVIDER" value="DP"/>

<param name="WIDTH" value="700"/>

<param name="BLOCK_SIZE" value="3000"/>

<param name="SHOW_PAGING_AREA_TOP" value="X"/>

<param name="HELP_SERVICE" value="ZPRINTING"/>

<param name="HELP_SERVICE_CLASS" value="Z_PRINTING_HELP_SERVICE"/>

ITEM: GR1Table

</object></P>

<P>

<!┬ŚNew code --&#61664;

<script>

hide_wait_dialog ()

</script>

</body>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 12:52 PM

    This is very helpful. Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.