Hello Faisal khan,
- The right fm seems to be ALM_ME_NOTIFICATION_GETDETAIL2 .
- Here you are getting the Main Work Center from the Export structure NOTIFICATION_HEADER_TEXT from the field WORK_CNTR.
I have tested this and confirmed. You may also verify.
Good luck
KJogeswaraRao