.
Depending on how literally you mean “within” you can add a parameter to the function and pass in ROW(). So
MYSELFAWAREFUNC(Datum1,Datum2,SHEET(),COLUMN(),ROW())
Just be sure to subtract 1 since everything in your macro (other than function access) will be 0-based addressing.
See Getting Caller (Calc Cell) in an UDF (View topic) • Apache OpenOffice Community Forum
I think you can also just send in a range…and pick the SCR from that. Check the link clear to the end.