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

Calling function module in object dependency

Former Member
0 Likes
2,690

Hello,

I created a function module that will be called by an object dependency in VC. However, when I try to test this functionality, I am getting the following error:

Function ZVC_E_TEST_1 is not declared

Message no. 28152

Diagnosis

The syntax check found an error in the function entry ZVC_E_TEST_1. The function is not created for used in object dependencies (declared).

Procedure

Check your entry for the function or declare the function using the Tools -> Function-> Create function in the variants menu.

Can someone please let me know how to resolve this issue?

Thanks,

Rugmani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,063

Have you used Transaction CU65 to create your Variant Function? In this transaction you define the Characteristics to be used and also whether they are for input or output. You also assign the ABAP Function Module to the Variant Function as well. Using the SAP Help will give you more details on how to define a Variant Function, which I found to be very useful when writing my first Variant Function.

1 REPLY 1
Read only

Former Member
0 Likes
1,064

Have you used Transaction CU65 to create your Variant Function? In this transaction you define the Characteristics to be used and also whether they are for input or output. You also assign the ABAP Function Module to the Variant Function as well. Using the SAP Help will give you more details on how to define a Variant Function, which I found to be very useful when writing my first Variant Function.