Skip to Content
0
Former Member
Nov 30, 2006 at 02:46 PM

issue with code

193 Views

Hello all,

can any one tell me why iam not able to go the idoc.

it gives me an error saying no data could be selected.

The control goes to the following command

CALL TRANSACTION 'WE05' AND SKIP FIRST SCREEN.

and i have a valid value in itab-idoc

FORM user_command USING ucomm LIKE sy-ucomm

selfield TYPE slis_selfield.

IF ucomm = '&IC1'.

READ TABLE itab INDEX selfield-tabindex.

IF sy-subrc = 0.

SET PARAMETER ID 'DCN' FIELD itab-idoc.

CALL TRANSACTION 'WE05' AND SKIP FIRST SCREEN.

ENDIF.

ENDIF.

ENDFORM.

thanks