Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Extended Prog check error

Former Member
0 Likes
411

SImilar i have issues ..

In my code :

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield. "001- Ext Ck

CASE r_ucomm.

WHEN '&UPDATE'.

CLEAR ts_fieldcat_bdc.

REFRESH ts_fieldcat_bdc.

CALL SELECTION-SCREEN '1002' STARTING AT 40 40.

WHEN '&BACK' OR '&EXIT' OR '&CANC'.

LEAVE TO TRANSACTION 'ZCHR'.

WHEN OTHERS.

MESSAGE e005(zmesg) WITH text-023.

RAISE error.

ENDCASE.

Extended sytnax check error:

Field string RS_SELFIELD is not referenced statically in the program

The message can be hidden with "#EC *)

But if i comment it I am geting dump.

kindly help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
382

Hi,

Extended Check in unable to find dynamic calls - that is why you get all the messages.

It is sure, you can not comment it, because it is a part of the form interface.

You can ignore ExChk sugestions, or use this field in the way, it will be never used.

IF (something which is false). <use the field> ENDIF.

Regards,

--

Przemysław

SImilar i have issues ..

In my code :

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield. "001- Ext Ck

CASE r_ucomm.

WHEN '&UPDATE'.

CLEAR ts_fieldcat_bdc.

REFRESH ts_fieldcat_bdc.

CALL SELECTION-SCREEN '1002' STARTING AT 40 40.

WHEN '&BACK' OR '&EXIT' OR '&CANC'.

LEAVE TO TRANSACTION 'ZCHR'.

WHEN OTHERS.

MESSAGE e005(zmesg) WITH text-023.

RAISE error.

ENDCASE.

Extended sytnax check error:

Field string RS_SELFIELD is not referenced statically in the program

The message can be hidden with "#EC *)

But if i comment it I am geting dump.

kindly help

1 REPLY 1
Read only

Former Member
0 Likes
383

Hi,

Extended Check in unable to find dynamic calls - that is why you get all the messages.

It is sure, you can not comment it, because it is a part of the form interface.

You can ignore ExChk sugestions, or use this field in the way, it will be never used.

IF (something which is false). <use the field> ENDIF.

Regards,

--

Przemysław