2007 Jul 14 10:24 AM
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 *********************
2007 Jul 14 10:40 AM
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.
2007 Jul 14 10:27 AM
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
2007 Jul 14 10:40 AM
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.
2007 Jul 14 12:47 PM
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
2007 Jul 16 9:04 AM
Thanks shesu
My problem has been solved.
10 points has been given