Skip to Content
0
Jun 10, 2015 at 03:26 PM

Reading policy data in FSPM .

297 Views

Hi ,

I am trying to fetch policy data can someone please let me know how to get the BO id needed for the same ?

Please find below code

DATA: lr_ctr_fac   TYPE REF TO /pm0/if_abp_bou_ctr_fac,

         lr_gl_policy  TYPE REF TO /pm0/if_abp_tc_get_policy.


   /pm0/cl_ab_bpu_registry=>init('D').

   lr_ctr_fac = /pm0/cl_ab_bpu_registry=>gr_ctr_fac.

   lr_gl_policy = lr_ctr_fac->get_gb_policy( ).


   DATA: ls_sec TYPE /pm0/abvapolicy,
          lt_cov TYPE /pm0/abwapolicy_t,
      lv_boid type /PM0/ABD_BO_ID.


 " QUESTION IS WHERE TO GET THIS BO_ID FROM 

       ls_sec-BO_ID = lv_boid. 
       ls_sec-secpol_id = '051M17rU7jM1mHgP3f21X0'.
   
   
 BREAK-POINT.

   TRY.
       CALL METHOD lr_gl_policy->get_policy
         EXPORTING
           is_sec    = ls_sec
         IMPORTING
           et_policy = lt_cov.
     CATCH /pm0/cx_abp_uboi .
     CATCH /pm0/cx_3ft_exception .
   ENDTRY.