Variables not available on case forms

Hafsa1
Mega Sage

I have 2 similar RecordProducer via which we are creating CSM case.

I want to write same BR on case table for both record producer but it is giving error.

like one similar variable in both RP 

var costcenter = current.variables.cost_center (belong to first RP)

var costcenteruat =current.variables.cose_center_uat (belong to second RP)

 

when I tested using log, if i'm raising using first RP then, value coming in second variable as "undefined" and BR stops.

if i'm raising using second RP then, value coming in first variable as "undefined" and BR stops.

 

Is there any way that I can use variables from both RP and if any variables has value then BR should execute.