41:
42: END IF;
43:
44: --Call a private API to obtain the document number type.
45: GMO_DOCUMENT_NUMBERS_PVT.GET_DOCUMENT_NUMBER_TYPE
46: (P_ORGANIZATION_ID => P_ORGANIZATION_ID,
47: P_TRANSACTION_TYPE => P_TRANSACTION_TYPE,
48: P_INIT_MSG_LIST => P_INIT_MSG_LIST,
49: X_DOCUMENT_NUMBER_TYPE => X_DOCUMENT_NUMBER_TYPE,
140: END IF;
141:
142: --Call a private API to obtain the next value of the document number associated with
143: --the specified organization ID and transaction type.
144: GMO_DOCUMENT_NUMBERS_PVT.GET_NEXT_VALUE
145: (P_ORGANIZATION_ID => P_ORGANIZATION_ID,
146: P_TRANSACTION_TYPE => P_TRANSACTION_TYPE,
147: P_INIT_MSG_LIST => P_INIT_MSG_LIST,
148: X_VALUE => X_VALUE,
236:
237: END IF;
238:
239: --Call the private API to perform the required operation.
240: GMO_DOCUMENT_NUMBERS_PVT.DOES_DOCUMENT_NUMBER_EXIST
241: (P_ORGANIZATION_ID => P_ORGANIZATION_ID,
242: P_TRANSACTION_TYPE => P_TRANSACTION_TYPE,
243: P_INIT_MSG_LIST => P_INIT_MSG_LIST,
244: X_DOCUMENT_NUMBER_EXISTS => X_DOCUMENT_NUMBER_EXISTS,