on 07-17-2017 7:26 PM
Hi gurus,
I have written a simple variant function to take some parameters from my VC and use them as input to fetch a single record from a Z-table then return its result to the VC. I've activated my function module and written a procedure within a test config profile for a test material. When I test things, it seems like nothing is firing. I am trying to catch the function by setting a breakpoint in the code (SE37) then going through the VC to force it to fire, but nothing is happening. Again, everything appears to be activated (function module saved, activated + procedure saved, released) yet I am getting no result from my variant function.
Can somebody help me in determining how I may be able to debug the function module?
Hi Kelby,
did you make make sure that all input characteristics of the variant function are "specified" when you try to call it?
Kind Regards,
Johannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you assign the object dependecy to the configuration profile of the related material?
BR
Adil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kelby,
a very useful tool to debug is the configuration trace: just activate it from CU50 (Extras - Trace - Activate), run the configuration simulation for the test material and then display it (Extras - Trace - Display).
Maybe, check the trace settings before, in order to display a more detailed trace level and set trace areas (Procedures, for instance).
When displaying the trace result, search for the procedure and check the input characteristics; if they are not properly valuated, the procedure doesn't trigger the function.
If you need any further hit, feel free to come back here.
Hope this could help.
Thanks and ciao,
Flavio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
some hints in debugging:
FUNCTION CE_I_CONFIGURE
...
*-------------------------
PERFORM setup_master_data
USING
only_cfg_engine
cuco
rctms-spras
rctms-neutr
gc_r3vc "scenario
lt_charact "characteristics
CHANGING
lv_md_subrc.
...
mi[ ] is filled here, this internal table holds all the characteristic values in the configuration.
FM VC_I_GET_CONFIGURATION is used to fetch the configuration information from database table directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
11 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.