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

Interactive report

Former Member
0 Likes
579

I am using an interactive ALV report.

I want to call a transaction code say ME23 for the corresponding document on clicking the document number in the first list.

But when I use call transaction ME23, I also want to pass the document number so that the screen directly goes to the display of that Document.

(I have that Document number stored in a specific variable with me ..)

Please suggest me some way to do it.

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
544

In the user_command subroutine,

you can use the set parameter statement and call transaction statement to do it.

SET PARAMETER ID 'BES' FIELD f. "f should have the PO number

call transaction 'ME23' and skip first screen.

Regards,

Ravi

Read only

Former Member
0 Likes
544

FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE R_UCOMM.

WHEN 'BACK' OR 'CANC' OR 'EXIT'.

LEAVE TO SCREEN 0.

WHEN '&IC1'.

SET PARAMETER ID 'BES' FIELD RS_SELFIELD-VALUE.

CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.

ENDCASE.

ENDFORM. "USER_COMMAND

Message was edited by: Navneeth Saraogi

Read only

Former Member
0 Likes
544

Hi subhash,

1. simple.

2.

report abc.

<b>SET PARAMETER ID 'BES' FIELD '4500016827'.</b>

CALL TRANSACTION 'ME23'

AND SKIP FIRST SCREEN.

regards,

amit m.

Read only

rahulkavuri
Active Contributor
0 Likes
544

In User command assuming that u have defined PF-status u can use this

WHEN 'BACK' OR 'CANC' OR 'EXIT'.

LEAVE TO SCREEN 0.

WHEN '&IC1'.

SET PARAMETER ID 'AUN' FIELD RS_SELFIELD-VALUE.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

Read only

venkat_o
Active Contributor
0 Likes
544

Try to use this code.

FORM user_command USING ucomm LIKE sy-ucomm

selfield TYPE slis_selfield.

CASE g_ucomm .

WHEN '&IC1'.

SET PARAMETER ID 'MAT' FIELD f

call transaction 'ME23' and skip first screen

ENDCASE.

endform.

<b>

Thanks

Venkat.O</b>