cancel
Showing results for 
Search instead for 
Did you mean: 

how to compare old and changed run time object data on Web UI,.leyer

Former Member
0 Kudos

Hi Team,

There is a requirement where I need to add a functionality in case somebody wanted to change "Responsible party " parther function " then he should be asked through a pop up that either he wanted to copy the same change (Only to BP) to rest of the line item of the transaction too or not. Check below attachment pls

I am going to use this FM to in CRM Web UI "CALL FUNCTION 'POPUP_TO_CONFIRM'" as pop ups can not be used in Order_Save badi..

my doubt : Where I should use this FM in do_prepare output or DO_validate_input method of the controller class or EH_SAVE method

Secondly how will be able to compare the exiting BP data with changed ? code please... I am new in CRM Web UI related coding ?

I wanted to implement below simple logic

If New != Old -> false

raise pop up

IF anser "Y"

copy Old = new object data --- I guess with pointer it can be done in one line.

end if.

capture.png

bruce_li
Contributor
0 Kudos

"Parties involved" assignment block belongs to following view and component.

BTPARTNER/Partner

=>CRM-BF-PD

Other information:

1.Function module POPUP_TO_CONFIRM

Application Component BC-SRV-ASF-POP Standard Dialogs

2.other related wiki pages:

Calling Custom component as popup from a standard component in CRM WEB UI - Part 2

=>https://wiki.scn.sap.com/wiki/x/HITvB

Creating popup message in webclient UI

=>https://wiki.scn.sap.com/wiki/x/DIA_Bg

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

it is solved