Hi ! I've created a report to display vendor withholding tax details. Now, i want to open the Withholding Tax details screen as soon as the user clicks on the vendor code in the report.
Following code used to call the XK02 screen:-
FORM USER_COMMAND USING LV_UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
READ TABLE IT_VENDOR INDEX SELFIELD-TABINDEX.
SET PARAMETER ID 'LIF' FIELD IT_VENDOR-LIFNR.
SET PARAMETER ID 'BUK' FIELD IT_VENDOR-BUKRS.
CALL TRANSACTION 'XK02' AND SKIP FIRST SCREEN.