IEQM0003 vs CDPOS
I want to clarify whether change documents are created before saving equipment in IE02.
Which means can I capture the Old value(VALUE_OLD) & New value (VALUE_NEW)from the table CDPOS using exit IEQM0003 ?
Jogeswara Rao K replied
The way I understood, I do not think there is any need of CDPOS for you requirement. In the user-exit IEQM0003 (include ZXEQMU02), for Old value of Equipment master you need to use a Select statement (from EQUI) using the Equipment number field DATA_EQUI-EQUNR. For new value of the field it is nothing but the field value DATA_EQUI-fieldname OR DATA_EQUZ-fieldname OR DATA_EQKT-fieldname OR DATA_ILOA-fieldname. (These are the structures provided by the exit for retrieving changing values of various Equipment master fields)
Suppose you are changing the value of Equipment Planner Group then
Old value: (Data: Old_ingrp type equz-ingrp)
Select single ingrp from EQUZ into old_ingrp where equnr = data_equz-equnr.
It is the field value itself of data_equz-ingrp.
Suppose you are changing the value of Equipment Description then
Old value: (Data: Old_eqktx type char40)
Select single ingrp from EQKT into old_eqktx where equnr = data_eqkt-equnr.
It is the field value itself of data_eqkt-eqktx.