I'm working on an InputScript that calls a function module in SAP. The problem is that the function module continues to raise an exception and will not pass back any table values.

The code for my input script is shown below:
 
// Function module to read permits for equipment
Call "Z_PM_PERMIT_PROPOSAL_FROM_OBJ" in.EQUNR="&V[g_equipment]"  in.TPLNR="" in.AUFNR=""  in.AUF_OBJNR=*   table.PMPROP=permits
 
With SE37 test mode, the function module works fine.

The problem is probably created by missing leading zeros in the equipment number. In SE37 test mode, leading zeros are filled in automatically.