2014 Jan 23 6:35 AM
hi,
i am displaying the purchase order list using alv_list report,when i double clicks on the po number,corresponding order need to open in ME23N transaction code.
can any one guide me where to write the hide keyword and how to print the corresponding order in transaction code.
i am attaching the code here.
Thanks,
Deepthi.
Moderator message - Very basic question. To the responders i think you should flag this as an abuse rather than replying.
Message was edited by: Suhas Saha
2014 Jan 23 6:42 AM
In this you dont have to use HIDE command. You have to use user command parameter. Search for interactive alv opn scn for more details
Nabheet
2014 Jan 23 7:00 AM
Hi Deepthi,
Try to write the below code at the end of the report.
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
READ TABLE IT_FINAL ASSIGNING <STRUC> INDEX RS_SELFIELD-TABINDEX .
IF SY-SUBRC EQ 0.
READ TABLE IT_FINAL WITH KEY VBELN = RS_SELFIELD-VALUE.
ASSIGN_COMPONENT 'PO_NUMBER'.
SET PARAMETER ID 'BES' FIELD <FIELD>.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM. "user_command
Regards,
Anand.
2014 Jan 23 8:43 AM
i have tried this but i am getting error like "No callback program passed" i have seen one post
http://scn.sap.com/thread/2145259
here they are telling to use enhancement.
2014 Jan 23 8:47 AM
2014 Jan 23 8:49 AM
In the function module REUSE_ALV please pass the call back program same as sy-repid it is available as one of importing parameters
For more details check BCALV_TEST_GRID it handles double click and all
Nabheet