pcm_create_poid() - cassiobj/PCM-Python_lib GitHub Wiki
The pcm_create_poid function is part of a Python extension for Oracle BRM. It create poid number.
The pcm_create_poid create a string poid (based on BRM poid_t type) from paramaters .
- db: Database Number.
- type: Type / Class name.
- id: Number of poid.
The function returns an string with complete poid number.
In case of an error, the `error` exception is raised.
import PCMPy
try:
print("Testing poid Creation")
poid_test = PCMPy.pcm_create_poid(393217, "/bill", 63325623 )
if ( poid_teste ) :
print("OK")
print(poid_test)
else :
print("Error")
except PCMPy.error as e:
print("Error pcm_create_poid: " , e)
Return Example
Testing poid Creation
OK
0.0.6.1 /bill 63325623 0