# Synopsis

PDX_MSGT s041_CreatePDWAD(long option, MDA_PTR pdfwss_ptr, MDA_PTR prdfcn_ptr, MDA_PTR *pdwad_ptr)

# Purpose

Create the PRODUCT_DEFINITION_WITH_ASSOCIATED_DOCUMENTS and all its required subordinate entities.

# Description

Creates the PRODUCT_DEFINITION_WITH_ASSOCIATED_DOCUMENTS and all required subordinate entities. The fields within these entities will be set from existing entities in the CFG model (if used) or set to appropriate default values.

# Input

## option

Options (not used)

## pdfwss_ptr

MDA pointer to PDFWSS entity.

## prdfcn_ptr

MDA pointer to product_definition_context entity.

# Output

## pdwad_ptr

The database pointer of the resulting product_definition entity.

# Return

S041 error code