cancel
Showing results for 
Search instead for 
Did you mean: 

passing variable as an input parametere to a transaction through an url;

former_member246543
Participant
0 Kudos

hi ,

I am calling a transaction through an url into which i want to pass the input parametere to the transaction as an variable; my question is

is it possible? if yes then how?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sanjeevsharma,

Yes, it is possible. Please review the following help topic.

[http://help.sap.com/saphelp_mii121/helpdata/en/4a/287c3dd30242ade10000000a421138/content.htm]

Kind Regards,

Diana Hoppe

Edited by: Diana Hoppe on Feb 4, 2011 10:10 AM

Edited by: Diana Hoppe on Feb 4, 2011 10:12 AM

former_member246543
Participant
0 Kudos

Hi Diana ,Thanks for taking intrest in my question . I hav already gone through that link which you have given, what my question is that,

consider this ex. given below

Transaction=Test/YieldCalc&YieldFactor=10.0&OutputParameter=YieldAverage.

in the above call i am passing 10.0 as input to the parameter YieldFactor .

what i want to do is to store this value of 10.0 in a variable and then pass this variable to the parameter YieldFactor,

say,

var xxx=10.0;

Transaction=Test/YieldCalc&YieldFactor="xxx"&OutputParameter=YieldAverage.

I have tried like this but it didnt worked.

is it possible ?

how?

Former Member
0 Kudos

Hi Sanjeevsharma,

I don't know of anyway you can pass a variable in the URL itself, but I know it can be done in javascript, for example

var tagName="CylTemp4";

document.location.href("http://MyServer:50000/XMII/Runner?Transaction=Tests/VariableInURL&tagNameIn=" + tagName + "&OutputParameter=outputXML");

Kind Regards,

Diana

former_member246543
Participant
0 Kudos

hi diana,

Thanks for that valuable answer that is what i was looking for.

Answers (0)