Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Formal error: Invalid calling sequence for function modules

Former Member
0 Likes
642

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

1 REPLY 1
Read only

Former Member
0 Likes
493

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.