Application Development and Automation 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: 
Read only

Editing a code for a method in se19

Former Member
0 Likes
3,670

Hi,

 

Path:  SE19 -> edit implementation ->classic badi implementation (here name is 'CL_CU_DEP_EDITOR') ->display->interface->method (CHECK_ACTIVE).

method if_ex_cu_dependency_editor~check_active.



endmethod.




i want to edit and write a code for  in between method and endmethod statements.Here enhancement cannot be used .
So please suggest a valid way to do it.

Regards,
Vinit.
1 ACCEPTED SOLUTION
Read only

0 Likes
2,071

hi ,

    you can't edit the code in sap you can do  enhancement the standard code .

    coming to  your point u have to create new implementation like ZCU_DEPENDENCY_EDITOR

    in that u can write ur code

   se19->createimplementation->clasicBadi(click) adn give ur badiname CU_DEPENDENCY_EDITOR->click on create implementation -> then give

ZCU_DEPENDENCY_EDITOR name then give short test -> click on  check_active then u can get ur method then write the code in between

method IF_EX_CU_DEPENDENCY_EDITOR~CHECK_ACTIVE.

...........

........

endmethod.

V@li

7 REPLIES 7
Read only

Former Member
0 Likes
2,070

Hi Vinit,

I have not worked on it but you can try like this,

go to se24 -> put CL_IM_CL_CU_DEP_EDITOR (the class name for your BADI)

and create an implicit enhancemnet and write your code there.

BR.

Message was edited by: Ankit Maskara

Read only

Former Member
0 Likes
2,070

CL_CU_DEP_EDITOR is implementation of BAdi CU_DEPENDENCY_EDITOR.

You could create a new implementation of BAdi CU_DEPENDENCY_EDITOR.

Read only

former_member420959
Participant
0 Likes
2,070

hi ,

is that a badi or enhancement spot??

try the badi   "cu_dependency_editor" instead to write code inside the CHECK_ACTIVE method.

create implementation for it or check if any already exists.

Thanks

Ujwal

Read only

Former Member
0 Likes
2,070

hey,

click on the enhancement button when u are in the method and endmethod screen.

then u will get option to create the Enhancement Spot......

Read only

0 Likes
2,072

hi ,

    you can't edit the code in sap you can do  enhancement the standard code .

    coming to  your point u have to create new implementation like ZCU_DEPENDENCY_EDITOR

    in that u can write ur code

   se19->createimplementation->clasicBadi(click) adn give ur badiname CU_DEPENDENCY_EDITOR->click on create implementation -> then give

ZCU_DEPENDENCY_EDITOR name then give short test -> click on  check_active then u can get ur method then write the code in between

method IF_EX_CU_DEPENDENCY_EDITOR~CHECK_ACTIVE.

...........

........

endmethod.

V@li

Read only

atul_mohanty
Active Contributor
0 Likes
2,070

Hi

Try to use implicit enhancement if you want to edit this method (begining , end).

The following links might help you.

http://help.sap.com/saphelp_nw04s/helpdata/en/29/e59441026aae5fe10000000a1550b0/content.htm

http://wiki.sdn.sap.com/wiki/display/ABAP/How+To+Do+Implicit+Enhancement

Read only

VijayaKrishnaG
Active Contributor
0 Likes
2,070

Hi Vinit,

You need to give the Implementation name of a BADI in SE19 > Classic BADI Implementation field. Then the required method will be editable and no need of any enhancements there again.

As I understood, you are entering a BADI name, Instead Implementation name.

Thanks & Regards,

-Vijay