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

Function Module with Peform statement

prince_isaac
Active Participant
0 Likes
288

hie guys

Im creating a FM which is going to be invoked externally however i needed to have a recording in my FM and thus i managed to insert it using the syntax PERFORM XXX (YYY) USING IMPORT STRUCTURE where XXX is asubroutine in program YYY. however since data is coming from my import structure i want to pass it to my recording in program YYY.

After i this i get the dump error : (just extracted a snippet)

Since the caller of the procedure could not have expected this exception

to occur, the running program was terminated.

The reason for the exception is:

A PERFORM was used to call the routine "Z_BAPI_CREATE_SELFASSESSMENT" of the

program "SAPLZSELF_ASSESSMENT".

This routine contains exactly 0 formal parameters, but the current

call contains 1 actual parameters.

parameters.

please assist

1 REPLY 1
Read only

Sm1tje
Active Contributor
0 Likes
269

You used the USING parameter when calling your subroutine. However the program you are calling does not have a parameter.