Skip to Content
0
Former Member
May 07, 2007 at 09:52 AM

function module to modify fields in an interactive report

13 Views

use fm POPUP_GET_VALUES.

data : itabt like sval occurs 0 with header line.

itabt-TABNAME = 'MARA'.

itabt-FIELDNAME = 'MATNR'.

append itabt.

itabt-TABNAME = 'MARD'.

itabt-FIELDNAME = 'LGORT'.

append itabt.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

  • NO_VALUE_CHECK = ' '

POPUP_TITLE = 'Give value'

START_COLUMN = '5'

START_ROW = '5'

  • IMPORTING

  • RETURNCODE =

TABLES

FIELDS = itabt

EXCEPTIONS

ERROR_IN_FIELDS = 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.

My requirement is in this I want only the second fields on changemode,The first fields should be dsiabled as it is a primary field.

Is this the right function module ?If so how do I incorporate the above functionality else what is alrternative functiuon module.

very urgent