Skip to Content
0
Former Member
Jul 06, 2009 at 03:10 PM

After selecting values from a list box getting error "Invalid field format"

355 Views

Hi,

After selecting values from a list box getting error "Invalid field format" screen error . iam doing this in module pool programming.

The code which is used to populate the values in list box is

gw_values-key = '01'.

gw_values-text = 'Invoice'.

APPEND gw_values TO gi_values.

gw_values-key = '02'.

gw_values-text = 'Credit Note'.

APPEND gw_values TO gi_values.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'INVTYP_T'

values = gi_Values

EXCEPTIONS

ID_ILLEGAL_NAME = 1

OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.