My code shloud work only in chnage or crae mode of PO.
I checkd in my program CHECK SY-TCODE NE ME23N.
But if user goes to tcode ME23N and clcik on change icon my code shloud execute.
i am checking only TCODE in my program but i need to validate with CHANGE<>DISPLAY status.
I cheked SY-UCOMM for chnage and dsiplay it's METOGG.
FOR change and display it is same so how can i differciate the chnage or display mode of PO.
Is there any flag to get to know change/display status?