First I created function ZMILLCA_REEL_DEP,when I use CU01 create dependency,In the Dependency Editor
, I have entered the following source text for the dependency: function ZMILLCA_REEL_DEP() ,the library told me input pfunction
<Variantfunctionname> ()
I can't save,the system told me" Error in syntax check" ,can anybody told me how to call a function in CU01 dependency editor? Thanks!
Library content:
In variant configuration , you have created the required dependencies for the reel calculation as follows:
1. Create function group :
On the SAP Easy Access screen, you have created a new function group, for example Z_MILLCA, by choosing Tools ABAP Workbench
Overview Object Navigator , or you are using an existing function group.
2. Create function module :
You have created a function module, for example ZMILLCA_REEL_DEP, for the function group created under Create Function Group (see 1) or for the
existing function group, as follows:
Import parameter:
GLOBALS TYPE CUOV_00: Global data for calling functions in object dependencies
Table parameters:
QUERY LIKE CUOV_01: Interface for function call from object dependencies
MATCH LIKE CUOV_01: Interface for function call from object dependencies
Exceptions:
FAIL
INTERNAL_ERROR
Coding:
call function ´/SAPMP/LO_RC_TRIGGER_DEP´
exporting
globals = globals
tables
query = query
match = match
exceptions
fail = 1
internal_error = 2
others = 3.
- Create Single DependencyOn the
SAP Easy Access
screen, you have created a single dependency, for example MP_REEL_CALC, as a procedure on the Basic Data
screen under Dependency Type
, by choosing Logistics
Central Functions
Variant Configuration
Dependency
Single Dependency
Create.
You have then entered the basic data, such as texts. In the Dependency Editor
, you have entered the following source text for the dependency:pfunction
<Variantfunctionname> ()
The variant function name must be the same as the name of the function created under Create Function
above, for example, ZMILLCA_REEL_DEP. To indicate that the name is a function, you have entered an opening and closing round bracket with or without blanks in front of the variant function name.