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 Not Getting Activated

Former Member
0 Likes
495

Hi,

We are using a customised function module which we are calling in a user exit. We would like to call this function module in update task in the user exit to populate data in a custom table.

We have given the following parameters to the function module

Import Parameters

ITAB LIKE ZPRUNDAT

Export Parameters

l_subrc TYPE sy-subrc

On the attributes tab of the function module, Update Module has been selected under processing type.

When we try to activate this function module we get the following message

EXPORTING parameters are not allowed in the update task.

and the function module does not get activated. What should we change to get the function module activated?

Mick

3 REPLIES 3
Read only

Former Member
0 Likes
469

Hi Mick,

check the below link same kind of issue has been discussed here

Read only

Former Member
0 Likes
469

You can't also use exceptions.

Just put the sy-subrc in a return table, and problem solved

Read only

Former Member
0 Likes
469

Hi,

Please try this....

In function module

In tables Section add this...

RETURN TYPE BAPIRET2 and then activate.

if its useful reward points