cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to debug an abap class

Former Member
0 Kudos

Hi,

I try to set-up my environment for testing an abap class which receives an xml file and return a different one.

Launching the tcode sxi_mapping_test I need to fill the fields showed. I wish to know exactly which fields are necessary.

Is there a relationship between the source and target operantion defined in operation mapping section of the Enterprise Service Builder?

Reading the blog /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping it is necessary to define a scenario (Process Integration Scenario) but I need your help to understand it or the steps for configuring my debugging environment.

Any help will be well appreciated.

Thanks in advance.

Regards,

Giovanni

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

thanks a lot for your quick reply and help.

Very good solution to my problem. In following the configuration steps, after changing the set method, no error after a check but when I activate the ZCL_MAPPING_PARAM object, I receive the following error message.

Implementation missing for method "CONSTRUCTOR". "CONSTRUCTOR".

Sorry for the trouble but I need your help again.

Thanks in advance.

Regards,

Giovanni

former_member206760
Active Contributor
0 Kudos

Dear Givannii,

implementation missing for method "CONSTRUCTOR". "CONSTRUCTOR".

it is giving this error as you have not activated all the methods....when the activatation screen comes just activate all the objects related with your class name

Answers (5)

Answers (5)

Former Member
0 Kudos

Very good!

Thanks. Problem solved!

Regards,

Giovanni

Former Member
0 Kudos

Hi,

I have copied the cl_mapping_param class by launching the se24 tcode.

Double-click on my constructor I find the same abap code present in the cl_mapping_param class.

method CONSTRUCTOR .

me->params = params.

endmethod.

Double-click on the error line, regarding the constructor, the following code is shown.

" public components of class ZCL_MAPPING_PARAM

" do not include other source files here!!!

interfaces IF_MAPPING_PARAM .

methods CONSTRUCTOR

importing

!PARAMS type MPP_PARAM_TAB optional .

methods GET_PARAMETER_TABLE

returning

value(PARAMS) type MPP_PARAM_TAB .

Any idea?

Thanks in advance.

Regards,

Giovanni

Former Member
0 Kudos

Hi,

maybe this is not important ...

The abap report is activated without error and by double-click on referred to DATA: TRACESTART TYPE REF TO CL_MAPPING_TRACE, it shows me the changes done to the set method.

Regards,

Giovanni

Shabarish_Nair
Active Contributor
0 Kudos
MichalKrawczyk
Active Contributor
0 Kudos

hi,

but did you copy ("copy as" button) the class in SE24 ?

just like shown in my blog?

it not do it

you can also copy the constructor's code into your class

Regards,

Michal Krawczyk

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Reading the blog /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping it is necessary to define a scenario (Process Integration Scenario) but I need your help to understand it or the steps for configuring my debugging environment.

you didn't see my blog did you?:)

/people/michal.krawczyk2/blog/2007/12/06/xipi-easy-abap-mapping-tests--no-more-sximappingtest

Regards,

Michal Krawczyk