I'm calling a smartform from within another function module related to inbound idoc creation. When processing the idoc I called the smartform with setting to archive the smartform with data from the inbound idoc. In acceptance testing we are getting processing error on the smartform. The main function module short dumps with the smartform return code = 3 which is send error in the exception errors of the smartform function. In turn leaves the idoc current status as 64 as the Idoc didn't complete the process. Has anyone seen this error when processing smartforms?
My setting for the smartform processing are --
Output_options
tdarmod = '2'. "only archiving
tdimmed = 'X'.
tdnewid = 'X'.
Dara setting
function = 'DARA'.
mandant = sy-mandt.
sap_object = gc_object.
ar_object = gc_archobj.
object_id = gv_cqnum.