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

function module to modify fields in an interactive report

Former Member
0 Likes
346

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

1 REPLY 1
Read only

andreas_mann3
Active Contributor
0 Likes
294

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