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 for parameter 'Subrc' has not been named - error

rameshkumar_ramasamy2
Participant
0 Likes
616

Hi all,

I have created a function module where in i have used an exporting parameter Subrc type SYST-SUBRC..

While checking. im getting an error like 'Function module for parameter 'Subrc' has not been named'..

Can any one help me out for this..

Thanks,

Ramesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
573

Have u activated the function group and the function module?

4 REPLIES 4
Read only

Former Member
0 Likes
574

Have u activated the function group and the function module?

Read only

Former Member
0 Likes
573

HI,

Your issue isInactive Function group.

Activate teh function group.

Go to Tcode = Se80-----> Select function and give function group name and enter

Right click on Function Group and slect activate.

Now you can chek the Function module.

It will not give nay error.

Regards,

Pravin

Read only

Former Member
0 Likes
573

Declare like this

Subrc like SYST-SUBRC.

Regards,

Read only

Former Member
0 Likes
573

Check this sample code. Activate the function group and function module

FUNCTION ztest_function.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(SO_NO) TYPE  VBELN
*"  EXPORTING
*"     REFERENCE(SUBRC) TYPE  SY-SUBRC
*"----------------------------------------------------------------------
data : it_vbak type standard table of vbak.
  SELECT * FROM vbak into table it_vbak
    WHERE vbeln = so_no.
  MOVE sy-subrc TO subrc.
ENDFUNCTION.

Regards
Vinod