First Please check if that zbapi is Remote Enabled ? if it is residing on a different system ? If yes , then give destination , select Remote Function Call in order to access it.
If its a locally created FM then select Business Object Repository and target as LOCAL.
Please take care of above mentioned things and you should be able to resolve the error.
Regards,
Ashwin