2013 Mar 20 5:25 AM
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
2013 Mar 20 5:43 AM
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
2013 Mar 20 5:39 AM
hi,
what is the reference type of p_abcd..
check whether you specified the reference type for that parameter..
thanks,
Mathan R.
2013 Mar 20 5:43 AM
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
2013 Mar 21 4:51 AM
Hi Tarak,
What u said is right. I have changed the code and not it is working fine. thanx for the support
2013 Mar 20 7:15 AM
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