cancel
Showing results for 
Search instead for 
Did you mean: 

Debug is not working for custom action class

Former Member
0 Kudos

Hello experts,

I've created a custom action class in ICSS and changed the struts config.

I could see the custom code has impact on the putput.

But I'm not able to debug the custom action class.

How do I check the values of the variables and which conditional statement it is executing?

I've doIcssPerform method which uses IsaLocation as one of the parameters.

public ActionForward doIcssPerform(IsaLocation log);

I tried by using log.debug("Value" +variable);

Also log.error("Value" +variable);

But I'm not getting these values in the session log file.

Kindly let me know what I'm missing here and what has to be done to see the values of the above.

Thanks in advance..

Regards,

RSN.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Rsn,

just check the put this code in

1st way--

jjust import the api in your custom Action class

import com.sap.isa.core.logging.IsaLocation;

private final static IsaLocation log = IsaLocation.getInstance(ZcustomeAction.class.getName());

then

log.error("value"+value);

}

in this way you can debug the code...if not possible thenn...

you can write...

System.err.println("value"+value);

you can also try to this way..i think it will work now

Thanks

Jati

Former Member
0 Kudos

Hi RNS,

I am going to start enhancement inICSS Application..actually i am totakl new in this application.

please could me suggest how to do the proceess....

my requirement is i would like to add DISPATCH buttom in SERVICETicket Form(like--SAVE,Cancel)

and i have created one Functinal modelu--z_disopatch_model..and i have to call this functinal module through Action class.please tell me how to do the call bin between.

for that how many class will be do .and what are they. passing all field parameter into this functinal module..please guide me....

Thanks in advance

Sudhira

Former Member
0 Kudos

Hi RSN,

check these SAP Notes..

1017756 - ECO 5.0 Creating own log trace files

1090753 - Creation of logs for B2B and B2C Release 5.0

569976 - Creation of session logs

921409 - Enable session tracing in mySAP CRM 5.0 java components

1054955 - Traces for configuration and pricing problems in ECO 5.0

Regards,

Anil.

Former Member
0 Kudos

Hello Anil,

Thanks for your reply.

These notes talk about how to enable session logging etc..

I'm able to create session log and I've the log file also.

But some how my custom action class or even my standard icss actions are not available in the log file.

what might be the issue here. Is there any different setting we've to do to capture ICSS related actions/classes?

Thanks & Regards,

RSN.