HI Scott,
If you are thinking about workflow, I would suggest you to check the inbound process code ORDE_BY_WORKFLOW ( You can refer it as sample ) in Tcode WE42. The mandatory parameter would be IDOC_PACKET parameter which the standard SAP interface will pass. ORDE_BY_WORKFLOW will give you the necessary answers. Hope this helps.
Rewards points if useful.
Thanks
Tirthankar