Skip to Content
0
Nov 03, 2004 at 08:27 AM

Changing the Values of Variables

39 Views

Hi Expert,

I am interesting in Changing the Values of Variables Screen that I parse from text field,

when I execute the script the next page is error,

as far as I know the problem is the VAR_VALUE_EXT_1 become empty.

can we joint tag BW with JS variable ?

here my code

.

.

<SCRIPT LANGUAGE="JavaScript">

function ChangeVariable()

{

var strval = document.getElementById('dt_name').value;

SAPBWOpenURL('<SAP_BW_URL CMD="PROCESS_VARIABLES" SUBCMD="VAR_SUBMIT" VAR_NAME_1="ZVPCLW07" VAR_VALUE_EXT_1="'+ strval +'">');

}

</SCRIPT>

.

.

<FORM NAME="test_form" METHOD="post" onSubmit="ChangeVariable()">

Calendar Year/Week: <INPUT TYPE="text" NAME="dt_name" SIZE="20"> <BR>

<INPUT TYPE="submit" name="send" VALUE="Submit">

</FORM>

regards

supriatna