Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

Variant function/pfunction devlopment need clarification!

$
0
0

Hi guys,

i'm developing a variant function for extend the product configuration with IPC.

In our environment we have the last relase of IPC 5.0 and CRM EHP2, so we are facing with the last version running on VMC.

I follow this link

http://help.sap.com/saphelp_crm700_ehp02/helpdata/en/1a/2d9a3ecd744135ad27078554403974/content.htm

and referenced note to implement a very simple Variant Function.

I first create a new function in product model with two parameters (one input and one output) and referenced this function as Function Formula dependency.

After that, following the note 870201 and this other link Variant Functions - Configuration Engine - SAP Library i develop my class

 

This is my code where ZZ_TEST_CONF is the name of the function created in the product configuration

 

package com.sap.sce.user;

import com.sap.sce.engine.*;

 

public class ZZ_TEST_CONF  implements sce_user_fn {

        ZZ_TEST_CONF MyClass;

     public boolean execute(fn_args args, Object obj) {

        

         String TipoRic = args.get_value("ZZTIPORICHIESTA");

         sce_user_fn_logging MyLog = new sce_user_fn_logging();

         MyLog.writeLogError(MyClass, "SONO IO");

        

         return true;

 

          }

}

 

 

As you can see it is a very simple code just only to make all work. I uploaded the JAR without error and check the presence of my class with SM53.

 

I simulate the configuration of new product guessing that the my Variant Function should be triggered selecting the value of my input parameters.

 

But i can't figure out how to check the log, to see if my program execute correctly. In the pdf attached to the note 870201 there is this stament

"For tracing the following API can be used to make trace-entries. You will find your traces under the location com.sap.sce.user.sce_user_fn_logging." but there is no way for me to find this location. Neither in SM53 or AL11 or file system on the server.

 

Have you any suggestion or some tips about all the procedure to develop this Variant Function. I noticied that there are very few documentation about this topic and since the last revision of IPC introduce big chenges, many documentaion and topic are out of date.

 

Thanks in advice for any suggestion!


Viewing all articles
Browse latest Browse all 4552

Trending Articles