Application Development 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: 

Popup msg

Former Member
0 Kudos

Dear rich, anji, r@a and all Experts,

i have three t-code zaa1 for create, zaa2 for change, and zaa3 display,

in zaa2 suppose i dont make any chages and click on BACk button then it directly come out from that tcode , and if i make any chages and click on BACk button then it must show me msg box " Do you want to save ", yes, No .

how to solve this ?

                                                          • Point is assured *********************

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi kiran,

see like MM02 for material change, if i dont make any chage and clik on back button then it should not say me " want to save data " because i didnt change any thing,

and if i make any change in MM02 then it must be ask me " Want to save data "...

same things i want to display in my z tcode also.

4 REPLIES 4

Former Member
0 Kudos

Hi ,

Right now it is not possible to create a popup when click is made on right button.this features are yet to be included in webdynpro.

<b>Reward points</b>

Regards

Former Member
0 Kudos

hi kiran,

see like MM02 for material change, if i dont make any chage and clik on back button then it should not say me " want to save data " because i didnt change any thing,

and if i make any change in MM02 then it must be ask me " Want to save data "...

same things i want to display in my z tcode also.

0 Kudos

It is possible,only thing is you need to use system variable

SY - DATAR will tell you if the user changed something on the screen

keep the condition like

when 'BACK'.

if sy-datar = 'X'.

call pop up fm

depend upon FM returns you need to update the data.

suppose user select NO,it should not update

leave to screen 0.

else.

leave to screen 0.

endif.

when 'CANC'.

when 'EXIT.

same code should applicable to EXIT,CANC Buttons.

SY-DATAR = 'X'. something is changed in screen.

Thanks

Seshu

Former Member
0 Kudos

Thanks shesu

My problem has been solved.

10 points has been given