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

Add optional import parameter to an EXISTING Z function module.

manoj_goyal2
Participant
0 Likes
802

Hi Guys,

I want to add an OPTIONAL IMPORT parameter. What are the things I need to take care to change and activate the FM, so that the changes does not effect the other programs calling this Z function module.

Thanks,

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
529

since you are going to make it an optional parameter, you will have no problem there. However, you have to make sure that, upon calling this function module, the functionality will not change for the other objects by introducing a new variable.

What to do?

Just add this new parameter, make it optional (mark checkbox) and do the coding.

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
530

since you are going to make it an optional parameter, you will have no problem there. However, you have to make sure that, upon calling this function module, the functionality will not change for the other objects by introducing a new variable.

What to do?

Just add this new parameter, make it optional (mark checkbox) and do the coding.

Read only

former_member194669
Active Contributor
0 Likes
529

Adding one more point,

While raising exceptions to your ootional parameter make sure that

For example XINT is optioanl paramter then


if NOT xint is initial.
   " then raise your exception
endif.

a®