‎2012 Apr 13 6:40 AM
Hello Friends,
In a function module we are using a Bapi- BAPI_CTRACDOCUMENT_CREATE.
When we run individually the Bapi is able to generate a document number, but when we use it in the function module, it is throwing this error "Formal error: Invalid calling sequence for function modules"
Guys please can you help us, how we can get rid of this error and post the document through the function module.
Regards
Charvi
‎2012 Apr 13 8:39 AM
Hi,
We get this error if we have passed some parameters to the function module wrongly.Check the importing,exporting parameters and the tables that you are passing to the FM.And also the sequance of them with respect to the FM(it has to be same).
Hope it serves useful to you.