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: 

BADI - /SAPAPO/RRP_SRC_EXIT

former_member1240896
Participant
0 Kudos

Hi all,

i have implemented a standard BADI in APO -/SAPAPO/RRP_SRC_EXIT

with name Z9_RRP_SRC_EXIT.

I did the following in the method RRP_USEX_PLORD_CREATE of the above implmentation:

METHOD /sapapo/if_ex_rrp_src_exit~rrp_usex_plord_create.

DATA: hdl TYPE REF TO zcl_shm_area_dw,

sharing_root TYPE REF TO zcl_shm_area_root_dw,

lx_root TYPE REF TO cx_root.

hdl = zcl_shm_area_dw=>attach_for_write( ).

CREATE OBJECT sharing_root AREA HANDLE hdl.

sharing_root->io_nodes_attr = ct_inputs.

hdl->set_root( sharing_root ).

TRY.

hdl->detach_commit( ).

*hdl->detach( ).

CATCH cx_root INTO lx_root.

ENDTRY.

ENDMETHOD.

When activating i am getting the following warning:

'The exception Cx_SHM_EXCLUSIVE_LOCK_ACTIVE is neither caught nor it is declared in the RAISING clause of 'RRP_USEX_PLORD_CREATE'.

As this is warning i activated it and the BADI also.

When i go back and again see the BADI , the status is inactive.

Can you please let me now if i am doing anything wrong?

Regards,

Chandan

1 REPLY 1

Former Member
0 Kudos

go to tcode shm and delete all the instances and then try...............