cancel
Showing results for 
Search instead for 
Did you mean: 

Filling BPS_Value by Javascript

Former Member
0 Kudos

HI To everyone,

Hopefully someboday has an idea for this following problem.

Scenario:

I Have a Web Interface / Planning Application which has a an component of type SEL_VARVL which is assigned to a numerical bps variable ( and needs to be assigned to this nummerical bps variable) This vatiable field needs to be filled by a javascript, and should show the new value after the script has been executet.

Any idea?

Best Regards

Mike

Accepted Solutions (1)

Accepted Solutions (1)

former_member93896
Active Contributor
0 Kudos

Hi Mike,

you should use the following statement to set the input field:

  var theForm = getForm();
  var theField = "Variable1";
  theForm.elements(theField).value = xyz;

Regards

Marc

SAP NetWeaver RIG

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mike,

You can always do this with a script, but remember that the script execution will take place after the roundtrip to the server.

Thus, It won't work I guess. Best way to achieve this, If I am uderstanding you correctly, is to call the web interface in such a way that it predefines the variable selector's value with one of your choice. This is possible as long as the variable behind the selector allows this value.

Have a look at the following Howto: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to call a bps web interface with predefined selections.pdf

Regards,

Eduardo.