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

Error in SPRO - IMG

Former Member
0 Likes
2,296

Hi all

am facing this strange error 'Function module does not have E_SUBRC parameter' when I am changing function module in SPRO > QM > Quality Inspection > Define follow up action > FM

Then I added  the exporting parameter E_SUBRC        TYPE              SYST_SUBRC          in function module.

then again I got this error message

The reference structure of E_SUBRC parameter must be SY-SUBRC.

what could be the problem?? any guidence?

Thanks & Regards..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,905

Did you used 'LIKE' typing method? (It gives error message if you use 'TYPE' instead of 'LIKE').

You can use function module QFOA_COPY_REFERENCE_FORM as a reference.

9 REPLIES 9
Read only

PeterJonker
Active Contributor
0 Likes
1,905

Did you try as the error suggests: E_SUBRC type SY-SUBRC in stead of SYST-SUBRC ?

Read only

0 Likes
1,905

Hi peter ,

Yes I tried with SY-SUBRC even it gave the same error....

Regards.

Read only

0 Likes
1,905

And did you also try LIKE sy-subrc in stead of TYPE sy-subrc ?

I am asking because I see that other QM function modules have e_subrc LIKE sy-subrc

Read only

Former Member
0 Likes
1,906

Did you used 'LIKE' typing method? (It gives error message if you use 'TYPE' instead of 'LIKE').

You can use function module QFOA_COPY_REFERENCE_FORM as a reference.

Read only

0 Likes
1,905

Yes even i gave LIKE for every parameter in my FM and though it got a warning message I activated then when I checked in SPRO I got this 'FM doesnt have E_PROTOCOL parameter......

Read only

0 Likes
1,905

Does your function module have the exact same parameter list as QFOA_COPY_REFERENCE_FORM?

After I copied this reference module I could enter it in SPRO without any error.

Read only

0 Likes
1,905

Hi,

Did you check that e_subrc has  a tick to pass Value and did you check the FM documentation if the FM is QFOA_COPY_REFERENCE_FORM?

May be it will be helpful.

Regards,

Pallavi

Read only

0 Likes
1,905

No but I entered now E_PROTOCOL in tables and activated and checked in SPRO I didnt get any error now surprising!!!!!!!!

Read only

0 Likes
1,905

Hi,

May be complete activation might be missing before.

Any how you solved it.

Regards,

Pallavi