Hi,
You should bind the RETURN parameter of the BAPI_OBJCL_CREATE to a WF container to see what the reason is that it is not executing correctly.
It might be that the WF-BATCH user is missing user paramters that the foreground user has, or your WF-BATCH doesn't have SAP_ALL and SAP_NEW authorizations.
Kind regards, Rob Dielemans