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

Project Builder CJ20N: Read previous value from buffer

Former Member
0 Likes
800

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

1 REPLY 1
Read only

Former Member
0 Likes
446

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.