cancel
Showing results for 
Search instead for 
Did you mean: 

problem with calling we02 transaction code from web dynpro

Former Member
0 Kudos

Hello everyone,

I want to skip the initial screen of we02 tcode for this i have created the URL, provided the idoc number and

used the function code DYNP_CODE=ONLI for execute button.

DATA : FINAL_URL TYPE STRING.

CONCATENATE 'host' '.port' '/sap/bc/gui/sap/its/webgui?~transaction=we02 DOCNUM-LOW='

ls_itab-docnum ';CREDAT-low=' ' ' ';DYNP_OKCODE=ONLI'

into FINAL_URL.

I am trying to pass the idoc number internally and click on execute button...so that the end user can see the idoc display directly, rather than clicking the execute button manually. But, unfortunately the function code for execute buttong (ONLI) is not working. In WE02 tcode, provided input values are appeaing correctly but not triggering the execute button.

Please help!

Thanks in advance...

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Instead of DYNP_OKCODE=ONLI ., jus give OKCODE=ONLI and check.,

Thanks & Regards

Kiran

Former Member
0 Kudos

Hi Kiran,

I have tried even with OKCODE, its not working.

Thanks,

Rohit

former_member184578
Active Contributor
0 Kudos

Hi,

Use., & ~OKCODE=ONLI

it will cme.,

hope this helps u.,

Thanks & Regards

Kiran

gill367
Active Contributor
0 Kudos

https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375

check out this link it may be useful.

thanks

sarbjeet singh

Former Member
0 Kudos

Hi sarbjeet,

I have already checked that link, not working in this case.

Thanks,

Rohit

former_member184578
Active Contributor
0 Kudos

Hi Rohit.,

Did u tried my previous reply., Use., & ~OKCODE=ONLI .,

http://host:8000/sap/bc/gui/sap/its/webgui?sap-system-login-basic_auth=X&sap-client=800&sap-language...;transaction=we02&okcode=ONLI

tis will work.,

Thanks & Regards

Kiran

Former Member
0 Kudos

Hi Kiran,

It is working, but please check the below mentioned link.

Parameter ~okcode is obsolete for skipping screens

https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375

Thanks a lot....

Rohit

former_member184578
Active Contributor
0 Kudos

Hi Rohit.,

I already checked that wiki., and i tried that it didn't worked for me., so i proposed u that .,

Any how it is working for u na.. gud.,,

Thanks & Regards

Kiran