Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP object enhancement using abap objects

Former Member
0 Kudos

Hi

I am enhancing a standard SAP object using ABAP objects.

I need to add 2 more fields to the struct in that object.

My qn is : how to redefine the parameter type of a method in standard class?

the code is

***********************************

DATA: lt_list TYPE RCF_T_LIST_MASS_PROC_ACT_X.

CHECK me->start_selection EQ true.

CHECK exist_exception( ) EQ false.

*

DATA lo_ex TYPE REF TO cx_hrrcf.

*

TRY.

CALL METHOD me->ref_mass_proc_bl->get_mproc_cor_list_info

EXPORTING

mass_proc_cor_list = me->sel_mass_proc_cor

IMPORTING

mass_proc_list_info = lt_list.

*

CATCH cx_hrrcf INTO lo_ex.

add_exception( lo_ex ).

ENDTRY.

plz help me

if anyone provides code for this is appreciable.

Thanks

1 REPLY 1

Former Member
0 Kudos

Hi,

either you can use the append technique <a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebc9446011d189700000e8322d00/content.htm">Append</a>

or you can define an additional import parameter.

Best Regards, Edgar