Dear Keshav,
I guess you need add the special trade indictor S1 in the activity sequence determination. For example, ACE Export/Re-export S1 CUSEX. Then the export customs declaration document will be triggered successfully. More details please see the SAP note 1086894. Thanks.
Please do not hesitate to contact me if you have any question.
Best regards,
Kevin Cao.