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: 

Class builder

Former Member
0 Kudos

I created class using trans se24 (zcl_isa_replication_Catalog) and used this class in badi.

Under badi Method called class which created in se24 as follows

but I am getting error to create constructor

here i don't have idea , how to create construtor

Thanks

method IF_EX_BADI_ISA_REPL_CAT~INSTANCE_GET.

create object reference type zcl_isa_replication_Catalog

exporting

catalog_id = catalog_id

variant_id = variant_id

with_longtext = with_longtext

with_images = with_images

with_prices = with_prices

with_config = with_config

ipc_pricing = ipc_pricing

sim_id = sim_id

lim_id = lim_id

country = country.

endmethod.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Have you defined a method called as Constructor in your class ? If no, define & implement it. Also, is the type of the class is Usual ABAP Class ?

Reward points if the answer is helpful.

Regards,

Mukul

4 REPLIES 4

Former Member
0 Kudos

Hi,

Have you defined a method called as Constructor in your class ? If no, define & implement it. Also, is the type of the class is Usual ABAP Class ?

Reward points if the answer is helpful.

Regards,

Mukul

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos


method IF_EX_BADI_ISA_REPL_CAT~INSTANCE_GET.

data: o_replication_Catalog type ref to zcl_isa_replication_Catalog.

create object o_replication_Catalog
             exporting
                    catalog_id = catalog_id
                    variant_id = variant_id
                    with_longtext = with_longtext
                    with_images = with_images
                    with_prices = with_prices
                    with_config = with_config
                    ipc_pricing = ipc_pricing
                    sim_id = sim_id
                    lim_id = lim_id
                    country = country.


endmethod. 



Can you try this?

Rich Heilman

0 Kudos

Hi ,

Created Implementation for BADI which already having implemenaion in active,

Now I created new one and activated giving error as

"There already Implementaions act active"

Present I am in ECC

Thanks

0 Kudos

Hi,

You can not have 2 Active Implementations of a BADI. You can have multiple mplementations of a BADI but only one implementation can be active at any given moment of time.

Reward points if the answer is helpful.

Regards,

Mukul