UNLOCK ASP3082 is an open label, single arm, multicenter, phase 2 platform study that aims to evaluate the mechanisms of action and resistance to ASP3082 in metastatic/locally advanced Non-Samll-Cell Lung Cancer (NSCLC) and Pancreatic Ductal Adenocarcinoma (PDAC) with the presence of KRAS G12D mutation. The two cohorts of patients are the following : i. cohort NSCLC : patients with NSCLC with KRAS G12D mutation. ii. cohort PDAC : patients with PDAC with KRAS G12D mutation. Patients enrolled in the both cohorts will receive treatment with ASP3082 at the dose of 600 mg QW thereafter in a 21-day cycle. ASP3082 will be administred in intravenous route until disease progression, unacceptable toxicity, or consent withdrawal. Tumor and blood samples will be collected at baseline, on-treatment and at the end of treatment visit only from patients who develop acquired resistance (acquired resistance is defined as a best response of CR, PR, or SD lasting more than 6 months, followed by PD).