‎2006 May 31 12:28 PM
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
‎2006 May 31 12:33 PM
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
‎2006 May 31 12:37 PM
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
‎2006 May 31 12:38 PM
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.
‎2006 May 31 12:40 PM
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.
‎2006 May 31 12:41 PM
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>