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

Peculiar Error in Functional Module

Former Member
0 Likes
732

Hi,

     I have created a function module with Parameter p_abcd and used the same in the coding.

     There is join statement ,used tables are VBAP,VBBE,MARA & MARC with where condition satisfying all the criteria's.

     When i try to activate it says Field "P_ABCD"  is unknown.

     It is neither in one of the specified tables nor defined by a "DATA" statement. .

    

     Am i missing something.

     No idea how to proceed further.

with rgds

Ranjith

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
703

Hi Ranjith,

i think u have used this P_ABCD under any FORM ENDFORM.

if u used this way than it will give the above error.U can take one more variable and u can pass and use thats variable as Global Parameter.

Or u can user the PERFORM ..... USING P_ABCD.

Please check it and let me know.

Thanks

Tarak

4 REPLIES 4
Read only

Former Member
0 Likes
703

hi,

what is the reference type of p_abcd..

check whether you specified the reference type for that parameter..

thanks,

Mathan R.

Read only

Former Member
0 Likes
704

Hi Ranjith,

i think u have used this P_ABCD under any FORM ENDFORM.

if u used this way than it will give the above error.U can take one more variable and u can pass and use thats variable as Global Parameter.

Or u can user the PERFORM ..... USING P_ABCD.

Please check it and let me know.

Thanks

Tarak

Read only

0 Likes
703

Hi Tarak,

     What u said is right. I have changed the code and not it is working fine. thanx for the support

Read only

Former Member
0 Likes
703

Hi Ranjith,

u can this error when u try to call a local variable globally. The error is in passing the reference variable from your report program to the function module.

pass the parameter P_ABCD in changing tab of your FM. U should be able to proceed

Thanks

Vivek