‎2007 May 07 10:52 AM
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
‎2007 May 07 11:19 AM
hi,
use
itabt-TABNAME = 'MARA'.
itabt-FIELDNAME = 'MATNR'.
itabt-FIELD_ATTR = '03'.
"but then you must give an input for the field
itabt-VALUE= 1000.
append itabt.
A.
Message was edited by:
Andreas Mann