‎2007 May 19 7:51 AM
Hi,
I have investigated the enhancements of Project Builder CJ20N. It seems it is not possible to read the previous, i.e. the original, value of a field at all. Is this really so?
For example, if user changes the value of project type on WBS element level, I am not able to get the original value at all.
I cannot read the original value from database (table PRPS), because user may keep on changing the value several times in the Project Builder.
I debugged the whole code, but I couldn't find a suitable user exit or any other way where I could save the original value.
Do you know any enhancement, BADi or user exit where I could save the original value? I am sure there is a solution for this.
Or, should I use enhancement CNEX0002 and function module EXIT_SAPLCNAU_002 (PS customer exit for the authorization check of WBS elements) for this?
Thanks for your help,
Jarmo Tuominen
‎2007 May 27 9:04 AM
I use enhancement CNEX0002 and function module EXIT_SAPLCNAU_002 (PS customer exit for the authorization check of WBS elements) to see whether project type has been changed or not:
FIELD-SYMBOLS: <fs> TYPE prps.
DATA lv_project_type_has_been_changed LIKE sy-subrc.
*
* Check whether Project Type has been changed or not
*
ASSIGN ('(SAPLCJWB)prps_alt') TO <fs>.
IF sy-subrc EQ 0.
IF NOT <fs>-prart IS INITIAL.
IF <fs>-prart NE sap_prps-prart.
lv_project_type_has_been_changed = 1.
ENDIF.
ENDIF.
ENDIF.