Dynamic FM call with extra parameter

0

Dynamic FM call with extra parameter.

 

 

Use Case 

Consider the scenario in your development, you are reusing a standard FM in your program which is having 2 mandatory import parameters . And you shipped the solution to the customer. Now same FM in the customer system is having one more additional mandatory importing parameter. Now when your program runs and that calls the FM the dump appears in customer system. How to resolve this issue. This can be done by calling the FM dynamically with extra parameter that is not in your system but it is there in customer system. The below post tries to show the same.


The  FM ‘FPM_DEMO_FLIGHT_GET_CARRIER’ having below details as one import and one export parameter.

123

Simple way of calling the FM.

4

Output of program.

5

In the simple call pass one more parameter like CONNID which is not declared as a import parameter in the FM definition.

6

No activation error of the program but once you execute below error appears.

7

Trying a dynamic call to the FM without any additional parameter.

8

Program output:

9

With dynamic FM call, added other parameter which is not there in the FM definition.

Imagine in your system CONNID parameter is not defined, but the FM call works fine without any error but if it is defined in the FM then surely there would not be any dump.

10

Here is the output without any dump.

11


 

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s