cancel
Showing results for 
Search instead for 
Did you mean: 

Execute webgui transaktion (ML81) automatically?

Former Member
0 Kudos
329

Hello,

I am calling a webgui transaction (ML81) with dynamic url parameters from a Portal iView, which fills some fields in that transaction. Is it also possible to execute this transaction automatically without pushing the execute button? Something like adding OK_CODE=... in the URL parameter?

Regards,

Frank

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Frank,

prefill field(s) and execute:

http://host:port/scripts/wgate/webgui/?transaction=ML81&SOMEPARAM=SOMEVALUE&okcode=DISP

Prerequisites:

  • an already valid session

  • or an SSO mechanism

  • or logininfo in th URL (not recommended, testing purposes only!)

Regards,

Fekke

athavanraja
Active Contributor
0 Kudos

check out the following weblog.

<a href="/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008">Pass Parameter to ITS URL</a>

Regards

Raja

Former Member
0 Kudos

Hello Fekke,

I have execute the URL as you say:

http://host:port/scripts/wgate/webgui/?transaction=ML81&S_BSTPO-LOW=00010&P_BSTNR=4500000241&okcode=DISP

The parameters are shown in the transaction but the trasaction still does not start automatically. Any ideas what I have done wrong?

Regards,

Frank

athavanraja
Active Contributor
0 Kudos

the OKCODE values is not DISP it should be <b>ONLI</b>

Regards

Raja

former_member228142
Active Contributor
0 Kudos

Hi Frank,

are you sure that the okcode DISP is correct? If I start ME81 I get a selection screen that is executed with F8. The corresponding okcode is 08 as far as I know.

Regards,

Klaus

Former Member
0 Kudos

You are right. It works with ONLI.

Thanks,

Frank

Former Member
0 Kudos

Sorry Frank,

it was ment only explanatory, comming from the grey cells without any verification in the transaction itself!

Regards, Fekke

Answers (0)