cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro ABAP : Error when calling ME23N with URL

Former Member
0 Kudos

Hi all,

I have some problem with my WDA. I have an ALV in web dynpro and it displays Document number for Purchase Order.

When a user clicks on it, we call SAP WEBGUI using ITS and I create dynamically URL to display the document.

But I can't set the PO number when I call the ME23N while i passed the PO number in parameter of my URL.

My URL has this content : http://xxxxxxx/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=ME23N&MEPO_TOPLINE-EBELN=xxxxx

But the Po display isn't the same. I don't found any solutions for this problem

Anybody has an idea ?

Thanks in advance for your feedback.

Regards

Ludovic Bento

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello,

I found the correct way to open ME23N in WebDynpro:

*Create URL

   
CONCATENATE 'http://' host ':' port

               
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='

               
'ME23N' '&~OKCODE=MECHOB&%20MEPO_SELECT-EBELN=' lv_ebeln

               
'&%20MEPO_SELECT-BSTYP_F=X&%20~OKCODE=MEOK'

               
INTO url.

Former Member
0 Kudos

Solution found.

You can use Tcode MMPURPAMEPO Tcode.

In your URL set the parameter P_EBELN with the PO number and set the OKCODE to execute the report.

This transaction is used in Portail only.

You can found the same for MIGO/MIRO and several other Tcode.

Regards

Ludovic Bento

Former Member
0 Kudos

Hi,

Thanks Much for sharing the information.

Regards,

Lekha.

Former Member
0 Kudos

Hi

How does your URL looks like for transaction MMPURPAMEPO?

Thanks Kim Brandt

Former Member
0 Kudos

Hi Srinivas

I modify my coding using your explainations. But it doesn't work also.

Now my URL has this content : http://xxxxx/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=ME23N&MEPO_TOPLINE-EBELN%20<Po number>

It's strange because when i use ME23 tcode with same logic it works.

Regards

Ludovic Bento

former_member199125
Active Contributor
0 Kudos

Hi,

you have to use * before tcode and ; after every parameter.

for ex: its my code

data lv_PNPXABKR type char2.

data lv_PNPPABRP type char2.

data lv_url type string.

lv_url = 'http:/xxxxxxxxxx/sap/bc/gui/sap/its/webgui?~transaction=*ZHR_PAY_SLIP '.

concatenate lv_url 'PNPXABKR=' lv_PNPXABKR ';' 'PNPPABRP=' lv_PNPPABRP into lv_url

for urs,

: http://xxxxx/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=*ME23N;MEPO_TOPLINE-EBELN%20<Po

`dont forget to use * and ;

still if you din't get let me know wht error ur getting

Regards

Srinivas

Edited by: sanasrinivas on Sep 30, 2011 4:41 PM

former_member199125
Active Contributor
0 Kudos

you have to use concatenate concept.

Concatenate ur url like below. Dont pass ebeln number directly in url, pass in varible and concatenate.

data v_num type ebeln.

Data text type string.

v_num = xxxx.

concatenate 'http://xxxxxxx/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=ME23N&MEPO_TOPLINE-EBELN ' v_num into

text separated by space.

it wil resolve ur issue.

Regards

Srinivas