Skip to Content
0
Former Member
May 06, 2010 at 06:56 AM

Withholding tax details screen

36 Views

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.

CASE LV_UCOMM.

WHEN '&IC1'.

READ TABLE IT_VENDOR INDEX SELFIELD-TABINDEX.

CASE SELFIELD-FIELDNAME.

WHEN 'LIFNR'.

SET PARAMETER ID 'LIF' FIELD IT_VENDOR-LIFNR.

SET PARAMETER ID 'BUK' FIELD IT_VENDOR-BUKRS.

CALL TRANSACTION 'XK02' AND SKIP FIRST SCREEN.

ENDCASE.

ENDCASE.

ENDFORM. "USER_COMMAND

Please help.