Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

report querry

Former Member
0 Likes
1,152

Hi all,

i have a querry in report program , i ahve displayed a list which consists of purchase order details. when i click on PO number , i want to display PO screen (me22).for this i am writing a code.

form user_command using r_ucomm like sy-ucomm

rs_selfeild type slis_selfield.

case r_ucomm.

when '&ic1'.

read table it_ekko into wa_ekko where it_ekko-ebeln.

set parameter id 'bes' field wa_ekko-ebeln.

call transaction 'me22' and leave first screen.

endcase.

endform.

this is not working , call u advice me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,057

Hi kumaran,

I have done the same thing for calling Service order screen

Hope this helps u.

form user_command using r_ucomm like sy-ucomm

rs_selfeild type slis_selfield.

case r_ucomm.

when '&IC1'.

read table it_ekko into wa_ekko where it_ekko-ebeln.

set parameter id 'BES' field wa_ekko-ebeln.

call transaction 'ME22' and skip first screen.

endcase.

endform.

Reward points if helpful.

Regards,

Ravi G

Message was edited by:

Ravi Kumar Gunda

Message was edited by:

Ravi Kumar Gunda

7 REPLIES 7
Read only

Former Member
0 Likes
1,057

call transaction 'me22' and leave first screen.

<b>skip first screen.</b>

Regards

Prabhu

Read only

Former Member
0 Likes
1,057

write '&IC1'

You have written it in small font... it will work fine then

Regards

Jayant

Please award if helpful

Read only

Former Member
0 Likes
1,057

Write everything inside ' ' in CAPS... also write skip insetad of leave...

will work for sure....

Regards,

Jayant

Read only

0 Likes
1,057

hard coding should be in CAPS

Read only

Former Member
0 Likes
1,057

HI..

Try the following code:

orm user_command using r_ucomm like sy-ucomm

rs_selfeild type slis_selfield.

case r_ucomm.

when '&IC1'.

read table it_ekko into wa_ekko where it_ekko-ebeln.

set parameter id 'BES' field wa_ekko-ebeln.

call transaction 'ME22' and leave first screen.

endcase.

endform.

Regards,

Suresh..........

Read only

Former Member
0 Likes
1,058

Hi kumaran,

I have done the same thing for calling Service order screen

Hope this helps u.

form user_command using r_ucomm like sy-ucomm

rs_selfeild type slis_selfield.

case r_ucomm.

when '&IC1'.

read table it_ekko into wa_ekko where it_ekko-ebeln.

set parameter id 'BES' field wa_ekko-ebeln.

call transaction 'ME22' and skip first screen.

endcase.

endform.

Reward points if helpful.

Regards,

Ravi G

Message was edited by:

Ravi Kumar Gunda

Message was edited by:

Ravi Kumar Gunda

Read only

Former Member
0 Likes
1,057

Hi,

Assign F2 as function key for this and write '&ic1' as '&IC1'.

Thanks & Regards

Santhosh