Skip to Content
0

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

Jun 20, 2017 at 10:20 AM

40

avatar image
Former Member

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

capture.png (114.4 kB)
10 |10000 characters needed characters left characters exceeded

"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

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Jan 04 at 05:09 AM
0

it is solved

Share
10 |10000 characters needed characters left characters exceeded